Linux 软件免费装
Banner图

Xtreme One Toolbar

开发者 daveshine
deckerweb
更新时间 2014年1月22日 18:01
捐献地址: 去捐款
PHP版本: 3.6 及以上
WordPress版本: 3.8
版权: GPL-2.0+
版权网址: 版权信息

标签

links theme toolbar settings administration manage admin bar adminbar deckerweb resources ddwtoolbar xtreme one xtreme one framework xtreme theme

下载

1.0 1.1 1.2.0

详情介绍:

Quick Access to Xtreme One Framework Resources - Time Saver! This plugin just adds a lot Xtreme One Framework related resources to your toolbar / admin bar. Also links to all settings pages of this framework are added making life for webmasters a lot easier. So you might just switch from the frontend of your site to the Xtreme One 'Xtreme Widget Manager' or adjust the 'Framework Settings' etc. -- Use this time saver and get quicker access :-)
Please note: The plugin requires the Xtreme One Theme Framework (in version 1.5.3 or higher), a paid premium product released by Inpsyde GmbH (via marketpress.com). General Features Special Features Plugin/ Theme Support Localization A plugin from deckerweb.de and GenesisThemes Feedback More

安装:

NOTE: Only works with Xtreme One Framework version 1.5.3 or higher as the parent theme. This is a paid premium product by Inpsyde GmbH, available via marketpress.com. Installation Steps
  1. Installing alternatives:
  2. via Admin Dashboard: Go to 'Plugins > Add New', search for "Xtreme One Toolbar", click "install"
  3. OR via direct ZIP upload: Upload the ZIP package via 'Plugins > Add New > Upload' in your WP Admin
  4. OR via FTP upload: Upload xtreme-one-toolbar folder to the /wp-content/plugins/ directory
  5. Activate the plugin through the 'Plugins' menu in WordPress
  6. Look at your toolbar / admin bar and enjoy using the new links there :)
  7. Go and manage your framework settings :) Note: The "Xtreme One Theme Framework" in version 1.5.3 or higher is required for this plugin in order to work. If you don't own a copy it yet, this premium parent theme has to be bought. More info about that you'll find here: marketpress.com
Also note: This plugin has NO settings page because I believe it's just not neccessarry. All customizing could be done via hooks, filters, constants and regular WordPress user roles & capabilities. As the plugin is indended for an admin/ webmaster use that's the way to go. This way we can save the overhaul of an options panel/settings page, additional database requests, uninstall routines and such. End result: a lightweight system that just works and saves clicks & time :-). Multisite install: Yes, it's fully compatible but have a look in the FAQ section here for more info :) Own translation/wording: For custom and update-secure language files please upload them to /wp-content/languages/xtreme-one-toolbar/ (just create this folder) - This enables you to use fully custom translations that won't be overridden on plugin updates. Also, complete custom English wording is possible with that, just use a language file like xtreme-one-toolbar-en_US.mo/.po to achieve that (for creating one see the tools on "Other Notes").

