{"id":22824,"date":"2013-04-05T21:59:46","date_gmt":"2013-04-05T21:59:46","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/widget-logic-by-path\/"},"modified":"2014-01-29T16:47:00","modified_gmt":"2014-01-29T16:47:00","slug":"widget-logic-by-path","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/widget-logic-by-path\/","author":9479436,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2.2","stable_tag":"0.2.2","tested":"3.6.1","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Widget Logic by Path","header_author":"Mohan Chevuri","header_description":"","assets_banners_color":"","last_updated":"2014-01-29 16:47:00","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.uis.edu\/webservices\/","rating":5,"author_block_rating":0,"active_installs":300,"downloads":17036,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"14"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.1.1","0.2","0.2.1","0.2.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2681,13089,538,65145,20096],"plugin_category":[43],"plugin_contributors":[81331],"plugin_business_model":[],"class_list":["post-22824","plugin","type-plugin","status-closed","hentry","plugin_tags-context","plugin_tags-path","plugin_tags-url","plugin_tags-url-path","plugin_tags-widget-logic","plugin_category-customization","plugin_contributors-mchev2","plugin_committers-mchev2"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/widget-logic-by-path.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Widget Logic by Path extends <a href=\"http:\/\/wordpress.org\/extend\/plugins\/widget-logic\/\">Widget Logic<\/a> functionality to use URL path pattern based logic. It is similar to Drupal's \"Show block on specific pages\" feature. \"*\" is the wildcard character. See examples below.<\/p>\n\n<p>By enabling this plugin, Widget Logic default PHP based logic (eval) will be <a href=\"http:\/\/wordpress.org\/extend\/plugins\/widget-logic\/other_notes\/#The-%27widget_logic_eval_override%27-filter\">disabled<\/a>. So if you are concerned about \"eval\" security, but still need to use Widget Logic, this plugin will be helpful.<\/p>\n\n<ul>\n<li>Widget Logic version &gt;= 0.56 is required for this plugin to work.<\/li>\n<li>Works in Multisite. <\/li>\n<\/ul>\n\n<p>Example URL: http:\/\/www.domain.com\/--SITE--\/about\/staff\/<\/p>\n\n<h4>Example 1<\/h4>\n\n<pre><code>about\/             &lt;-- Show on about page only\nabout\/*            &lt;-- Show on about and all the pages under about\nabout\/staff\/*      &lt;-- Show on about\/staff\/ and all the pages under it\n&lt;home&gt;             &lt;-- Show on homepage\n&lt;blog&gt;             &lt;-- Show on blog latest posts front page\n&lt;search&gt;           &lt;-- Show on search page\n&lt;logged_in_user&gt;   &lt;-- Show only for logged in users\n<\/code><\/pre>\n\n<h4>Example 2<\/h4>\n\n<pre><code>&lt;all paths except&gt;  &lt;-- All paths except those listed below\nabout\/*             &lt;-- Do not show on about and all the pages under about\ncontact\/            &lt;-- Do not show on the contact page\n&lt;home&gt;              &lt;-- Do not show on homepage\n&lt;search&gt;            &lt;-- Do not show on search page\n<\/code><\/pre>\n\n<h4>Example 3 (Advanced)<\/h4>\n\n<pre><code>\/.*apple.*\/        &lt;-- Show on all the pages with URL path matching this regular expression. In this case \"\/.*apple.*\/\" will be passed to PHP preg_match function\"\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Install <a href=\"http:\/\/wordpress.org\/extend\/plugins\/widget-logic\/\">Widget Logic<\/a> version &gt;= 0.56<\/li>\n<li>Install this plugin<\/li>\n<li>Activate Widget Logic and this plugin through the 'Plugins' menu in WordPress<\/li>\n<li>You can start adding URL path patterns to Widgets from the usual Widgets admin interface<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.2.2<\/h4>\n\n<ul>\n<li>Fixed PHP warning for implode<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Added \"blog\" keyword for blog latest posts front page<\/li>\n<li>Updated regular expression used to evaluate * wildcard<\/li>\n<li>Suppress preg_match warnings incase of bad regex in user input<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Support for regular expressions<\/li>\n<li>Re-write<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Fixed conflict between home and search<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial wordpress.org release<\/li>\n<\/ul>","raw_excerpt":"Widget Logic by Path adds URL path pattern based logic to Widget Logic.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/22824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=22824"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mchev2"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=22824"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=22824"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=22824"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=22824"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=22824"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=22824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}