gglplsn_admin_head

The Google +1 by BestWebSoft gglplsn admin head function.

Description

gglplsn_admin_head(); 

Usage

  1. if ( !function_exists( 'gglplsn_admin_head' ) ) { 
  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_admin_head(); 
  7.  

Defined (1)

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

/google-plus-one.php  
  1. function gglplsn_admin_head() { 
  2. global $hook_suffix, $gglplsn_is_button_shown, $gglplsn_plugin_info; 
  3. if ( isset( $_GET['page'] ) && ( "google-plus-one.php" == $_GET['page'] || "social-buttons.php" == $_GET['page'] ) ) { 
  4. if ( isset( $_GET['action'] ) && 'custom_code' == $_GET['action'] ) { 
  5. bws_plugins_include_codemirror(); 
  6. wp_enqueue_style( 'gglplsn_style', plugins_url( 'css/style.css', __FILE__ ), array(), $gglplsn_plugin_info['Version'] ); 
  7. /** Loclize script */ 
  8. wp_enqueue_script( 'gglplsn-script', plugins_url( 'js/script.js' , __FILE__ ), array( 'jquery' ), $gglplsn_plugin_info['Version'] ); 
  9. $js_strings = array( 
  10. 'already_added' => __( 'Is already added', 'google-one' ),  
  11. 'one_number' => __( 'Only one phone number can be added', 'google-one' ),  
  12. 'number_added' => __( "You can't add the invitation because the phone number is already added", 'google-one' ),  
  13. 'any_added' => __( "You can't add the phone number because another invitation type is already added", 'google-one' ),  
  14. 'empty_id' => __( "This field can't be empty", 'google-one' ),  
  15. 'invalid_email' => __( 'Please, enter the valid Email', 'google-one' ),  
  16. 'email_th' => __( 'Email of Invited Person', 'google-one' ),  
  17. 'email_info' => __( 'Please, enter the Email of invited person, e.g.', 'google-one' ) . ' "example@gmail.com"',  
  18. 'phone_th' => __( 'Phone Number of Invited Person', 'google-one' ),  
  19. 'phone_info' => __( 'Please, enter the phone number of invited person, e.g.', 'google-one' ) . ' "+38001234567"',  
  20. 'profile_th' => __( 'Google+ Profile ID of Invited Person', 'google-one' ),  
  21. 'profile_info' => __( 'Please, enter the Google+ Profile ID of invited person, e.g.', 'google-one' ) . ' "12345678912345678912" ' . __( 'or', 'google-one' ) . ' "+YouName"',  
  22. 'circle_th' => __( 'Google+ Circle ID for Invitation', 'google-one' ),  
  23. 'circle_info' => __( 'Please, enter the Google+ Circle ID for invitation, e.g.', 'google-one' ) . ' "123ab345cd576ef7"',  
  24. 'person_id_th' => __( 'Google+ ID', 'google-one' ),  
  25. 'person_id_info' => __( 'Enter the Google+ ID, e.g.', 'google-one' ) . ' "12345678912345678912" ' . __( 'or', 'google-one' ) . ' "+YouName"',  
  26. 'page_id_th' => __( 'Google+ Page ID', 'google-one' ),  
  27. 'page_id_info' => __( 'Enter the Google+ Page ID, e.g.', 'google-one' ) . ' "12345678912345678912" ' . __( 'or', 'google-one' ) . ' "+CompanyName"',  
  28. 'community_id_th' => __( 'Google+ Community ID', 'google-one' ),  
  29. 'community_id_info' => __( 'Enter the Google+ Community ID, e.g.', 'google-one' ) . ' "12345678912345678912" ' . __( 'or', 'google-one' ) . ' "+CommunityName"',  
  30. 'person_tagline_info' => __( "Display the user's tag line", 'google-one' ),  
  31. 'page_tagline_info' => __( 'Display the company tag line', 'google-one' ),  
  32. 'community_tagline_info' => __( 'Display the community tag line', 'google-one' ),  
  33. 'gglplsn_ajax_nonce' => wp_create_nonce( 'gglplsn_ajax_nonce' ) 
  34. ); 
  35. wp_localize_script( 'gglplsn-script', 'js_string', $js_strings ); 
  36. } elseif ( 'widgets.php' == $hook_suffix ) { 
  37. wp_enqueue_script( 'gglplsn-widgets-script', plugins_url( 'js/widgets-script.js' , __FILE__ ), array( 'jquery' ), $gglplsn_plugin_info['Version'] ); 
  38. } elseif ( ! is_admin() && ( ! empty( $gglplsn_is_button_shown ) || defined( 'BWS_ENQUEUE_ALL_SCRIPTS' ) ) ) { 
  39. wp_enqueue_style( 'gglplsn_style', plugins_url( 'css/style.css', __FILE__ ), array(), $gglplsn_plugin_info['Version'] );