{"id":14421,"date":"2011-08-12T18:34:57","date_gmt":"2011-08-12T18:34:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/majpage-menu-class-extender\/"},"modified":"2019-09-08T12:21:51","modified_gmt":"2019-09-08T12:21:51","slug":"majpage-menu-class-extender","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/majpage-menu-class-extender\/","author":8212710,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.6","stable_tag":"1.6","tested":"5.2.24","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"MAJpage Menu Class Extender","header_author":"Wiktor Maj","header_description":"","assets_banners_color":"","last_updated":"2019-09-08 12:21:51","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.majpage.com","rating":5,"author_block_rating":0,"active_installs":50,"downloads":6568,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"1.5":"<p>Changes were made to replace deprecated function.<\/p>","1.4":"<p>Plugin now supports wp_page_menu as well as wp_nav_menu. It&#039;s functions has been changed into MAJpageMCE class static methods.<\/p>","1.3":"<p>Changes were made to add suport for HTML5 &lt;menu&gt; tag.<\/p>","1.2":"<p>Changes were made due to instability in case of menu container absence.<\/p>","1.1":"<p>Changes were made due to instability in case of HTML special chars existence.<\/p>","1.0":"<p>This is the first version of plugin.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3","1.4","1.5","1.6"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[6978,1865,609,2857,6991],"plugin_category":[43,57],"plugin_contributors":[85744],"plugin_business_model":[],"class_list":["post-14421","plugin","type-plugin","status-publish","hentry","plugin_tags-classes","plugin_tags-menu","plugin_tags-tags","plugin_tags-wp_nav_menu","plugin_tags-wp_page_menu","plugin_category-customization","plugin_category-taxonomy","plugin_contributors-duzymaju","plugin_committers-duzymaju"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/majpage-menu-class-extender.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This simple plugin was written to add classes to first, last, parent, even and odd elements of wp_page_menu and wp_nav_menu to support recognizing it in older browsers without :first-child, :last-child and :nth-child supporting.<\/p>\n\n<p>Plugin adds the following classes to menu &lt;li&gt; tags:<\/p>\n\n<ul>\n<li>\"first-menu-item\" to every first child of &lt;ul&gt; or &lt;menu&gt; tag,<\/li>\n<li>\"last-menu-item\" to every last child of &lt;ul&gt; or &lt;menu&gt; tag,<\/li>\n<li>\"parent-menu-item\" to every child of &lt;ul&gt; or &lt;menu&gt; tag that has another &lt;ul&gt; or &lt;menu&gt; tag inside (a parent to another menu level),<\/li>\n<li>\"odd-menu-item\" to every odd child of &lt;ul&gt; or &lt;menu&gt; tag, including first and\/or last child,<\/li>\n<li><p>\"even-menu-item\" to every even child of &lt;ul&gt; or &lt;menu&gt; tag, including first and\/or last child.<\/p>\n\n<p>Above classes are added separately to each menu level. Plugin use SimpleXML extension and requires PHP 5 or higher. Menu should have valid XHTML code.<\/p><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload \"majpage-menu-class-extender.php\" to the \"\/wp-content\/plugins\/\" directory.<\/li>\n<li>Activate the plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>That's all - plugin is fully operational and adds specified classes in every wp_page_menu and wp_nav_menu element with menu defined in \"Menus\" tab.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.6<\/h4>\n\n<ul>\n<li>Fix missed variable declarations.<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Replace deprecated function.<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Plugin functions changed into MAJpageMCE class static methods.<\/li>\n<li>wp_page_menu container support added thanks to Dinesh Kesarwani's notice.<\/li>\n<li>Cause of the strict standards warning corrected thanks to flynsarmy's notice.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>HTML5 &lt;menu&gt; tag support added thanks to Tomas Kapler's notice.<\/li>\n<li>wp_nav_menu container tag support included.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Bug fixed with correct working in case of wp_nav_menu container absence.<\/li>\n<li>\"parent-menu-item\" class added.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Bug fixed with HTML special chars existence.<\/li>\n<li>Improved menu list searching inside a container.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version of plugin.<\/li>\n<\/ul>","raw_excerpt":"Adds classes to first, last, parent, even and odd elements of wp_page_menu and wp_nav_menu.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14421","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=14421"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/duzymaju"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14421"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14421"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14421"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14421"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14421"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}