{"id":21989,"date":"2013-02-11T20:42:16","date_gmt":"2013-02-11T20:42:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/extra-classes\/"},"modified":"2015-04-23T07:39:24","modified_gmt":"2015-04-23T07:39:24","slug":"extra-classes","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/extra-classes\/","author":123724,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3.1","stable_tag":"0.3.1","tested":"4.2.39","requires":"3.7","requires_php":"","requires_plugins":"","header_name":"Extra Classes","header_author":"Ben Huson","header_description":"","assets_banners_color":"a23984","last_updated":"2015-04-23 07:39:24","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/benhuson\/extra-classes","header_author_uri":"https:\/\/github.com\/benhuson","rating":5,"author_block_rating":0,"active_installs":30,"downloads":3063,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.3":"<p>Added Menu Selector support for &#039;ecms-404&#039; and &#039;ecms-no-404&#039; classes.<\/p>","0.2":"<p>Added Menu Selector class and &#039;extraclasses_menu_item_class&#039; filter.<\/p>","0.1":"<p>Just install and activate. No configuration required.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"3"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1036934","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1036934","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1036934","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1036934","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.3","0.3.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1241,6978,356,1865,2003],"plugin_category":[43,59],"plugin_contributors":[77999],"plugin_business_model":[],"class_list":["post-21989","plugin","type-plugin","status-publish","hentry","plugin_tags-class","plugin_tags-classes","plugin_tags-css","plugin_tags-menu","plugin_tags-styles","plugin_category-customization","plugin_category-utilities-and-tools","plugin_contributors-husobj","plugin_committers-husobj"],"banners":{"banner":"https:\/\/ps.w.org\/extra-classes\/assets\/banner-772x250.png?rev=1036934","banner_2x":"https:\/\/ps.w.org\/extra-classes\/assets\/banner-1544x500.png?rev=1036934","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/extra-classes\/assets\/icon-128x128.png?rev=1036934","icon_2x":"https:\/\/ps.w.org\/extra-classes\/assets\/icon-256x256.png?rev=1036934","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<h4>Add missing classes<\/h4>\n\n<p>Adds missing classes for selected menu states. Classes added include:<\/p>\n\n<ul>\n<li><code>current-page-parent<\/code> and <code>current_page_parent<\/code><\/li>\n<li><code>current-page-ancestor<\/code> and <code>current_page_ancestor<\/code><\/li>\n<li><code>current-menu-ancestor<\/code><\/li>\n<li><code>current-menu-parent<\/code><\/li>\n<\/ul>\n\n<p>The classes are added in the following scenarios:<\/p>\n\n<ul>\n<li><strong>When viewing an attachment page<\/strong> classes are added to any parent pages and their menu ancestors.<\/li>\n<li><strong>When viewing a post<\/strong> classes are added to any relevant taxonomy menu items and their manu ancestors.<\/li>\n<\/ul>\n\n<h4>Manage Menu Select States<\/h4>\n\n<p>Allows you to control which menu items should be selected (or deselected) when viewing certain pages of your site. You need to add classes to the menu items for this to work.<\/p>\n\n<ul>\n<li><code>ecms-archive-{$post_type}<\/code> - Select menu item when viewing a post type archive page.<\/li>\n<li><code>ecms-single-{$post_type}<\/code> - Select menu item when viewing a single post type page.<\/li>\n<li><code>ecms-taxonomy-{$taxonomy}<\/code> - Select menu item when viewing a taxonomy archive.<\/li>\n<li><code>ecms-taxonomy-{$taxonomy}-term-{$term}<\/code> - Select menu item when viewing a taxonomy term archive.<\/li>\n<li><p><code>ecms-404<\/code> - Select menu item when viewing a 404 page.<\/p><\/li>\n<li><p><code>ecms-no-archive-{$post_type}<\/code> - Deselect menu item when viewing a post type archive page.<\/p><\/li>\n<li><code>ecms-no-single-{$post_type}<\/code> - Deselect menu item when viewing a single post type page.<\/li>\n<li><code>ecms-no-taxonomy-{$taxonomy}<\/code> - Deselect menu item when viewing a taxonomy archive.<\/li>\n<li><code>ecms-no-taxonomy-{$taxonomy}-term-{$term}<\/code> - Deselect menu item when viewing a taxonomy term archive.<\/li>\n<li><code>ecms-no-404<\/code> - Deselect menu item when viewing a 404 page.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>To install and configure this plugin...<\/p>\n\n<ol>\n<li>Upload or install the plugin through your WordPress admin.<\/li>\n<li>Activate the plugin via the 'Plugins' admin menu.<\/li>\n<li>No configuration neccessary.<\/li>\n<\/ol>\n\n<h4>Upgrading<\/h4>\n\n<p>If you are upgrading manually via FTP rather that through the WordPress automatic upgrade link, please de-activate and re-activate the plugin to ensure the plugin upgrades correctly.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Where can I report bugs and issues?<\/dt>\n<dd><p>Please log issues and bugs on the plugin's <a href=\"https:\/\/github.com\/benhuson\/extra-classes\/issues\">GitHub page<\/a>.\nYou can also submit suggested enhancements if you like.<\/p><\/dd>\n<dt>How can I contribute?<\/dt>\n<dd><p>If you can, please <a href=\"https:\/\/github.com\/benhuson\/extra-classes\">fork the code<\/a> and submit a pull request via GitHub. If you're not comfortable using Git, then please just submit it to the issues link above.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.3.1<\/h4>\n\n<p>Fix issue where menu selected states were not inherited correctly for non-404 pages.<\/p>\n\n<h4>0.3<\/h4>\n\n<p>Added Menu Selector support for 'ecms-404' and 'ecms-no-404' classes.<\/p>\n\n<h4>0.2<\/h4>\n\n<p>Added Menu Selector class.\nAdd menus module and 'extraclasses_menu_item_class' filter for easier filtering of menu item classes.\nRestructure include files for modules.<\/p>\n\n<h4>0.1<\/h4>\n\n<p>First release (beta).<\/p>","raw_excerpt":"Adds classes for selected menu states such as highlighting categories when viewing a blog post or parent page when viewing an attachment page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/21989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=21989"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/husobj"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=21989"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=21989"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=21989"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=21989"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=21989"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=21989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}