gglplsn_options

The Google +1 by BestWebSoft gglplsn options function.

Description

gglplsn_options(); 

Usage

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

Defined (1)

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

/google-plus-one.php  
  1. function gglplsn_options() { 
  2. global $gglplsn_options, $wp_version, $gglplsn_plugin_info, $gglplsn_option_defaults, $gglplsn_lang_codes; 
  3.  
  4. $message = $error = ""; 
  5. $plugin_basename = plugin_basename( __FILE__ ); 
  6.  
  7. if ( ! function_exists( 'get_plugins' ) || ! function_exists( 'is_plugin_active' ) ) 
  8. require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 
  9.  
  10. $all_plugins = get_plugins(); 
  11.  
  12. /** Save data for settings page */ 
  13. if ( isset( $_REQUEST['gglplsn_form_submit'] ) && check_admin_referer( $plugin_basename, 'gglplsn_nonce_name' ) ) { 
  14. if ( isset( $_POST['bws_hide_premium_options'] ) ) { 
  15. $hide_result = bws_hide_premium_options( $gglplsn_options ); 
  16. $gglplsn_options = $hide_result['options']; 
  17.  
  18. $gglplsn_options['plus_one_js'] = isset( $_REQUEST['gglplsn_plus_one_js'] ) ? 1 : 0; 
  19. $gglplsn_options['plus_one_annotation'] = esc_html( $_REQUEST['gglplsn_plus_one_annotation'] ); 
  20. $gglplsn_options['plus_one_size'] = esc_html( $_REQUEST['gglplsn_plus_one_size'] ); 
  21. $gglplsn_options['plus_one_annotation_type'] = esc_html( $_REQUEST['gglplsn_plus_one_annotation_type'] ); 
  22. $gglplsn_options['share_js'] = isset( $_REQUEST['gglplsn_share_js'] ) ? 1 : 0; 
  23. $gglplsn_options['share_size'] = intval( $_REQUEST['gglplsn_share_size'] ); 
  24. $gglplsn_options['share_annotation_type'] = esc_html( $_REQUEST['gglplsn_share_annotation_type'] ); 
  25. $gglplsn_options['share_annotation'] = esc_html( $_REQUEST['gglplsn_share_annotation'] ); 
  26. $gglplsn_options['follow_js'] = isset( $_REQUEST['gglplsn_follow_js'] ) ? 1 : 0; 
  27. $gglplsn_options['follow_annotation'] = esc_html( $_REQUEST['gglplsn_follow_annotation'] ); 
  28. $gglplsn_options['follow_size'] = intval( $_REQUEST['gglplsn_follow_size'] ); 
  29. $gglplsn_options['follow_id'] = esc_html( $_REQUEST['gglplsn_follow_id'] ); 
  30. $gglplsn_options['follow_relationship'] = esc_html( $_REQUEST['gglplsn_follow_relationship'] ); 
  31. $gglplsn_options['hangout_js'] = isset( $_REQUEST['gglplsn_hangout_js'] ) ? 1 : 0; 
  32. $gglplsn_options['hangout_topic'] = esc_html( $_REQUEST['gglplsn_hangout_topic'] ); 
  33. $gglplsn_options['hangout_topic_title'] = esc_html( $_REQUEST['gglplsn_hangout_topic_title'] ); 
  34. $gglplsn_options['hangout_size'] = esc_html( $_REQUEST['gglplsn_hangout_size'] ); 
  35. $gglplsn_options['hangout_type'] = esc_html( $_REQUEST['gglplsn_hangout_type'] ); 
  36. $gglplsn_options['hangout_invite_type'] = array(); 
  37. $gglplsn_options['hangout_invite_id'] = array(); 
  38. $gglplsn_options['badge_js'] = isset( $_REQUEST['gglplsn_badge_js'] ) ? 1 : 0; 
  39. $gglplsn_options['badge_type'] = esc_html( $_REQUEST['gglplsn_badge_type'] ); 
  40. $gglplsn_options['badge_id'] = esc_html( $_REQUEST['gglplsn_badge_id'] ); 
  41. $gglplsn_options['badge_layout'] = ( 'portrait' == $_REQUEST['gglplsn_badge_layout'] ) ? 'portrait' : 'landscape'; 
  42. $gglplsn_options['badge_show_cover'] = isset( $_REQUEST['gglplsn_badge_show_cover'] ) ? true : false; 
  43. $gglplsn_options['badge_show_tagline'] = isset( $_REQUEST['gglplsn_badge_show_tagline'] ) ? true : false; 
  44. $gglplsn_options['badge_show_owners'] = isset( $_REQUEST['gglplsn_badge_show_owners'] ) ? true : false; 
  45. $gglplsn_options['badge_theme'] = esc_html( $_REQUEST['gglplsn_badge_theme'] ); 
  46. $gglplsn_options['badge_width'] = intval( $_REQUEST['gglplsn_badge_width'] ); 
  47. $gglplsn_options['position'] = esc_html( $_REQUEST['gglplsn_position'] ); 
  48. $gglplsn_options['lang'] = esc_html( $_REQUEST['gglplsn_lang'] ); 
  49. $gglplsn_options['posts'] = isset( $_REQUEST['gglplsn_posts'] ) ? 1 : 0 ; 
  50. $gglplsn_options['pages'] = isset( $_REQUEST['gglplsn_pages'] ) ? 1 : 0 ; 
  51. $gglplsn_options['homepage'] = isset( $_REQUEST['gglplsn_homepage'] ) ? 1 : 0 ; 
  52. $gglplsn_options['use_multilanguage_locale'] = isset( $_REQUEST['gglplsn_use_multilanguage_locale'] ) ? 1 : 0; 
  53.  
  54. if ( $gglplsn_options['badge_width'] < 180 && 'portrait' == $gglplsn_options['badge_layout'] ) { 
  55. $gglplsn_options['badge_width'] = 180; 
  56. } elseif ( $gglplsn_options['badge_width'] < 273 && 'landscape' == $gglplsn_options['badge_layout'] ) { 
  57. $gglplsn_options['badge_width'] = 273; 
  58. } elseif ( $gglplsn_options['badge_width'] > 450 ) { 
  59. $gglplsn_options['badge_width'] = 450; 
  60.  
  61. $count = 0; 
  62. /** Save invites if Java Script is enabled */ 
  63. if ( ! isset( $_REQUEST['gglplsn_hangout_invite_type_hidden_noscript'] ) && ! isset( $_REQUEST['gglplsn_hangout_invite_del_noscript'] ) && ! isset( $_REQUEST['gglplsn_hangout_invite_add_noscript'] ) && isset( $_REQUEST['gglplsn_hangout_invite_type_hidden'] ) ) { 
  64. foreach( $_REQUEST['gglplsn_hangout_invite_type_hidden'] as $value ) { 
  65. $gglplsn_options['hangout_invite_type'][ $count ] = $value; 
  66. $gglplsn_options['hangout_invite_id'][ $count ] = sanitize_text_field( $_REQUEST['gglplsn_hangout_invite_id_hidden'][ $count ] ); 
  67. $count ++; 
  68. /** Delete selected invites if Java Script is disabled */ 
  69. } elseif ( isset( $_REQUEST['gglplsn_hangout_invite_del_noscript'] ) && isset( $_REQUEST['gglplsn_hangout_invite_type_hidden_noscript'] ) ) { 
  70. $save_count = 0; 
  71. foreach( $_REQUEST['gglplsn_hangout_invite_type_hidden_noscript'] as $value ) { 
  72. if ( ! isset( $_REQUEST['gglplsn_hangout_invite_checkbox'][ $count ] ) ) { 
  73. $gglplsn_options['hangout_invite_type'][ $save_count ] = $value; 
  74. $gglplsn_options['hangout_invite_id'][ $save_count ] = $_REQUEST['gglplsn_hangout_invite_id_hidden_noscript'][ $count ]; 
  75. $save_count ++; 
  76. $count ++; 
  77. /** Save added invites if Java Script is disabled */ 
  78. } elseif ( isset( $_REQUEST['gglplsn_hangout_invite_type_hidden_noscript'] ) ) { 
  79. foreach( $_REQUEST['gglplsn_hangout_invite_type_hidden_noscript'] as $value ) { 
  80. $gglplsn_options['hangout_invite_type'][ $count ] = $value; 
  81. $gglplsn_options['hangout_invite_id'][ $count ] = $_REQUEST['gglplsn_hangout_invite_id_hidden_noscript'][ $count ]; 
  82. $count ++; 
  83.  
  84. if ( isset( $_REQUEST['gglplsn_hangout_invite_add_noscript'] ) ) { 
  85. /** Invite Email validating if Java Script is disabled */ 
  86. if ( ! empty( $_REQUEST['gglplsn_hangout_invite_id_noscript'] ) && isset( $_REQUEST['gglplsn_hangout_invite_type_select'] ) ) { 
  87. $noscript_validate_email = true; 
  88. if ( 'EMAIL' == $_REQUEST['gglplsn_hangout_invite_type_select'] ) { 
  89. $noscript_validate_email = is_email( $_REQUEST['gglplsn_hangout_invite_id_noscript'] ); 
  90.  
  91. /** Invite errors for disabled Java Script */ 
  92. if ( isset( $noscript_validate_email ) && false == $noscript_validate_email ) { 
  93. $error = __( 'Email is invalid', 'google-one' ); 
  94. } elseif ( empty( $_REQUEST['gglplsn_hangout_invite_type_select'] ) ) { 
  95. $error = __( 'Please, select the invitation type', 'google-one' ); 
  96. } elseif ( empty( $_REQUEST['gglplsn_hangout_invite_id_noscript'] ) ) { 
  97. $error = __( "Invitation field can't be empty", 'google-one' ); 
  98.  
  99. if ( ! empty( $gglplsn_options['hangout_invite_type'] ) && '' == $error ) { 
  100. $phone_added = array_search( 'PHONE', $gglplsn_options['hangout_invite_type'] ); 
  101. if ( false !== $phone_added && 'PHONE' == $_REQUEST['gglplsn_hangout_invite_type_select'] ) { 
  102. $error = __( 'Only one phone number can be added', 'google-one' ); 
  103. } elseif ( false !== $phone_added && 'PHONE' != $_REQUEST['gglplsn_hangout_invite_type_select'] ) { 
  104. $error = __( "You can't add the invitation because the phone number is already added", 'google-one' ); 
  105. } elseif ( false === $phone_added && 'PHONE' == $_REQUEST['gglplsn_hangout_invite_type_select'] ) { 
  106. $error = __( "You can't add the phone number because another invitation type is already added", 'google-one' ); 
  107.  
  108. foreach( $gglplsn_options['hangout_invite_id'] as $value ) { 
  109. if ( $_REQUEST['gglplsn_hangout_invite_id_noscript'] == $value ) { 
  110. $error = __( 'Is already added', 'google-one' ); 
  111. break; 
  112.  
  113. /** Add invite if Java Script is disabled */ 
  114. if ( '' == $error ) { 
  115. $gglplsn_options['hangout_invite_type'][ $count ] = $_REQUEST['gglplsn_hangout_invite_type_select']; 
  116. $gglplsn_options['hangout_invite_id'][ $count ] = sanitize_text_field( $_REQUEST['gglplsn_hangout_invite_id_noscript'] ); 
  117.  
  118. $message = __( 'Settings saved', 'google-one' ); 
  119. update_option( 'gglplsn_options', $gglplsn_options ); 
  120.  
  121. /**## check banner */ 
  122. $bws_hide_premium_options_check = bws_hide_premium_options_check( $gglplsn_options ); 
  123.  
  124. /** Add restore function */ 
  125. if ( isset( $_REQUEST['bws_restore_confirm'] ) && check_admin_referer( $plugin_basename, 'bws_settings_nonce_name' ) ) { 
  126. $gglplsn_options = $gglplsn_option_defaults; 
  127. update_option( 'gglplsn_options', $gglplsn_options ); 
  128. $message = __( 'All plugin settings were restored.', 'google-one' ); 
  129.  
  130. /**pls GO PRO */ 
  131. if ( isset( $_GET['action'] ) && 'go_pro' == $_GET['action'] ) { 
  132. $go_pro_result = bws_go_pro_tab_check( $plugin_basename, 'gglplsn_options' ); 
  133. if ( ! empty( $go_pro_result[error] ) ) 
  134. $error = $go_pro_result[error]; 
  135. elseif ( ! empty( $go_pro_result['message'] ) ) 
  136. $message = $go_pro_result['message']; 
  137. } /** end GO PRO pls*/##*/ ?> 
  138. <!-- general --> 
  139. <div class="wrap"> 
  140. <h1><?php _e( 'Google +1 Settings', 'google-one' ); ?></h1> 
  141. <ul class="subsubsub gglplsn_how_to_use"> 
  142. <li><a href="https://docs.google.com/document/d/1v7j8TysjjBzXVnqozmfxMgjg5f7PS6XtV1GmZxnlNDk" target="_blank"><?php _e( 'How to Use Step-by-step Instruction', 'google-one' ); ?></a></li> 
  143. </ul> 
  144. <h2 class="nav-tab-wrapper"> 
  145. <a class="nav-tab<?php if ( ! isset( $_GET['action'] ) || ( isset( $_GET['action'] ) && ! in_array( $_GET['action'], array( 'extra', 'custom_code', 'go_pro' ) ) ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=google-plus-one.php"><?php _e( 'Settings', 'google-one' ); ?></a> 
  146. <!-- pls --> 
  147. <a class="nav-tab<?php if ( isset( $_GET['action'] ) && 'extra' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=google-plus-one.php&action=extra"><?php _e( 'Extra settings', 'google-one' ); ?></a> 
  148. <!-- end pls --> 
  149. <a class="nav-tab<?php if ( isset( $_GET['action'] ) && 'custom_code' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=google-plus-one.php&action=custom_code"><?php _e( 'Custom Code', 'google-one' ); ?></a> 
  150. <!-- pls --> 
  151. <a class="nav-tab bws_go_pro_tab<?php if ( isset( $_GET['action'] ) && 'go_pro' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=google-plus-one.php&action=go_pro"><?php _e( 'Go PRO', 'google-one' ); ?></a> 
  152. <!-- end pls --> 
  153. </h2> 
  154. <noscript><div class="error below-h2"><p><strong><?php _e( 'Please, enable JavaScript in Your browser.', 'google-one' ); ?></strong></p></div></noscript> 
  155. <?php if ( ! empty( $hide_result['message'] ) ) { ?> 
  156. <div class="updated fade below-h2"><p><strong><?php echo $hide_result['message']; ?></strong></p></div> 
  157. <?php } ?> 
  158. <!-- end general --> 
  159. <div class="updated fade below-h2" <?php if ( '' == $message || "" != $error ) echo 'style="display:none"'; ?>><p><strong><?php echo $message; ?></strong></p></div> 
  160. <?php bws_show_settings_notice(); ?> 
  161. <div class="error below-h2" <?php if ( "" == $error ) echo 'style="display:none"'; ?>><p><strong><?php echo $error; ?></strong></p></div> 
  162. <?php /**## check action */ if ( ! isset( $_GET['action'] ) || ( isset( $_GET['action'] ) && ! in_array( $_GET['action'], array( 'extra', 'custom_code', 'go_pro' ) ) ) ) { 
  163. if ( isset( $_REQUEST['bws_restore_default'] ) && check_admin_referer( $plugin_basename, 'bws_settings_nonce_name' ) ) { 
  164. bws_form_restore_default_confirm( $plugin_basename ); 
  165. } else { /** check action ##*/ ?> 
  166. <div id="gglplsn_settings_form_block"> 
  167. <p><?php _e( 'For the correct work of the button do not use it locally or on a free hosting', 'google-one' ); ?><br /></p> 
  168. <div><?php printf( 
  169. __( "If you'd like to add Google Buttons to your page or post, please use %s button", 'google-one' ),  
  170. '<span class="bws_code"><span class="bwsicons bwsicons-shortcode"></span></span>' ); ?> 
  171. <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help"> 
  172. <div class="bws_hidden_help_text" style="min-width:180px;"> 
  173. <?php printf( 
  174. __( "You can add Google Buttons to your page or post by clicking on %s button in the content edit block using the Visual mode. If the button isn't displayed, please use the shortcode %s to show the Google +1 Button, or use parameter 'display', e.g. %s to display these buttons", 'google-one' ),  
  175. '<span class="bws_code"><span class="bwsicons bwsicons-shortcode"></span></span>',  
  176. '[bws_googleplusone]',  
  177. '<br>[bws_googleplusone display="plusone, share, follow, hangout, badge"]' 
  178. ); ?> 
  179. </div> 
  180. </div> 
  181. </div> 
  182. <div class="gglplsn-form"> 
  183. <form method="post" action="" class="bws_form"> 
  184. <table class="form-table gglplsn_form-table"> 
  185. <tbody> 
  186. <tr valign="top"> 
  187. <th><?php _e( 'Display Google Buttons', 'google-one' ); ?></th> 
  188. <td> 
  189. <fieldset> 
  190. <label> 
  191. <input type="checkbox" name="gglplsn_plus_one_js"<?php if ( 1 == $gglplsn_options['plus_one_js'] ) echo 'checked="checked"'; ?> value="1" /> 
  192. <?php _e( 'Google +1', 'google-one' ); ?> 
  193. </label> 
  194. <br /> 
  195. <label> 
  196. <input type="checkbox" name="gglplsn_share_js"<?php if ( 1 == $gglplsn_options['share_js'] ) echo 'checked="checked"'; ?> value="1" /> 
  197. <?php _e( 'Share', 'google-one' ); ?> 
  198. </label> 
  199. <br /> 
  200. <label> 
  201. <input type="checkbox" name="gglplsn_follow_js"<?php if ( 1 == $gglplsn_options['follow_js'] ) echo 'checked="checked"'; ?> value="1" /> 
  202. <?php _e( 'Follow', 'google-one' ); ?> 
  203. </label> 
  204. <span class="bws_info gglplsn_notice gglplsn-follow-notice gglplsn-unvisible-notice"> 
  205. <?php if ( empty( $gglplsn_options['follow_id'] ) ) { ?> 
  206. (<?php _e( 'To see this button, please', 'google-one' ); ?> 
  207. <a class="gglplsn-follow-focus"><?php _e( 'enter', 'google-one' ) ?></a> 
  208. <?php _e( 'the Google+ ID', 'google-one' ); ?>) 
  209. <?php } ?> 
  210. </span> 
  211. <br /> 
  212. <label> 
  213. <input type="checkbox" name="gglplsn_hangout_js"<?php if ( 1 == $gglplsn_options['hangout_js'] ) echo 'checked="checked"'; ?> value="1" /> 
  214. <?php _e( 'Hangout', 'google-one' ); ?> 
  215. </label> 
  216. <br /> 
  217. <label> 
  218. <input type="checkbox" name="gglplsn_badge_js"<?php if ( 1 == $gglplsn_options['badge_js'] ) echo 'checked="checked"'; ?> value="1" /> 
  219. <?php _e( 'Badge', 'google-one' ); ?> 
  220. </label> 
  221. <span class="bws_info gglplsn_notice gglplsn-badge-notice gglplsn-unvisible-notice"> 
  222. <?php if ( empty( $gglplsn_options['badge_id'] ) ) { ?> 
  223. (<?php _e( 'To see this button, please', 'google-one' ); ?> 
  224. <a class="gglplsn-badge-focus"><?php _e( 'enter', 'google-one' ) ?></a> 
  225. <?php _e( 'the Google+ ID', 'google-one' ); ?>) 
  226. <?php } ?> 
  227. </span> 
  228. </fieldset> 
  229. </td> 
  230. </tr> 
  231. <tr> 
  232. <th scope="row"><?php _e( 'Language', 'google-one' ); ?></th> 
  233. <td> 
  234. <fieldset> 
  235. <select name="gglplsn_lang"> 
  236. <?php foreach ( $gglplsn_lang_codes as $key => $val ) { 
  237. echo '<option value="' . $key . '"'; 
  238. if ( $key == $gglplsn_options['lang'] ) { 
  239. echo ' selected="selected"'; 
  240. echo '>' . esc_html ( $val ) . '</option>'; 
  241. } ?> 
  242. </select> 
  243. <span class="bws_info">(<?php _e( 'Select the language to display information on the button', 'google-one' ); ?>)</span> 
  244. <br /> 
  245. <label> 
  246. <?php if ( array_key_exists( 'multilanguage/multilanguage.php', $all_plugins ) || array_key_exists( 'multilanguage-pro/multilanguage-pro.php', $all_plugins ) ) { 
  247. if ( is_plugin_active( 'multilanguage/multilanguage.php' ) || is_plugin_active( 'multilanguage-pro/multilanguage-pro.php' ) ) { ?> 
  248. <input type="checkbox" name="gglplsn_use_multilanguage_locale" value="1" <?php if ( 1 == $gglplsn_options["use_multilanguage_locale"] ) echo 'checked="checked"'; ?> /> 
  249. <?php _e( 'Use the current site language', 'google-one' ); ?><span class="bws_info">(<?php _e( 'Using', 'google-one' ); ?> Multilanguage by BestWebSoft)</span> 
  250. <?php } else { ?> 
  251. <input disabled="disabled" type="checkbox" name="gglplsn_use_multilanguage_locale" value="1" /> 
  252. <?php _e( 'Use the current site language', 'google-one' ); ?> 
  253. <span class="bws_info">(<?php _e( 'Using', 'google-one' ); ?> Multilanguage by BestWebSoft) 
  254. <a href="<?php echo bloginfo( "url" ); ?>/wp-admin/plugins.php"><?php _e( 'Activate', 'google-one' ); ?> Multilanguage</a> 
  255. </span> 
  256. <?php } 
  257. } else { ?> 
  258. <input disabled="disabled" type="checkbox" name="gglplsn_use_multilanguage_locale" value="1" /> 
  259. <?php _e( 'Use the current site language', 'google-one' ); ?> 
  260. <span class="bws_info">(<?php _e( 'Using', 'google-one' ); ?> Multilanguage by BestWebSoft) 
  261. <a href="http://bestwebsoft.com/products/wordpress/plugins/multilanguage/?k=4f26802e271bc07146a382140164abc1&pn=102&v=<?php echo $gglplsn_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>"><?php _e( 'Download', 'google-one' ); ?> Multilanguage</a> 
  262. </span> 
  263. <?php } ?> 
  264. </label> 
  265. </fieldset> 
  266. </td> 
  267. </tr> 
  268. <tr> 
  269. <th scope="row"><?php _e( 'Buttons Position', 'google-one' ); ?></th> 
  270. <td> 
  271. <select name="gglplsn_position"> 
  272. <option value="before_post" <?php if ( 'before_post' == $gglplsn_options['position'] ) echo 'selected="selected"'; ?>><?php _e( 'Before', 'google-one' ); ?></option> 
  273. <option value="after_post" <?php if ( 'after_post' == $gglplsn_options['position'] ) echo 'selected="selected"'; ?>><?php _e( 'After', 'google-one' ); ?></option> 
  274. <option value="afterandbefore" <?php if ( 'afterandbefore' == $gglplsn_options['position'] ) echo 'selected="selected"'; ?>><?php _e( 'Before And After', 'google-one' ); ?></option> 
  275. <option value="only_shortcode" <?php if ( 'only_shortcode' == $gglplsn_options['position'] ) echo 'selected="selected"'; ?>><?php _e( 'Only Shortcode', 'google-one' ); ?></option> 
  276. </select> 
  277. <span class="bws_info">(<?php _e( 'Please select location for the buttons on the page', 'google-one' ); ?>)</span> 
  278. </td> 
  279. </tr> 
  280. <tr> 
  281. <th scope="row"><?php _e( 'Show buttons', 'google-one' ); ?></th> 
  282. <td> 
  283. <p> 
  284. <label> 
  285. <input type="checkbox" name="gglplsn_posts" <?php if ( ! empty( $gglplsn_options['posts'] ) ) echo 'checked="checked"'; ?> value="1" /> 
  286. <?php _e( 'Show in posts', 'google-one' ); ?> 
  287. </label> 
  288. </p> 
  289. <p> 
  290. <label> 
  291. <input type="checkbox" name="gglplsn_pages" <?php if ( ! empty( $gglplsn_options['pages'] ) ) echo 'checked="checked"'; ?> value="1" /> 
  292. <?php _e( 'Show in pages', 'google-one' ); ?> 
  293. </label> 
  294. </p> 
  295. <p> 
  296. <label> 
  297. <input type="checkbox" name="gglplsn_homepage" <?php if ( ! empty( $gglplsn_options['homepage'] ) ) echo 'checked="checked"'; ?> value="1" /> 
  298. <?php _e( 'Show on the homepage', 'google-one' ); ?> 
  299. </label> 
  300. </p> 
  301. <p> 
  302. <span class="bws_info">(<?php _e( 'Please select the page on which you want to see the buttons', 'google-one' ); ?>)</span> 
  303. </p> 
  304. </td> 
  305. </tr> 
  306. <tr class="gglplsn-plus-one-options gglplsn-first <?php if ( 0 == $gglplsn_options['plus_one_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  307. <th colspan="2"><?php _e( 'Settings for Google +1 Button', 'google-one' ); ?></th> 
  308. </tr> 
  309. </tbody> 
  310. </table> 
  311. <!-- general --> 
  312. <?php if ( ! $bws_hide_premium_options_check ) { ?> 
  313. <div class="gglplsn-plus-one-options <?php if ( 0 == $gglplsn_options['plus_one_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  314. <div class="bws_pro_version_bloc"> 
  315. <div class="bws_pro_version_table_bloc"> 
  316. <button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php _e( 'Close', 'google-one' ); ?>"></button> 
  317. <div class="bws_table_bg"></div> 
  318. <table class="form-table bws_pro_version"> 
  319. <tr valign="top"> 
  320. <th><?php _e( '"+1" for an entire site on every page', 'google-one' ); ?></th> 
  321. <td> 
  322. <input disabled="disabled" name='gglplsn_entire_site_like' type='checkbox' value='1' /><br /> 
  323. <span class="bws_info"><?php _e( 'Notice: This option does not create an extra button. This option merely allows your users to +1 the entire website when this option is enabled, or a single post when this option is disabled, when clicking the regular "+1" button.', 'google-one' ); ?></span> 
  324. </td> 
  325. </tr> 
  326. <tr valign="top"> 
  327. <th scope="row" colspan="2"> 
  328. * <?php _e( 'If you upgrade to Pro version all your settings will be saved.', 'google-one' ); ?> 
  329. </th> 
  330. </tr> 
  331. </table> 
  332. </div> 
  333. <div class="bws_pro_version_tooltip"> 
  334. <a class="bws_button" href="http://bestwebsoft.com/products/wordpress/plugins/google-plus-one/?k=0a5a8a70ed3c34b95587de0604ca9517&pn=102&v=<?php echo $gglplsn_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" target="_blank" title="Google +1 Pro"><?php _e( 'Learn More', 'google-one' ); ?></a> 
  335. <div class="clear"></div> 
  336. </div> 
  337. </div> 
  338. </div> 
  339. <?php } ?> 
  340. <!-- end general --> 
  341. <table class="form-table gglplsn_form-table"> 
  342. <tbody> 
  343. <tr class="gglplsn-plus-one-options <?php if ( 0 == $gglplsn_options['plus_one_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  344. <th scope="row"><?php _e( 'Size', 'google-one' ); ?></th> 
  345. <td> 
  346. <select name="gglplsn_plus_one_size"> 
  347. <option value="standard" <?php if ( 'standard' == $gglplsn_options['plus_one_size'] ) echo 'selected="selected"'; ?>><?php _ex( 'Standard', 'for:size', 'google-one' ); ?></option> 
  348. <option value="small" <?php if ( 'small' == $gglplsn_options['plus_one_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Small', 'google-one' ); ?></option> 
  349. <option value="medium" <?php if ( 'medium' == $gglplsn_options['plus_one_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Medium', 'google-one' ); ?></option> 
  350. <option value="tall" <?php if ( 'tall' == $gglplsn_options['plus_one_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Tall', 'google-one' ); ?></option> 
  351. </select> 
  352. </td> 
  353. </tr> 
  354. <tr class="gglplsn-plus-one-options <?php if ( 0 == $gglplsn_options['plus_one_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  355. <th><?php _e( 'Annotation', 'google-one' ); ?></th> 
  356. <td> 
  357. <select name="gglplsn_plus_one_annotation"> 
  358. <option value="inline" <?php if ( 'inline' == $gglplsn_options['plus_one_annotation'] ) echo 'selected="selected"'; ?>><?php _e( 'Inline', 'google-one' ); ?></option> 
  359. <option value="bubble" <?php if ( 'bubble' == $gglplsn_options['plus_one_annotation'] ) echo 'selected="selected"'; ?>><?php _e( 'Bubble', 'google-one' ); ?></option> 
  360. <option value="none" <?php if ( 'none' == $gglplsn_options['plus_one_annotation'] ) echo 'selected="selected"'; ?>><?php _e( 'None', 'google-one' ); ?></option> 
  361. </select> 
  362. <br /> 
  363. <span class="bws_info">(<?php _e( 'Display counters showing how many times your article has been liked', 'google-one' ); ?>)</span> 
  364. </td> 
  365. </tr> 
  366. <tr class="gglplsn-plus-one-annotation-type <?php if ( 0 == $gglplsn_options['plus_one_js'] || 'inline' != $gglplsn_options['plus_one_annotation'] ) echo 'gglplsn-hide-option'; ?>"> 
  367. <th scope="row"><?php _e( 'Annotation Type', 'google-one' ); ?></th> 
  368. <td> 
  369. <select name="gglplsn_plus_one_annotation_type"> 
  370. <option value="standard" <?php if ( 'standard' == $gglplsn_options['plus_one_annotation_type'] ) echo 'selected="selected"';?>><?php _ex( 'Standard', 'for:annotation type', 'google-one' ) ?></option> 
  371. <option value="short" <?php if ( 'short' == $gglplsn_options['plus_one_annotation_type'] ) echo 'selected="selected"';?>><?php _e( 'Short', 'google-one' ) ?></option> 
  372. </select> 
  373. </td> 
  374. </tr> 
  375. <tr class="gglplsn-share-options gglplsn-first <?php if ( 0 == $gglplsn_options['share_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  376. <th colspan="2"><?php _e( 'Settings for Share Button', 'google-one' ); ?></th> 
  377. </tr> 
  378. <tr class="gglplsn-share-options <?php if ( 0 == $gglplsn_options['share_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  379. <th><?php _e( 'Annotation', 'google-one' ); ?></th> 
  380. <td> 
  381. <select name="gglplsn_share_annotation"> 
  382. <option value="inline" <?php if ( 'inline' == $gglplsn_options['share_annotation'] ) echo 'selected="selected"'; ?>><?php _e( 'Inline', 'google-one' ); ?></option> 
  383. <option value="bubble" <?php if ( 'bubble' == $gglplsn_options['share_annotation'] ) echo 'selected="selected"'; ?>><?php _e( 'Bubble', 'google-one' ); ?></option> 
  384. <option value="vertical-bubble" <?php if ( 'vertical-bubble' == $gglplsn_options['share_annotation'] ) echo 'selected="selected"'; ?>><?php _e( 'Vertical-bubble', 'google-one' ); ?></option> 
  385. <option value="none" <?php if ( 'none' == $gglplsn_options['share_annotation'] ) echo 'selected="selected"'; ?>><?php _e( 'None', 'google-one' ); ?></option> 
  386. </select> 
  387. <p> 
  388. <span class="bws_info">(<?php _e( 'Display the number of users who have shared the page', 'google-one' ); ?>)</span> 
  389. </p> 
  390. </td> 
  391. </tr> 
  392. <tr class="gglplsn-share-size <?php if ( 0 == $gglplsn_options['share_js'] || 'vertical-bubble' == $gglplsn_options['share_annotation'] ) echo 'gglplsn-hide-option'; ?>"> 
  393. <th scope="row"><?php _e( 'Size', 'google-one' ); ?></th> 
  394. <td> 
  395. <select name="gglplsn_share_size"> 
  396. <option value="15" <?php if ( 15 == $gglplsn_options['share_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Small', 'google-one' ); ?></option> 
  397. <option value="20" <?php if ( 20 == $gglplsn_options['share_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Medium', 'google-one' ); ?></option> 
  398. <option value="24" <?php if ( 24 == $gglplsn_options['share_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Large', 'google-one' ); ?></option> 
  399. </select> 
  400. </td> 
  401. </tr> 
  402. <tr class="gglplsn-share-annotation-type <?php if ( 0 == $gglplsn_options['share_js'] || 'inline' != $gglplsn_options['share_annotation'] ) echo 'gglplsn-hide-option'; ?>"> 
  403. <th scope="row"><?php _e( 'Annotation Type', 'google-one' ); ?></th> 
  404. <td> 
  405. <select name="gglplsn_share_annotation_type"> 
  406. <option value="standard" <?php if ( 'standard' == $gglplsn_options['share_annotation_type'] ) echo 'selected="selected"';?>><?php echo _ex( 'Standard', 'for:annotation type', 'google-one' ) ?></option> 
  407. <option value="short" <?php if ( 'short' == $gglplsn_options['share_annotation_type'] ) echo 'selected="selected"';?>><?php _e( 'Short', 'google-one' ) ?></option> 
  408. </select> 
  409. </td> 
  410. </tr> 
  411. <tr class="gglplsn-follow-options gglplsn-first <?php if ( 0 == $gglplsn_options['follow_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  412. <th colspan="2"><?php _e( 'Settings for Follow Button', 'google-one' ); ?></th> 
  413. </tr> 
  414. <tr class="gglplsn-follow-options <?php if ( 0 == $gglplsn_options['follow_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  415. <th><?php _e( 'Google+ ID', 'google-one' ); ?></th> 
  416. <td> 
  417. <input type="text" <?php if ( 1 == $gglplsn_options['follow_js'] ) { echo 'required="required"'; } ?> name="gglplsn_follow_id" value="<?php echo $gglplsn_options['follow_id']; ?>" /> 
  418. <p> 
  419. <span class="bws_info">(<?php echo __( 'Enter the Google+ ID, e.g.', 'google-one' ) . ' "12345678912345678912" ' . __( 'or', 'google-one') . ' "+YouName"'; ?>)</span> 
  420. </p> 
  421. </td> 
  422. </tr> 
  423. <tr class="gglplsn-follow-options <?php if ( 0 == $gglplsn_options['follow_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  424. <th><?php _e( 'Relationship', 'google-one' ); ?></th> 
  425. <td> 
  426. <select name="gglplsn_follow_relationship"> 
  427. <option value="author" <?php if ( 'author' == $gglplsn_options['follow_relationship'] ) echo 'selected="selected"'; ?>><?php _e( 'Author', 'google-one' ); ?></option> 
  428. <option value="publisher" <?php if ( 'publisher' == $gglplsn_options['follow_relationship'] ) echo 'selected="selected"'; ?>><?php _e( 'Publisher', 'google-one' ); ?></option> 
  429. </select> 
  430. <p> 
  431. <span class="bws_info">(<?php _e( 'Describes your relationship to content of the page, where the button is embedded', 'google-one' ); ?>)</span> 
  432. </p> 
  433. </td> 
  434. </tr> 
  435. <tr class="gglplsn-follow-options <?php if ( 0 == $gglplsn_options['follow_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  436. <th scope="row"><?php _e( 'Size', 'google-one' ); ?></th> 
  437. <td> 
  438. <select name="gglplsn_follow_size"> 
  439. <option value="15" <?php if ( 15 == $gglplsn_options['follow_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Small', 'google-one' ); ?></option> 
  440. <option value="20" <?php if ( 20 == $gglplsn_options['follow_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Medium', 'google-one' ); ?></option> 
  441. <option value="24" <?php if ( 24 == $gglplsn_options['follow_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Large', 'google-one' ); ?></option> 
  442. </select> 
  443. </td> 
  444. </tr> 
  445. <tr class="gglplsn-follow-options <?php if ( 0 == $gglplsn_options['follow_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  446. <th><?php _e( 'Annotation', 'google-one' ); ?></th> 
  447. <td> 
  448. <select name="gglplsn_follow_annotation"> 
  449. <option value="bubble" <?php if ( 'bubble' == $gglplsn_options['follow_annotation'] ) echo 'selected="selected"'; ?>><?php _e( 'Bubble', 'google-one' ); ?></option> 
  450. <option value="vertical-bubble" <?php if ( 'vertical-bubble' == $gglplsn_options['follow_annotation'] ) echo 'selected="selected"'; ?>><?php _e( 'Vertical-bubble', 'google-one' ); ?></option> 
  451. <option value="none" <?php if ( 'none' == $gglplsn_options['follow_annotation'] ) echo 'selected="selected"'; ?>><?php _e( 'None', 'google-one' ); ?></option> 
  452. </select> 
  453. <p> 
  454. <span class="bws_info">(<?php _e( 'Display the number of users who are following this page or person', 'google-one' ); ?>)</span> 
  455. </p> 
  456. </td> 
  457. </tr> 
  458. <tr class="gglplsn-hangout-options gglplsn-first <?php if ( 0 == $gglplsn_options['hangout_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  459. <th colspan="2"><?php _e( 'Settings for Hangout Button', 'google-one' ); ?></th> 
  460. </tr> 
  461. <tr class="gglplsn-hangout-options <?php if ( 0 == $gglplsn_options['hangout_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  462. <th><?php _e( 'Topic', 'google-one' ); ?></th> 
  463. <td> 
  464. <label class="gglplsn-hangout-topic"> 
  465. <input type="radio" name="gglplsn_hangout_topic_title" value="1" <?php if ( 1 == $gglplsn_options['hangout_topic_title'] ) echo 'checked="checked"'; ?> /> 
  466. <?php _e( 'Use the title of the page', 'google-one' ); ?> 
  467. </label> 
  468. <br /> 
  469. <label class="gglplsn-hangout-topic"> 
  470. <input type="radio" name="gglplsn_hangout_topic_title" value="0" class="gglplsn-hangout-topic-radio" <?php if ( 1 != $gglplsn_options['hangout_topic_title'] ) echo 'checked="checked"'; ?> /> 
  471. <input type="text" name="gglplsn_hangout_topic" class="gglplsn-hangout-topic-text" value="<?php echo $gglplsn_options['hangout_topic']; ?>" /> 
  472. </label> 
  473. </td> 
  474. </tr> 
  475. <tr class="gglplsn-hangout-options <?php if ( 0 == $gglplsn_options['hangout_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  476. <th><?php _e( 'Size', 'google-one' ); ?></th> 
  477. <td> 
  478. <select name="gglplsn_hangout_size"> 
  479. <option value="standard" <?php if ( 'standard' == $gglplsn_options['hangout_size'] ) echo 'selected="selected"'; ?>><?php _ex( 'Standard', 'for:size', 'google-one' ); ?></option> 
  480. <option value="narrow" <?php if ( 'narrow' == $gglplsn_options['hangout_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Narrow', 'google-one' ); ?></option> 
  481. <option value="wide" <?php if ( 'wide' == $gglplsn_options['hangout_size'] ) echo 'selected="selected"'; ?>><?php _e( 'Wide', 'google-one' ); ?></option> 
  482. </select> 
  483. </td> 
  484. </tr> 
  485. <tr class="gglplsn-hangout-options <?php if ( 0 == $gglplsn_options['hangout_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  486. <th><?php _e( 'Type', 'google-one' ); ?></th> 
  487. <td> 
  488. <select name="gglplsn_hangout_type"> 
  489. <option value="normal" <?php if ( 'normal' == $gglplsn_options['hangout_type'] ) echo 'selected="selected"'; ?>><?php _e( 'Normal', 'google-one' ); ?></option> 
  490. <option value="onair" <?php if ( 'onair' == $gglplsn_options['hangout_type'] ) echo 'selected="selected"'; ?>><?php _e( 'On air', 'google-one' ); ?></option> 
  491. <option value="party" <?php if ( 'party' == $gglplsn_options['hangout_type'] ) echo 'selected="selected"'; ?>><?php _e( 'Party', 'google-one' ); ?></option> 
  492. <option value="moderated" <?php if ( 'moderated' == $gglplsn_options['hangout_type'] ) echo 'selected="selected"'; ?>><?php _e( 'Moderated', 'google-one' ); ?></option> 
  493. </select> 
  494. </td> 
  495. </tr> 
  496. <tr class="gglplsn-hangout-options gglplsn-hangout-invite-type <?php if ( 0 == $gglplsn_options['hangout_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  497. <th><?php _e( 'Invitation Type', 'google-one' ); ?></th> 
  498. <td> 
  499. <select id="gglplsn_hangout_invite_type" name="gglplsn_hangout_invite_type_select"> 
  500. <option value="" disabled="disabled" selected="selected"><?php _e( 'Select The Type', 'google-one' ); ?></option> 
  501. <option value="PROFILE"><?php _e( 'Google+ Profile ID', 'google-one' ); ?></option> 
  502. <option value="CIRCLE"><?php _e( 'Google+ Circle ID', 'google-one' ); ?></option> 
  503. <option value="EMAIL"><?php _e( 'Email', 'google-one' ); ?></option> 
  504. <option value="PHONE"><?php _e( 'Phone Number', 'google-one' ); ?></option> 
  505. </select> 
  506. <div class="tagchecklist gglplsn-view-invited" style="display:none;"> 
  507. <?php if ( ! empty( $gglplsn_options['hangout_invite_type'] ) ) { 
  508. for ( $i = 0; $i < count( $gglplsn_options['hangout_invite_type'] ); $i++ ) { ?> 
  509. <div> 
  510. <input name="gglplsn_hangout_invite_type_hidden[]" value="<?php echo $gglplsn_options['hangout_invite_type'][ $i ] ?>" type="hidden" /> 
  511. <input name="gglplsn_hangout_invite_id_hidden[]" value="<?php echo $gglplsn_options['hangout_invite_id'][ $i ] ?>" type="hidden" /> 
  512. <span> 
  513. <a class="delbutton"></a> 
  514. <?php echo ' ' . $gglplsn_options['hangout_invite_id'][ $i ] ?> 
  515. </span> 
  516. </div> 
  517. <?php } 
  518. } ?> 
  519. </div> 
  520. <noscript> 
  521. <div class="tagchecklist gglplsn-view-invited-noscript"> 
  522. <?php if ( ! empty( $gglplsn_options['hangout_invite_type'] ) ) { 
  523. for ( $i = 0; $i < count( $gglplsn_options['hangout_invite_type'] ); $i++ ) { ?> 
  524. <p> 
  525. <input name="gglplsn_hangout_invite_type_hidden_noscript[<?php echo $i; ?>]" value="<?php echo $gglplsn_options['hangout_invite_type'][ $i ]; ?>" type="hidden" /> 
  526. <input name="gglplsn_hangout_invite_id_hidden_noscript[<?php echo $i; ?>]" value="<?php echo $gglplsn_options['hangout_invite_id'][ $i ]; ?>" type="hidden" /> 
  527. <input type="checkbox" name="gglplsn_hangout_invite_checkbox[<?php echo $i; ?>]" id="gglplsn_hangout_invite_checkbox[<?php echo $i; ?>]" value="1" /> 
  528. <label for="gglplsn_hangout_invite_checkbox[<?php echo $i; ?>]"> 
  529. <?php echo $gglplsn_options['hangout_invite_id'][ $i ]; ?> 
  530. </label> 
  531. </p> 
  532. <?php } 
  533. } ?> 
  534. </div> 
  535. </noscript> 
  536. </td> 
  537. </tr> 
  538. <tr class="gglplsn-invite-tr-noscript"> 
  539. <th> 
  540. <noscript> 
  541. <?php _e( 'Google+ ID, Phone Number or Email', 'google-one' ); ?> 
  542. </noscript> 
  543. </th> 
  544. <td> 
  545. <noscript> 
  546. <input type="text" id="gglplsn_hangout_invite_id_noscript" name="gglplsn_hangout_invite_id_noscript" /> 
  547. <input type="submit" name="gglplsn_hangout_invite_add_noscript" class="button tagadd" value="<?php _e( 'Add', 'google-one' ); ?>" id="gglplsn_hangout_invite_add_noscript" /> 
  548. <?php if ( ! empty( $gglplsn_options['hangout_invite_type'] ) ) { ?> 
  549. <input type="submit" name="gglplsn_hangout_invite_del_noscript" class="button tagadd" value="<?php _e( 'Delete Selected', 'google-one' ); ?>" id="gglplsn_hangout_invite_del" /> 
  550. <?php } ?> 
  551. <p class="gglplsn-id-prompt"> 
  552. <span class="bws_info"><?php echo __( "If Invitation Type is 'Google+ Profile ID', it should look like", 'google-one' ) . ' "12345678912345678912 " ' . __( 'or', 'google-one' ) . ' "+YouName"' ?></span> 
  553. </p> 
  554. <hr class="gglplsn-noscript-hr" /> 
  555. <p class="gglplsn-id-prompt"> 
  556. <span class="bws_info"><?php echo __( "If Invitation Type is 'Google+ Circle ID', it should look like", 'google-one' ) . ' "123ab345cd576ef7"'?></span> 
  557. </p> 
  558. <hr class="gglplsn-noscript-hr" /> 
  559. <p class="gglplsn-id-prompt"> 
  560. <span class="bws_info"><?php echo __( "If Invitation Type is 'Email', it should look like", 'google-one' ) . ' "example@gmail.com"'; ?></span> 
  561. </p> 
  562. <hr class="gglplsn-noscript-hr" /> 
  563. <p class="gglplsn-id-prompt"> 
  564. <span class="bws_info"><?php echo __( "If Invitation Type is 'Phone Number', it should look like", 'google-one' ) . ' "+38001234567"'; ?></span> 
  565. </p> 
  566. </noscript> 
  567. </td> 
  568. </tr> 
  569. <tr class="gglplsn-hangout-options gglplsn-hangout-invite-id <?php if ( 0 == $gglplsn_options['hangout_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  570. <th style="display:none;"></th> 
  571. <td style="display:none;"> 
  572. <input type="text" id="gglplsn_hangout_invite_id" /> 
  573. <input type="submit" class="button tagadd" value="<?php _e( 'Add', 'google-one' ); ?>" id="gglplsn_hangout_invite_add" /> 
  574. <p class="gglplsn-id-prompt"> 
  575. <span class="bws_info"></span> 
  576. </p> 
  577. <p id='gglplsn_invite_id_error' style="display:none;"></p> 
  578. </td> 
  579. </tr> 
  580. <tr class="gglplsn-badge-options gglplsn-first <?php if ( 0 == $gglplsn_options['badge_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  581. <th colspan="2"><?php _e( 'Settings for Badge', 'google-one' ); ?></th> 
  582. </tr> 
  583. <tr class="gglplsn-badge-options <?php if ( 0 == $gglplsn_options['badge_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  584. <th><?php _e( 'Type', 'google-one' ); ?></th> 
  585. <td> 
  586. <select name="gglplsn_badge_type"> 
  587. <option value="person" <?php if ( 'person' == $gglplsn_options['badge_type'] ) echo 'selected="selected"'; ?>><?php _e( 'Person', 'google-one' ); ?></option> 
  588. <option value="page" <?php if ( 'page' == $gglplsn_options['badge_type'] ) echo 'selected="selected"'; ?>><?php _e( 'Page', 'google-one' ); ?></option> 
  589. <option value="community" <?php if ( 'community' == $gglplsn_options['badge_type'] ) echo 'selected="selected"'; ?>><?php _e( 'Community', 'google-one' ); ?></option> 
  590. </select> 
  591. </td> 
  592. </tr> 
  593. <tr class="gglplsn-badge-options <?php if ( 0 == $gglplsn_options['badge_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  594. <th class="gglplsn-badge-id-th"> 
  595. <?php switch( $gglplsn_options['badge_type'] ) { 
  596. case 'person' : 
  597. $gglplsn_badge_id_th = __( 'Google+ ID', 'google-one' ); 
  598. $gglplsn_badge_id_info = __( 'Enter the Google+ ID, e.g.', 'google-one' ) . ' "12345678912345678912" ' . __( 'or', 'google-one' ) . ' "+YouName"'; 
  599. $gglplsn_badge_tagline_info = __( "Display the user's tag line", 'google-one' ); 
  600. break; 
  601. case 'page' : 
  602. $gglplsn_badge_id_th = __( 'Google+ Page ID', 'google-one' ); 
  603. $gglplsn_badge_id_info = __( 'Enter the Google+ Page ID, e.g.', 'google-one' ) . ' "12345678912345678912" ' . __( 'or', 'google-one' ) . ' "+CompanyName"'; 
  604. $gglplsn_badge_tagline_info = __( 'Display the company tag line', 'google-one' ); 
  605. break; 
  606. case 'community' : 
  607. $gglplsn_badge_id_th = __( 'Google+ Community ID', 'google-one' ); 
  608. $gglplsn_badge_id_info = __( 'Enter the Google+ Community ID, e.g.', 'google-one' ) . ' "12345678912345678912" ' . __( 'or', 'google-one' ) . ' "+CommunityName"'; 
  609. $gglplsn_badge_tagline_info = __( 'Display the community tag line', 'google-one' ); 
  610. break; 
  611. echo $gglplsn_badge_id_th; ?> 
  612. </th> 
  613. <td> 
  614. <input type="text" name="gglplsn_badge_id" <?php if ( 1 == $gglplsn_options['badge_js'] ) { echo 'required="required"'; } ?> value="<?php echo $gglplsn_options['badge_id']; ?>" /> 
  615. <p> 
  616. <span class="bws_info gglplsn-badge-id-info">(<?php echo $gglplsn_badge_id_info; ?>)</span> 
  617. </p> 
  618. </td> 
  619. </tr> 
  620. <tr class="gglplsn-badge-options <?php if ( 0 == $gglplsn_options['badge_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  621. <th><?php _e( 'Layout', 'google-one' ); ?></th> 
  622. <td> 
  623. <select name="gglplsn_badge_layout"> 
  624. <option value="portrait" <?php if ( 'portrait' == $gglplsn_options['badge_layout'] ) echo 'selected="selected"'; ?>><?php _e( 'Portrait', 'google-one' ); ?></option> 
  625. <option value="landscape" <?php if ( 'landscape' == $gglplsn_options['badge_layout'] ) echo 'selected="selected"'; ?>><?php _e( 'Landscape', 'google-one' ); ?></option> 
  626. </select> 
  627. <p> 
  628. <span class="bws_info">(<?php _e( 'Sets the orientation of the badge', 'google-one' ); ?>)</span> 
  629. </p> 
  630. </td> 
  631. </tr> 
  632. <tr class="gglplsn-badge-options gglplsn-show-cover <?php if ( 0 == $gglplsn_options['badge_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  633. <th><?php _e( 'Show Cover Photo', 'google-one' ); ?></th> 
  634. <td> 
  635. <label> 
  636. <input type="checkbox" name="gglplsn_badge_show_cover"<?php if ( true == $gglplsn_options['badge_show_cover'] ) echo 'checked="checked"'; ?> value="1" /> 
  637. </label> 
  638. </td> 
  639. </tr> 
  640. <tr class="gglplsn-badge-options gglplsn-show-tagline <?php if ( 0 == $gglplsn_options['badge_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  641. <th><?php _e( 'Show Tag Line', 'google-one' ); ?></th> 
  642. <td> 
  643. <label> 
  644. <input type="checkbox" name="gglplsn_badge_show_tagline" <?php if ( true == $gglplsn_options['badge_show_tagline'] ) echo 'checked="checked"'; ?> value="1" /> 
  645. <span class="bws_info gglplsn-badge-tagline-info">(<?php echo $gglplsn_badge_tagline_info; ?>)</span> 
  646. </label> 
  647. </td> 
  648. </tr> 
  649. <tr class="gglplsn-show-owners <?php if ( 0 == $gglplsn_options['badge_js'] || 'community' != $gglplsn_options['badge_type'] ) echo 'gglplsn-hide-option'; ?>"> 
  650. <th><?php _e( 'Show Owners', 'google-one' ); ?></th> 
  651. <td> 
  652. <label> 
  653. <input type="checkbox" name="gglplsn_badge_show_owners"<?php if ( true == $gglplsn_options['badge_show_owners'] ) echo 'checked="checked"'; ?> value="1" /> 
  654. <span class="bws_info">(<?php _e( 'Display a list of community owners', 'google-one' ); ?>)</span> 
  655. </label> 
  656. </td> 
  657. </tr> 
  658. <tr class="gglplsn-badge-options <?php if ( 0 == $gglplsn_options['badge_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  659. <th><?php _e( 'Theme', 'google-one' ); ?></th> 
  660. <td> 
  661. <select name="gglplsn_badge_theme"> 
  662. <option value="light" <?php if ( 'light' == $gglplsn_options['badge_theme'] ) echo 'selected="selected"'; ?>><?php _e( 'Light', 'google-one' ); ?></option> 
  663. <option value="dark" <?php if ( 'dark' == $gglplsn_options['badge_theme'] ) echo 'selected="selected"'; ?>><?php _e( 'Dark', 'google-one' ); ?></option> 
  664. </select> 
  665. </td> 
  666. </tr> 
  667. <tr class="gglplsn-badge-options <?php if ( 0 == $gglplsn_options['badge_js'] ) echo 'gglplsn-hide-option'; ?>"> 
  668. <th><?php _e( 'Width', 'google-one' ); ?></th> 
  669. <td> 
  670. <input type="number" name="gglplsn_badge_width" max="450" <?php echo ( 'portrait' == $gglplsn_options['badge_layout'] ) ? 'min="180"' : 'min="273"'; ?> value="<?php echo $gglplsn_options['badge_width']; ?>" /> 
  671. <?php _e( 'px', 'google-one' ); ?> 
  672. </td> 
  673. </tr> 
  674. </tbody> 
  675. </table> 
  676. <!-- general --> 
  677. <?php if ( ! $bws_hide_premium_options_check ) { ?> 
  678. <div class="bws_pro_version_bloc gglpsn-bottom-pro-block"> 
  679. <div class="bws_pro_version_table_bloc"> 
  680. <button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php _e( 'Close', 'google-one' ); ?>"></button> 
  681. <div class="bws_table_bg"></div> 
  682. <table class="form-table bws_pro_version"> 
  683. <tr valign="top" class="gglplsn-pro-version-preview"> 
  684. <th> 
  685. <h3><?php _e( 'Preview', 'google-one' ) ?></h3> 
  686. </th> 
  687. <td> 
  688. <img src="<?php echo plugin_dir_url( __FILE__ ); ?>/images/preview_screenshot.png"> 
  689. </td> 
  690. </tr> 
  691. </table> 
  692. </div> 
  693. <div class="bws_pro_version_tooltip"> 
  694. <a class="bws_button" href="http://bestwebsoft.com/products/wordpress/plugins/google-plus-one/?k=0a5a8a70ed3c34b95587de0604ca9517&pn=102&v=<?php echo $gglplsn_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" target="_blank" title="Google +1 Pro"><?php _e( 'Learn More', 'google-one' ); ?></a> 
  695. <div class="clear"></div> 
  696. </div> 
  697. </div> 
  698. <div class="gglplsn-preview-wrap"> 
  699. <button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php _e( 'Close', 'google-one' ); ?>"></button> 
  700. <div class="bws_table_bg"></div> 
  701. <h3><?php _e( 'Preview', 'google-one' ) ?></h3> 
  702. <img src="<?php echo plugin_dir_url( __FILE__ ); ?>/images/preview_screenshot.png"> 
  703. <div class="bws_pro_version_tooltip"> 
  704. <a class="bws_button" href="http://bestwebsoft.com/products/wordpress/plugins/google-plus-one/?k=0a5a8a70ed3c34b95587de0604ca9517&pn=102&v=<?php echo $gglplsn_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" target="_blank" title="Google +1 Pro"><?php _e( 'Learn More', 'google-one' ); ?></a> 
  705. <div class="clear"></div> 
  706. </div> 
  707. </div> 
  708. <?php } ?> 
  709. <!-- end general --> 
  710. <p class="submit"> 
  711. <input id="bws-submit-button" type="submit" value="<?php _e( 'Save Changes', 'google-one' ); ?>" class="button-primary" /> 
  712. <input type="hidden" name="gglplsn_form_submit" value="1" /> 
  713. <?php wp_nonce_field( $plugin_basename, 'gglplsn_nonce_name' ); ?> 
  714. </p> 
  715. </form> 
  716. </div> 
  717. </div> 
  718. <!-- general --> 
  719. <?php bws_form_restore_default_settings( $plugin_basename ); 
  720. } elseif ( 'custom_code' == $_GET['action'] ) { 
  721. } /**pls extra banner */ elseif ( 'extra' == $_GET['action'] ) { ?> 
  722. <div class="bws_pro_version_bloc"> 
  723. <div class="bws_pro_version_table_bloc"> 
  724. <div class="bws_table_bg"></div> 
  725. <div class="bws_pro_version"> 
  726. <?php _e( 'Please choose the necessary post types (or single pages) where Google button will be displayed:', 'google-one' ); ?> 
  727. <p> 
  728. <input disabled="disabled" checked="checked" id="twttrpr_jstree_url" type="checkbox" name="twttrpr_jstree_url" value="1" /> 
  729. <?php _e( "Show URL for pages", 'google-one' );?> 
  730. </p> 
  731. <img src="<?php echo plugins_url( 'images/pro_screen_1.png', __FILE__ ); ?>" alt="<?php _e( "Example of the site's pages tree", 'google-one' ); ?>" title="<?php _e( "Example of the site's pages tree", 'google-one' ); ?>" /> 
  732. <p> 
  733. <strong>* <?php _e( 'If you upgrade to Pro version all your settings will be saved.', 'google-one' ); ?></strong> 
  734. </p> 
  735. </div> 
  736. </div> 
  737. <div class="bws_pro_version_tooltip"> 
  738. <a class="bws_button" href="http://bestwebsoft.com/products/wordpress/plugins/google-plus-one/?k=0a5a8a70ed3c34b95587de0604ca9517&pn=102&v=<?php echo $gglplsn_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" target="_blank" title="Google +1 Pro"><?php _e( 'Learn More', 'google-one' ); ?></a> 
  739. <div class="clear"></div> 
  740. </div> 
  741. </div> 
  742. <?php } elseif ( 'go_pro' == $_GET['action'] ) { 
  743. bws_go_pro_tab_show( $bws_hide_premium_options_check, $gglplsn_plugin_info, $plugin_basename, 'google-plus-one.php', 'google-plus-one-pro.php', 'google-one-pro/google-plus-one-pro.php', 'google-plus-one', '0a5a8a70ed3c34b95587de0604ca9517', '102', isset( $go_pro_result['pro_plugin_is_activated'] ) ); 
  744. bws_plugin_reviews_block( $gglplsn_plugin_info['Name'], 'google-one' ); /** show reviews block pls*/ ?> 
  745. </div> 
  746. <!-- end general --> 
  747. <?php }