{"id":24180,"date":"2013-07-09T19:11:23","date_gmt":"2013-07-09T19:11:23","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/oik-css\/"},"modified":"2024-11-14T15:50:53","modified_gmt":"2024-11-14T15:50:53","slug":"oik-css","status":"publish","type":"plugin","link":"https:\/\/te.wordpress.org\/plugins\/oik-css\/","author":7443420,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.3.1","stable_tag":"2.3.1","tested":"6.7.5","requires":"5.0","requires_php":"","requires_plugins":null,"header_name":"oik-css","header_author":"bobbingwide","header_description":"","assets_banners_color":"eff3f4","last_updated":"2024-11-14 15:50:53","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.oik-plugins.com\/oik\/oik-donate\/","header_plugin_uri":"https:\/\/www.oik-plugins.com\/oik-plugins\/oik-css","header_author_uri":"https:\/\/bobbingwide.com\/about-bobbing-wide","rating":4.5,"author_block_rating":0,"active_installs":20,"downloads":5708,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.2":{"tag":"0.2","author":"bobbingwide","date":"2013-10-15 22:15:50"},"0.4":{"tag":"0.4","author":"bobbingwide","date":"2014-01-04 18:37:40"},"0.5":{"tag":"0.5","author":"bobbingwide","date":"2014-04-17 12:29:11"},"0.6":{"tag":"0.6","author":"bobbingwide","date":"2015-04-24 06:25:29"},"0.8.0":{"tag":"0.8.0","author":"bobbingwide","date":"2015-10-12 12:35:33"},"0.8.1":{"tag":"0.8.1","author":"bobbingwide","date":"2017-06-12 08:44:29"},"0.9.0":{"tag":"0.9.0","author":"bobbingwide","date":"2017-12-18 17:22:24"},"1.0.0":{"tag":"1.0.0","author":"bobbingwide","date":"2020-04-29 07:28:00"},"1.1.0":{"tag":"1.1.0","author":"bobbingwide","date":"2020-09-04 22:34:09"},"1.1.1":{"tag":"1.1.1","author":"bobbingwide","date":"2020-12-19 17:04:06"},"2.0.0":{"tag":"2.0.0","author":"bobbingwide","date":"2021-09-14 09:15:57"},"2.0.1":{"tag":"2.0.1","author":"bobbingwide","date":"2022-08-19 13:21:17"},"2.1.0":{"tag":"2.1.0","author":"bobbingwide","date":"2022-11-23 09:57:35"},"2.1.1":{"tag":"2.1.1","author":"bobbingwide","date":"2023-08-07 14:39:21"},"2.1.2":{"tag":"2.1.2","author":"bobbingwide","date":"2023-10-17 18:01:18"},"2.1.3":{"tag":"2.1.3","author":"bobbingwide","date":"2024-03-14 16:57:24"},"2.2.0":{"tag":"2.2.0","author":"bobbingwide","date":"2024-09-11 16:15:30"},"2.3.0":{"tag":"2.3.0","author":"bobbingwide","date":"2024-09-23 16:38:51"},"2.3.1":{"tag":"2.3.1","author":"bobbingwide","date":"2024-11-14 15:50:53"}},"upgrade_notice":{"2.3.1":"<p>Automatically disables automatic paragraph creation for block based themes.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":973875,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2235743,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"oik-css\/geshi":{"apiVersion":3,"name":"oik-css\/geshi","title":"GeSHi","category":"layout","icon":"editor-code","description":"Generic Syntax Highlighting - for code examples","attributes":{"lang":{"type":"string"},"text":{"type":"string"},"content":{"type":"string"},"src":{"type":"string"},"textAlign":{"type":"string"},"className":{"type":"string"},"textColor":{"type":"string"},"backgroundColor":{"type":"string"},"style":{"type":"object"},"fontSize":{"type":"string"},"gradient":{"type":"string"}},"supports":{"html":false,"customClassName":true,"className":true,"color":{"gradients":true,"text":true,"background":true,"link":true},"typography":{"fontSize":true,"lineHeight":true}},"keywords":["GeSHi","syntax","highlight","PHP","HTML","JavaScript","CSS","MySQL"],"editorScript":"file:..\/..\/build\/oik-geshi.js","editorStyle":"file:..\/..\/build\/oik-geshi.css","style":"file:..\/..\/build\/style-oik-geshi.css"},"oik-css\/css":{"apiVersion":3,"name":"oik-css\/css","title":"CSS","category":"layout","icon":"admin-appearance","description":"Inline CSS","attributes":{"css":{"type":"string"},"text":{"type":"string"},"src":{"type":"string"},"textAlign":{"type":"string"},"className":{"type":"string"},"textColor":{"type":"string"},"backgroundColor":{"type":"string"},"style":{"type":"object"},"fontSize":{"type":"string"},"gradient":{"type":"string"}},"supports":{"html":false,"customClassName":true,"className":true,"color":{"gradients":true,"text":true,"background":true,"link":true},"typography":{"fontSize":true,"lineHeight":true}},"keywords":["CSS","oik"],"editorScript":"file:..\/..\/build\/oik-css.js","editorStyle":"file:..\/..\/build\/oik-css.css","style":"file:..\/..\/build\/style-oik-css.css"}},"tagged_versions":["0.2","0.4","0.5","0.6","0.8.0","0.8.1","0.9.0","1.0.0","1.1.0","1.1.1","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2","2.1.3","2.2.0","2.3.0","2.3.1"],"block_files":[],"assets_screenshots":{"screenshot-4.png":{"filename":"screenshot-4.png","revision":3188852,"resolution":"4","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3188852,"resolution":"3","location":"plugin"},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3188852,"resolution":"5","location":"plugin"},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":3188852,"resolution":"1","location":"plugin"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":3188852,"resolution":"2","location":"plugin"}},"screenshots":{"1":"CSS block example","2":"GeSHi block example","3":"[bw_css] - syntax and examples","4":"[bw_geshi] - examples","5":"oik-CSS options - available when oik is active"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4121,356,12155,357],"plugin_category":[43],"plugin_contributors":[79761,79762],"plugin_business_model":[],"class_list":["post-24180","plugin","type-plugin","status-publish","hentry","plugin_tags-blocks","plugin_tags-css","plugin_tags-geshi","plugin_tags-shortcodes","plugin_category-customization","plugin_contributors-bobbingwide","plugin_contributors-vsgloik","plugin_committers-bobbingwide"],"banners":{"banner":"https:\/\/ps.w.org\/oik-css\/assets\/banner-772x250.jpg?rev=2235743","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/oik-css\/assets\/icon-128x128.png?rev=973875","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/oik-css\/trunk\/screenshot-1.jpg?rev=3188852","caption":"CSS block example"},{"src":"https:\/\/ps.w.org\/oik-css\/trunk\/screenshot-2.jpg?rev=3188852","caption":"GeSHi block example"},{"src":"https:\/\/ps.w.org\/oik-css\/trunk\/screenshot-3.png?rev=3188852","caption":"[bw_css] - syntax and examples"},{"src":"https:\/\/ps.w.org\/oik-css\/trunk\/screenshot-4.png?rev=3188852","caption":"[bw_geshi] - examples"},{"src":"https:\/\/ps.w.org\/oik-css\/trunk\/screenshot-5.png?rev=3188852","caption":"oik-CSS options - available when oik is active"}],"raw_content":"<!--section=description-->\n<ul>\n<li>Use the CSS block to add custom CSS.<\/li>\n<li>Use the GeSHi block to syntax highlight: CSS, HTML, JavaScript, jQuery, PHP, MySQL or None.<\/li>\n<\/ul>\n\n<p>For backward compatibility:<\/p>\n\n<ul>\n<li>Use the [bw_css] shortcode to add custom CSS as and when you need it.<\/li>\n<\/ul>\n\n<p>For designers, developers and documenters [bw_css] supports echoing of the custom CSS, allowing you to document the CSS you are using.\nFor readability, the CSS is processed using the Generic Syntax Highlighter (GeSHi) processing.<\/p>\n\n<ul>\n<li>Use the [bw_geshi] shortcode for syntax highlighting of: CSS, HTML(5), JavaScript and jQuery, PHP and MySQL.\nAlso supports language: none.<\/li>\n<\/ul>\n\n<p>If the oik base plugin is activated<\/p>\n\n<ul>\n<li><p>Use the [bw_autop] shortcode to disable or re-enable WordPress's wpautop() logic.<\/p><\/li>\n<li><p>Use the experimental [bw_background] shortcode to display an attached image in the background.<\/p><\/li>\n<\/ul>\n\n<h3>Further reading<\/h3>\n\n<p>If you want to read more about the oik plugins then please visit the\n<a href=\"https:\/\/www.oik-plugins.com\/oik\">oik plugin<\/a>\n<strong>\"OIK - OIK Information Kit\"<\/strong><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the contents of the oik-css plugin to the `\/wp-content\/plugins\/oik-css' directory<\/li>\n<li>Activate the oik-css plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use the CSS and GeSHi blocks within your content.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20are%20the%20dependencies%3F'><h3>What are the dependencies?<\/h3><\/dt>\n<dd><p>This code is no longer dependent upon the oik base plugin; it uses shared libraries.\nIf you want to use the shortcodes then using oik v3.3.7 or higher is still recommended.<\/p><\/dd>\n<dt id='what%20is%20the%20syntax%3F'><h3>What is the syntax?<\/h3><\/dt>\n<dd><p>[bw_css] your CSS goes here [\/bw_css]<\/p>\n\n<p>Note: The ending shortcode tag [\/bw_css] is required<\/p><\/dd>\n<dt id='how%20do%20i%20get%20the%20geshi%20output%3F'><h3>How do I get the GeSHi output?<\/h3><\/dt>\n<dd><p>Either<\/p>\n\n<pre><code>[bw_css .] your CSS goes here[\/bw_css]\n<\/code><\/pre>\n\n<p>or<\/p>\n\n<pre><code>[bw_css text=\"Annotation to the CSS that will follow\"] your CSS goes here[\/bw_css]\n<\/code><\/pre><\/dd>\n<dt id='how%20do%20i%20get%20geshi%20output%20for%20other%20languages%3F'><h3>How do I get GeSHi output for other languages?<\/h3><\/dt>\n<dd><p>Use the [bw_geshi] shortcode.\ne.g.\n[bw_geshi html]&lt;h3&gt;[bw_css], [bw_geshi] &amp; [bw_background]&lt;\/h3&gt;&lt;p&gt;Cool, lazy smart shortcodes from oik-plugins.&lt;\/p&gt;\n[\/bw_geshi]<\/p>\n\n<p>Supported languages are:<\/p>\n\n<ul>\n<li>CSS<\/li>\n<li>HTML(5)<\/li>\n<li>JavaScript and jQuery<\/li>\n<li>PHP<\/li>\n<li>MySQL<\/li>\n<li>none<\/li>\n<\/ul>\n\n<p>If you want to display syntax highlighted CSS without affecting the current display use [bw_geshi css].<\/p><\/dd>\n<dt id='what%20version%20of%20geshi%20does%20oik-css%20use%3F'><h3>What version of GeSHi does oik-css use?<\/h3><\/dt>\n<dd><p>oik-css delivers a subset of GeSHi version 1.0.9.0, which was released in May 2017, with modifications to support PHP 7.2<\/p>\n\n<p>Only a small selection of the languages are supported by oik-css. These are the languages primarily used by WordPress.<\/p>\n\n<p>Note: oik-css will only load the GeSHi code if it is not already loaded.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.3.1<\/h4>\n\n<ul>\n<li>Changed: Disable wpautop() processing for block based themes #35<\/li>\n<li>Changed: Update wp-scripts to v30.4.0 #26<\/li>\n<li>Tested: With WordPress 6.7 and WordPress Multisite<\/li>\n<li>Tested: With PHP 8.3<\/li>\n<li>Tested: With PHPUnit 9.6<\/li>\n<\/ul>","raw_excerpt":"Allows internal CSS styling to be included in the content of the page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/24180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=24180"}],"author":[{"embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bobbingwide"}],"wp:attachment":[{"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=24180"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=24180"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=24180"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=24180"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=24180"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/te.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=24180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}