Linux 软件免费装
Banner图

Gravity Forms Toolbar

开发者 daveshine
deckerweb
GDragoN
更新时间 2019年2月22日 06:25
捐献地址: 去捐款
PHP版本: 3.6 及以上
WordPress版本: 5.1
版权: GPL-2.0+
版权网址: 版权信息

标签

links forms addons toolbar gravity forms gravityforms administration admin bar adminbar add-ons deckerweb tool bar resources ddwtoolbar dev4press gdragon

下载

1.0 1.1 1.2 1.2.1 1.3 1.4 1.4.1 1.5.0 1.5.1 1.6.0 1.7.0

详情介绍:

Quick Access to Gravity Forms Resources - Time Saver & Helper Tool! This small and lightweight plugin just adds a lot Gravity Forms related resources to your toolbar / admin bar. Also links to all admin settings pages pages of the plugin are included, making the life of form administrators/ developers a lot easier. So you might just switch from the fontend of your site to read current 'Entries' or just 'Add a new Form' etc. How cool is that? :) Also, support for all official and lots of third-party add-ons is included!
Please note: The plugin requires the Gravity Forms base plugin, a paid premium product released by Rocketgenius Inc. (via gravityforms.com). General Features Official Add-Ons Support The plugin out of the box supports links to settings pages of all officially available Gravity Forms Add-Ons, 15 to date (counting only the ones with settings pages!): Add-Ons/ Plugin Support At this time the plugin out of the box supports also all third-party Gravity Forms related plugins (only the ones with settings pages!): Special Features Translations: Internationalization (i18n) / Localization (L10n) David Decker - DECKERWEB from deckerweb.de and GenesisThemes and Milan Petrovic - Dev4Press from dev4press.com Feedback This Plugin... Tips & More

安装:

NOTE: Only works with Gravity Forms as active base plugin. This is a paid premium product by Rocketgenius Inc., available via gravityforms.com. Installation Steps
  1. Installing alternatives:
  2. via Admin Dashboard: Go to 'Plugins > Add New', search for "Gravity Forms 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 gravity-forms-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 Gravity Forms links there :)
  7. Adjust a few options on the settings page - under "General Settings > Gravity Forms Toolbar"
  8. Go and manage your entries and forms or develop new ones :) Note: The "Gravity Forms" base plugin is required for this add-on plugin in order to work. If you don't own a copy it yet, this premium plugin has to be bought. More info about that you'll find here: http://ddwb.me/getgravityforms
Own translation/wording: For custom and update-secure language files please upload them to /wp-content/languages/gravity-forms-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 as well, just use a language file like gravity-forms-toolbar-en_US.mo/.po to achieve that.

屏幕截图:

  • Gravity Forms Toolbar in default state. ([Click here for larger version of screenshot](https://www.dropbox.com/s/wo1iu3dicpndgyh/screenshot-1.png))
  • Gravity Forms Toolbar in action - a secondary level - form management. ([Click here for larger version of screenshot](https://www.dropbox.com/s/w9a6rtr4i88t631/screenshot-2.png))
  • Gravity Forms Toolbar in action - a third level, for the official (and some third-party) Add-Ons. ([https://www.dropbox.com/s/2zlvbaxw8mbat88/screenshot-3.png))
  • Gravity Forms Toolbar in action - a secondary level - docs. ([Click here for larger version of screenshot](https://www.dropbox.com/s/eede0xkw5wpi8uo/screenshot-4.png))
  • Gravity Forms Toolbar in action - a primary level - notification of new entries & updates. ([Click here for larger version of screenshot](https://www.dropbox.com/s/t5iy7zsvmgfp4ix/screenshot-5.png))
  • Gravity Forms Toolbar in action - notification of new entries & updates on top-level. ([Click here for larger version of screenshot](https://www.dropbox.com/s/4m8wippyje1lja6/screenshot-6.png))
  • Gravity Forms Toolbar - little admin settings page of the plugin.([Click here for larger version of screenshot](https://www.dropbox.com/s/fv5ibqebo66q86t/screenshot-7.png))
  • Gravity Forms Toolbar - help tab on admin settings page of the plugin. ([Click here for larger version of screenshot](https://www.dropbox.com/s/l23uais5v7jhvd0/screenshot-8.png))

升级注意事项:

1.7.0 Some updates & improvements: Extended plugin support. Updated all translations plus .pot file for translators. 1.6.0 Major additions & improvements: Updated settings & resource links; extended plugin support; code improvements. Updated all translations plus .pot file for translators. 1.5.1 Several additions & improvements: Added new plugin's frontend/ backend setting. Minor code/ documentation improvements. Updated German translations plus .pot file for translators. 1.5.0 Several additions & improvements: Extended Add-On/ plugin support, added help tab, a few code/ performance optimizations. Updated German translations plus .pot file for translators. 1.4.1 Important bugfixes and improvements. Please update - stable release for 1.4.x branch of Gravity Forms Toolbar! :) 1.4.0 Major additions & improvements: Extended plugin add-on support! Added new admin setting plus additional hooks, filters & constants for customizing. Added new Lithuanian translations, updated existing ones plus .pot file for translators. 1.3.0 Several additions and improvements - Added GF update notification plus plugin setting for notifications. Further, added new Add-On and resource links. Also, updated .pot file for translators together with German translations - and added new Serbian translation! 1.2.1 Minor changes - Fixed/improved capability issues and conditional checks. Also, updated .pot file for translators together with German translations. 1.2.0 Major improvement - Added little admin settings page to optionally remove unwanted entries. Added visual notifications for new form entries. New plugin co-author Milan Petrovic of Dev4Press - big thanks! Further, improved readme.txt file; made a few code tweaks. Also, updated .pot file for translators together with German translations. 1.1.0 Several additions and improvements - Added 3 more useful user/resource links. Further, added plugin support for 5 more free plugins. Also, updated .pot file for translators together with German translations. 1.0.0 Just released into the wild.

常见问题:

Does this plugin work with newest WP version and also older versions?

Yes, this plugin works really fine with WordPress 3.3 and 3.3.1! It also works great with WP 3.2 - and also should with WP 3.1 - but we only tested extensively with WP 3.3+ this time. So you always should run the latest WordPress version for a lot of reasons.

How are new resources being added to the toolbar / admin bar?

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

How could my plugin/extension settings 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). I also need the correct name of the main PHP class or function (to check if the plugin extension exists or not). (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!)

There are still some other plugins for Gravity Forms out there why aren't these included by default?

Simple answer: Linking/ adding is only possible where a plugin has its own admin pages and these are properly accessable.

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

Yes, this is possible since version 1.5 of the plugin! There are 3 action hooks available for hooking custom menu items in -- gftb_custom_main_items for the main section, gftb_custom_extension_items for the exentensions section plus gftb_custom_group_items for the resource group section. Here's an example code: ` add_action( 'gftb_custom_group_items', 'gftb_custom_additional_group_item' ); /**

  • Gravity Forms Toolbar: Custom Resource Group Items
  • @global mixed $wp_admin_bar */ function gftb_custom_additional_group_item() {
global $wp_admin_bar; $wp_admin_bar->add_menu( array( 'parent' => 'ddw-gravityforms-gfgroup', 'id' => 'your-unique-item-id', '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?

Of course, just via plugin options! -- Additionally, you can use some constants - which can come in handy for customizing stuff for clients etc. You can remove the following sections: Official "Add-Ons" (all items) / "Extensions" area (all items) / "Resources link group" at the bottom (all items) / "German language stuff" (all items) / "Dutch language stuff" (all items) To achieve this add one, some or all of the following constants to your theme's/child theme's functions.php file: ` /* Gravity Forms Toolbar: Remove Add-On Items / define( 'GFTB_ADDONS_DISPLAY', FALSE ); /* Gravity Forms Toolbar: Remove Extensions Items / define( 'GFTB_EXTENSIONS_DISPLAY', FALSE ); /* Gravity Forms Toolbar: Remove Resource Items / define( 'GFTB_RESOURCES_DISPLAY', FALSE ); /* Gravity Forms Toolbar: Remove German Language Items / define( 'GFTB_DE_DISPLAY', FALSE ); /* Gravity Forms Toolbar: Remove Dutch Language Items / define( 'GFTB_NL_DISPLAY', FALSE ); /* Gravity Forms Toolbar: Remove Spanish Language Items / define( 'GFTB_ES_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 "Gravity Forms Toolbar" items for all user roles of "Editor" please use this code: /** Gravity Forms Toolbar: Remove all items for "Editor" user role */ if ( current_user_can( 'editor' ) ) { define( 'GFTB_DISPLAY', FALSE ); } To hide only from the user with a user ID of "2": /** Gravity Forms Toolbar: Remove all items for user ID 2 */ if ( 2 == get_current_user_id() ) { define( 'GFTB_DISPLAY', FALSE ); } To hide items only in frontend use this code: /** Gravity Forms Toolbar: Remove all items from frontend */ if ( ! is_admin() ) { define( 'GFTB_DISPLAY', FALSE ); } In general, use this constant do hide any "Gravity Forms Toolbar" items: /** Gravity Forms Toolbar: Remove all items */ define( 'GFTB_DISPLAY', FALSE );

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. gftb_filter_capability_all

  • Default value: gravityforms_edit_forms (set by Gravity Forms plugin itself!)
  • 6 Predefined helper functions:
  • __gftb_admin_only -- returns 'administrator' role -- usage: add_filter( 'gftb_filter_capability_all', '__gftb_admin_only' );
  • __gftb_role_editor -- returns 'editor' role -- usage: add_filter( 'gftb_filter_capability_all', '__gftb_role_editor' );
  • __gftb_cap_manage_options -- returns 'manage_options' capability -- usage: add_filter( 'gftb_filter_capability_all', '__gftb_cap_manage_options' );
  • __gftb_cap_install_plugins -- returns 'install_plugins' capability -- usage: add_filter( 'gftb_filter_capability_all', '__gftb_cap_install_plugins' );
  • __gftb_cap_activate_plugins -- returns 'activate_plugins' capability -- usage: add_filter( 'gftb_filter_capability_all', '__gftb_cap_activate_plugins' );
  • __gftb_cap_edit_theme_options -- returns 'edit_theme_options' capability -- usage: add_filter( 'gftb_filter_capability_all', '__gftb_cap_edit_theme_options' );
  • Another example: ` add_filter( 'gftb_filter_capability_all', 'custom_gftb_capability_all' ); /**
  • Gravity Forms Toolbar: Change Main Capability */ function custom_gftb_capability_all() { return 'switch_themes'; } --> Changes the capability toswitch_themes`
gftb_filter_main_icon
  • Default value: Gravity Forms logo (favicon) :)
  • 10 Predefined helper functions for the 11 included colored icons, returning special colored icon values - the helper function always has this name: __gftb_colornamehere_icon() this results in the following filters ready for usage: ` add_filter( 'gftb_filter_main_icon', '__gftb_blue_icon' );
add_filter( 'gftb_filter_main_icon', '__gftb_lightgreen_icon' ); add_filter( 'gftb_filter_main_icon', '__gftb_lightgrey_icon' ); add_filter( 'gftb_filter_main_icon', '__gftb_orange_icon' ); add_filter( 'gftb_filter_main_icon', '__gftb_pink_icon' ); add_filter( 'gftb_filter_main_icon', '__gftb_red_icon' ); add_filter( 'gftb_filter_main_icon', '__gftb_turquoise_icon' ); add_filter( 'gftb_filter_main_icon', '__gftb_yellow_icon' ); add_filter( 'gftb_filter_main_icon', '__gftb_theme_images_icon' ); --> Where the last helper function returns the icon file (icon-gftb.png) found in your current theme's/child theme's/images/` subfolder
  • Example for using with current child theme: ` add_filter( 'gftb_filter_main_icon', 'custom_gftb_main_icon' ); /**
  • Gravity Forms Toolbar: Change Main Icon */ function custom_gftb_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 gftb_filter_main_icon_display
  • Returning the CSS class for the main item icon
  • Default value: icon-gravityforms (class is: .icon-gravityforms)
  • 1 Predefined helper function:
  • __gftb_no_icon_display() -- usage: add_filter( 'gftb_filter_main_icon_display', '__gftb_no_icon_display' ); --> This way you can REMOVE the icon!
  • Another example: ` add_filter( 'gftb_filter_main_icon_display', 'custom_gftb_main_icon_display_class' ); /**
  • Gravity Forms Toolbar: Change Main Icon CSS Class */ function custom_gftb_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 gftb_filter_main_item
  • Default value: "Gravity Forms"
  • Example code for your theme's/child theme's functions.php file: ` add_filter( 'gftb_filter_main_item', 'custom_gftb_main_item' ); /**
  • Gravity Forms Toolbar: Change Main Item Name */ function custom_gftb_main_item() { return __( 'Your custom main item title', 'your-textdomain' ); } `
gftb_filter_main_item_tooltip
  • Default value: "Gravity Forms"
  • Example code for your theme's/child theme's functions.php file: ` add_filter( 'gftb_filter_main_item_tooltip', 'custom_gftb_main_item_tooltip' ); /**
  • Gravity Forms Toolbar: Change Main Item Name's Tooltip */ function custom_gftb_main_item_tooltip() { return __( 'Your custom main item title tooltip', 'your-textdomain' ); } `
Final note: I DON'T recommend to add customization code snippets to your main theme's/child theme's functions.php file! Please use a functionality plugin or an MU-plugin instead! This way you can also use this better for Multisite environments. In general you are then more independent from theme/child theme changes etc. If you don't know how to create such a plugin yourself just use one of my recommended 'Code Snippets' plugins. Read & bookmark these Sites: All the custom & branding stuff code above can also be found as a Gist on Github: https://gist.github.com/2732242 (you can also add your questions/ feedback there :)

更新日志:

1.7.0 (2014-02-26) 1.6.0 (2014-02-24) 1.5.1 (2012-12-12) 1.5.0 (2012-09-16) 1.4.1 (2012-05-20) 1.4.0 (2012-05-19) 1.3.0 (2012-02-24) 1.2.1 (2012-02-06) 1.2.0 (2012-02-03) 1.1.0 (2012-01-31) 1.0.0 (2012-01-22)