ddw_gftb_gravityforms_help_tab_content

Create and display plugin help tab content.

Description

ddw_gftb_gravityforms_help_tab_content(); 

Usage

  1. if ( !function_exists( 'ddw_gftb_gravityforms_help_tab_content' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-toolbar/lib/gftb-admin-extras.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ddw_gftb_gravityforms_help_tab_content(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/lib/gftb-admin-extras.php  
  1. function ddw_gftb_gravityforms_help_tab_content() { 
  2.  
  3. $gftb_info = (array) ddw_gftb_info_values(); 
  4.  
  5. echo '<h3>' . __( 'Plugin', 'gravity-forms-toolbar' ) . ': ' . __( 'Gravity Forms Toolbar', 'gravity-forms-toolbar' ) . ' <small>v' . esc_attr( ddw_gftb_plugin_get_data( 'Version' ) ) . '</small></h3>'; 
  6.  
  7. echo '<ul>' .  
  8. '<li><a href="' . esc_url( $gftb_info[ 'url_suggestions' ] ) . '" target="_new" title="' . __( 'Suggest new resource items or Add-Ons/ plugins for support', 'gravity-forms-toolbar' ) . '">' . __( 'Suggest new resource items or Add-Ons/ plugins for support', 'gravity-forms-toolbar' ) . '</a></li>' . 
  9. '<li><a href="' . esc_url( $gftb_info[ 'url_snippets' ] ) . '" target="_new" title="' . __( 'Code snippets for customizing & branding', 'gravity-forms-toolbar' ) . '">' . __( 'Code snippets for customizing & branding', 'gravity-forms-toolbar' ) . '</a></li>'; 
  10.  
  11. /** Optional: recommended plugins */ 
  12. if ( ! class_exists( 'GFCPTAddon' ) 
  13. || ! class_exists( 'GFReadyClassesAddon' ) 
  14. || ! function_exists( 'gfe_init' ) /** ! class_exists( 'GFEntryDetail' ) */ 
  15. ) { 
  16.  
  17. echo '<li><em>' . __( 'Other, recommended Gravity Forms plugins', 'gravity-forms-toolbar' ) . '</em>:'; 
  18.  
  19. if ( ! class_exists( 'GFCPTAddon' ) ) { 
  20.  
  21. echo '<br />» <a href="http://wordpress.org/plugins/gravity-forms-custom-post-types/" target="_new" title="Gravity Forms + Custom Post Types">Gravity Forms + Custom Post Types</a> — ' . __( 'map forms that create posts to a custom post type, also map dropdown select, radio buttons list and checkboxes lists to a custom taxonomy', 'gravity-forms-toolbar' ); 
  22.  
  23. } // end if plugin check 
  24.  
  25. if ( ! class_exists( 'GFReadyClassesAddon' ) ) { 
  26.  
  27. echo '<br />» <a href="http://wordpress.org/plugins/gravity-forms-css-ready-selector/" target="_new" title="Gravity Forms CSS Ready Class Selector">Gravity Forms CSS Ready Class Selector</a> — ' . __( 'easily select a CSS "Ready Class" for your fields within Gravity Forms', 'gravity-forms-toolbar' ); 
  28.  
  29. } // end if plugin check 
  30.  
  31. if ( ! function_exists( 'gfe_init' ) ) { 
  32.  
  33. echo '<br />» <a href="http://wordpress.org/plugins/gravity-forms-pdf-extended/" target="_new" title="Gravity Forms PDF Extended">Gravity Forms PDF Extended</a> — ' . __( 'save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission', 'gravity-forms-toolbar' ); 
  34.  
  35. } // end if plugin check 
  36.  
  37. echo '</li>'; 
  38.  
  39. } // end if plugins check 
  40.  
  41. echo '<li><em>' . __( 'Miscellaneous', 'gravity-forms-toolbar' ) . ':</em>' . 
  42. '<br /><a href="http://friendfeed.com/gravityforms-news" target="_new" title="' . __( 'Gravity Forms News Planet', 'gravity-forms-toolbar' ) . '">' . __( 'Gravity Forms News Planet (official and community news via FriendFeed service)', 'gravity-forms-toolbar' ) . 
  43. '</li>'; 
  44.  
  45. /** Set first release year */ 
  46. $release_first_year = ( '' != $gftb_info[ 'first_release' ] && date( 'Y' ) != $gftb_info[ 'first_release' ] ) ? $gftb_info[ 'first_release' ] . '–' : ''; 
  47.  
  48. echo '</ul>' . 
  49. '<p><h4>' . __( 'Important plugin links:', 'gravity-forms-toolbar' ) . '</h4>' . 
  50.  
  51. '<a class="button" href="' . esc_url( $gftb_info[ 'url_plugin' ] ) . '" target="_new" title="' . __( 'Plugin website', 'gravity-forms-toolbar' ) . '">' . __( 'Plugin website', 'gravity-forms-toolbar' ) . '</a>' . 
  52.  
  53. '  <a class="button" href="' . esc_url( $gftb_info[ 'url_wporg_faq' ] ) . '" target="_new" title="' . __( 'FAQ', 'gravity-forms-toolbar' ) . '">' . __( 'FAQ', 'gravity-forms-toolbar' ) . '</a>' . 
  54.  
  55. '  <a class="button" href="' . esc_url( $gftb_info[ 'url_wporg_forum' ] ) . '" target="_new" title="' . _x( 'Support', 'Translators: Plugin support links', 'gravity-forms-toolbar' ) . '">' . _x( 'Support', 'Translators: Plugin support links', 'gravity-forms-toolbar' ) . '</a>' . 
  56.  
  57. '  <a class="button" href="' . esc_url( $gftb_info[ 'url_snippets' ] ) . '" target="_new" title="' . __( 'Code Snippets for Customization', 'gravity-forms-toolbar' ) . '">' . __( 'Code Snippets', 'gravity-forms-toolbar' ) . '</a>' . 
  58.  
  59. '  <a class="button" href="' . esc_url( $gftb_info[ 'url_translate' ] ) . '" target="_new" title="' . __( 'Translations', 'gravity-forms-toolbar' ) . '">' . __( 'Translations', 'gravity-forms-toolbar' ) . '</a>' . 
  60.  
  61. '  <a class="button" href="' . esc_url( $gftb_info[ 'url_donate' ] ) . '" target="_new" title="' . __( 'Donate', 'gravity-forms-toolbar' ) . '"><strong>' . __( 'Donate', 'gravity-forms-toolbar' ) . '</strong></a></p>'; 
  62.  
  63. echo '<p><a href="' . esc_url( $gftb_info[ 'url_license' ] ). '" target="_new" title="' . esc_attr( $gftb_info[ 'license' ] ). '">' . esc_attr( $gftb_info[ 'license' ] ). '</a> © ' . $release_first_year . date( 'Y' ) . ' <a href="' . esc_url( ddw_gftb_plugin_get_data( 'AuthorURI' ) ) . '" target="_new" title="' . esc_attr__( ddw_gftb_plugin_get_data( 'Author' ) ) . '">' . esc_attr__( ddw_gftb_plugin_get_data( 'Author' ) ) . '</a></p>'; 
  64.  
  65. } // end of function ddw_gftb_gravityforms_help_tab_content