[WordPress] 外掛分享: Genesis Admin Bar Plus

首頁外掛目錄 › Genesis Admin Bar Plus
100+
安裝啟用
尚無評分
5149 天前
最後更新
問題解決
WordPress 3.3+ v1.3.0 上架:2011-03-30

內容簡介

此 WordPress 外掛可將相關資源連結加入 Genesis 框架的管理列,包括直接指向每款主題的 StudioPress 支援論壇的連結、快速存取 Genesis 主題和 SEO 設定頁面、快速存取 Genesis 相關外掛的設定頁面(若啟用的話)以及存取有用的 Genesis 教學頁面的連結。此外掛的建立是考慮主題和外掛開發人員,因為他們只需要加入幾行程式碼就可以支援他們的產品,給予使用者即時存取正確的支援論壇、網站連結等功能。此外掛也支援項目位置的添加,使用者可以從主題的 functions.php 中加入支援連結,而非僅能加在最後。此外,這個外掛是 Genesis Admin Bar Addition 的概念分支,並從頭重新撰寫並新增功能。若有問題,請至 https://github.com/GaryJones/Genesis-Admin-Bar-Plus/issues 回報,而不是 WP 論壇。使用者也可以透過新增支援面板的方式自訂項目,例如:移除 StudioPress 選項 (只需移除父選項即可一併移除所有子選項),將支援選項移至子選單底部,以及新增自訂選項等。此外,使用者也可以透過在子主題的 functions.php 中加入下列程式來新增參考支援選項:add_theme_support('gabp-support-genesis') (添加指向 Genesis 支援論壇的直接連結)、add_theme_support('gabp-support-pretty-young-thing') (添加 Pretty Young Thing 兒童主題的支援論壇連結)、add_theme_support('gabp-support-prose') (添加 Prose 兒童主題的支援論壇連結)、add_theme_support('gabp-support-focus') (添加 Focus 兒童主題的支援論壇連結) 以及 add_theme_support('gabp-support-translations') (添加指向 Genesis 翻譯支援論壇的直接連結)。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Genesis Admin Bar Plus」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin adds resources links related to the Genesis Framework to the admin bar.
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.
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 their website etc.

Adds support for menu item positioning, so custom entries can be added anywhere, and not just as the final items.
Easy addition of Support board links via single lines in theme functions.php.

This plugin is conceptual fork of the Genesis Admin Bar Addition plugin, re-written from scratch, adding new features.
Please report issues at https://github.com/GaryJones/Genesis-Admin-Bar-Plus/issues and not the WP Forums.
Add Custom Items
Here’s 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:
add_action( 'gabp_menu_items', 'child_gabp_menu_items', 10, 3 );
/**
* Amend the menu items in the Genesis Admin Bar Plus plugin.
*
* @param Genesis_Admin_Bar_Plus_Menu $menu
* @param string $prefix
* @param string $genesis
*/
function child_gabp_menu_items( $menu, $prefix, $genesis ) {
$garyjones = $prefix . 'gary-jones';

// Remove StudioPress item
$menu->remove_item('studiopress');

// Add Gary Jones item
$menu->add_item( 'gary-jones', array(
'parent' => $genesis,
'title' => 'Gary Jones',
'href' => 'http://garyjones.co.uk/',
'position' => 30
) );

// Add Gary Jones submenu items
$menu->add_item( 'code-gary-jones', array(
'parent' => $garyjones,
'title' => 'Code Gallery',
'href' => 'http://code.garyjones.co.uk/',
'position' => 10
) );
$menu->add_item( 'garyj', array(
'parent' => $garyjones,
'title' => 'GaryJ',
'href' => 'http://twitter.com/GaryJ',
'position' => 20
) );

// Amend position of Support menu item - child items will move correctly too
// as of v1.1
$menu->edit_item( 'support', array(
'position' => 50
) );
}

Add Support Boards

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 functions.php file.
add_theme_support(‘gabp-support-genesis’); // Adds direct link to Genesis support board
add_theme_support(‘gabp-support-pretty-young-thing’); // Adds link to Pretty Young Thing child theme support board
add_theme_support(‘gabp-support-prose’); // Adds link to Prose child theme support board
add_theme_support(‘gabp-support-focus’); // Adds link to Focus child theme support board
add_theme_support(‘gabp-support-translations’); // Adds direct link to Genesis Translations support board
add_theme_support(‘gabp-support-plugins’); // Adds direct link to StudioPress Plugins support board
add_theme_support(‘gabp-support-genesisconnect’); // Adds direct link to GenesisConnect support board
For child themes, the bit after the gabp-support- string must be the theme name, lowercase, with spaces replaced with hyphens.
Translations

Deutsch: http://deckerweb.de/material/sprachdateien/genesis-plugins/#genesis-admin-bar-plus
Italiano: http://gidibao.net/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon