{"id":38954,"date":"2015-09-23T15:16:57","date_gmt":"2015-09-23T15:16:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/foundation-top-bar-navigation-menu\/"},"modified":"2015-09-23T15:16:57","modified_gmt":"2015-09-23T15:16:57","slug":"foundation-top-bar-navigation-menu","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/foundation-top-bar-navigation-menu\/","author":7824259,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"4.2.39","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Foundation Top Bar Navigation Menu","header_author":"Jethin","header_description":"","assets_banners_color":"","last_updated":"2015-09-23 15:16:57","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=5RESZP6HB2LZ6","header_plugin_uri":"","header_author_uri":"","rating":4,"author_block_rating":0,"active_installs":30,"downloads":5201,"num_ratings":2,"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":"2","5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1252109","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1252109","resolution":"2","location":"assets"}},"screenshots":{"1":"The \u201cAppearance -&gt; Menus -&gt; Manage Locations\u201d admin screen showing the \u201cMy Links Nav\u201d menu assigned to the \u201cTop Bar\u201d theme location.","2":"The \u201cSettings - &gt; General\u201d admin page showing the \u201cLoad Foundation Basic in Theme\u201d select dropdown."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[12547,1865,841,1753,606],"plugin_category":[43],"plugin_contributors":[80687],"plugin_business_model":[],"class_list":["post-38954","plugin","type-plugin","status-publish","hentry","plugin_tags-foundation","plugin_tags-menu","plugin_tags-mobile","plugin_tags-navigation","plugin_tags-responsive","plugin_category-customization","plugin_contributors-jethin","plugin_committers-jethin"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/foundation-top-bar-navigation-menu.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/foundation-top-bar-navigation-menu\/assets\/screenshot-1.png?rev=1252109","caption":"The \u201cAppearance -&gt; Menus -&gt; Manage Locations\u201d admin screen showing the \u201cMy Links Nav\u201d menu assigned to the \u201cTop Bar\u201d theme location."},{"src":"https:\/\/ps.w.org\/foundation-top-bar-navigation-menu\/assets\/screenshot-2.png?rev=1252109","caption":"The \u201cSettings - &gt; General\u201d admin page showing the \u201cLoad Foundation Basic in Theme\u201d select dropdown."}],"raw_content":"<!--section=description-->\n<p>The Foundation Top Bar Navigation Menu plugin allows theme developers to display a WordPress menu as a responsive Foundation top bar. The plugin includes the following core functions:<\/p>\n\n<ol>\n<li>A walker that applies Foundation top bar classes to a menu or page list<\/li>\n<li>Registration of a default \u201cTop Bar\u201d menu location<\/li>\n<li>The ability to include a basic version of Foundation that supports the top bar<\/li>\n<\/ol>\n\n<p>Visit <a href=\"http:\/\/foundation.zurb.com\/docs\/components\/topbar.html\">Zurb Foundation<\/a> to learn more about the Foundation top bar and to view an example.<\/p>\n\n<p><strong>Usage<\/strong><\/p>\n\n<p>Download and include the Foundation framework in your theme (or load the basic version included with the plugin \u2014 see Notes below.)<\/p>\n\n<p>Assign a new or existing WordPress menu into the \u201cTop Bar\u201d menu location. (or use \u2018wp_list_pages\u2019 to display a list of pages as a top bar \u2014 see below.)<\/p>\n\n<p>Edit your theme\u2019s templates to display the top bar menu where you\u2019d like it to appear. Use WordPress\u2019 \u2018wp_nav_menu\u2019 function to display the top bar menu:<\/p>\n\n<pre><code>&lt;?php\nif ( has_nav_menu('topbar') ) { \n    wp_nav_menu( array(\n        'theme_location' =&gt; 'topbar',\n        'container' =&gt; false,\n        'walker' =&gt; new ftb_menu()\n    ));\n}\n?&gt;\n<\/code><\/pre>\n\n<p>A list of pages can be displayed instead of a menu using the \u2018wp_list_pages\u2019 function:<\/p>\n\n<pre><code>&lt;?php\nwp_list_pages( array(\n    'title_li' =&gt; '',\n    'walker' =&gt; new ftb_pages()\n));\n?&gt;\n<\/code><\/pre>\n\n<p><strong>Notes<\/strong><\/p>\n\n<ul>\n<li><p>The ftb_menu() and ftb_pages() walkers both accept a single \u2018no_wrap\u2019 argument. Including this argument will remove the default top bar HTML wrapper and display just the <code>&lt;ul&gt;<\/code> unordered list.<\/p><\/li>\n<li><p>\u2018wp_nav_menu() -&gt; theme_location\u2019 argument can be set to any registered menu area.<\/p><\/li>\n<li><p>This plugin optionally includes a basic version of Foundation 5.5.2 that contains only top bar support. It is recommended that Foundation be included directly in your theme instead of using this basic version. To load the plugin\u2019s basic version in your theme set \u201cLoad Foundation Basic in Theme\u201d to \u201ctrue\u201d in the \u201cSettings -&gt; General\u201d admin screen.<\/p><\/li>\n<li><p>Visit <a href=\"\/\/foundation.zurb.com\/develop\/download.html\u2019\">Zurb Foundation<\/a> to download Foundation and to view installation and usage documentation.<\/p><\/li>\n<li><p>Default WordPress menu classes are not included in outputted top bar HTML.<\/p><\/li>\n<\/ul>\n\n<p><strong>Notes<\/strong><\/p>\n\n<p>Top bar styling is the default included with the Foundation framework. Some customization is possible using Foundation and\/or WordPress methods, but any customizations must be implemented by theme developers.<\/p>\n\n<p>This plugin is developed using <a href=\"\/\/foundation.zurb.com\/index.html\u2019\">Zurb Foundation<\/a> version 5.5.2.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and unzip the plugin file.<\/li>\n<li>Upload the unzipped \u2018foundation-top-bar-menu\u2019 directory to your '\/wp-content\/plugins\/' directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>See \u201cDescription\u201d for usage instructions.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Display a WordPress navigation menu or page list as a responsive Foundation top bar.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/38954","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=38954"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jethin"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=38954"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=38954"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=38954"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=38954"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=38954"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=38954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}