{"id":14066,"date":"2011-07-16T18:23:10","date_gmt":"2011-07-16T18:23:10","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/jsfiddle-shortcode\/"},"modified":"2024-11-05T00:33:46","modified_gmt":"2024-11-05T00:33:46","slug":"jsfiddle-shortcode","status":"publish","type":"plugin","link":"https:\/\/pe.wordpress.org\/plugins\/jsfiddle-shortcode\/","author":5666999,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.3","stable_tag":"1.1.3","tested":"6.6.5","requires":"3.4.0","requires_php":"","requires_plugins":null,"header_name":"JSFiddle Shortcode","header_author":"Willington Vega","header_description":"","assets_banners_color":"","last_updated":"2024-11-05 00:33:46","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/wvega.com\/","header_plugin_uri":"https:\/\/wvega.com\/492\/jsfiddle-shortcode\/","header_author_uri":"https:\/\/wvega.com\/","rating":5,"author_block_rating":0,"active_installs":70,"downloads":4628,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["installation","changelog","description"],"tags":{"0.1":{"tag":"0.1","author":"wvega","date":"2011-07-16 18:25:08"},"1.0.0":{"tag":"1.0.0","author":"wvega","date":"2014-09-16 15:41:48"},"1.0.1":{"tag":"1.0.1","author":"wvega","date":"2015-12-01 20:55:29"},"1.1.0":{"tag":"1.1.0","author":"wvega","date":"2016-03-31 07:00:29"},"1.1.1":{"tag":"1.1.1","author":"wvega","date":"2019-07-07 05:13:27"},"1.1.2":{"tag":"1.1.2","author":"wvega","date":"2024-11-05 00:14:35"},"1.1.3":{"tag":"1.1.3","author":"wvega","date":"2024-11-05 00:33:46"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"A JSFiddle embedded in a post using the plugin."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[38639],"plugin_category":[46,59],"plugin_contributors":[87491],"plugin_business_model":[],"class_list":["post-14066","plugin","type-plugin","status-publish","hentry","plugin_tags-jsfiddle","plugin_category-editor-and-writing","plugin_category-utilities-and-tools","plugin_contributors-wvega","plugin_committers-wvega"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/jsfiddle-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=installation-->\n<ol>\n<li>Extract the plugin files to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use <code>[jsfiddle]<\/code> in your post content.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Add missing License and License URI headers in readme.txt<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Tested up to WordPress 6.6.2<\/li>\n<li>Force HTTPS scheme for provided fiddle URLs to match the site's scheme<\/li>\n<li>Improve sanitization of shortcode attributes and escape the value of the resulting HTML attributes<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Tested up to WodPress 5.2.<\/li>\n<li>Use HTTPS URLs in plugin headers, default value for url attribute and Donate link.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Add support for font-color, menu-background-color, code-background-color and accent-color attributes.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Tested up to WordPress 4.4-beta1.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Fix PHP Deprecated notice.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>\n\n<!--section=description-->\n<p>Allows to easily embed Fiddles using a small shortcode.<\/p>\n\n<h3>Usage:<\/h3>\n\n<pre><code>[jsfiddle url=\"https:\/\/jsfiddle.net\/wvega\/UupFu\/\" height=\"300px\" include=\"result,html,js,css\" font-color=\"39464E\" menu-background-color=\"FFFFFF\" code-background-color=\"f3f5f6\" accent-color=\"1C90F3\"]\n<\/code><\/pre>\n\n<ul>\n<li>All attributes are optional.<\/li>\n<li><code>url<\/code> is the URL of the fiddle you want to embed, with or without trailing slash.<\/li>\n<li><code>include<\/code> can be any combination of <code>result, html, js and css<\/code>, separated by commas; the tabs in the embedded fiddle will follow the order specified with the <code>include<\/code> attribute.<\/li>\n<li><code>font-color<\/code> is the color used for the name of the tabs.<\/li>\n<li><code>menu-background-color<\/code> is the color used for the background of the tabs.<\/li>\n<li><code>code-background-color<\/code> is the color used for the background of the area where the code and results are shown.<\/li>\n<li><code>accent-color<\/code> is the color of the indicator shown below the active tab.<\/li>\n<\/ul>\n\n<h3>Result:<\/h3>\n\n<pre><code>&lt;iframe style=\"width: 100%; height: 300px\" src=\"https:\/\/jsfiddle.net\/wvega\/UupFu\/embedded\/result,html,js,css\/?fontColor=39464E&amp;menuColor=FFFFFF&amp;bodyColor=f3f5f6&amp;accentColor=1C90F3\"&gt;&lt;\/iframe&gt;\n<\/code><\/pre>","raw_excerpt":"Allows to easily embed Fiddles using a small shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14066"}],"author":[{"embeddable":true,"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wvega"}],"wp:attachment":[{"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14066"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14066"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14066"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14066"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14066"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}