{"id":4930,"date":"2009-03-05T13:56:21","date_gmt":"2009-03-05T13:56:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/javascript-logic\/"},"modified":"2009-03-05T14:01:03","modified_gmt":"2009-03-05T14:01:03","slug":"javascript-logic","status":"closed","type":"plugin","link":"https:\/\/tt.wordpress.org\/plugins\/javascript-logic\/","author":20482,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"0.1","tested":"2.7.1","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"JavaScript Logic","header_author":"Justin Tadlock","header_description":"","assets_banners_color":"","last_updated":"2009-03-05 14:01:03","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=3687060","header_plugin_uri":"http:\/\/justintadlock.com","header_author_uri":"http:\/\/justintadlock.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":7510,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[229],"plugin_category":[59],"plugin_contributors":[77929],"plugin_business_model":[],"class_list":["post-4930","plugin","type-plugin","status-closed","hentry","plugin_tags-javascript","plugin_category-utilities-and-tools","plugin_contributors-greenshady","plugin_committers-greenshady"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/javascript-logic.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>JavaScript Logic is a plugin that allows you to add JavaScript however you want. There's no need to add a script on all of your blog's pages when you only need it on a few.<\/p>\n\n<p>By using WordPress conditional tags or through a meta box on the Write Post\/Page screen, you control what files are added to your site and when.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>javascript-logic<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to your 'Widgets' control panel and configure your new widgets.<\/li>\n<\/ol>\n\n<p>More detailed instructions can be found in the plugin's <code>readme.html<\/code> file.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Why create this plugin?<\/dt>\n<dd><p>I use several scripts on my site to perform various tasks.  Usually, these scripts are only needed on a handful of pages.  But, if they're being loaded on every page of the site, things were running pretty slow.  So, I decided I needed an easy way to only load JavaScript when it was needed.<\/p><\/dd>\n<dt>What does this plugin do, exactly?<\/dt>\n<dd><p>It gives you a central control panel to load JavaScript on the pages of your choosing using WordPress <a href=\"http:\/\/codex.wordpress.org\/Conditional_Tags\" title=\"Conditional Tags\">conditional tags<\/a>.  Plus, on the <em>Write Post\/Page<\/em> screen, there's an additional meta box that allows you to use JavaScript on a per-post\/page basis.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Allows you to load JavaScript in a much more controlled way using WordPress conditional tags.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/4930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=4930"}],"author":[{"embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/greenshady"}],"wp:attachment":[{"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=4930"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=4930"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=4930"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=4930"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=4930"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=4930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}