ddw_gftb_info_values

Setting internal plugin helper values.

Description

(array) ddw_gftb_info_values(); 

Returns (array)

Array of info values, boolean or string.


Usage

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

Defined (1)

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

/lib/gftb-functions.php  
  1. function ddw_gftb_info_values() { 
  2.  
  3. /** Array of values */ 
  4. $gftb_info = array( 
  5.  
  6. 'url_translate' => 'http://translate.wpautobahn.com/projects/wordpress-plugins-deckerweb/gravity-forms-toolbar',  
  7. 'url_wporg_faq' => 'http://wordpress.org/plugins/gravity-forms-toolbar/faq/',  
  8. 'url_wporg_forum' => 'http://wordpress.org/support/plugin/gravity-forms-toolbar',  
  9. 'url_wporg_profile' => 'http://profiles.wordpress.org/daveshine/',  
  10. 'url_suggestions' => 'https://twitter.com/deckerweb',  
  11. 'url_snippets' => 'https://gist.github.com/deckerweb/2732242',  
  12. 'license' => 'GPL-2.0+',  
  13. 'url_license' => 'http://www.opensource.org/licenses/gpl-license.php',  
  14. 'first_release' => absint( '2012' ),  
  15. 'url_donate' => ddw_gftb_detect_locales( array( 'de_DE', 'de_AT', 'de_CH', 'de_LU', 'gsw' ) ) ? 'http://genesisthemes.de/spenden/' : 'http://genesisthemes.de/en/donate/',  
  16. 'url_plugin' => ddw_gftb_detect_locales( array( 'de_DE', 'de_AT', 'de_CH', 'de_LU', 'gsw' ) ) ? 'http://genesisthemes.de/plugins/gravity-forms-toolbar/' : 'http://genesisthemes.de/en/wp-plugins/gravity-forms-toolbar/',  
  17. 'de_plugin' => '',  
  18. 'de_files' => 'http://deckerweb.de/sprachdateien/gravityforms-und-addons/',  
  19. 'nl_plugin' => 'http://wordpress.org/plugins/gravityforms-nl/',  
  20. 'es_plugin' => 'http://wordpress.org/plugins/gravityforms-es/',  
  21. 'is_german' => ddw_gftb_detect_locales( array( 'de_DE', 'de_AT', 'de_CH', 'de_LU', 'gsw' ) ) ? TRUE : FALSE,  
  22. 'is_dutch' => ddw_gftb_detect_locales( array( 'nl', 'nl_NL' ) ) ? TRUE : FALSE,  
  23. 'is_spanish' => ddw_gftb_detect_locales( array( 'es_ES', 'es_PE' ) ) ? TRUE : FALSE,  
  24.  
  25. ); // end of array 
  26.  
  27. /** Output the array */ 
  28. return $gftb_info; 
  29.  
  30. } // end of function ddw_gftb_info_values