gglplsn_init

The Google +1 by BestWebSoft gglplsn init function.

Description

gglplsn_init(); 

Usage

  1. if ( !function_exists( 'gglplsn_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-1-by-bestwebsoft/google-plus-one.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gglplsn_init(); 
  7.  

Defined (1)

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

/google-plus-one.php  
  1. function gglplsn_init() { 
  2. global $gglplsn_plugin_info, $gglplsn_lang_codes; 
  3.  
  4. if ( empty( $gglplsn_plugin_info ) ) { 
  5. if ( ! function_exists( 'get_plugin_data' ) ) 
  6. require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 
  7. $gglplsn_plugin_info = get_plugin_data( __FILE__ ); 
  8.  
  9. /**## add general functions */ 
  10. require_once( dirname( __FILE__ ) . '/bws_menu/bws_include.php' ); 
  11. bws_include_init( plugin_basename( __FILE__ ) ); 
  12. bws_wp_min_version_check( plugin_basename( __FILE__ ), $gglplsn_plugin_info, '3.8' );/** check compatible with current WP version ##*/ 
  13.  
  14. /** Get/Register and check settings for plugin */ 
  15. if ( ! is_admin() || ( isset( $_GET['page'] ) && ( "google-plus-one.php" == $_GET['page'] || "social-buttons.php" == $_GET['page'] ) ) ) { 
  16. $gglplsn_lang_codes = array( 
  17. 'af' => "Afrikaans", 'am' => "Amharic", 'ar' => "Arabic", 'eu' => "Basque", 'bn' => "Bengali", 'bg' => "Bulgarian", 'ca' => "Catalan", 'zh-HK' => "Chinese (Hong Kong)", 'zh-CN' => "Chinese (Simplified)", 'zh-TW' => "Chinese (Traditional)", 'hr' => "Croatian", 'cs' => "Czech", 'da' => "Danish", 'nl' => "Dutch", 'en-GB' => "English (UK)", 'en' => "English (US)", 'et' => "Estonian", 'fil' => "Filipino", 'fi' => "Finnish", 'fr' => "French", 'fr-CA' => "French (Canadian)", 'gl' => "Galician", 'de' => "German", 'el' => "Greek", 'gu' => "Gujarati", 'iw' => "Hebrew", 'hi' => "Hindi", 'hu' => "Hungarian", 'is' => "Icelandic", 'id' => "Indonesian", 'it' => "Italian", 'ja' => "Japanese", 'kn' => "Kannada", 'ko' => "Korean", 'lv' => "Latvian", 'lt' => "Lithuanian", 'ms' => "Malay", 'ml' => "Malayalam", 'mr' => "Marathi", 'no' => "Norwegian", 'fa' => "Persian", 'pl' => "Polish", 'pt-BR' => "Portuguese (Brazil)", 'pt-PT' => "Portuguese (Portugal)", 'ro' => "Romanian", 'ru' => "Russian", 'sr' => "Serbian", 'sk' => "Slovak", 'sl' => "Slovenian", 'es' => "Spanish", 'es-419' => "Spanish (Latin America)", 'sw' => "Swahili", 'sv' => "Swedish", 'ta' => "Tamil", 'te' => "Telugu", 'th' => "Thai", 'tr' => "Turkish", 'uk' => "Ukrainian", 'ur' => "Urdu", 'vi' => "Vietnamese", 'zu' => "Zulu" 
  18. );