屏幕截图:

  • Xtreme One Toolbar in action (English default version) ([Click here for larger version of screenshot](https://www.dropbox.com/s/6hu9f3v9nvaea4z/screenshot-1.png))
  • Xtreme One Toolbar in action - German translation :) ([Click here for larger version of screenshot](https://www.dropbox.com/s/zyhllpt3cxe967h/screenshot-2.png))
  • Xtreme One Toolbar in action - plugin help tab ([Click here for larger version of screenshot](https://www.dropbox.com/s/b5fnhwk7xmotob5/screenshot-3.png))

升级注意事项:

1.2.0 Some additions & improvements: Updated links, code and readme file. Further, updated .pot file for translators plus German translations. 1.1.0 Major updates & improvements: Added child theme & plugin support, plsu lots of hooks, filters and constants for customizing branding. Code/documentation updates. Further, updated .pot file for translators plus German translations. 1.0.0 Just released into the wild.

常见问题:

Does this plugin work with latest WordPress version and also older versions?

Yes, this plugin works really fine with the latest WordPress 3.6+, of course also WordPress 3.8! :-) And sorry, it DOES NOT work with older WordPress versions so please update your install if you haven't done yet :).

How are new resources being added to the admin bar?

Just drop me a note on my Twitter @deckerweb or via my contact page and I'll add the link if it is useful for admins/ webmasters and the Xtreme One community.

How could my plugin/ extension or child theme options page be added to the admin bar links?

This is possible of course and highly welcomed! Just drop me a note on my Twitter @deckerweb or via my contact page and we sort out the details! Particularly, I need the admin url for the primary options page (like so wp-admin/admin.php?page=foo) - this is relevant for both, plugins and themes. For themes then I also need the correct name defined in the stylesheet (like so Footheme) and the correct folder name (like so footheme-folder) because this would be the template name when using with child themes. (I don't own all the premium stuff myself yet so you're more than welcomed to help me out with these things. Thank you!)

Is this plugin Multisite compatible?

Yes, it is! :) Works really fine in Multisite invironment - here I just recommend to activate on a per site basis so to load things only where and when needed.

In Multisite, could I "network activate" this plugin?

Yes, you could! Of course it makes only sense if you have one or more sites running with Xtreme One in your Multisite environment. However, it's a lightweight plugin but activation on a per site basis is the recommended way from my point of view. Almost all admin links are intended for a per-site use and not for network-related stuff. Though intended for a per site use it could make some sense in such an edge case: if all of the sites in Multisite use the Xtreme One Framework and have lots of plugins in common. This might be the case if you use Multisite for multilingual projects, especially with that awesome plugin: http://wordpress.org/plugins/multilingual-press/

Can custom menu items be hooked in via child theme or other plugins?

Yes, this is possible since version 1.1.0 of the plugin! There are two action hooks available for hooking custom menu items in -- xotb_custom_main_items for the main section and xotb_custom_group_items for the resource group section. Here's an example code: ` add_action( 'xotb_custom_group_items', 'xotb_custom_additional_group_item' ); /**

  • Xtreme One Toolbar: Custom Resource Group Items
  • @global mixed $wp_admin_bar */ function xotb_custom_additional_group_item() {
global $wp_admin_bar; $wp_admin_bar->add_menu( array( 'parent' => 'ddw-xtreme-xobar', 'title' => ( 'Custom Menu Item Name', 'your-textdomain' ), 'href' => 'http://deckerweb.de/', 'meta' => array( 'title' => ( 'Custom Menu Item Name Tooltip', 'your-textdomain' ) ) ) ); } `

Can certain sections be removed?

Yes, this is possible! You can remove the following sections: "Child Theme" area (all items) / "Extensions" (main item + sub items!) / "Resources link group" at the bottom (all items) / "German language stuff" (all items) To achieve this add one, some or all of the following constants to your child theme's functions.php file: ` /* Xtreme One Toolbar: Remove Theme Items / define( 'XOTB_THEME_DISPLAY', FALSE ); /* Xtreme One Toolbar: Remove Extensions Items / define( 'XOTB_EXTENSIONS_DISPLAY', FALSE ); /* Xtreme One Toolbar: Remove Resource Items / define( 'XOTB_RESOURCES_DISPLAY', FALSE ); /* Xtreme One Toolbar: Remove German Language Items / define( 'XOTB_DE_DISPLAY', FALSE ); `

Can the the whole toolbar entry be removed, especially for certain users?

Yes, that's also possible! This could be useful if your site has special user roles/capabilities or other settings that are beyond the default WordPress stuff etc. For example: if you want to disable the display of any "Xtreme One Toolbar" items for all user roles of "Editor" please use this code: /** Xtreme One Toolbar: Remove all items for "Editor" user role */ if ( current_user_can( 'editor' ) ) { define( 'XOTB_DISPLAY', FALSE ); } To hide only from the user with a user ID of "2": /** Xtreme One Toolbar: Remove all items for user ID 2 */ if ( 2 == get_current_user_id() ) { define( 'XOTB_DISPLAY', FALSE ); } To hide items only in frontend use this code: /** Xtreme One Toolbar: Remove all items from frontend */ if ( ! is_admin() ) { define( 'XOTB_DISPLAY', FALSE ); } In general, use this constant do hide any "Xtreme One Toolbar" items: /** Xtreme One Toolbar: Remove all items */ define( 'XOTB_DISPLAY', FALSE );

Can I remove the original Toolbar items for WordPress SEO by Yoast?

Yes, this is also possible! Since v1.1.0 of my plugin support for Yoast's great plugin is included so if you only want his stuff to appear within "Xtreme One Toolbar" just add this constant to your active child theme's functions.php file or a functionality plugin: /** Xtreme One Toolbar: Remove original Yoast SEO items */ define( 'XOTB_REMOVE_WPSEO_YOAST_TOOLBAR', true );

Can I remove the original Xtreme One Dashboard widget?

Yes, also possible :) - I've included a helper function for that too! /** Xtreme One Toolbar: Remove the 'Xtreme News' Dashboard widget */ add_action( 'init', '__xotb_remove_xtreme_dashboard_widget' );

Available Filters to Customize More Stuff

All filters are listed with the filter name in bold and the below additional info, helper functions (if available) as well as usage examples. xotb_filter_capability_all

  • Default value: edit_posts (needed for the "manage content" stuff...)
  • 5 Predefined helper functions:
  • __xotb_admin_only -- returns 'administrator' role -- usage: add_filter( 'xotb_filter_capability_all', '__xotb_admin_only' );
  • __xotb_role_editor -- returns 'editor' role -- usage: add_filter( 'xotb_filter_capability_all', '__xotb_role_editor' );
  • __xotb_cap_edit_theme_options -- returns 'edit_theme_options' capability -- usage: add_filter( 'xotb_filter_capability_all', '__xotb_cap_edit_theme_options' );
  • __xotb_cap_install_plugins -- returns 'install_plugins' capability -- usage: add_filter( 'xotb_filter_capability_all', '__xotb_cap_install_plugins' );
  • Another example: ` add_filter( 'xotb_filter_capability_all', 'custom_xotb_capability_all' ); /**
  • Xtreme One Toolbar: Change Main Capability */ function custom_xotb_capability_all() { return 'switch_themes'; } --> Changes the capability toswitch_themes`
xotb_filter_main_icon
  • Default value: Xtreme One "X" logo (favicon) :)
  • 10 Predefined helper functions for the 10 included colored icons, returning special colored icon values - the helper function always has this name: __xotb_colornamehere_icon() this results in the following filters ready for usage: ` add_filter( 'xotb_filter_main_icon', '__xotb_blue_icon' );
add_filter( 'xotb_filter_main_icon', '__xotb_gray_icon' ); add_filter( 'xotb_filter_main_icon', '__xotb_green_icon' ); add_filter( 'xotb_filter_main_icon', '__xotb_khaki_icon' ); add_filter( 'xotb_filter_main_icon', '__xotb_orange_icon' ); add_filter( 'xotb_filter_main_icon', '__xotb_pink_icon' ); add_filter( 'xotb_filter_main_icon', '__xotb_red_icon' ); add_filter( 'xotb_filter_main_icon', '__xotb_tan_icon' ); add_filter( 'xotb_filter_main_icon', '__xotb_turquoise_icon' ); add_filter( 'xotb_filter_main_icon', '__xotb_yellow_icon' ); add_filter( 'xotb_filter_main_icon', '__xotb_child_images_icon' ); --> Where the last helper function returns the icon file (icon-xotb.png) found in your current child theme'simages` subfolder
  • Example for using with current child theme: ` add_filter( 'xotb_filter_main_icon', 'custom_xotb_main_icon' ); /**
  • Xtreme One Toolbar: Change Main Icon */ function custom_xotb_main_icon() { return get_stylesheet_directory_uri() . '/images/custom-icon.png'; } --> Uses a custom image from your active child theme's/images/` folder --> Recommended dimensions are 16px x 16px
xotb_filter_main_icon_display
  • Returning the CSS class for the main item icon
  • Default value: icon-xtreme (class is: .icon-xtreme)
  • 1 Predefined helper function:
  • __xotb_no_icon_display() -- usage: add_filter( 'xotb_filter_main_icon_display', '__xotb_no_icon_display' );
  • This way you can REMOVE the icon!
  • Another example: ` add_filter( 'xotb_filter_main_icon_display', 'custom_xotb_main_icon_display_class' ); /**
  • Xtreme One Toolbar: Change Main Icon CSS Class */ function custom_xotb_main_icon_display_class() { return 'your-custom-icon-class'; } --> You then have to define CSS rules in your theme/child theme stylesheet for your own custom class.your-custom-icon-class` --> Recommended dimensions are 16px x 16px
xotb_filter_main_item
  • Default value: "Xtreme One"
  • Example code for your child theme's functions.php file: ` add_filter( 'xotb_filter_main_item', 'custom_xotb_main_item' ); /**
  • Xtreme One Toolbar: Change Main Item Name */ function custom_xotb_main_item() { return __( 'Your custom main item', 'your-child-theme-textdomain' ); } `
xotb_filter_main_item_tooltip
  • Default value: "Xtreme One Framework"
  • Example code for your child theme's functions.php file: ` add_filter( 'xotb_filter_main_item_tooltip', 'custom_xotb_main_item_tooltip' ); /**
  • Xtreme One Toolbar: Change Main Item Name's Tooltip */ function custom_xotb_main_item_tooltip() { return __( 'Your custom main item tooltip', 'your-child-theme-textdomain' ); } `
xotb_filter_xtreme_name
  • Default value: "Xtreme"
  • Used for some items within toolbar links to enable proper branding
  • Change things like in the other examples/principles shown above
xotb_filter_xtreme_name_tooltip
  • Default value: "Xtreme One"
  • Used for some items within toolbar links to enable proper branding
  • Change things like in the other examples/principles shown above
Final note: If you don't like to add your customizations to your child theme's functions.php file you can also add them to a functionality plugin or an mu-plugin. This way you can also use this better for Multisite environments. In general you are then more independent from child theme changes etc. All the custom & branding stuff code above can also be found as a Gist on Github: https://gist.github.com/2519992 (you can also add your questions/ feedback there :)

更新日志:

1.2.0 (2014-01-22) 1.1.0 (2012-04-29) 1.0.0 (2012-02-09)