{"id":77785,"date":"2011-03-31T08:00:00","date_gmt":"2011-03-31T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/genesis-admin-bar-plus\/"},"modified":"2012-02-12T01:33:00","modified_gmt":"2012-02-12T01:33:00","slug":"genesis-admin-bar-plus","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/genesis-admin-bar-plus\/","title":{"rendered":"Genesis Admin Bar Plus"},"content":{"rendered":"<p>This plugin adds resources links related to the <a href=\"http:\/\/genesis-theme-framework.com\/\" rel=\"nofollow ugc\">Genesis Framework<\/a> to the admin bar.<\/p>\n<p>These resources include direct links to StudioPress support forums for each theme, quick access to Genesis Theme and SEO settings pages, quick access to Genesis-related plugin settings pages (for those that are active), and links to useful tutorial pages for how to get the most out of Genesis.<\/p>\n<p>The plugin is built with theme and plugin developers in mind, as they can add support for their product with only a few lines of code, giving their users instant access to the right support board, a link to <em>their<\/em> website etc.<\/p>\n<ul>\n<li>Adds support for menu item positioning, so custom entries can be added anywhere, and not just as the final items.<\/li>\n<li>Easy addition of Support board links via single lines in theme <code>functions.php<\/code>.<\/li>\n<\/ul>\n<p>This plugin is conceptual fork of the Genesis Admin Bar Addition plugin, re-written from scratch, adding new features.<\/p>\n<p>Please report issues at https:\/\/github.com\/GaryJones\/Genesis-Admin-Bar-Plus\/issues and not the WP Forums.<\/p>\n<h3>Add Custom Items<\/h3>\n<p>Here\u2019s an example which removes the StudioPress menu (you only need to remove the parent item to remove all of the child items too), moves the Support menu item to the bottom of the submenu and adds some custom menu items in:<\/p>\n<pre><code>add_action( 'gabp_menu_items', 'child_gabp_menu_items', 10, 3 );\n\/**\n * Amend the menu items in the Genesis Admin Bar Plus plugin.\n *\n * @param Genesis_Admin_Bar_Plus_Menu $menu\n * @param string $prefix\n * @param string $genesis\n *\/\nfunction child_gabp_menu_items( $menu, $prefix, $genesis ) {\n    $garyjones = $prefix . 'gary-jones';\n\n    \/\/ Remove StudioPress item\n    $menu->remove_item('studiopress');\n\n    \/\/ Add Gary Jones item\n    $menu->add_item( 'gary-jones', array(\n        'parent'   => $genesis,\n        'title'    => 'Gary Jones',\n        'href'     => 'http:\/\/garyjones.co.uk\/',\n        'position' => 30\n    ) );\n\n    \/\/ Add Gary Jones submenu items\n    $menu->add_item( 'code-gary-jones', array(\n        'parent'   => $garyjones,\n        'title'    => 'Code Gallery',\n        'href'     => 'http:\/\/code.garyjones.co.uk\/',\n        'position' => 10\n    ) );\n    $menu->add_item( 'garyj', array(\n        'parent'   => $garyjones,\n        'title'    => 'GaryJ',\n        'href'     => 'http:\/\/twitter.com\/GaryJ',\n        'position' => 20\n    ) );\n\n    \/\/ Amend position of Support menu item - child items will move correctly too\n    \/\/ as of v1.1\n    $menu->edit_item( 'support', array(\n        'position' => 50\n    ) );\n}<h3>Add Support Boards<\/h3>\n<\/code><\/pre>\n<p>To a add a reference to a support board (perhaps for the child theme the active theme is based on, or a plugin the site uses, etc), you can add something like one of the following to the child theme <code>functions.php<\/code> file.<br \/>\n    add_theme_support(\u2018gabp-support-genesis\u2019); \/\/ Adds direct link to Genesis support board<br \/>\n    add_theme_support(\u2018gabp-support-pretty-young-thing\u2019); \/\/ Adds link to Pretty Young Thing child theme support board<br \/>\n    add_theme_support(\u2018gabp-support-prose\u2019);  \/\/ Adds link to Prose child theme support board<br \/>\n    add_theme_support(\u2018gabp-support-focus\u2019); \/\/ Adds link to Focus child theme support board<br \/>\n    add_theme_support(\u2018gabp-support-translations\u2019); \/\/ Adds direct link to Genesis Translations support board<br \/>\n    add_theme_support(\u2018gabp-support-plugins\u2019); \/\/ Adds direct link to StudioPress Plugins support board<br \/>\n    add_theme_support(\u2018gabp-support-genesisconnect\u2019); \/\/ Adds direct link to GenesisConnect support board<br \/>\nFor child themes, the bit after the <code>gabp-support-<\/code> string must be the theme name, lowercase, with spaces replaced with hyphens.<\/p>\n<h3>Translations<\/h3>\n<ul>\n<li>Deutsch: http:\/\/deckerweb.de\/material\/sprachdateien\/genesis-plugins\/#genesis-admin-bar-plus<\/li>\n<li>Italiano: http:\/\/gidibao.net\/<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Adds resource links related to the Genesis Framework to the admin bar.<\/p>\n","protected":false},"author":65,"featured_media":283444,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Genesis Admin Bar Plus - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Adds resource links related to the Genesis Framework to the admin bar."},"footnotes":""},"categories":[1],"tags":[582,3034],"class_list":["post-77785","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-admin-bar","tag-genesis"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/77785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=77785"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/77785\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/283444"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=77785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=77785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=77785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}