WordPress Social Sharing Plugin – Sassy Social Share - Version 3.3.23

Version Description

[29 July 2021] = * [New] Added options to export and import plugin configuration

Download this release

Release Info

Developer Heateor
Plugin Icon 128x128 WordPress Social Sharing Plugin – Sassy Social Share
Version 3.3.23
Comparing to
See all releases

Code changes from version 3.3.22 to 3.3.23

admin/class-sassy-social-share-admin.php CHANGED
@@ -1,790 +1,831 @@
1
- <?php
2
-
3
- /**
4
- * Contains functions responsible for functionality at admin side
5
- *
6
- * @since 1.0.0
7
- *
8
- */
9
-
10
- /**
11
- * This class defines all code necessary for functionality at admin side
12
- *
13
- * @since 1.0.0
14
- *
15
- */
16
- class Sassy_Social_Share_Admin {
17
-
18
- /**
19
- * Options saved in database
20
- *
21
- * @since 1.0.0
22
- */
23
- private $options;
24
-
25
- /**
26
- * Current version of the plugin
27
- *
28
- * @since 1.0.0
29
- */
30
- private $version;
31
-
32
- /**
33
- * Flag to check if BuddyPress is active
34
- *
35
- * @since 1.0.0
36
- */
37
- private $is_bp_active = false;
38
-
39
- /**
40
- * Get saved options
41
- *
42
- * @since 1.0.0
43
- * @param array $options Plugin options saved in database
44
- */
45
- public function __construct( $options, $version ) {
46
-
47
- $this->options = $options;
48
- $this->version = $version;
49
-
50
- }
51
-
52
- /**
53
- * Creates plugin menu in admin area
54
- *
55
- * @since 1.0.0
56
- */
57
- public function create_admin_menu() {
58
-
59
- $page = add_menu_page( __( 'Sassy Social Share by Heateor', 'sassy-social-share' ), 'Sassy Social Share', 'manage_options', 'heateor-sss-options', array( $this, 'options_page' ), plugins_url( '../images/logo.png', __FILE__ ) );
60
- // options
61
- $options_page = add_submenu_page( 'heateor-sss-options', __( "Sassy Social Share", 'sassy-social-share' ), __( "Sassy Social Share", 'sassy-social-share' ), 'manage_options', 'heateor-sss-options', array( $this, 'options_page' ) );
62
- //adding mycred addon in submenu
63
- $my_cred = add_submenu_page( 'heateor-sss-options', __( "Social Share myCRED Integration", 'sassy-social-share' ), __( "Social Share myCRED Integration", 'sassy-social-share' ), 'manage_options', 'heateor-sss-mycred-options', array( $this, 'mycred_options_page' ) );
64
- //adding recover sharing counts addon in submenu
65
- $rssc = add_submenu_page( 'heateor-sss-options', __( "Recover Social Share Counts", 'sassy-social-share' ), __( "Recover Social Share Counts", 'sassy-social-share' ), 'manage_options', 'heateor-sss-rssc-options', array( $this, 'rssc_option_page' ) );
66
- //adding analytics addon in submenu
67
- $ssga = add_submenu_page( 'heateor-sss-options', __( "Social Analytics", 'sassy-social-share' ), __( "Social Analytics", 'sassy-social-share' ), 'manage_options', 'heateor-sss-ssga-options', array( $this, 'ssga_option_page' ) );
68
-
69
- add_action( 'admin_print_scripts-' . $page, array( $this, 'admin_scripts' ) );
70
- add_action( 'admin_print_scripts-' . $page, array( $this, 'admin_style' ) );
71
- add_action( 'admin_print_scripts-' . $ssga, array( $this, 'admin_scripts' ) );
72
- add_action( 'admin_print_scripts-' . $ssga, array( $this, 'admin_style' ) );
73
- add_action( 'admin_print_scripts-' . $ssga, array( $this, 'fb_sdk_script' ) );
74
- add_action( 'admin_print_styles-' . $ssga, array( $this, 'admin_options_style' ) );
75
- add_action( 'admin_print_scripts-' . $rssc, array( $this, 'admin_scripts' ) );
76
- add_action( 'admin_print_scripts-' . $rssc, array( $this, 'admin_style' ) );
77
- add_action( 'admin_print_scripts-' . $rssc, array( $this, 'fb_sdk_script' ) );
78
- add_action( 'admin_print_styles-' . $rssc, array( $this, 'admin_options_style' ) );
79
- add_action( 'admin_print_scripts-' . $my_cred, array( $this, 'admin_scripts' ) );
80
- add_action( 'admin_print_scripts-' . $my_cred, array( $this, 'admin_style' ) );
81
- add_action( 'admin_print_scripts-' . $my_cred, array( $this, 'fb_sdk_script' ) );
82
- add_action( 'admin_print_styles-' . $my_cred, array( $this, 'admin_options_style' ) );
83
- add_action( 'admin_print_scripts-' . $page, array( $this, 'fb_sdk_script' ) );
84
- add_action( 'admin_print_styles-' . $page, array( $this, 'admin_options_style' ) );
85
- add_action( 'admin_print_scripts-' . $options_page, array( $this, 'admin_scripts' ) );
86
- add_action( 'admin_print_scripts-' . $options_page, array( $this, 'fb_sdk_script' ) );
87
- add_action( 'admin_print_styles-' . $options_page, array( $this, 'admin_style' ) );
88
- add_action( 'admin_print_scripts-' . $options_page, array( $this, 'admin_options_scripts' ) );
89
- add_action( 'admin_print_styles-' . $options_page, array( $this, 'admin_options_style' ) );
90
-
91
- }
92
-
93
- /**
94
- * myCRED integration options page
95
- *
96
- * @since 3.3.8
97
- */
98
- public function mycred_options_page() {
99
- ?>
100
- <div class="metabox-holder columns-2" id="post-body">
101
- <h1>Social Share myCRED Integration</h1>
102
- <div class="heateor_sss_left_column">
103
- <a href="https://www.heateor.com/sassy-social-share-premium/" target="_blank"><img src="<?php echo plugins_url( '../images/unlock/mycred-options.png', __FILE__ ) ?>" /></a>
104
- </div>
105
- <?php include 'partials/sassy-social-share-about.php'; ?>
106
- </div>
107
- <?php
108
- }
109
-
110
- /**
111
- * Options page for Recover Social Share Counts module
112
- *
113
- * @since 3.3.8
114
- */
115
- public function rssc_option_page() {
116
- ?>
117
- <div class="metabox-holder columns-2" id="post-body">
118
- <h1>Recover Social Share Counts</h1>
119
- <div class="heateor_sss_left_column">
120
- <a href="https://www.heateor.com/sassy-social-share-premium/" target="_blank"><img src="<?php echo plugins_url( '../images/unlock/rssc-options.png', __FILE__ ) ?>" /></a>
121
- </div>
122
- <?php include 'partials/sassy-social-share-about.php'; ?>
123
- </div>
124
- <?php
125
- }
126
-
127
- /**
128
- * Options page for Social Analytics module
129
- *
130
- * @since 3.3.8
131
- */
132
- public function ssga_option_page() {
133
- ?>
134
- <div class="metabox-holder columns-2" id="post-body">
135
- <h1>Social Analytics</h1>
136
- <div class="heateor_sss_left_column">
137
- <a href="https://www.heateor.com/sassy-social-share-premium/" target="_blank"><img src="<?php echo plugins_url( '../images/unlock/ssga-options.png', __FILE__ ) ?>" /></a>
138
- </div>
139
- <?php include 'partials/sassy-social-share-about.php'; ?>
140
- </div>
141
- <?php
142
- }
143
-
144
- /**
145
- * Register plugin settings and its sanitization callback.
146
- *
147
- * @since 1.0.0
148
- */
149
- public function options_init() {
150
-
151
- register_setting( 'heateor_sss_options', 'heateor_sss', array( $this, 'validate_options' ) );
152
-
153
- if ( current_user_can( 'manage_options' ) ) {
154
- // show option to disable sharing on particular page/post
155
- $post_types = get_post_types( array( 'public' => true ), 'names', 'and' );
156
- $post_types = array_unique( array_merge( $post_types, array( 'post', 'page' ) ) );
157
- foreach ( $post_types as $type ) {
158
- add_meta_box( 'heateor_sss_meta', 'Sassy Social Share', array( $this, 'sharing_meta_setup' ), $type );
159
- }
160
- // save sharing meta on post/page save
161
- add_action( 'save_post', array( $this, 'save_sharing_meta' ) );
162
- }
163
-
164
- }
165
-
166
- /**
167
- * Update options in all the old blogs.
168
- *
169
- * @since 1.0.0
170
- */
171
- public function update_old_blogs( $old_config ) {
172
-
173
- $option_parts = explode( '_', current_filter() );
174
- $option = $option_parts[2] . '_' . $option_parts[3] . '_' . $option_parts[4];
175
- $new_config = get_option( $option );
176
- if ( isset( $new_config['config_multisite'] ) && $new_config['config_multisite'] == 1 ) {
177
- $blogs = get_blog_list( 0, 'all' );
178
- foreach ( $blogs as $blog ) {
179
- update_blog_option( $blog['blog_id'], $option, $new_config );
180
- }
181
- }
182
-
183
- }
184
-
185
- /**
186
- * Replicate the options to the new blog created.
187
- *
188
- * @since 1.0.0
189
- */
190
- public function replicate_settings( $blog_id ) {
191
-
192
- add_blog_option( $blog_id, 'heateor_sss', $this->options );
193
-
194
- }
195
-
196
- /**
197
- * Show sharing meta options
198
- *
199
- * @since 1.0.0
200
- */
201
- public function sharing_meta_setup() {
202
-
203
- global $post;
204
- $postType = $post->post_type;
205
- $sharing_meta = get_post_meta( $post->ID, '_heateor_sss_meta', true );
206
- ?>
207
- <p>
208
- <label for="heateor_sss_sharing">
209
- <input type="checkbox" name="_heateor_sss_meta[sharing]" id="heateor_sss_sharing" value="1" <?php echo is_array( $sharing_meta ) && isset( $sharing_meta['sharing'] ) && $sharing_meta['sharing'] == '1' ? 'checked' : ''; ?> />
210
- <?php _e( 'Disable Standard Sharing interface on this ' . $postType, 'sassy-social-share' ) ?>
211
- </label>
212
- <br/>
213
- <label for="heateor_sss_vertical_sharing">
214
- <input type="checkbox" name="_heateor_sss_meta[vertical_sharing]" id="heateor_sss_vertical_sharing" value="1" <?php echo is_array( $sharing_meta ) && isset( $sharing_meta['vertical_sharing'] ) && $sharing_meta['vertical_sharing'] == '1' ? 'checked' : ''; ?> />
215
- <?php _e( 'Disable Floating Sharing interface on this ' . $postType, 'sassy-social-share' ) ?>
216
- </label>
217
- <?php
218
- $valid_networks = array( 'twitter', 'buffer', 'reddit', 'pinterest', 'vkontakte', 'Odnoklassniki', 'Fintel' );
219
- if ( isset( $this->options['hor_enable'] ) && isset( $this->options['horizontal_counts'] ) && isset( $this->options['horizontal_re_providers'] ) && count( $this->options['horizontal_re_providers'] ) > 0 ) {
220
- ?>
221
- <p>
222
- <strong style="font-weight: bold"><?php _e( 'Standard sharing', 'sassy-social-share' ) ?></strong>
223
- <?php
224
- foreach ( array_intersect( $this->options['horizontal_re_providers'], $valid_networks ) as $network ) {
225
- ?>
226
- <br/>
227
- <label for="heateor_sss_<?php echo $network ?>_horizontal_sharing_count">
228
- <span style="width: 242px; float:left"><?php _e( 'Starting share count for ' . ucfirst( str_replace ( '_', ' ', $network ) ), 'sassy-social-share' ) ?></span>
229
- <input type="text" name="_heateor_sss_meta[<?php echo $network ?>_horizontal_count]" id="heateor_sss_<?php echo $network ?>_horizontal_sharing_count" value="<?php echo is_array( $sharing_meta ) && isset( $sharing_meta[$network . '_horizontal_count'] ) ? $sharing_meta[$network . '_horizontal_count'] : '' ?>" />
230
- </label>
231
- <?php
232
- }
233
- ?>
234
- </p>
235
- <?php
236
- }
237
-
238
- if ( isset( $this->options['vertical_enable'] ) && isset( $this->options['vertical_counts'] ) && isset( $this->options['vertical_re_providers'] ) && count( $this->options['vertical_re_providers'] ) > 0 ) {
239
- ?>
240
- <p>
241
- <strong style="font-weight: bold"><?php _e( 'Floating sharing', 'sassy-social-share' ) ?></strong>
242
- <?php
243
- foreach ( array_intersect( $this->options['vertical_re_providers'], $valid_networks ) as $network ) {
244
- ?>
245
- <br/>
246
- <label for="heateor_sss_<?php echo $network ?>_vertical_sharing_count">
247
- <span style="width: 242px; float:left"><?php _e( 'Starting share count for ' . ucfirst( str_replace ( '_', ' ', $network ) ), 'sassy-social-share' ) ?></span>
248
- <input type="text" name="_heateor_sss_meta[<?php echo $network ?>_vertical_count]" id="heateor_sss_<?php echo $network ?>_vertical_sharing_count" value="<?php echo is_array( $sharing_meta ) && isset( $sharing_meta[$network . '_vertical_count'] ) ? $sharing_meta[$network . '_vertical_count'] : '' ?>" />
249
- </label>
250
- <?php
251
- }
252
- ?>
253
- </p>
254
- <?php
255
- }
256
- ?>
257
- </p>
258
- <?php
259
- echo '<input type="hidden" name="heateor_sss_meta_nonce" value="' . wp_create_nonce( __FILE__ ) . '" />';
260
-
261
- }
262
-
263
- /**
264
- * Save sharing meta fields.
265
- *
266
- * @since 1.0.0
267
- */
268
- public function save_sharing_meta( $post_id ) {
269
-
270
- // make sure data came from our meta box
271
- if ( ! isset( $_POST['heateor_sss_meta_nonce'] ) || ! wp_verify_nonce( $_POST['heateor_sss_meta_nonce'], __FILE__ ) ) {
272
- return $post_id;
273
- }
274
- // check user permissions
275
- if ( $_POST['post_type'] == 'page' ) {
276
- if ( ! current_user_can( 'edit_page', $post_id ) ) {
277
- return $post_id;
278
- }
279
- } else {
280
- if ( ! current_user_can( 'edit_post', $post_id ) ) {
281
- return $post_id;
282
- }
283
- }
284
- if ( isset( $_POST['_heateor_sss_meta'] ) ) {
285
- $newData = $_POST['_heateor_sss_meta'];
286
- } else {
287
- $newData = array( 'sharing' => 0, 'vertical_sharing' => 0 );
288
- }
289
- update_post_meta( $post_id, '_heateor_sss_meta', $newData );
290
- return $post_id;
291
-
292
- }
293
-
294
- /**
295
- * Sanitization callback for plugin options.
296
- *
297
- * IMPROVEMENT: complexity can be reduced (this function is called on each option page validation and "if ( $k == 'providers' ) {"
298
- * condition is being checked every time)
299
- * @since 1.0.0
300
- */
301
- public function validate_options( $heateorSssOptions ) {
302
-
303
- foreach ( $heateorSssOptions as $k => $v ) {
304
- if ( is_string( $v ) ) {
305
- $heateorSssOptions[$k] = esc_attr( trim( $v ) );
306
- }
307
- }
308
- return $heateorSssOptions;
309
-
310
- }
311
-
312
- /**
313
- * Include Javascript at plugin options page in admin area
314
- *
315
- * @since 1.0.0
316
- */
317
- public function admin_options_scripts() {
318
-
319
- wp_enqueue_script( 'heateor_sss_admin_options_script', plugins_url( 'js/sassy-social-share-options.js', __FILE__ ), array( 'jquery', 'jquery-ui-sortable' ), $this->version );
320
-
321
- }
322
-
323
- /**
324
- * Include Javascript SDK in admin.
325
- *
326
- * @since 1.0.0
327
- */
328
- public function fb_sdk_script() {
329
-
330
- wp_enqueue_script( 'heateor_sss_fb_sdk_script', plugins_url( 'js/sassy-social-share-fb-sdk.js', __FILE__ ), false, $this->version );
331
-
332
- }
333
-
334
- /**
335
- * Include CSS files in admin.
336
- *
337
- * @since 1.0.0
338
- */
339
- public function admin_style() {
340
-
341
- wp_enqueue_style( 'heateor_sss_admin_style', plugins_url( 'css/sassy-social-share-admin.css', __FILE__ ), false, $this->version );
342
-
343
- }
344
-
345
- /**
346
- * Include CSS files at plugin options page in admin area
347
- *
348
- * @since 1.0.0
349
- */
350
- public function admin_options_style() {
351
-
352
- wp_enqueue_style( 'heateor_sss_admin_svg', plugins_url( 'css/sassy-social-share-svg.css', __FILE__ ), false, $this->version );
353
- if ( $this->options['horizontal_font_color_default'] != '' ) {
354
- $updated = $this->update_css( 'horizontal_sharing_replace_color', 'horizontal_font_color_default', 'sassy-social-share-default-svg-horizontal' );
355
- wp_enqueue_style( 'heateor_sss_admin_svg_horizontal', plugins_url( 'css/sassy-social-share-default-svg-horizontal.css', __FILE__ ), false, ( $updated === true ? rand() : $this->version ) );
356
- }
357
- if ( $this->options['horizontal_font_color_hover'] != '' ) {
358
- $updated = $this->update_css( 'horizontal_sharing_replace_color_hover', 'horizontal_font_color_hover', 'sassy-social-share-hover-svg-horizontal' );
359
- wp_enqueue_style( 'heateor_sss_admin_svg_horizontal_hover', plugins_url( 'css/sassy-social-share-hover-svg-horizontal.css', __FILE__ ), false, ( $updated === true ? rand() : $this->version ) );
360
- }
361
- if ( $this->options['vertical_font_color_default'] != '' ) {
362
- $updated = $this->update_css( 'vertical_sharing_replace_color', 'vertical_font_color_default', 'sassy-social-share-default-svg-vertical' );
363
- wp_enqueue_style( 'heateor_sss_admin_svg_vertical', plugins_url( 'css/sassy-social-share-default-svg-vertical.css', __FILE__ ), false, ( $updated === true ? rand() : $this->version ) );
364
- }
365
- if ( $this->options['vertical_font_color_hover'] != '' ) {
366
- $updated = $this->update_css( 'vertical_sharing_replace_color_hover', 'vertical_font_color_hover', 'sassy-social-share-hover-svg-vertical' );
367
- wp_enqueue_style( 'heateor_sss_admin_svg_vertical_hover', plugins_url( 'css/sassy-social-share-hover-svg-vertical.css', __FILE__ ), false, ( $updated === true ? rand() : $this->version ) );
368
- }
369
-
370
- }
371
-
372
- /**
373
- * Update CSS file
374
- *
375
- * @since 1.0.0
376
- */
377
- private function update_css( $replace_color_option, $logo_color_option, $css_file ) {
378
-
379
- if ( $this->options[$replace_color_option] != $this->options[$logo_color_option] ) {
380
- $path = plugin_dir_url( __FILE__ ) . 'css/' . $css_file . '.css';
381
- try {
382
- $content = file( $path );
383
- if ( $content !== false ) {
384
- $handle = fopen( dirname( __FILE__ ) . '/css/' . $css_file . '.css','w' );
385
- if ( $handle !== false ) {
386
- foreach ( $content as $value ) {
387
- fwrite( $handle, str_replace( str_replace( '#', '%23', $this->options[$replace_color_option] ), str_replace( '#', '%23', $this->options[$logo_color_option] ), $value ) );
388
- }
389
- fclose( $handle );
390
- $this->options[$replace_color_option] = $this->options[$logo_color_option];
391
- update_option( 'heateor_sss', $this->options );
392
- return true;
393
- }
394
- }
395
- } catch ( Exception $e ) { }
396
- }
397
- return false;
398
-
399
- }
400
-
401
- /**
402
- * Include javascript files in admin.
403
- *
404
- * @since 1.0.0
405
- */
406
- public function admin_scripts() {
407
-
408
- ?>
409
- <script type="text/javascript">var heateorSssWebsiteUrl = '<?php echo home_url() ?>', heateorSssHelpBubbleTitle = "<?php echo __( 'Click to toggle help', 'sassy-social-share' ) ?>", heateorSssSharingAjaxUrl = '<?php echo get_admin_url() ?>admin-ajax.php';</script>
410
- <?php
411
- wp_enqueue_script( 'heateor_sss_admin_script', plugins_url( 'js/sassy-social-share-admin.js', __FILE__ ), array( 'jquery', 'jquery-ui-tabs' ), $this->version );
412
-
413
- }
414
-
415
- /**
416
- * Renders options page
417
- *
418
- * @since 1.0.0
419
- */
420
- public function options_page() {
421
-
422
- // message on saving options
423
- echo $this->settings_saved_notification();
424
- $options = $this->options;
425
- /**
426
- * The file rendering options page
427
- */
428
- require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/partials/sassy-social-share-options-page.php';
429
-
430
- }
431
-
432
- /**
433
- * Display notification message when plugin options are saved
434
- *
435
- * @since 1.0.0
436
- * @return string Notification after saving options
437
- */
438
- private function settings_saved_notification() {
439
-
440
- if ( isset( $_GET['settings-updated'] ) && $_GET['settings-updated'] == 'true' ) {
441
- return '<div id="setting-error-settings_updated" class="updated settings-error notice is-dismissible below-h2">
442
- <p><strong>' . __( 'Settings saved', 'sassy-social-share' ) . '</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">' . __( 'Dismiss this notice', 'sassy-social-share' ) . '</span></button></div>';
443
- }
444
-
445
- }
446
-
447
- /**
448
- * Check if plugin is active
449
- *
450
- * @since 1.0.0
451
- */
452
- private function is_plugin_active( $plugin_file ) {
453
- return in_array( $plugin_file, apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
454
- }
455
-
456
- /**
457
- * Set BuddyPress active flag to true
458
- *
459
- * @since 1.0.0
460
- */
461
- public function is_bp_loaded() {
462
-
463
- $this->is_bp_active = true;
464
-
465
- }
466
-
467
- /**
468
- * Clear Bitly shorturl cache
469
- *
470
- * @since 1.7
471
- */
472
- public function clear_shorturl_cache() {
473
-
474
- global $wpdb;
475
- $wpdb->query( "DELETE FROM $wpdb->postmeta WHERE meta_key = '_heateor_sss_bitly_url'" );
476
- die;
477
-
478
- }
479
-
480
- /**
481
- * Clear share counts cache
482
- *
483
- * @since 1.7
484
- */
485
- public function clear_share_count_cache() {
486
-
487
- global $wpdb;
488
- $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '_transient_heateor_sss_share_count_%'" );
489
- die;
490
-
491
- }
492
-
493
- /**
494
- * Save Twitter share count notification flag in DB
495
- *
496
- * @since 3.2.5
497
- */
498
- public function twitter_share_notification_read() {
499
-
500
- update_option( 'heateor_sss_twitter_share_notification_read', '1' );
501
- die;
502
-
503
- }
504
-
505
- /**
506
- * Save Twitcount notification flag in DB
507
- *
508
- * @since 3.2.9
509
- */
510
- public function twitcount_notification_read() {
511
-
512
- update_option( 'heateor_sss_twitcount_notification_read', '1' );
513
- die;
514
-
515
- }
516
-
517
- /**
518
- * Save GDPR notification flag in DB
519
- *
520
- * @since 3.2.1
521
- */
522
- public function gdpr_notification_read() {
523
-
524
- update_option( 'heateor_sss_gdpr_notification_read', '1' );
525
- die;
526
-
527
- }
528
-
529
- /**
530
- * Show notices in admin area
531
- *
532
- * @since 2.4
533
- */
534
- public function show_notices() {
535
-
536
- if ( current_user_can( 'manage_options' ) ) {
537
- if( get_transient( 'heateor-sss-admin-notice-on-activation' ) ) { ?>
538
- <div class="sassy-social-share-message notice notice-success is-dismissible">
539
- <p><strong><?php printf( __( 'Thanks for installing Sassy Social Share plugin', 'sassy-social-share' ), 'http://support.heateor.com/configure-sassy-social-share' ); ?></strong></p>
540
- <p>
541
- <a href="http://support.heateor.com/configure-sassy-social-share" target="_blank" class="button button-primary"><?php _e( 'Configure the Plugin', 'sassy-social-share' ); ?></a>
542
- </p>
543
- </div> <?php
544
- /* Delete transient, only display this notice once. */
545
- delete_transient( 'heateor-sss-admin-notice-on-activation' );
546
- }
547
-
548
- if ( defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && version_compare( '1.3.3', HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION ) > 0 ) {
549
- ?>
550
- <div class="error notice">
551
- <h3>Social Share - myCRED Integration</h3>
552
- <p><?php _e( 'Update "Social Share myCRED Integration" add-on for maximum compatibility with current version of Sassy Social Share', 'sassy-social-share' ) ?></p>
553
- </div>
554
- <?php
555
- }
556
-
557
- if ( version_compare( '3.2.1', $this->version ) <= 0 ) {
558
- if ( ! get_option( 'heateor_sss_gdpr_notification_read' ) ) {
559
- ?>
560
- <script type="text/javascript">
561
- function heateorSssGDPRNotificationRead(){
562
- jQuery.ajax({
563
- type: 'GET',
564
- url: '<?php echo get_admin_url() ?>admin-ajax.php',
565
- data: {
566
- action: 'heateor_sss_gdpr_notification_read'
567
- },
568
- success: function(data, textStatus, XMLHttpRequest){
569
- jQuery('#heateor_sss_gdpr_notification').fadeOut();
570
- }
571
- });
572
- }
573
- </script>
574
- <div id="heateor_sss_gdpr_notification" class="notice notice-warning">
575
- <h3>Sassy Social Share</h3>
576
- <p><?php echo sprintf( __( 'This plugin is GDPR compliant. You need to update the privacy policy of your website regarding the personal data this plugin saves, as mentioned <a href="%s" target="_blank">here</a>', 'sassy-social-share' ), 'http://support.heateor.com/gdpr-and-our-plugins' ); ?><input type="button" onclick="heateorSssGDPRNotificationRead()" style="margin-left: 5px;" class="button button-primary" value="<?php _e( 'Okay', 'sassy-social-share' ) ?>" /></p>
577
- </div>
578
- <?php
579
- }
580
- }
581
-
582
- if ( version_compare( '3.2.5', $this->version ) <= 0 ) {
583
- if ( (isset( $this->options['hor_enable'] ) && isset( $this->options['horizontal_re_providers'] ) && in_array( 'twitter', $this->options['horizontal_re_providers'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ) || ( isset( $this->options['vertical_enable'] ) && isset( $this->options['vertical_re_providers'] ) && in_array( 'twitter', $this->options['vertical_re_providers'] ) && ( isset($this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ) ) {
584
- if ( ! get_option( 'heateor_sss_twitter_share_notification_read' ) ) {
585
- ?>
586
- <script type="text/javascript">
587
- function heateorSssTwitterShareNotificationRead(){
588
- jQuery.ajax({
589
- type: 'GET',
590
- url: '<?php echo get_admin_url() ?>admin-ajax.php',
591
- data: {
592
- action: 'heateor_sss_twitter_share_notification_read'
593
- },
594
- success: function(data, textStatus, XMLHttpRequest){
595
- jQuery('#heateor_sss_twitter_share_notification').fadeOut();
596
- }
597
- });
598
- }
599
- </script>
600
- <div id="heateor_sss_twitter_share_notification" class="notice notice-warning">
601
- <h3>Sassy Social Share</h3>
602
- <p><?php echo sprintf( __( 'Twitter share counts are no longer working as newsharecounts.com is down. To continue showing the Twitter shares, just sign up <a href="%s" target="_blank">here</a> with this domain. No other steps needed.', 'sassy-social-share' ), 'https://opensharecount.com' ); ?><input type="button" onclick="heateorSssTwitterShareNotificationRead()" style="margin-left: 5px;" class="button button-primary" value="<?php _e( 'Okay', 'sassy-social-share' ) ?>" /></p>
603
- </div>
604
- <?php
605
- }
606
-
607
- if ( ! get_option( 'heateor_sss_twitcount_notification_read' ) ) {
608
- ?>
609
- <script type="text/javascript">
610
- function heateorSssTwitcountNotificationRead(){
611
- jQuery.ajax({
612
- type: 'GET',
613
- url: '<?php echo get_admin_url() ?>admin-ajax.php',
614
- data: {
615
- action: 'heateor_sss_twitcount_notification_read'
616
- },
617
- success: function(data, textStatus, XMLHttpRequest){
618
- jQuery('#heateor_sss_twitcount_notification').fadeOut();
619
- }
620
- });
621
- }
622
- </script>
623
- <div id="heateor_sss_twitcount_notification" class="notice notice-warning">
624
- <h3>Sassy Social Share</h3>
625
- <p><?php echo sprintf( __( 'Now plugin supports a new service Twitcount.com to show Twitter shares. To continue showing the Twitter shares, click "Give me my Twitter counts back" button at <a href="%s" target="_blank">their website</a> and register your website %s with them. No need to copy-paste any code from their website.', 'sassy-social-share' ), 'http://twitcount.com', home_url() ); ?><input type="button" onclick="heateorSssTwitcountNotificationRead()" style="margin-left: 5px;" class="button button-primary" value="<?php _e( 'Okay', 'sassy-social-share' ) ?>" /></p>
626
- </div>
627
- <?php
628
- }
629
- }
630
- }
631
- }
632
-
633
- }
634
-
635
- /**
636
- * Show links at "Plugins" page in admin area
637
- *
638
- * @since 2.5.1
639
- */
640
- public function add_links( $links ) {
641
-
642
- if ( is_array( $links ) ) {
643
- $addons_link = '<a href="https://www.heateor.com/add-ons" target="_blank">' . __( 'Add-Ons', 'sassy-social-share' ) . '</a>';
644
- $support_link = '<br/><a href="http://support.heateor.com" target="_blank">' . __( 'Support Documentation', 'sassy-social-share' ) . '</a>';
645
- $settings_link = '<a href="admin.php?page=heateor-sss-options">' . __( 'Settings', 'sassy-social-share' ) . '</a>';
646
-
647
- // place it before other links
648
- array_unshift( $links, $settings_link );
649
-
650
- $links[] = $addons_link;
651
- $links[] = $support_link;
652
- }
653
-
654
- return $links;
655
-
656
- }
657
-
658
- /**
659
- * Update options based on plugin version
660
- *
661
- * @since 2.5.8
662
- */
663
- public function update_db_check() {
664
-
665
- $current_version = get_option( 'heateor_sss_version' );
666
- if ( $current_version != $this->version ) {
667
- if ( $this->options['horizontal_font_color_default'] ) {
668
- heateor_sss_update_svg_css( $this->options['horizontal_font_color_default'], 'sassy-social-share-default-svg-horizontal' );
669
- }
670
- if ( $this->options['horizontal_font_color_hover'] ) {
671
- heateor_sss_update_svg_css( $this->options['horizontal_font_color_hover'], 'sassy-social-share-hover-svg-horizontal' );
672
- }
673
- if ( $this->options['vertical_font_color_default'] ) {
674
- heateor_sss_update_svg_css( $this->options['vertical_font_color_default'], 'sassy-social-share-default-svg-vertical' );
675
- }
676
- if ( $this->options['vertical_font_color_hover'] ) {
677
- heateor_sss_update_svg_css( $this->options['vertical_font_color_hover'], 'sassy-social-share-hover-svg-vertical' );
678
- }
679
-
680
- if ( version_compare( '3.3.9', $current_version ) > 0 ) {
681
- $this->options['bitly_access_token'] = '';
682
- update_option( 'heateor_sss', $this->options );
683
- }
684
-
685
- if ( version_compare( '3.3', $current_version ) > 0 ) {
686
- $this->options['youtube_username'] = '';
687
- $this->options['vertical_youtube_username'] = '';
688
- update_option( 'heateor_sss', $this->options );
689
- }
690
-
691
- if ( version_compare( '3.2.24', $current_version ) > 0 ) {
692
- if ( ! $this->options['fb_key'] && ! $this->options['fb_secret'] && $this->options['vertical_fb_key'] && $this->options['vertical_fb_secret'] ) {
693
- $this->options['fb_key'] = $this->options['vertical_fb_key'];
694
- $this->options['fb_secret'] = $this->options['vertical_fb_secret'];
695
- }
696
- update_option( 'heateor_sss', $this->options );
697
- }
698
-
699
- if ( version_compare( '3.2.20', $current_version ) > 0 ) {
700
- $this->options['fb_key'] = '';
701
- $this->options['fb_secret'] = '';
702
- $this->options['vertical_fb_key'] = '';
703
- $this->options['vertical_fb_secret'] = '';
704
- update_option( 'heateor_sss', $this->options );
705
- }
706
-
707
- if ( version_compare( '3.2.18', $current_version ) > 0 ) {
708
- $networks_to_remove = array( 'google_plus', 'google_plusone', 'google_plus_share' );
709
- if ( $this->options['vertical_re_providers'] ) {
710
- $this->options['vertical_re_providers'] = array_diff( $this->options['vertical_re_providers'], $networks_to_remove );
711
- }
712
- if ( $this->options['horizontal_re_providers'] ) {
713
- $this->options['horizontal_re_providers'] = array_diff( $this->options['horizontal_re_providers'], $networks_to_remove );
714
- }
715
- update_option( 'heateor_sss', $this->options );
716
- }
717
-
718
- if ( version_compare( '3.2.6', $current_version ) > 0 ) {
719
- $networks_to_remove = array( 'yahoo', 'Yahoo_Messenger', 'delicious', 'Polyvore', 'Oknotizie', 'Baidu', 'diHITT', 'Netlog', 'NewsVine', 'NUjij', 'Segnalo', 'Stumpedia', 'YouMob' );
720
- if ( $this->options['vertical_re_providers'] ) {
721
- $this->options['vertical_re_providers'] = array_diff( $this->options['vertical_re_providers'], $networks_to_remove );
722
- }
723
- if ( $this->options['horizontal_re_providers'] ) {
724
- $this->options['horizontal_re_providers'] = array_diff( $this->options['horizontal_re_providers'], $networks_to_remove );
725
- }
726
- update_option( 'heateor_sss', $this->options );
727
- }
728
-
729
- if ( version_compare( '3.2.5', $current_version ) > 0 ) {
730
- $this->options['tweet_count_service'] = 'opensharecount';
731
- update_option( 'heateor_sss', $this->options );
732
- }
733
-
734
- if ( version_compare( "3.2.4", $current_version ) > 0 ) {
735
- if ( isset( $this->options['horizontal_re_providers'] ) ) {
736
- foreach( $this->options['horizontal_re_providers'] as $key => $social_network ) {
737
- if ( $social_network == 'stumbleupon_badge' ) {
738
- unset( $this->options['horizontal_re_providers'][$key] );
739
- } elseif ( $social_network == 'stumbleupon' ) {
740
- $this->options['horizontal_re_providers'][$key] = 'mix';
741
- }
742
- }
743
- }
744
- if ( isset( $this->options['vertical_re_providers'] ) ) {
745
- foreach ( $this->options['vertical_re_providers'] as $key => $social_network ) {
746
- if ( $social_network == 'stumbleupon_badge' ) {
747
- unset( $this->options['vertical_re_providers'][$key] );
748
- } elseif ( $social_network == 'stumbleupon' ) {
749
- $this->options['vertical_re_providers'][$key] = 'mix';
750
- }
751
- }
752
- }
753
- update_option( 'heateor_sss', $this->options );
754
- }
755
-
756
- if ( version_compare( '1.7', $current_version ) > 0 ) {
757
- $this->options['share_count_cache_refresh_count'] = '10';
758
- $this->options['share_count_cache_refresh_unit'] = 'minutes';
759
- update_option( 'heateor_sss', $this->options );
760
- }
761
-
762
- if ( version_compare( '2.3', $current_version ) > 0 ) {
763
- $this->options['amp_enable'] = '1';
764
- update_option( 'heateor_sss', $this->options );
765
- }
766
-
767
- if ( version_compare( '2.4', $current_version ) > 0 ) {
768
- $this->options['instagram_username'] = '';
769
- $this->options['vertical_instagram_username'] = '';
770
- update_option( 'heateor_sss', $this->options );
771
- }
772
-
773
- if ( version_compare( '2.5.8', $current_version ) > 0 ) {
774
- $this->options['bottom_sharing_position_radio'] = 'responsive';
775
- update_option( 'heateor_sss', $this->options );
776
- }
777
-
778
- if ( version_compare( '3.0', $current_version ) > 0 ) {
779
- $this->options['comment_container_id'] = 'respond';
780
- $this->options['vertical_comment_container_id'] = 'respond';
781
- update_option( 'heateor_sss', $this->options );
782
- }
783
-
784
- // update plugin version in database
785
- update_option( 'heateor_sss_version', $this->version );
786
- }
787
-
788
- }
789
-
790
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Contains functions responsible for functionality at admin side
5
+ *
6
+ * @since 1.0.0
7
+ *
8
+ */
9
+
10
+ /**
11
+ * This class defines all code necessary for functionality at admin side
12
+ *
13
+ * @since 1.0.0
14
+ *
15
+ */
16
+ class Sassy_Social_Share_Admin {
17
+
18
+ /**
19
+ * Options saved in database
20
+ *
21
+ * @since 1.0.0
22
+ */
23
+ private $options;
24
+
25
+ /**
26
+ * Current version of the plugin
27
+ *
28
+ * @since 1.0.0
29
+ */
30
+ private $version;
31
+
32
+ /**
33
+ * Flag to check if BuddyPress is active
34
+ *
35
+ * @since 1.0.0
36
+ */
37
+ private $is_bp_active = false;
38
+
39
+ /**
40
+ * Get saved options
41
+ *
42
+ * @since 1.0.0
43
+ * @param array $options Plugin options saved in database
44
+ */
45
+ public function __construct( $options, $version ) {
46
+
47
+ $this->options = $options;
48
+ $this->version = $version;
49
+
50
+ }
51
+
52
+ /**
53
+ * Creates plugin menu in admin area
54
+ *
55
+ * @since 1.0.0
56
+ */
57
+ public function create_admin_menu() {
58
+
59
+ $page = add_menu_page( __( 'Sassy Social Share by Heateor', 'sassy-social-share' ), 'Sassy Social Share', 'manage_options', 'heateor-sss-options', array( $this, 'options_page' ), plugins_url( '../images/logo.png', __FILE__ ) );
60
+ // options
61
+ $options_page = add_submenu_page( 'heateor-sss-options', __( "Sassy Social Share", 'sassy-social-share' ), __( "Sassy Social Share", 'sassy-social-share' ), 'manage_options', 'heateor-sss-options', array( $this, 'options_page' ) );
62
+ //adding mycred addon in submenu
63
+ $my_cred = add_submenu_page( 'heateor-sss-options', __( "Social Share myCRED Integration", 'sassy-social-share' ), __( "Social Share myCRED Integration", 'sassy-social-share' ), 'manage_options', 'heateor-sss-mycred-options', array( $this, 'mycred_options_page' ) );
64
+ //adding recover sharing counts addon in submenu
65
+ $rssc = add_submenu_page( 'heateor-sss-options', __( "Recover Social Share Counts", 'sassy-social-share' ), __( "Recover Social Share Counts", 'sassy-social-share' ), 'manage_options', 'heateor-sss-rssc-options', array( $this, 'rssc_option_page' ) );
66
+ //adding analytics addon in submenu
67
+ $ssga = add_submenu_page( 'heateor-sss-options', __( "Social Analytics", 'sassy-social-share' ), __( "Social Analytics", 'sassy-social-share' ), 'manage_options', 'heateor-sss-ssga-options', array( $this, 'ssga_option_page' ) );
68
+
69
+ add_action( 'admin_print_scripts-' . $page, array( $this, 'admin_scripts' ) );
70
+ add_action( 'admin_print_scripts-' . $page, array( $this, 'admin_style' ) );
71
+ add_action( 'admin_print_scripts-' . $ssga, array( $this, 'admin_scripts' ) );
72
+ add_action( 'admin_print_scripts-' . $ssga, array( $this, 'admin_style' ) );
73
+ add_action( 'admin_print_scripts-' . $ssga, array( $this, 'fb_sdk_script' ) );
74
+ add_action( 'admin_print_styles-' . $ssga, array( $this, 'admin_options_style' ) );
75
+ add_action( 'admin_print_scripts-' . $rssc, array( $this, 'admin_scripts' ) );
76
+ add_action( 'admin_print_scripts-' . $rssc, array( $this, 'admin_style' ) );
77
+ add_action( 'admin_print_scripts-' . $rssc, array( $this, 'fb_sdk_script' ) );
78
+ add_action( 'admin_print_styles-' . $rssc, array( $this, 'admin_options_style' ) );
79
+ add_action( 'admin_print_scripts-' . $my_cred, array( $this, 'admin_scripts' ) );
80
+ add_action( 'admin_print_scripts-' . $my_cred, array( $this, 'admin_style' ) );
81
+ add_action( 'admin_print_scripts-' . $my_cred, array( $this, 'fb_sdk_script' ) );
82
+ add_action( 'admin_print_styles-' . $my_cred, array( $this, 'admin_options_style' ) );
83
+ add_action( 'admin_print_scripts-' . $page, array( $this, 'fb_sdk_script' ) );
84
+ add_action( 'admin_print_styles-' . $page, array( $this, 'admin_options_style' ) );
85
+ add_action( 'admin_print_scripts-' . $options_page, array( $this, 'admin_scripts' ) );
86
+ add_action( 'admin_print_scripts-' . $options_page, array( $this, 'fb_sdk_script' ) );
87
+ add_action( 'admin_print_styles-' . $options_page, array( $this, 'admin_style' ) );
88
+ add_action( 'admin_print_scripts-' . $options_page, array( $this, 'admin_options_scripts' ) );
89
+ add_action( 'admin_print_styles-' . $options_page, array( $this, 'admin_options_style' ) );
90
+
91
+ }
92
+
93
+ /**
94
+ * myCRED integration options page
95
+ *
96
+ * @since 3.3.8
97
+ */
98
+ public function mycred_options_page() {
99
+ ?>
100
+ <div class="metabox-holder columns-2" id="post-body">
101
+ <h1>Social Share myCRED Integration</h1>
102
+ <div class="heateor_sss_left_column">
103
+ <a href="https://www.heateor.com/sassy-social-share-premium/" target="_blank"><img src="<?php echo plugins_url( '../images/unlock/mycred-options.png', __FILE__ ) ?>" /></a>
104
+ </div>
105
+ <?php include 'partials/sassy-social-share-about.php'; ?>
106
+ </div>
107
+ <?php
108
+ }
109
+
110
+ /**
111
+ * Options page for Recover Social Share Counts module
112
+ *
113
+ * @since 3.3.8
114
+ */
115
+ public function rssc_option_page() {
116
+ ?>
117
+ <div class="metabox-holder columns-2" id="post-body">
118
+ <h1>Recover Social Share Counts</h1>
119
+ <div class="heateor_sss_left_column">
120
+ <a href="https://www.heateor.com/sassy-social-share-premium/" target="_blank"><img src="<?php echo plugins_url( '../images/unlock/rssc-options.png', __FILE__ ) ?>" /></a>
121
+ </div>
122
+ <?php include 'partials/sassy-social-share-about.php'; ?>
123
+ </div>
124
+ <?php
125
+ }
126
+
127
+ /**
128
+ * Options page for Social Analytics module
129
+ *
130
+ * @since 3.3.8
131
+ */
132
+ public function ssga_option_page() {
133
+ ?>
134
+ <div class="metabox-holder columns-2" id="post-body">
135
+ <h1>Social Analytics</h1>
136
+ <div class="heateor_sss_left_column">
137
+ <a href="https://www.heateor.com/sassy-social-share-premium/" target="_blank"><img src="<?php echo plugins_url( '../images/unlock/ssga-options.png', __FILE__ ) ?>" /></a>
138
+ </div>
139
+ <?php include 'partials/sassy-social-share-about.php'; ?>
140
+ </div>
141
+ <?php
142
+ }
143
+
144
+ /**
145
+ * Register plugin settings and its sanitization callback.
146
+ *
147
+ * @since 1.0.0
148
+ */
149
+ public function options_init() {
150
+
151
+ register_setting( 'heateor_sss_options', 'heateor_sss', array( $this, 'validate_options' ) );
152
+
153
+ if ( current_user_can( 'manage_options' ) ) {
154
+ // show option to disable sharing on particular page/post
155
+ $post_types = get_post_types( array( 'public' => true ), 'names', 'and' );
156
+ $post_types = array_unique( array_merge( $post_types, array( 'post', 'page' ) ) );
157
+ foreach ( $post_types as $type ) {
158
+ add_meta_box( 'heateor_sss_meta', 'Sassy Social Share', array( $this, 'sharing_meta_setup' ), $type );
159
+ }
160
+ // save sharing meta on post/page save
161
+ add_action( 'save_post', array( $this, 'save_sharing_meta' ) );
162
+ }
163
+
164
+ }
165
+
166
+ /**
167
+ * Update options in all the old blogs.
168
+ *
169
+ * @since 1.0.0
170
+ */
171
+ public function update_old_blogs( $old_config ) {
172
+
173
+ $option_parts = explode( '_', current_filter() );
174
+ $option = $option_parts[2] . '_' . $option_parts[3] . '_' . $option_parts[4];
175
+ $new_config = get_option( $option );
176
+ if ( isset( $new_config['config_multisite'] ) && $new_config['config_multisite'] == 1 ) {
177
+ $blogs = get_blog_list( 0, 'all' );
178
+ foreach ( $blogs as $blog ) {
179
+ update_blog_option( $blog['blog_id'], $option, $new_config );
180
+ }
181
+ }
182
+
183
+ }
184
+
185
+ /**
186
+ * Replicate the options to the new blog created.
187
+ *
188
+ * @since 1.0.0
189
+ */
190
+ public function replicate_settings( $blog_id ) {
191
+
192
+ add_blog_option( $blog_id, 'heateor_sss', $this->options );
193
+
194
+ }
195
+
196
+ /**
197
+ * Show sharing meta options
198
+ *
199
+ * @since 1.0.0
200
+ */
201
+ public function sharing_meta_setup() {
202
+
203
+ global $post;
204
+ $postType = $post->post_type;
205
+ $sharing_meta = get_post_meta( $post->ID, '_heateor_sss_meta', true );
206
+ ?>
207
+ <p>
208
+ <label for="heateor_sss_sharing">
209
+ <input type="checkbox" name="_heateor_sss_meta[sharing]" id="heateor_sss_sharing" value="1" <?php echo is_array( $sharing_meta ) && isset( $sharing_meta['sharing'] ) && $sharing_meta['sharing'] == '1' ? 'checked' : ''; ?> />
210
+ <?php _e( 'Disable Standard Sharing interface on this ' . $postType, 'sassy-social-share' ) ?>
211
+ </label>
212
+ <br/>
213
+ <label for="heateor_sss_vertical_sharing">
214
+ <input type="checkbox" name="_heateor_sss_meta[vertical_sharing]" id="heateor_sss_vertical_sharing" value="1" <?php echo is_array( $sharing_meta ) && isset( $sharing_meta['vertical_sharing'] ) && $sharing_meta['vertical_sharing'] == '1' ? 'checked' : ''; ?> />
215
+ <?php _e( 'Disable Floating Sharing interface on this ' . $postType, 'sassy-social-share' ) ?>
216
+ </label>
217
+ <?php
218
+ $valid_networks = array( 'twitter', 'buffer', 'reddit', 'pinterest', 'vkontakte', 'Odnoklassniki', 'Fintel' );
219
+ if ( isset( $this->options['hor_enable'] ) && isset( $this->options['horizontal_counts'] ) && isset( $this->options['horizontal_re_providers'] ) && count( $this->options['horizontal_re_providers'] ) > 0 ) {
220
+ ?>
221
+ <p>
222
+ <strong style="font-weight: bold"><?php _e( 'Standard sharing', 'sassy-social-share' ) ?></strong>
223
+ <?php
224
+ foreach ( array_intersect( $this->options['horizontal_re_providers'], $valid_networks ) as $network ) {
225
+ ?>
226
+ <br/>
227
+ <label for="heateor_sss_<?php echo $network ?>_horizontal_sharing_count">
228
+ <span style="width: 242px; float:left"><?php _e( 'Starting share count for ' . ucfirst( str_replace ( '_', ' ', $network ) ), 'sassy-social-share' ) ?></span>
229
+ <input type="text" name="_heateor_sss_meta[<?php echo $network ?>_horizontal_count]" id="heateor_sss_<?php echo $network ?>_horizontal_sharing_count" value="<?php echo is_array( $sharing_meta ) && isset( $sharing_meta[$network . '_horizontal_count'] ) ? $sharing_meta[$network . '_horizontal_count'] : '' ?>" />
230
+ </label>
231
+ <?php
232
+ }
233
+ ?>
234
+ </p>
235
+ <?php
236
+ }
237
+
238
+ if ( isset( $this->options['vertical_enable'] ) && isset( $this->options['vertical_counts'] ) && isset( $this->options['vertical_re_providers'] ) && count( $this->options['vertical_re_providers'] ) > 0 ) {
239
+ ?>
240
+ <p>
241
+ <strong style="font-weight: bold"><?php _e( 'Floating sharing', 'sassy-social-share' ) ?></strong>
242
+ <?php
243
+ foreach ( array_intersect( $this->options['vertical_re_providers'], $valid_networks ) as $network ) {
244
+ ?>
245
+ <br/>
246
+ <label for="heateor_sss_<?php echo $network ?>_vertical_sharing_count">
247
+ <span style="width: 242px; float:left"><?php _e( 'Starting share count for ' . ucfirst( str_replace ( '_', ' ', $network ) ), 'sassy-social-share' ) ?></span>
248
+ <input type="text" name="_heateor_sss_meta[<?php echo $network ?>_vertical_count]" id="heateor_sss_<?php echo $network ?>_vertical_sharing_count" value="<?php echo is_array( $sharing_meta ) && isset( $sharing_meta[$network . '_vertical_count'] ) ? $sharing_meta[$network . '_vertical_count'] : '' ?>" />
249
+ </label>
250
+ <?php
251
+ }
252
+ ?>
253
+ </p>
254
+ <?php
255
+ }
256
+ ?>
257
+ </p>
258
+ <?php
259
+ echo '<input type="hidden" name="heateor_sss_meta_nonce" value="' . wp_create_nonce( __FILE__ ) . '" />';
260
+
261
+ }
262
+
263
+ /**
264
+ * Save sharing meta fields.
265
+ *
266
+ * @since 1.0.0
267
+ */
268
+ public function save_sharing_meta( $post_id ) {
269
+
270
+ // make sure data came from our meta box
271
+ if ( ! isset( $_POST['heateor_sss_meta_nonce'] ) || ! wp_verify_nonce( $_POST['heateor_sss_meta_nonce'], __FILE__ ) ) {
272
+ return $post_id;
273
+ }
274
+ // check user permissions
275
+ if ( $_POST['post_type'] == 'page' ) {
276
+ if ( ! current_user_can( 'edit_page', $post_id ) ) {
277
+ return $post_id;
278
+ }
279
+ } else {
280
+ if ( ! current_user_can( 'edit_post', $post_id ) ) {
281
+ return $post_id;
282
+ }
283
+ }
284
+ if ( isset( $_POST['_heateor_sss_meta'] ) ) {
285
+ $newData = $_POST['_heateor_sss_meta'];
286
+ } else {
287
+ $newData = array( 'sharing' => 0, 'vertical_sharing' => 0 );
288
+ }
289
+ update_post_meta( $post_id, '_heateor_sss_meta', $newData );
290
+ return $post_id;
291
+
292
+ }
293
+
294
+ /**
295
+ * Sanitization callback for plugin options.
296
+ *
297
+ * IMPROVEMENT: complexity can be reduced (this function is called on each option page validation and "if ( $k == 'providers' ) {"
298
+ * condition is being checked every time)
299
+ * @since 1.0.0
300
+ */
301
+ public function validate_options( $heateorSssOptions ) {
302
+
303
+ foreach ( $heateorSssOptions as $k => $v ) {
304
+ if ( is_string( $v ) ) {
305
+ $heateorSssOptions[$k] = esc_attr( trim( $v ) );
306
+ }
307
+ }
308
+ return $heateorSssOptions;
309
+
310
+ }
311
+
312
+ /**
313
+ * Include Javascript at plugin options page in admin area
314
+ *
315
+ * @since 1.0.0
316
+ */
317
+ public function admin_options_scripts() {
318
+
319
+ wp_enqueue_script( 'heateor_sss_admin_options_script', plugins_url( 'js/sassy-social-share-options.js', __FILE__ ), array( 'jquery', 'jquery-ui-sortable' ), $this->version );
320
+ wp_add_inline_script( 'heateor_sss_admin_options_script', 'var heateorSssPluginPageUrl = "' . admin_url() . 'admin.php?page=heateor-sss-options";var heateorSssAjaxLoader = "' . plugins_url( '../images/ajax_loader.gif', __FILE__ ) . '"', $position = 'before' );
321
+
322
+ }
323
+
324
+ /**
325
+ * Include Javascript SDK in admin.
326
+ *
327
+ * @since 1.0.0
328
+ */
329
+ public function fb_sdk_script() {
330
+
331
+ wp_enqueue_script( 'heateor_sss_fb_sdk_script', plugins_url( 'js/sassy-social-share-fb-sdk.js', __FILE__ ), false, $this->version );
332
+
333
+ }
334
+
335
+ /**
336
+ * Include CSS files in admin.
337
+ *
338
+ * @since 1.0.0
339
+ */
340
+ public function admin_style() {
341
+
342
+ wp_enqueue_style( 'heateor_sss_admin_style', plugins_url( 'css/sassy-social-share-admin.css', __FILE__ ), false, $this->version );
343
+
344
+ }
345
+
346
+ /**
347
+ * Include CSS files at plugin options page in admin area
348
+ *
349
+ * @since 1.0.0
350
+ */
351
+ public function admin_options_style() {
352
+
353
+ wp_enqueue_style( 'heateor_sss_admin_svg', plugins_url( 'css/sassy-social-share-svg.css', __FILE__ ), false, $this->version );
354
+ if ( $this->options['horizontal_font_color_default'] != '' ) {
355
+ $updated = $this->update_css( 'horizontal_sharing_replace_color', 'horizontal_font_color_default', 'sassy-social-share-default-svg-horizontal' );
356
+ wp_enqueue_style( 'heateor_sss_admin_svg_horizontal', plugins_url( 'css/sassy-social-share-default-svg-horizontal.css', __FILE__ ), false, ( $updated === true ? rand() : $this->version ) );
357
+ }
358
+ if ( $this->options['horizontal_font_color_hover'] != '' ) {
359
+ $updated = $this->update_css( 'horizontal_sharing_replace_color_hover', 'horizontal_font_color_hover', 'sassy-social-share-hover-svg-horizontal' );
360
+ wp_enqueue_style( 'heateor_sss_admin_svg_horizontal_hover', plugins_url( 'css/sassy-social-share-hover-svg-horizontal.css', __FILE__ ), false, ( $updated === true ? rand() : $this->version ) );
361
+ }
362
+ if ( $this->options['vertical_font_color_default'] != '' ) {
363
+ $updated = $this->update_css( 'vertical_sharing_replace_color', 'vertical_font_color_default', 'sassy-social-share-default-svg-vertical' );
364
+ wp_enqueue_style( 'heateor_sss_admin_svg_vertical', plugins_url( 'css/sassy-social-share-default-svg-vertical.css', __FILE__ ), false, ( $updated === true ? rand() : $this->version ) );
365
+ }
366
+ if ( $this->options['vertical_font_color_hover'] != '' ) {
367
+ $updated = $this->update_css( 'vertical_sharing_replace_color_hover', 'vertical_font_color_hover', 'sassy-social-share-hover-svg-vertical' );
368
+ wp_enqueue_style( 'heateor_sss_admin_svg_vertical_hover', plugins_url( 'css/sassy-social-share-hover-svg-vertical.css', __FILE__ ), false, ( $updated === true ? rand() : $this->version ) );
369
+ }
370
+
371
+ }
372
+
373
+ /**
374
+ * Update CSS file
375
+ *
376
+ * @since 1.0.0
377
+ */
378
+ private function update_css( $replace_color_option, $logo_color_option, $css_file ) {
379
+
380
+ if ( $this->options[$replace_color_option] != $this->options[$logo_color_option] ) {
381
+ $path = plugin_dir_url( __FILE__ ) . 'css/' . $css_file . '.css';
382
+ try {
383
+ $content = file( $path );
384
+ if ( $content !== false ) {
385
+ $handle = fopen( dirname( __FILE__ ) . '/css/' . $css_file . '.css','w' );
386
+ if ( $handle !== false ) {
387
+ foreach ( $content as $value ) {
388
+ fwrite( $handle, str_replace( str_replace( '#', '%23', $this->options[$replace_color_option] ), str_replace( '#', '%23', $this->options[$logo_color_option] ), $value ) );
389
+ }
390
+ fclose( $handle );
391
+ $this->options[$replace_color_option] = $this->options[$logo_color_option];
392
+ update_option( 'heateor_sss', $this->options );
393
+ return true;
394
+ }
395
+ }
396
+ } catch ( Exception $e ) { }
397
+ }
398
+ return false;
399
+
400
+ }
401
+
402
+ /**
403
+ * Include javascript files in admin.
404
+ *
405
+ * @since 1.0.0
406
+ */
407
+ public function admin_scripts() {
408
+
409
+ ?>
410
+ <script type="text/javascript">var heateorSssWebsiteUrl = '<?php echo home_url() ?>', heateorSssHelpBubbleTitle = "<?php echo __( 'Click to toggle help', 'sassy-social-share' ) ?>", heateorSssSharingAjaxUrl = '<?php echo get_admin_url() ?>admin-ajax.php';</script>
411
+ <?php
412
+ wp_enqueue_script( 'heateor_sss_admin_script', plugins_url( 'js/sassy-social-share-admin.js', __FILE__ ), array( 'jquery', 'jquery-ui-tabs' ), $this->version );
413
+
414
+ }
415
+
416
+ /**
417
+ * Export plugin configuration
418
+ *
419
+ * @since 3.3.22
420
+ */
421
+ public function export_config() {
422
+
423
+ $config = get_option( 'heateor_sss' );
424
+ header( 'Content-Type: application/json' );
425
+ die( json_encode(
426
+ array(
427
+ 'config' => base64_encode( maybe_serialize( $config ) )
428
+ )
429
+ ) );
430
+
431
+ }
432
+
433
+ /**
434
+ * Import plugin configuration
435
+ *
436
+ * @since 3.3.22
437
+ */
438
+ public function import_config() {
439
+
440
+ if ( isset( $_POST['config'] ) && strlen( trim( $_POST['config'] ) ) > 0 ) {
441
+ $config = maybe_unserialize( base64_decode( trim( $_POST['config'] ) ) );
442
+ if ( is_array( $config ) && count( $config ) > 0 ) {
443
+ update_option( 'heateor_sss', $config );
444
+ header( 'Content-Type: application/json' );
445
+ die( json_encode(
446
+ array(
447
+ 'success' => 1
448
+ )
449
+ ) );
450
+ }
451
+ }
452
+ die;
453
+
454
+ }
455
+
456
+ /**
457
+ * Renders options page
458
+ *
459
+ * @since 1.0.0
460
+ */
461
+ public function options_page() {
462
+
463
+ // message on saving options
464
+ echo $this->settings_saved_notification();
465
+ $options = $this->options;
466
+ /**
467
+ * The file rendering options page
468
+ */
469
+ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/partials/sassy-social-share-options-page.php';
470
+
471
+ }
472
+
473
+ /**
474
+ * Display notification message when plugin options are saved
475
+ *
476
+ * @since 1.0.0
477
+ * @return string Notification after saving options
478
+ */
479
+ private function settings_saved_notification() {
480
+
481
+ if ( isset( $_GET['settings-updated'] ) && $_GET['settings-updated'] == 'true' ) {
482
+ return '<div id="setting-error-settings_updated" class="updated settings-error notice is-dismissible below-h2">
483
+ <p><strong>' . __( 'Settings saved', 'sassy-social-share' ) . '</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">' . __( 'Dismiss this notice', 'sassy-social-share' ) . '</span></button></div>';
484
+ }
485
+
486
+ }
487
+
488
+ /**
489
+ * Check if plugin is active
490
+ *
491
+ * @since 1.0.0
492
+ */
493
+ private function is_plugin_active( $plugin_file ) {
494
+ return in_array( $plugin_file, apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
495
+ }
496
+
497
+ /**
498
+ * Set BuddyPress active flag to true
499
+ *
500
+ * @since 1.0.0
501
+ */
502
+ public function is_bp_loaded() {
503
+
504
+ $this->is_bp_active = true;
505
+
506
+ }
507
+
508
+ /**
509
+ * Clear Bitly shorturl cache
510
+ *
511
+ * @since 1.7
512
+ */
513
+ public function clear_shorturl_cache() {
514
+
515
+ global $wpdb;
516
+ $wpdb->query( "DELETE FROM $wpdb->postmeta WHERE meta_key = '_heateor_sss_bitly_url'" );
517
+ die;
518
+
519
+ }
520
+
521
+ /**
522
+ * Clear share counts cache
523
+ *
524
+ * @since 1.7
525
+ */
526
+ public function clear_share_count_cache() {
527
+
528
+ global $wpdb;
529
+ $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '_transient_heateor_sss_share_count_%'" );
530
+ die;
531
+
532
+ }
533
+
534
+ /**
535
+ * Save Twitter share count notification flag in DB
536
+ *
537
+ * @since 3.2.5
538
+ */
539
+ public function twitter_share_notification_read() {
540
+
541
+ update_option( 'heateor_sss_twitter_share_notification_read', '1' );
542
+ die;
543
+
544
+ }
545
+
546
+ /**
547
+ * Save Twitcount notification flag in DB
548
+ *
549
+ * @since 3.2.9
550
+ */
551
+ public function twitcount_notification_read() {
552
+
553
+ update_option( 'heateor_sss_twitcount_notification_read', '1' );
554
+ die;
555
+
556
+ }
557
+
558
+ /**
559
+ * Save GDPR notification flag in DB
560
+ *
561
+ * @since 3.2.1
562
+ */
563
+ public function gdpr_notification_read() {
564
+
565
+ update_option( 'heateor_sss_gdpr_notification_read', '1' );
566
+ die;
567
+
568
+ }
569
+
570
+ /**
571
+ * Show notices in admin area
572
+ *
573
+ * @since 2.4
574
+ */
575
+ public function show_notices() {
576
+
577
+ if ( current_user_can( 'manage_options' ) ) {
578
+ if( get_transient( 'heateor-sss-admin-notice-on-activation' ) ) { ?>
579
+ <div class="sassy-social-share-message notice notice-success is-dismissible">
580
+ <p><strong><?php printf( __( 'Thanks for installing Sassy Social Share plugin', 'sassy-social-share' ), 'http://support.heateor.com/configure-sassy-social-share' ); ?></strong></p>
581
+ <p>
582
+ <a href="http://support.heateor.com/configure-sassy-social-share" target="_blank" class="button button-primary"><?php _e( 'Configure the Plugin', 'sassy-social-share' ); ?></a>
583
+ </p>
584
+ </div> <?php
585
+ /* Delete transient, only display this notice once. */
586
+ delete_transient( 'heateor-sss-admin-notice-on-activation' );
587
+ }
588
+
589
+ if ( defined( 'HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION' ) && version_compare( '1.3.3', HEATEOR_SOCIAL_SHARE_MYCRED_INTEGRATION_VERSION ) > 0 ) {
590
+ ?>
591
+ <div class="error notice">
592
+ <h3>Social Share - myCRED Integration</h3>
593
+ <p><?php _e( 'Update "Social Share myCRED Integration" add-on for maximum compatibility with current version of Sassy Social Share', 'sassy-social-share' ) ?></p>
594
+ </div>
595
+ <?php
596
+ }
597
+
598
+ if ( version_compare( '3.2.1', $this->version ) <= 0 ) {
599
+ if ( ! get_option( 'heateor_sss_gdpr_notification_read' ) ) {
600
+ ?>
601
+ <script type="text/javascript">
602
+ function heateorSssGDPRNotificationRead(){
603
+ jQuery.ajax({
604
+ type: 'GET',
605
+ url: '<?php echo get_admin_url() ?>admin-ajax.php',
606
+ data: {
607
+ action: 'heateor_sss_gdpr_notification_read'
608
+ },
609
+ success: function(data, textStatus, XMLHttpRequest){
610
+ jQuery('#heateor_sss_gdpr_notification').fadeOut();
611
+ }
612
+ });
613
+ }
614
+ </script>
615
+ <div id="heateor_sss_gdpr_notification" class="notice notice-warning">
616
+ <h3>Sassy Social Share</h3>
617
+ <p><?php echo sprintf( __( 'This plugin is GDPR compliant. You need to update the privacy policy of your website regarding the personal data this plugin saves, as mentioned <a href="%s" target="_blank">here</a>', 'sassy-social-share' ), 'http://support.heateor.com/gdpr-and-our-plugins' ); ?><input type="button" onclick="heateorSssGDPRNotificationRead()" style="margin-left: 5px;" class="button button-primary" value="<?php _e( 'Okay', 'sassy-social-share' ) ?>" /></p>
618
+ </div>
619
+ <?php
620
+ }
621
+ }
622
+
623
+ if ( version_compare( '3.2.5', $this->version ) <= 0 ) {
624
+ if ( (isset( $this->options['hor_enable'] ) && isset( $this->options['horizontal_re_providers'] ) && in_array( 'twitter', $this->options['horizontal_re_providers'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ) || ( isset( $this->options['vertical_enable'] ) && isset( $this->options['vertical_re_providers'] ) && in_array( 'twitter', $this->options['vertical_re_providers'] ) && ( isset($this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ) ) {
625
+ if ( ! get_option( 'heateor_sss_twitter_share_notification_read' ) ) {
626
+ ?>
627
+ <script type="text/javascript">
628
+ function heateorSssTwitterShareNotificationRead(){
629
+ jQuery.ajax({
630
+ type: 'GET',
631
+ url: '<?php echo get_admin_url() ?>admin-ajax.php',
632
+ data: {
633
+ action: 'heateor_sss_twitter_share_notification_read'
634
+ },
635
+ success: function(data, textStatus, XMLHttpRequest){
636
+ jQuery('#heateor_sss_twitter_share_notification').fadeOut();
637
+ }
638
+ });
639
+ }
640
+ </script>
641
+ <div id="heateor_sss_twitter_share_notification" class="notice notice-warning">
642
+ <h3>Sassy Social Share</h3>
643
+ <p><?php echo sprintf( __( 'Twitter share counts are no longer working as newsharecounts.com is down. To continue showing the Twitter shares, just sign up <a href="%s" target="_blank">here</a> with this domain. No other steps needed.', 'sassy-social-share' ), 'https://opensharecount.com' ); ?><input type="button" onclick="heateorSssTwitterShareNotificationRead()" style="margin-left: 5px;" class="button button-primary" value="<?php _e( 'Okay', 'sassy-social-share' ) ?>" /></p>
644
+ </div>
645
+ <?php
646
+ }
647
+
648
+ if ( ! get_option( 'heateor_sss_twitcount_notification_read' ) ) {
649
+ ?>
650
+ <script type="text/javascript">
651
+ function heateorSssTwitcountNotificationRead(){
652
+ jQuery.ajax({
653
+ type: 'GET',
654
+ url: '<?php echo get_admin_url() ?>admin-ajax.php',
655
+ data: {
656
+ action: 'heateor_sss_twitcount_notification_read'
657
+ },
658
+ success: function(data, textStatus, XMLHttpRequest){
659
+ jQuery('#heateor_sss_twitcount_notification').fadeOut();
660
+ }
661
+ });
662
+ }
663
+ </script>
664
+ <div id="heateor_sss_twitcount_notification" class="notice notice-warning">
665
+ <h3>Sassy Social Share</h3>
666
+ <p><?php echo sprintf( __( 'Now plugin supports a new service Twitcount.com to show Twitter shares. To continue showing the Twitter shares, click "Give me my Twitter counts back" button at <a href="%s" target="_blank">their website</a> and register your website %s with them. No need to copy-paste any code from their website.', 'sassy-social-share' ), 'http://twitcount.com', home_url() ); ?><input type="button" onclick="heateorSssTwitcountNotificationRead()" style="margin-left: 5px;" class="button button-primary" value="<?php _e( 'Okay', 'sassy-social-share' ) ?>" /></p>
667
+ </div>
668
+ <?php
669
+ }
670
+ }
671
+ }
672
+ }
673
+
674
+ }
675
+
676
+ /**
677
+ * Show links at "Plugins" page in admin area
678
+ *
679
+ * @since 2.5.1
680
+ */
681
+ public function add_links( $links ) {
682
+
683
+ if ( is_array( $links ) ) {
684
+ $addons_link = '<a href="https://www.heateor.com/add-ons" target="_blank">' . __( 'Add-Ons', 'sassy-social-share' ) . '</a>';
685
+ $support_link = '<br/><a href="http://support.heateor.com" target="_blank">' . __( 'Support Documentation', 'sassy-social-share' ) . '</a>';
686
+ $settings_link = '<a href="admin.php?page=heateor-sss-options">' . __( 'Settings', 'sassy-social-share' ) . '</a>';
687
+
688
+ // place it before other links
689
+ array_unshift( $links, $settings_link );
690
+
691
+ $links[] = $addons_link;
692
+ $links[] = $support_link;
693
+ }
694
+
695
+ return $links;
696
+
697
+ }
698
+
699
+ /**
700
+ * Update options based on plugin version
701
+ *
702
+ * @since 2.5.8
703
+ */
704
+ public function update_db_check() {
705
+
706
+ $current_version = get_option( 'heateor_sss_version' );
707
+ if ( $current_version != $this->version ) {
708
+ if ( $this->options['horizontal_font_color_default'] ) {
709
+ heateor_sss_update_svg_css( $this->options['horizontal_font_color_default'], 'sassy-social-share-default-svg-horizontal' );
710
+ }
711
+ if ( $this->options['horizontal_font_color_hover'] ) {
712
+ heateor_sss_update_svg_css( $this->options['horizontal_font_color_hover'], 'sassy-social-share-hover-svg-horizontal' );
713
+ }
714
+ if ( $this->options['vertical_font_color_default'] ) {
715
+ heateor_sss_update_svg_css( $this->options['vertical_font_color_default'], 'sassy-social-share-default-svg-vertical' );
716
+ }
717
+ if ( $this->options['vertical_font_color_hover'] ) {
718
+ heateor_sss_update_svg_css( $this->options['vertical_font_color_hover'], 'sassy-social-share-hover-svg-vertical' );
719
+ }
720
+
721
+ if ( version_compare( '3.3.9', $current_version ) > 0 ) {
722
+ $this->options['bitly_access_token'] = '';
723
+ update_option( 'heateor_sss', $this->options );
724
+ }
725
+
726
+ if ( version_compare( '3.3', $current_version ) > 0 ) {
727
+ $this->options['youtube_username'] = '';
728
+ $this->options['vertical_youtube_username'] = '';
729
+ update_option( 'heateor_sss', $this->options );
730
+ }
731
+
732
+ if ( version_compare( '3.2.24', $current_version ) > 0 ) {
733
+ if ( ! $this->options['fb_key'] && ! $this->options['fb_secret'] && $this->options['vertical_fb_key'] && $this->options['vertical_fb_secret'] ) {
734
+ $this->options['fb_key'] = $this->options['vertical_fb_key'];
735
+ $this->options['fb_secret'] = $this->options['vertical_fb_secret'];
736
+ }
737
+ update_option( 'heateor_sss', $this->options );
738
+ }
739
+
740
+ if ( version_compare( '3.2.20', $current_version ) > 0 ) {
741
+ $this->options['fb_key'] = '';
742
+ $this->options['fb_secret'] = '';
743
+ $this->options['vertical_fb_key'] = '';
744
+ $this->options['vertical_fb_secret'] = '';
745
+ update_option( 'heateor_sss', $this->options );
746
+ }
747
+
748
+ if ( version_compare( '3.2.18', $current_version ) > 0 ) {
749
+ $networks_to_remove = array( 'google_plus', 'google_plusone', 'google_plus_share' );
750
+ if ( $this->options['vertical_re_providers'] ) {
751
+ $this->options['vertical_re_providers'] = array_diff( $this->options['vertical_re_providers'], $networks_to_remove );
752
+ }
753
+ if ( $this->options['horizontal_re_providers'] ) {
754
+ $this->options['horizontal_re_providers'] = array_diff( $this->options['horizontal_re_providers'], $networks_to_remove );
755
+ }
756
+ update_option( 'heateor_sss', $this->options );
757
+ }
758
+
759
+ if ( version_compare( '3.2.6', $current_version ) > 0 ) {
760
+ $networks_to_remove = array( 'yahoo', 'Yahoo_Messenger', 'delicious', 'Polyvore', 'Oknotizie', 'Baidu', 'diHITT', 'Netlog', 'NewsVine', 'NUjij', 'Segnalo', 'Stumpedia', 'YouMob' );
761
+ if ( $this->options['vertical_re_providers'] ) {
762
+ $this->options['vertical_re_providers'] = array_diff( $this->options['vertical_re_providers'], $networks_to_remove );
763
+ }
764
+ if ( $this->options['horizontal_re_providers'] ) {
765
+ $this->options['horizontal_re_providers'] = array_diff( $this->options['horizontal_re_providers'], $networks_to_remove );
766
+ }
767
+ update_option( 'heateor_sss', $this->options );
768
+ }
769
+
770
+ if ( version_compare( '3.2.5', $current_version ) > 0 ) {
771
+ $this->options['tweet_count_service'] = 'opensharecount';
772
+ update_option( 'heateor_sss', $this->options );
773
+ }
774
+
775
+ if ( version_compare( "3.2.4", $current_version ) > 0 ) {
776
+ if ( isset( $this->options['horizontal_re_providers'] ) ) {
777
+ foreach( $this->options['horizontal_re_providers'] as $key => $social_network ) {
778
+ if ( $social_network == 'stumbleupon_badge' ) {
779
+ unset( $this->options['horizontal_re_providers'][$key] );
780
+ } elseif ( $social_network == 'stumbleupon' ) {
781
+ $this->options['horizontal_re_providers'][$key] = 'mix';
782
+ }
783
+ }
784
+ }
785
+ if ( isset( $this->options['vertical_re_providers'] ) ) {
786
+ foreach ( $this->options['vertical_re_providers'] as $key => $social_network ) {
787
+ if ( $social_network == 'stumbleupon_badge' ) {
788
+ unset( $this->options['vertical_re_providers'][$key] );
789
+ } elseif ( $social_network == 'stumbleupon' ) {
790
+ $this->options['vertical_re_providers'][$key] = 'mix';
791
+ }
792
+ }
793
+ }
794
+ update_option( 'heateor_sss', $this->options );
795
+ }
796
+
797
+ if ( version_compare( '1.7', $current_version ) > 0 ) {
798
+ $this->options['share_count_cache_refresh_count'] = '10';
799
+ $this->options['share_count_cache_refresh_unit'] = 'minutes';
800
+ update_option( 'heateor_sss', $this->options );
801
+ }
802
+
803
+ if ( version_compare( '2.3', $current_version ) > 0 ) {
804
+ $this->options['amp_enable'] = '1';
805
+ update_option( 'heateor_sss', $this->options );
806
+ }
807
+
808
+ if ( version_compare( '2.4', $current_version ) > 0 ) {
809
+ $this->options['instagram_username'] = '';
810
+ $this->options['vertical_instagram_username'] = '';
811
+ update_option( 'heateor_sss', $this->options );
812
+ }
813
+
814
+ if ( version_compare( '2.5.8', $current_version ) > 0 ) {
815
+ $this->options['bottom_sharing_position_radio'] = 'responsive';
816
+ update_option( 'heateor_sss', $this->options );
817
+ }
818
+
819
+ if ( version_compare( '3.0', $current_version ) > 0 ) {
820
+ $this->options['comment_container_id'] = 'respond';
821
+ $this->options['vertical_comment_container_id'] = 'respond';
822
+ update_option( 'heateor_sss', $this->options );
823
+ }
824
+
825
+ // update plugin version in database
826
+ update_option( 'heateor_sss_version', $this->version );
827
+ }
828
+
829
+ }
830
+
831
+ }
admin/js/sassy-social-share-options.js CHANGED
@@ -1,385 +1,426 @@
1
- "function" != typeof String.prototype.trim && (String.prototype.trim = function() {
2
- return this.replace(/^\s+|\s+$/g, "")
3
- })
4
-
5
- function heateorSssCapitaliseFirstLetter(e) {
6
- return e.charAt(0).toUpperCase() + e.slice(1)
7
- }
8
-
9
- /**
10
- * Search sharing services
11
- */
12
- function heateorSssSearchSharingNetworks(val) {
13
- jQuery('td.selectSharingNetworks label.lblSocialNetwork').each(function(){
14
- if (jQuery(this).text().toLowerCase().indexOf(val.toLowerCase()) != -1) {
15
- jQuery(this).parent().css('display', 'block');
16
- } else {
17
- jQuery(this).parent().css('display', 'none');
18
- }
19
- });
20
- }
21
-
22
- function heateorSssUpdateSharingPreview(e, property, defaultVal, targetId) {
23
- if(!e){
24
- e = defaultVal;
25
- }
26
- jQuery('#' + targetId).css(property, e);
27
- }
28
-
29
- function heateorSssUpdateSharingPreviewHover(e, property, targetId) {
30
- var val = jQuery(e).val().trim();
31
- if(!val){
32
- jQuery('#' + targetId).hover(function(){
33
- jQuery(this).css(property, val);
34
- });
35
- }
36
- }
37
-
38
- function heateorSssClearShorturlCache(){
39
- jQuery('#shorturl_cache_loading').css('display', 'block');
40
- jQuery.ajax({
41
- type: 'GET',
42
- url: heateorSssSharingAjaxUrl,
43
- data: {
44
- action: 'heateor_sss_clear_shorturl_cache'
45
- },
46
- success: function(data, textStatus, XMLHttpRequest){
47
- jQuery('#shorturl_cache_loading').css('display', 'none');
48
- jQuery('#heateor_sss_cache_clear_message').css('display', 'block');
49
- }
50
- });
51
- }
52
-
53
- function heateorSssClearShareCountCache(){
54
- jQuery('#share_count_cache_loading').css('display', 'block');
55
- jQuery.ajax({
56
- type: 'GET',
57
- url: heateorSssSharingAjaxUrl,
58
- data: {
59
- action: 'heateor_sss_clear_share_count_cache'
60
- },
61
- success: function(data, textStatus, XMLHttpRequest){
62
- jQuery('#share_count_cache_loading').css('display', 'none');
63
- jQuery('#heateor_sss_share_count_cache_clear_message').css('display', 'block');
64
- }
65
- });
66
- }
67
-
68
- function heateorSssHorizontalSharingOptionsToggle(e) {
69
- jQuery(e).is(":checked") ? jQuery("#heateor_sss_horizontal_sharing_options").css("display", "table-row-group") : jQuery("#heateor_sss_horizontal_sharing_options").css("display", "none")
70
- }
71
-
72
- function heateorSssVerticalSharingOptionsToggle(e) {
73
- jQuery(e).is(":checked") ? jQuery("#heateor_sss_vertical_sharing_options").css("display", "table-row-group") : jQuery("#heateor_sss_vertical_sharing_options").css("display", "none")
74
- }
75
-
76
- function heateorSssToggleOffset(e) {
77
- var t = "left" == e ? "right" : "left";
78
- jQuery("#heateor_sss_" + e + "_offset_rows").css("display", "table-row-group"), jQuery("#heateor_sss_" + t + "_offset_rows").css("display", "none")
79
- }
80
-
81
- function heateorSssIncrement(e, t, r, a, i) {
82
- var h, s, c = !1,
83
- _ = a;
84
- s = function() {
85
- "add" == t ? r.value++ : "subtract" == t && r.value > 16 && r.value--, h = setTimeout(s, _), _ > 20 && (_ *= i), c || (document.onmouseup = function() {
86
- clearTimeout(h), document.onmouseup = null, c = !1, _ = a
87
- }, c = !0)
88
- }, e.onmousedown = s
89
- }
90
-
91
- function heateorSssSharingHorizontalPreview() {
92
- var tempBorderWidth = heateorSssBorderWidth ? heateorSssBorderWidth : '0px';
93
- if("rectangle" != tempHorShape){
94
- jQuery("#heateor_sss_preview").css({
95
- borderRadius: "round" == tempHorShape ? "999px" : heateorSssSharingBorderRadius ? heateorSssSharingBorderRadius : '0px',
96
- height: tempHorSize,
97
- width: tempHorSize,
98
- backgroundColor: heateorSssSharingBg,
99
- borderWidth: tempBorderWidth,
100
- borderColor: heateorSssBorderColor ? heateorSssBorderColor : 'transparent',
101
- borderStyle: 'solid',
102
- });
103
- tempHorSize = parseInt(tempHorSize);
104
- jQuery('.heateorSssCounterPreviewRight,.heateorSssCounterPreviewLeft').css({
105
- height: ( tempHorSize + 2*parseInt(tempBorderWidth) ) + 'px',
106
- lineHeight: ( tempHorSize + 2*parseInt(tempBorderWidth) ) + 'px'
107
- });
108
- jQuery('.heateorSssCounterPreviewInnerright,.heateorSssCounterPreviewInnerleft').css("lineHeight", tempHorSize + 'px');
109
- jQuery('.heateorSssCounterPreviewInnertop').css("lineHeight", (tempHorSize*38/100) + "px");
110
- jQuery('.heateorSssCounterPreviewInnerbottom').css("lineHeight", (tempHorSize*19/100) + "px");
111
- jQuery('.heateorSssCounterPreviewTop,.heateorSssCounterPreviewBottom').css({
112
- width: 60 + 2*parseInt(tempBorderWidth) + tempHorSize,
113
- });
114
- }else{
115
- jQuery("#heateor_sss_preview").css({
116
- borderRadius: heateorSssSharingBorderRadius ? heateorSssSharingBorderRadius : '0px',
117
- height: tempHorHeight,
118
- width: tempHorWidth,
119
- backgroundColor: heateorSssSharingBg,
120
- borderWidth: tempBorderWidth,
121
- borderColor: heateorSssBorderColor ? heateorSssBorderColor : 'transparent',
122
- borderStyle: 'solid'
123
- });
124
- jQuery('.heateorSssCounterPreviewRight,.heateorSssCounterPreviewLeft').css({
125
- height: ( parseInt(tempHorHeight) + 2*parseInt(tempBorderWidth) ) + 'px',
126
- lineHeight: ( parseInt(tempHorHeight) + 2*parseInt(tempBorderWidth) ) + 'px',
127
- });
128
- jQuery('.heateorSssCounterPreviewInnerright,.heateorSssCounterPreviewInnerleft').css('lineHeight', tempHorHeight + 'px');
129
- jQuery('.heateorSssCounterPreviewInnertop').css('lineHeight', (tempHorHeight*38/100) + 'px');
130
- jQuery('.heateorSssCounterPreviewInnerbottom').css('lineHeight', (tempHorHeight*19/100) + 'px');
131
- jQuery('.heateorSssCounterPreviewTop,.heateorSssCounterPreviewBottom').css({
132
- width: 60 + 2*parseInt(tempBorderWidth) + parseInt(tempHorWidth),
133
- });
134
- }
135
-
136
- jQuery("#heateor_sss_preview_message").css("display", "block")
137
- }
138
-
139
- function heateorSssSharingVerticalPreview() {
140
- var tempVerticalBorderWidth = heateorSssVerticalBorderWidth ? heateorSssVerticalBorderWidth : '0px';
141
- if("rectangle" != tempVerticalShape){
142
- jQuery("#heateor_sss_vertical_preview").css({
143
- borderRadius: "round" == tempVerticalShape ? "999px" : heateorSssVerticalBorderRadius ? heateorSssVerticalBorderRadius : '0px',
144
- height: tempVerticalSize,
145
- width: tempVerticalSize,
146
- backgroundColor: heateorSssVerticalSharingBg,
147
- borderWidth: tempVerticalBorderWidth,
148
- borderColor: heateorSssVerticalBorderColor ? heateorSssVerticalBorderColor : 'transparent',
149
- borderStyle: 'solid',
150
- });
151
- jQuery('.heateorSssCounterVerticalPreviewRight,.heateorSssCounterVerticalPreviewLeft').css({
152
- height: ( parseInt(tempVerticalSize) + 2*parseInt(tempVerticalBorderWidth) ) + 'px',
153
- lineHeight: ( parseInt(tempVerticalSize) + 2*parseInt(tempVerticalBorderWidth) ) + 'px',
154
- });
155
- jQuery('.heateorSssCounterVerticalPreviewInnerright,.heateorSssCounterVerticalPreviewInnerleft').css('lineHeight', tempVerticalSize + 'px');
156
- jQuery('.heateorSssCounterVerticalPreviewInnertop').css('lineHeight', (tempVerticalSize*38/100) + 'px');
157
- jQuery('.heateorSssCounterVerticalPreviewInnerbottom').css('lineHeight', (tempVerticalSize*19/100) + 'px');
158
- jQuery('.heateorSssCounterVerticalPreviewTop,.heateorSssCounterVerticalPreviewBottom').css({
159
- width: 60 + 2*parseInt(tempVerticalBorderWidth) + parseInt(tempVerticalSize)
160
- });
161
- }else{
162
- jQuery("#heateor_sss_vertical_preview").css({
163
- borderRadius: heateorSssVerticalBorderRadius ? heateorSssVerticalBorderRadius : '0px',
164
- height: tempVerticalHeight,
165
- width: tempVerticalWidth,
166
- backgroundColor: heateorSssVerticalSharingBg,
167
- borderWidth: tempVerticalBorderWidth,
168
- borderColor: heateorSssVerticalBorderColor ? heateorSssVerticalBorderColor : 'transparent',
169
- borderStyle: 'solid'
170
- });
171
- jQuery('.heateorSssCounterVerticalPreviewRight,.heateorSssCounterVerticalPreviewLeft').css({
172
- height: ( parseInt(tempVerticalHeight) + 2*parseInt(tempVerticalBorderWidth) ) + 'px',
173
- lineHeight: ( parseInt(tempVerticalHeight) + 2*parseInt(tempVerticalBorderWidth) ) + 'px',
174
- });
175
- jQuery('.heateorSssCounterVerticalPreviewInnerright,.heateorSssCounterVerticalPreviewInnerleft').css('lineHeight', tempVerticalHeight + 'px');
176
- jQuery('.heateorSssCounterVerticalPreviewInnertop').css('lineHeight', (tempVerticalHeight*38/100) + 'px');
177
- jQuery('.heateorSssCounterVerticalPreviewInnerbottom').css('lineHeight', (tempVerticalHeight*19/100) + 'px');
178
- jQuery('.heateorSssCounterVerticalPreviewTop,.heateorSssCounterVerticalPreviewBottom').css({
179
- width: 60 + 2*parseInt(tempVerticalBorderWidth) + parseInt(tempVerticalWidth),
180
- });
181
- }
182
- jQuery("#heateor_sss_vertical_preview_message").css("display", "block")
183
- }
184
-
185
- function heateorSssCounterPreview(val){
186
- if(val){
187
- jQuery('input[name="heateor_sss[horizontal_counter_position]"]').each(function(){
188
- if(jQuery(this).val().indexOf('inner') == -1){
189
- var property = 'visibility', value = 'visible', inverseValue = 'hidden';
190
- jQuery('#horizontal_svg').css({
191
- 'width': '100%',
192
- 'height':'100%'
193
- });
194
- }else{
195
- var property = 'display', value = 'block', inverseValue = 'none';
196
- }
197
- if(jQuery(this).val() == val){
198
- jQuery('.heateorSssCounterPreview' + heateorSssCapitaliseFirstLetter(val.replace('_',''))).css(property, value);
199
- }else{
200
- jQuery('.heateorSssCounterPreview' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace('_',''))).css(property, inverseValue);
201
- }
202
- });
203
-
204
- if(val == 'inner_left' || val == 'inner_right'){
205
- jQuery('#horizontal_svg').css({
206
- 'width': '50%',
207
- 'height':'100%'
208
- });
209
- }else if(val == 'inner_top' || val == 'inner_bottom'){
210
- jQuery('#horizontal_svg').css({
211
- 'width': '100%',
212
- 'height':'70%'
213
- });
214
- }
215
- }
216
- }
217
-
218
- function heateorSssVerticalCounterPreview(val){
219
- if(val){
220
- jQuery('input[name="heateor_sss[vertical_counter_position]"]').each(function(){
221
- if(jQuery(this).val().indexOf('inner') == -1){
222
- var property = 'visibility', value = 'visible', inverseValue = 'hidden';
223
- jQuery('#vertical_svg').css({
224
- 'width': '100%',
225
- 'height':'100%'
226
- });
227
- }else{
228
- var property = 'display', value = 'block', inverseValue = 'none';
229
- }
230
- if(jQuery(this).val() == val){
231
- jQuery('.heateorSssCounterVerticalPreview' + heateorSssCapitaliseFirstLetter(val.replace('_',''))).css(property, value);
232
- }else{
233
- jQuery('.heateorSssCounterVerticalPreview' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace('_',''))).css(property, inverseValue);
234
- }
235
- if(val == 'inner_left' || val == 'inner_right'){
236
- jQuery('#vertical_svg').css({
237
- 'width': '50%',
238
- 'height':'100%'
239
- });
240
- }else if(val == 'inner_top' || val == 'inner_bottom'){
241
- jQuery('#vertical_svg').css({
242
- 'width': '100%',
243
- 'height':'70%'
244
- });
245
- }
246
- });
247
- }
248
- }
249
-
250
- jQuery(document).ready(function() {
251
- // instagram username option
252
- jQuery('input#heateor_sss_instagram').click(function(){
253
- if(jQuery(this).is(':checked')){
254
- jQuery('#heateor_sss_instagram_options').css('display', 'table-row-group');
255
- }else{
256
- jQuery('#heateor_sss_instagram_options').css('display', 'none');
257
- }
258
- });
259
- jQuery('input#heateor_sss_vertical_sharing_instagram').click(function(){
260
- if(jQuery(this).is(':checked')){
261
- jQuery('#heateor_sss_vertical_instagram_options').css('display', 'table-row-group');
262
- }else{
263
- jQuery('#heateor_sss_vertical_instagram_options').css('display', 'none');
264
- }
265
- });
266
- // youtube url option
267
- jQuery('input#heateor_sss_youtube').click(function(){
268
- if(jQuery(this).is(':checked')){
269
- jQuery('#heateor_sss_youtube_options').css('display', 'table-row-group');
270
- }else{
271
- jQuery('#heateor_sss_youtube_options').css('display', 'none');
272
- }
273
- });
274
- jQuery('input#heateor_sss_vertical_sharing_youtube').click(function(){
275
- if(jQuery(this).is(':checked')){
276
- jQuery('#heateor_sss_vertical_youtube_options').css('display', 'table-row-group');
277
- }else{
278
- jQuery('#heateor_sss_vertical_youtube_options').css('display', 'none');
279
- }
280
- });
281
- // facebook share count option
282
- jQuery('input#heateor_sss_facebook').click(function(){
283
- if(jQuery(this).is(':checked')){
284
- heateorSssHorizontalFacebookShareEnabled = true;
285
- }else{
286
- heateorSssHorizontalFacebookShareEnabled = false;
287
- }
288
- });
289
- jQuery('input#heateor_sss_vertical_sharing_facebook').click(function(){
290
- if(jQuery(this).is(':checked')){
291
- heateorSssVerticalFacebookShareEnabled = true;
292
- }else{
293
- heateorSssVerticalFacebookShareEnabled = false;
294
- }
295
- });
296
- jQuery('input#heateor_sss_vertical_instagram_username').keyup(function(){
297
- jQuery('#heateor_sss_instagram_username').val(jQuery(this).val().trim());
298
- });
299
- jQuery('input#heateor_sss_instagram_username').keyup(function(){
300
- jQuery('#heateor_sss_vertical_instagram_username').val(jQuery(this).val().trim());
301
- });
302
- jQuery('input#heateor_sss_vertical_youtube_username').keyup(function(){
303
- jQuery('#heateor_sss_youtube_username').val(jQuery(this).val().trim());
304
- });
305
- jQuery('input#heateor_sss_youtube_username').keyup(function(){
306
- jQuery('#heateor_sss_vertical_youtube_username').val(jQuery(this).val().trim());
307
- });
308
- // Twitter share count options
309
- jQuery('input#heateor_sss_vertical_newsharecounts').click(function(){
310
- jQuery('#heateor_sss_newsharecounts').attr('checked', 'checked');
311
- });
312
- jQuery('input#heateor_sss_vertical_opensharecount').click(function(){
313
- jQuery('#heateor_sss_opensharecount').attr('checked', 'checked');
314
- });
315
- jQuery('input#heateor_sss_newsharecounts').click(function(){
316
- jQuery('#heateor_sss_vertical_newsharecounts').attr('checked', 'checked');
317
- });
318
- jQuery('input#heateor_sss_opensharecount').click(function(){
319
- jQuery('#heateor_sss_vertical_opensharecount').attr('checked', 'checked');
320
- });
321
- jQuery('input#heateor_sss_counts').click(function(){
322
- if(jQuery(this).is(':checked')){
323
- jQuery('#heateor_sss_twitter_share_count').css('display', 'table-row');
324
- }else{
325
- jQuery('#heateor_sss_twitter_share_count').css('display', 'none');
326
- }
327
- });
328
- jQuery('input#heateor_sss_vertical_counts').click(function(){
329
- if(jQuery(this).is(':checked')){
330
- jQuery('#heateor_sss_twitter_vertical_share_count').css('display', 'table-row');
331
- }else{
332
- jQuery('#heateor_sss_twitter_vertical_share_count').css('display', 'none');
333
- }
334
- });
335
- jQuery('input[name="heateor_sss[horizontal_sharing_shape]"]').click(function(){
336
- // toggle height, width options
337
- if(jQuery(this).val() == 'rectangle'){
338
- jQuery('#heateor_sss_rectangle_options').css('display', 'table-row-group');
339
- jQuery('#heateor_sss_size_options').css('display', 'none');
340
- }else{
341
- jQuery('#heateor_sss_rectangle_options').css('display', 'none');
342
- jQuery('#heateor_sss_size_options').css('display', 'table-row-group');
343
- }
344
-
345
- // toggle border radius option
346
- if(jQuery(this).val() == 'round'){
347
- jQuery('#heateor_sss_border_radius_options').css('display', 'none');
348
- }else{
349
- jQuery('#heateor_sss_border_radius_options').css('display', 'table-row-group');
350
- }
351
- });
352
- jQuery('input#heateor_sss_mobile_sharing_bottom').click(function(){
353
- if(jQuery(this).is(':checked')){
354
- jQuery('#heateor_sss_bottom_sharing_options').css('display', 'table-row-group');
355
- }else{
356
- jQuery('#heateor_sss_bottom_sharing_options').css('display', 'none');
357
- }
358
- });
359
- jQuery('input[name="heateor_sss[vertical_sharing_shape]"]').click(function(){
360
- // toggle height, width options
361
- if(jQuery(this).val() == 'rectangle'){
362
- jQuery('#heateor_sss_vertical_rectangle_options').css('display', 'table-row-group');
363
- jQuery('#heateor_sss_vertical_size_options').css('display', 'none');
364
- }else{
365
- jQuery('#heateor_sss_vertical_rectangle_options').css('display', 'none');
366
- jQuery('#heateor_sss_vertical_size_options').css('display', 'table-row-group');
367
- }
368
-
369
- // toggle border radius option
370
- if(jQuery(this).val() == 'round'){
371
- jQuery('#heateor_sss_vertical_border_radius_options').css('display', 'none');
372
- }else{
373
- jQuery('#heateor_sss_vertical_border_radius_options').css('display', 'table-row-group');
374
- }
375
- });
376
- jQuery("#heateor_sss_rearrange, #heateor_sss_vertical_rearrange").sortable(), jQuery(".heateorSssHorizontalSharingProviderContainer input").click(function() {
377
- jQuery(this).is(":checked") ? jQuery("#heateor_sss_rearrange").append('<li title="' + jQuery(this).val().replace(/_/g, " ") + '" id="heateor_sss_re_horizontal_' + jQuery(this).val().replace(/[. ]/g, "_") + '" ><i style="display:block;' + heateorSssHorSharingStyle + '" class="' + ( jQuery.inArray(jQuery(this).val(), heateorSssLikeButtons) != -1 ? '' : 'heateorSssSharingBackground ' ) + 'heateorSss' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace(/[_. ]/g, "")) + 'Background"><div class="heateorSssSharingSvg heateorSss' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace(/[_. ]/g, "")) + 'Svg" style="' + heateorSssHorDeliciousRadius + '"></div></i><input type="hidden" name="heateor_sss[horizontal_re_providers][]" value="' + jQuery(this).val() + '"></li>') : jQuery("#heateor_sss_re_horizontal_" + jQuery(this).val().replace(/[. ]/g, "_")).remove()
378
- }), jQuery(".heateorSssVerticalSharingProviderContainer input").click(function() {
379
- jQuery(this).is(":checked") ? jQuery("#heateor_sss_vertical_rearrange").append('<li title="' + jQuery(this).val().replace(/_/g, " ") + '" id="heateor_sss_re_vertical_' + jQuery(this).val().replace(/[. ]/g, "_") + '" ><i style="display:block;' + heateorSssVerticalSharingStyle + '" class="' + ( jQuery.inArray(jQuery(this).val(), heateorSssLikeButtons) != -1 ? '' : 'heateorSssVerticalSharingBackground ' ) + 'heateorSss' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace(/[_. ]/g, "")) + 'Background"><div class="heateorSssSharingSvg heateorSss' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace(/[_. ]/g, "")) + 'Svg" style="' + heateorSssVerticalDeliciousRadius + '"></div></i><input type="hidden" name="heateor_sss[vertical_re_providers][]" value="' + jQuery(this).val() + '"></li>') : jQuery("#heateor_sss_re_vertical_" + jQuery(this).val().replace(/[. ]/g, "_")).remove()
380
- }), jQuery("#heateor_sss_target_url_column").find("input[type=radio]").click(function() {
381
- jQuery(this).attr("id") && "heateor_sss_target_url_custom" == jQuery(this).attr("id") ? jQuery("#heateor_sss_target_url_custom_url").css("display", "block") : jQuery("#heateor_sss_target_url_custom_url").css("display", "none")
382
- }), jQuery("#heateor_sss_vertical_target_url_column").find("input[type=radio]").click(function() {
383
- jQuery(this).attr("id") && "heateor_sss_vertical_target_url_custom" == jQuery(this).attr("id") ? jQuery("#heateor_sss_vertical_target_url_custom_url").css("display", "block") : jQuery("#heateor_sss_vertical_target_url_custom_url").css("display", "none")
384
- }), jQuery("#heateor_sss_target_url_custom").is(":checked") ? jQuery("#heateor_sss_target_url_custom_url").css("display", "block") : jQuery("#heateor_sss_target_url_custom_url").css("display", "none"), jQuery("#heateor_sss_vertical_target_url_custom").is(":checked") ? jQuery("#heateor_sss_vertical_target_url_custom_url").css("display", "block") : jQuery("#heateor_sss_vertical_target_url_custom_url").css("display", "none")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
385
  })
1
+ "function" != typeof String.prototype.trim && (String.prototype.trim = function() {
2
+ return this.replace(/^\s+|\s+$/g, "")
3
+ })
4
+
5
+ function heateorSssCapitaliseFirstLetter(e) {
6
+ return e.charAt(0).toUpperCase() + e.slice(1)
7
+ }
8
+
9
+ /**
10
+ * Search sharing services
11
+ */
12
+ function heateorSssSearchSharingNetworks(val) {
13
+ jQuery('td.selectSharingNetworks label.lblSocialNetwork').each(function(){
14
+ if (jQuery(this).text().toLowerCase().indexOf(val.toLowerCase()) != -1) {
15
+ jQuery(this).parent().css('display', 'block');
16
+ } else {
17
+ jQuery(this).parent().css('display', 'none');
18
+ }
19
+ });
20
+ }
21
+
22
+ function heateorSssUpdateSharingPreview(e, property, defaultVal, targetId) {
23
+ if(!e){
24
+ e = defaultVal;
25
+ }
26
+ jQuery('#' + targetId).css(property, e);
27
+ }
28
+
29
+ function heateorSssExportConfig(){
30
+ jQuery('#export_config_loading').css('display', 'block');
31
+ jQuery.ajax({
32
+ type: 'GET',
33
+ dataType: 'json',
34
+ url: heateorSssSharingAjaxUrl,
35
+ data: {
36
+ action: 'heateor_sss_export_config'
37
+ },
38
+ success: function(data, textStatus, XMLHttpRequest){
39
+ jQuery('#export_config_loading').css('display', 'none');
40
+ if(typeof data.config != 'undefined' && data.config){
41
+ jQuery('#heateor_sss_exported_config').val(data.config);
42
+ }
43
+ }
44
+ });
45
+ }
46
+
47
+ function heateorSssImportConfig(){
48
+ jQuery('#import_config_loading').css('display', 'block');
49
+ jQuery.ajax({
50
+ type: 'POST',
51
+ dataType: 'json',
52
+ url: heateorSssSharingAjaxUrl,
53
+ data: {
54
+ config: jQuery('#heateor_sss_import_config_txt').val().trim(),
55
+ action: 'heateor_sss_import_config'
56
+ },
57
+ success: function(data, textStatus, XMLHttpRequest){
58
+ jQuery('#import_config_loading').css('display', 'none');
59
+ if(data != null && typeof data.success != 'undefined' && data.success == 1){
60
+ location.href = heateorSssPluginPageUrl + "&settings-updated=true";
61
+ }else{
62
+ alert("Something went wrong");
63
+ }
64
+ },
65
+ error: function(data, textStatus, XMLHttpRequest){
66
+ }
67
+ });
68
+ }
69
+
70
+ function heateorSssUpdateSharingPreviewHover(e, property, targetId) {
71
+ var val = jQuery(e).val().trim();
72
+ if(!val){
73
+ jQuery('#' + targetId).hover(function(){
74
+ jQuery(this).css(property, val);
75
+ });
76
+ }
77
+ }
78
+
79
+ function heateorSssClearShorturlCache(){
80
+ jQuery('#shorturl_cache_loading').css('display', 'block');
81
+ jQuery.ajax({
82
+ type: 'GET',
83
+ url: heateorSssSharingAjaxUrl,
84
+ data: {
85
+ action: 'heateor_sss_clear_shorturl_cache'
86
+ },
87
+ success: function(data, textStatus, XMLHttpRequest){
88
+ jQuery('#shorturl_cache_loading').css('display', 'none');
89
+ jQuery('#heateor_sss_cache_clear_message').css('display', 'block');
90
+ }
91
+ });
92
+ }
93
+
94
+ function heateorSssClearShareCountCache(){
95
+ jQuery('#share_count_cache_loading').css('display', 'block');
96
+ jQuery.ajax({
97
+ type: 'GET',
98
+ url: heateorSssSharingAjaxUrl,
99
+ data: {
100
+ action: 'heateor_sss_clear_share_count_cache'
101
+ },
102
+ success: function(data, textStatus, XMLHttpRequest){
103
+ jQuery('#share_count_cache_loading').css('display', 'none');
104
+ jQuery('#heateor_sss_share_count_cache_clear_message').css('display', 'block');
105
+ }
106
+ });
107
+ }
108
+
109
+ function heateorSssHorizontalSharingOptionsToggle(e) {
110
+ jQuery(e).is(":checked") ? jQuery("#heateor_sss_horizontal_sharing_options").css("display", "table-row-group") : jQuery("#heateor_sss_horizontal_sharing_options").css("display", "none")
111
+ }
112
+
113
+ function heateorSssVerticalSharingOptionsToggle(e) {
114
+ jQuery(e).is(":checked") ? jQuery("#heateor_sss_vertical_sharing_options").css("display", "table-row-group") : jQuery("#heateor_sss_vertical_sharing_options").css("display", "none")
115
+ }
116
+
117
+ function heateorSssToggleOffset(e) {
118
+ var t = "left" == e ? "right" : "left";
119
+ jQuery("#heateor_sss_" + e + "_offset_rows").css("display", "table-row-group"), jQuery("#heateor_sss_" + t + "_offset_rows").css("display", "none")
120
+ }
121
+
122
+ function heateorSssIncrement(e, t, r, a, i) {
123
+ var h, s, c = !1,
124
+ _ = a;
125
+ s = function() {
126
+ "add" == t ? r.value++ : "subtract" == t && r.value > 16 && r.value--, h = setTimeout(s, _), _ > 20 && (_ *= i), c || (document.onmouseup = function() {
127
+ clearTimeout(h), document.onmouseup = null, c = !1, _ = a
128
+ }, c = !0)
129
+ }, e.onmousedown = s
130
+ }
131
+
132
+ function heateorSssSharingHorizontalPreview() {
133
+ var tempBorderWidth = heateorSssBorderWidth ? heateorSssBorderWidth : '0px';
134
+ if("rectangle" != tempHorShape){
135
+ jQuery("#heateor_sss_preview").css({
136
+ borderRadius: "round" == tempHorShape ? "999px" : heateorSssSharingBorderRadius ? heateorSssSharingBorderRadius : '0px',
137
+ height: tempHorSize,
138
+ width: tempHorSize,
139
+ backgroundColor: heateorSssSharingBg,
140
+ borderWidth: tempBorderWidth,
141
+ borderColor: heateorSssBorderColor ? heateorSssBorderColor : 'transparent',
142
+ borderStyle: 'solid',
143
+ });
144
+ tempHorSize = parseInt(tempHorSize);
145
+ jQuery('.heateorSssCounterPreviewRight,.heateorSssCounterPreviewLeft').css({
146
+ height: ( tempHorSize + 2*parseInt(tempBorderWidth) ) + 'px',
147
+ lineHeight: ( tempHorSize + 2*parseInt(tempBorderWidth) ) + 'px'
148
+ });
149
+ jQuery('.heateorSssCounterPreviewInnerright,.heateorSssCounterPreviewInnerleft').css("lineHeight", tempHorSize + 'px');
150
+ jQuery('.heateorSssCounterPreviewInnertop').css("lineHeight", (tempHorSize*38/100) + "px");
151
+ jQuery('.heateorSssCounterPreviewInnerbottom').css("lineHeight", (tempHorSize*19/100) + "px");
152
+ jQuery('.heateorSssCounterPreviewTop,.heateorSssCounterPreviewBottom').css({
153
+ width: 60 + 2*parseInt(tempBorderWidth) + tempHorSize,
154
+ });
155
+ }else{
156
+ jQuery("#heateor_sss_preview").css({
157
+ borderRadius: heateorSssSharingBorderRadius ? heateorSssSharingBorderRadius : '0px',
158
+ height: tempHorHeight,
159
+ width: tempHorWidth,
160
+ backgroundColor: heateorSssSharingBg,
161
+ borderWidth: tempBorderWidth,
162
+ borderColor: heateorSssBorderColor ? heateorSssBorderColor : 'transparent',
163
+ borderStyle: 'solid'
164
+ });
165
+ jQuery('.heateorSssCounterPreviewRight,.heateorSssCounterPreviewLeft').css({
166
+ height: ( parseInt(tempHorHeight) + 2*parseInt(tempBorderWidth) ) + 'px',
167
+ lineHeight: ( parseInt(tempHorHeight) + 2*parseInt(tempBorderWidth) ) + 'px',
168
+ });
169
+ jQuery('.heateorSssCounterPreviewInnerright,.heateorSssCounterPreviewInnerleft').css('lineHeight', tempHorHeight + 'px');
170
+ jQuery('.heateorSssCounterPreviewInnertop').css('lineHeight', (tempHorHeight*38/100) + 'px');
171
+ jQuery('.heateorSssCounterPreviewInnerbottom').css('lineHeight', (tempHorHeight*19/100) + 'px');
172
+ jQuery('.heateorSssCounterPreviewTop,.heateorSssCounterPreviewBottom').css({
173
+ width: 60 + 2*parseInt(tempBorderWidth) + parseInt(tempHorWidth),
174
+ });
175
+ }
176
+
177
+ jQuery("#heateor_sss_preview_message").css("display", "block")
178
+ }
179
+
180
+ function heateorSssSharingVerticalPreview() {
181
+ var tempVerticalBorderWidth = heateorSssVerticalBorderWidth ? heateorSssVerticalBorderWidth : '0px';
182
+ if("rectangle" != tempVerticalShape){
183
+ jQuery("#heateor_sss_vertical_preview").css({
184
+ borderRadius: "round" == tempVerticalShape ? "999px" : heateorSssVerticalBorderRadius ? heateorSssVerticalBorderRadius : '0px',
185
+ height: tempVerticalSize,
186
+ width: tempVerticalSize,
187
+ backgroundColor: heateorSssVerticalSharingBg,
188
+ borderWidth: tempVerticalBorderWidth,
189
+ borderColor: heateorSssVerticalBorderColor ? heateorSssVerticalBorderColor : 'transparent',
190
+ borderStyle: 'solid',
191
+ });
192
+ jQuery('.heateorSssCounterVerticalPreviewRight,.heateorSssCounterVerticalPreviewLeft').css({
193
+ height: ( parseInt(tempVerticalSize) + 2*parseInt(tempVerticalBorderWidth) ) + 'px',
194
+ lineHeight: ( parseInt(tempVerticalSize) + 2*parseInt(tempVerticalBorderWidth) ) + 'px',
195
+ });
196
+ jQuery('.heateorSssCounterVerticalPreviewInnerright,.heateorSssCounterVerticalPreviewInnerleft').css('lineHeight', tempVerticalSize + 'px');
197
+ jQuery('.heateorSssCounterVerticalPreviewInnertop').css('lineHeight', (tempVerticalSize*38/100) + 'px');
198
+ jQuery('.heateorSssCounterVerticalPreviewInnerbottom').css('lineHeight', (tempVerticalSize*19/100) + 'px');
199
+ jQuery('.heateorSssCounterVerticalPreviewTop,.heateorSssCounterVerticalPreviewBottom').css({
200
+ width: 60 + 2*parseInt(tempVerticalBorderWidth) + parseInt(tempVerticalSize)
201
+ });
202
+ }else{
203
+ jQuery("#heateor_sss_vertical_preview").css({
204
+ borderRadius: heateorSssVerticalBorderRadius ? heateorSssVerticalBorderRadius : '0px',
205
+ height: tempVerticalHeight,
206
+ width: tempVerticalWidth,
207
+ backgroundColor: heateorSssVerticalSharingBg,
208
+ borderWidth: tempVerticalBorderWidth,
209
+ borderColor: heateorSssVerticalBorderColor ? heateorSssVerticalBorderColor : 'transparent',
210
+ borderStyle: 'solid'
211
+ });
212
+ jQuery('.heateorSssCounterVerticalPreviewRight,.heateorSssCounterVerticalPreviewLeft').css({
213
+ height: ( parseInt(tempVerticalHeight) + 2*parseInt(tempVerticalBorderWidth) ) + 'px',
214
+ lineHeight: ( parseInt(tempVerticalHeight) + 2*parseInt(tempVerticalBorderWidth) ) + 'px',
215
+ });
216
+ jQuery('.heateorSssCounterVerticalPreviewInnerright,.heateorSssCounterVerticalPreviewInnerleft').css('lineHeight', tempVerticalHeight + 'px');
217
+ jQuery('.heateorSssCounterVerticalPreviewInnertop').css('lineHeight', (tempVerticalHeight*38/100) + 'px');
218
+ jQuery('.heateorSssCounterVerticalPreviewInnerbottom').css('lineHeight', (tempVerticalHeight*19/100) + 'px');
219
+ jQuery('.heateorSssCounterVerticalPreviewTop,.heateorSssCounterVerticalPreviewBottom').css({
220
+ width: 60 + 2*parseInt(tempVerticalBorderWidth) + parseInt(tempVerticalWidth),
221
+ });
222
+ }
223
+ jQuery("#heateor_sss_vertical_preview_message").css("display", "block")
224
+ }
225
+
226
+ function heateorSssCounterPreview(val){
227
+ if(val){
228
+ jQuery('input[name="heateor_sss[horizontal_counter_position]"]').each(function(){
229
+ if(jQuery(this).val().indexOf('inner') == -1){
230
+ var property = 'visibility', value = 'visible', inverseValue = 'hidden';
231
+ jQuery('#horizontal_svg').css({
232
+ 'width': '100%',
233
+ 'height':'100%'
234
+ });
235
+ }else{
236
+ var property = 'display', value = 'block', inverseValue = 'none';
237
+ }
238
+ if(jQuery(this).val() == val){
239
+ jQuery('.heateorSssCounterPreview' + heateorSssCapitaliseFirstLetter(val.replace('_',''))).css(property, value);
240
+ }else{
241
+ jQuery('.heateorSssCounterPreview' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace('_',''))).css(property, inverseValue);
242
+ }
243
+ });
244
+
245
+ if(val == 'inner_left' || val == 'inner_right'){
246
+ jQuery('#horizontal_svg').css({
247
+ 'width': '50%',
248
+ 'height':'100%'
249
+ });
250
+ }else if(val == 'inner_top' || val == 'inner_bottom'){
251
+ jQuery('#horizontal_svg').css({
252
+ 'width': '100%',
253
+ 'height':'70%'
254
+ });
255
+ }
256
+ }
257
+ }
258
+
259
+ function heateorSssVerticalCounterPreview(val){
260
+ if(val){
261
+ jQuery('input[name="heateor_sss[vertical_counter_position]"]').each(function(){
262
+ if(jQuery(this).val().indexOf('inner') == -1){
263
+ var property = 'visibility', value = 'visible', inverseValue = 'hidden';
264
+ jQuery('#vertical_svg').css({
265
+ 'width': '100%',
266
+ 'height':'100%'
267
+ });
268
+ }else{
269
+ var property = 'display', value = 'block', inverseValue = 'none';
270
+ }
271
+ if(jQuery(this).val() == val){
272
+ jQuery('.heateorSssCounterVerticalPreview' + heateorSssCapitaliseFirstLetter(val.replace('_',''))).css(property, value);
273
+ }else{
274
+ jQuery('.heateorSssCounterVerticalPreview' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace('_',''))).css(property, inverseValue);
275
+ }
276
+ if(val == 'inner_left' || val == 'inner_right'){
277
+ jQuery('#vertical_svg').css({
278
+ 'width': '50%',
279
+ 'height':'100%'
280
+ });
281
+ }else if(val == 'inner_top' || val == 'inner_bottom'){
282
+ jQuery('#vertical_svg').css({
283
+ 'width': '100%',
284
+ 'height':'70%'
285
+ });
286
+ }
287
+ });
288
+ }
289
+ }
290
+
291
+ jQuery(document).ready(function() {
292
+ // instagram username option
293
+ jQuery('input#heateor_sss_instagram').click(function(){
294
+ if(jQuery(this).is(':checked')){
295
+ jQuery('#heateor_sss_instagram_options').css('display', 'table-row-group');
296
+ }else{
297
+ jQuery('#heateor_sss_instagram_options').css('display', 'none');
298
+ }
299
+ });
300
+ jQuery('input#heateor_sss_vertical_sharing_instagram').click(function(){
301
+ if(jQuery(this).is(':checked')){
302
+ jQuery('#heateor_sss_vertical_instagram_options').css('display', 'table-row-group');
303
+ }else{
304
+ jQuery('#heateor_sss_vertical_instagram_options').css('display', 'none');
305
+ }
306
+ });
307
+ // youtube url option
308
+ jQuery('input#heateor_sss_youtube').click(function(){
309
+ if(jQuery(this).is(':checked')){
310
+ jQuery('#heateor_sss_youtube_options').css('display', 'table-row-group');
311
+ }else{
312
+ jQuery('#heateor_sss_youtube_options').css('display', 'none');
313
+ }
314
+ });
315
+ jQuery('input#heateor_sss_vertical_sharing_youtube').click(function(){
316
+ if(jQuery(this).is(':checked')){
317
+ jQuery('#heateor_sss_vertical_youtube_options').css('display', 'table-row-group');
318
+ }else{
319
+ jQuery('#heateor_sss_vertical_youtube_options').css('display', 'none');
320
+ }
321
+ });
322
+ // facebook share count option
323
+ jQuery('input#heateor_sss_facebook').click(function(){
324
+ if(jQuery(this).is(':checked')){
325
+ heateorSssHorizontalFacebookShareEnabled = true;
326
+ }else{
327
+ heateorSssHorizontalFacebookShareEnabled = false;
328
+ }
329
+ });
330
+ jQuery('input#heateor_sss_vertical_sharing_facebook').click(function(){
331
+ if(jQuery(this).is(':checked')){
332
+ heateorSssVerticalFacebookShareEnabled = true;
333
+ }else{
334
+ heateorSssVerticalFacebookShareEnabled = false;
335
+ }
336
+ });
337
+ jQuery('input#heateor_sss_vertical_instagram_username').keyup(function(){
338
+ jQuery('#heateor_sss_instagram_username').val(jQuery(this).val().trim());
339
+ });
340
+ jQuery('input#heateor_sss_instagram_username').keyup(function(){
341
+ jQuery('#heateor_sss_vertical_instagram_username').val(jQuery(this).val().trim());
342
+ });
343
+ jQuery('input#heateor_sss_vertical_youtube_username').keyup(function(){
344
+ jQuery('#heateor_sss_youtube_username').val(jQuery(this).val().trim());
345
+ });
346
+ jQuery('input#heateor_sss_youtube_username').keyup(function(){
347
+ jQuery('#heateor_sss_vertical_youtube_username').val(jQuery(this).val().trim());
348
+ });
349
+ // Twitter share count options
350
+ jQuery('input#heateor_sss_vertical_newsharecounts').click(function(){
351
+ jQuery('#heateor_sss_newsharecounts').attr('checked', 'checked');
352
+ });
353
+ jQuery('input#heateor_sss_vertical_opensharecount').click(function(){
354
+ jQuery('#heateor_sss_opensharecount').attr('checked', 'checked');
355
+ });
356
+ jQuery('input#heateor_sss_newsharecounts').click(function(){
357
+ jQuery('#heateor_sss_vertical_newsharecounts').attr('checked', 'checked');
358
+ });
359
+ jQuery('input#heateor_sss_opensharecount').click(function(){
360
+ jQuery('#heateor_sss_vertical_opensharecount').attr('checked', 'checked');
361
+ });
362
+ jQuery('input#heateor_sss_counts').click(function(){
363
+ if(jQuery(this).is(':checked')){
364
+ jQuery('#heateor_sss_twitter_share_count').css('display', 'table-row');
365
+ }else{
366
+ jQuery('#heateor_sss_twitter_share_count').css('display', 'none');
367
+ }
368
+ });
369
+ jQuery('input#heateor_sss_vertical_counts').click(function(){
370
+ if(jQuery(this).is(':checked')){
371
+ jQuery('#heateor_sss_twitter_vertical_share_count').css('display', 'table-row');
372
+ }else{
373
+ jQuery('#heateor_sss_twitter_vertical_share_count').css('display', 'none');
374
+ }
375
+ });
376
+ jQuery('input[name="heateor_sss[horizontal_sharing_shape]"]').click(function(){
377
+ // toggle height, width options
378
+ if(jQuery(this).val() == 'rectangle'){
379
+ jQuery('#heateor_sss_rectangle_options').css('display', 'table-row-group');
380
+ jQuery('#heateor_sss_size_options').css('display', 'none');
381
+ }else{
382
+ jQuery('#heateor_sss_rectangle_options').css('display', 'none');
383
+ jQuery('#heateor_sss_size_options').css('display', 'table-row-group');
384
+ }
385
+
386
+ // toggle border radius option
387
+ if(jQuery(this).val() == 'round'){
388
+ jQuery('#heateor_sss_border_radius_options').css('display', 'none');
389
+ }else{
390
+ jQuery('#heateor_sss_border_radius_options').css('display', 'table-row-group');
391
+ }
392
+ });
393
+ jQuery('input#heateor_sss_mobile_sharing_bottom').click(function(){
394
+ if(jQuery(this).is(':checked')){
395
+ jQuery('#heateor_sss_bottom_sharing_options').css('display', 'table-row-group');
396
+ }else{
397
+ jQuery('#heateor_sss_bottom_sharing_options').css('display', 'none');
398
+ }
399
+ });
400
+ jQuery('input[name="heateor_sss[vertical_sharing_shape]"]').click(function(){
401
+ // toggle height, width options
402
+ if(jQuery(this).val() == 'rectangle'){
403
+ jQuery('#heateor_sss_vertical_rectangle_options').css('display', 'table-row-group');
404
+ jQuery('#heateor_sss_vertical_size_options').css('display', 'none');
405
+ }else{
406
+ jQuery('#heateor_sss_vertical_rectangle_options').css('display', 'none');
407
+ jQuery('#heateor_sss_vertical_size_options').css('display', 'table-row-group');
408
+ }
409
+
410
+ // toggle border radius option
411
+ if(jQuery(this).val() == 'round'){
412
+ jQuery('#heateor_sss_vertical_border_radius_options').css('display', 'none');
413
+ }else{
414
+ jQuery('#heateor_sss_vertical_border_radius_options').css('display', 'table-row-group');
415
+ }
416
+ });
417
+ jQuery("#heateor_sss_rearrange, #heateor_sss_vertical_rearrange").sortable(), jQuery(".heateorSssHorizontalSharingProviderContainer input").click(function() {
418
+ jQuery(this).is(":checked") ? jQuery("#heateor_sss_rearrange").append('<li title="' + jQuery(this).val().replace(/_/g, " ") + '" id="heateor_sss_re_horizontal_' + jQuery(this).val().replace(/[. ]/g, "_") + '" ><i style="display:block;' + heateorSssHorSharingStyle + '" class="' + ( jQuery.inArray(jQuery(this).val(), heateorSssLikeButtons) != -1 ? '' : 'heateorSssSharingBackground ' ) + 'heateorSss' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace(/[_. ]/g, "")) + 'Background"><div class="heateorSssSharingSvg heateorSss' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace(/[_. ]/g, "")) + 'Svg" style="' + heateorSssHorDeliciousRadius + '"></div></i><input type="hidden" name="heateor_sss[horizontal_re_providers][]" value="' + jQuery(this).val() + '"></li>') : jQuery("#heateor_sss_re_horizontal_" + jQuery(this).val().replace(/[. ]/g, "_")).remove()
419
+ }), jQuery(".heateorSssVerticalSharingProviderContainer input").click(function() {
420
+ jQuery(this).is(":checked") ? jQuery("#heateor_sss_vertical_rearrange").append('<li title="' + jQuery(this).val().replace(/_/g, " ") + '" id="heateor_sss_re_vertical_' + jQuery(this).val().replace(/[. ]/g, "_") + '" ><i style="display:block;' + heateorSssVerticalSharingStyle + '" class="' + ( jQuery.inArray(jQuery(this).val(), heateorSssLikeButtons) != -1 ? '' : 'heateorSssVerticalSharingBackground ' ) + 'heateorSss' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace(/[_. ]/g, "")) + 'Background"><div class="heateorSssSharingSvg heateorSss' + heateorSssCapitaliseFirstLetter(jQuery(this).val().replace(/[_. ]/g, "")) + 'Svg" style="' + heateorSssVerticalDeliciousRadius + '"></div></i><input type="hidden" name="heateor_sss[vertical_re_providers][]" value="' + jQuery(this).val() + '"></li>') : jQuery("#heateor_sss_re_vertical_" + jQuery(this).val().replace(/[. ]/g, "_")).remove()
421
+ }), jQuery("#heateor_sss_target_url_column").find("input[type=radio]").click(function() {
422
+ jQuery(this).attr("id") && "heateor_sss_target_url_custom" == jQuery(this).attr("id") ? jQuery("#heateor_sss_target_url_custom_url").css("display", "block") : jQuery("#heateor_sss_target_url_custom_url").css("display", "none")
423
+ }), jQuery("#heateor_sss_vertical_target_url_column").find("input[type=radio]").click(function() {
424
+ jQuery(this).attr("id") && "heateor_sss_vertical_target_url_custom" == jQuery(this).attr("id") ? jQuery("#heateor_sss_vertical_target_url_custom_url").css("display", "block") : jQuery("#heateor_sss_vertical_target_url_custom_url").css("display", "none")
425
+ }), jQuery("#heateor_sss_target_url_custom").is(":checked") ? jQuery("#heateor_sss_target_url_custom_url").css("display", "block") : jQuery("#heateor_sss_target_url_custom_url").css("display", "none"), jQuery("#heateor_sss_vertical_target_url_custom").is(":checked") ? jQuery("#heateor_sss_vertical_target_url_custom_url").css("display", "block") : jQuery("#heateor_sss_vertical_target_url_custom_url").css("display", "none")
426
  })
admin/partials/sassy-social-share-options-page.php CHANGED
@@ -1,2163 +1,2220 @@
1
- <?php
2
- /**
3
- * Options page
4
- *
5
- * @since 1.0.0
6
- */
7
- defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
8
- ?>
9
-
10
- <div id="fb-root"></div>
11
-
12
- <div class="metabox-holder columns-2" id="post-body">
13
- <h1>Sassy Social Share</h1>
14
- <div>
15
- <?php
16
- echo sprintf( __( 'You can appreciate the effort put in this free plugin by rating it <a href="%s" target="_blank">here</a>', 'sassy-social-share' ), 'https://wordpress.org/support/view/plugin-reviews/sassy-social-share' );
17
- ?>
18
- </div>
19
- <div class="menu_div" id="tabs">
20
- <form id="heateor_sss_form" action="options.php" method="post">
21
- <?php settings_fields( 'heateor_sss_options' ); ?>
22
- <h2 class="nav-tab-wrapper" style="height:34px">
23
- <ul>
24
- <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-1"><?php _e( 'Theme Selection', 'sassy-social-share' ) ?></a></li>
25
- <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-2"><?php _e( 'Standard Interface', 'sassy-social-share' ) ?></a></li>
26
- <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-3"><?php _e( 'Floating Interface', 'sassy-social-share' ) ?></a></li>
27
- <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-4"><?php _e( 'Miscellaneous', 'sassy-social-share' ) ?></a></li>
28
- <?php
29
- if ( $this->is_plugin_active( 'mycred/mycred.php' ) ) {
30
- ?>
31
- <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-5"><?php _e( '3rd Party Integration', 'sassy-social-share' ) ?></a></li>
32
- <?php
33
- }
34
- ?>
35
- <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-6"><?php _e( 'Shortcode & Widget', 'sassy-social-share' ) ?></a></li>
36
- <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-7"><?php _e( 'Troubleshooter', 'sassy-social-share' ) ?></a></li>
37
- <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-8"><?php _e( 'FAQ', 'sassy-social-share' ) ?></a></li>
38
- </ul>
39
- </h2>
40
-
41
- <div class="menu_containt_div" id="tabs-1">
42
- <div class="clear"></div>
43
- <div class="heateor_sss_left_column">
44
- <div class="stuffbox">
45
- <h3><label><?php _e( 'Standard interface theme', 'sassy-social-share' );?></label></h3>
46
- <div class="inside">
47
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
48
- <tr>
49
- <th>
50
- <label style="float:left"><?php _e("Icon Preview", 'sassy-social-share' ); ?></label>
51
- </th>
52
- <td>
53
- <?php
54
- $horizontal_bg = isset( $options['horizontal_bg_color_default'] ) ? $options['horizontal_bg_color_default'] : '';
55
- $border_width = isset( $options['horizontal_border_width_default'] ) ? $options['horizontal_border_width_default'] : '';
56
- $border_color = isset( $options['horizontal_border_color_default'] ) ? $options['horizontal_border_color_default'] : '';
57
- $sharing_color = isset( $options['horizontal_font_color_default'] ) ? $options['horizontal_font_color_default'] : '';
58
- $sharing_color_hover = isset( $options['horizontal_font_color_hover'] ) ? $options['horizontal_font_color_hover'] : '';
59
- $sharing_shape = isset( $options['horizontal_sharing_shape'] ) ? $options['horizontal_sharing_shape'] : 'round';
60
- $sharing_size = isset( $options['horizontal_sharing_size'] ) ? $options['horizontal_sharing_size'] : 32;
61
- $sharing_width = isset( $options['horizontal_sharing_width'] ) ? $options['horizontal_sharing_width'] : 32;
62
- $sharing_height = isset( $options['horizontal_sharing_height'] ) ? $options['horizontal_sharing_height'] : 32;
63
- $sharing_border_radius = isset( $options['horizontal_border_radius'] ) ? $options['horizontal_border_radius'] : '';
64
- $horizontal_bg_hover = isset( $options['horizontal_bg_color_hover'] ) ? $options['horizontal_bg_color_hover'] : '';
65
- $counter_position = isset( $options['horizontal_counter_position'] ) ? $options['horizontal_counter_position'] : '';
66
- $line_height = $sharing_shape == 'rectangle' ? $sharing_height : $sharing_size;
67
- ?>
68
- <style type="text/css">
69
- <?php
70
- if ( isset( $options['plain_instagram_bg'] ) ) {
71
- ?>
72
- .heateorSssInstagramBackground{background-color:#527fa4}
73
- <?php
74
- } else {
75
- ?>
76
- .heateorSssInstagramBackground{background:radial-gradient(circle at 30% 107%,#fdf497 0,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%)}
77
- <?php
78
- }
79
- ?>
80
- #heateor_sss_preview{
81
- color:<?php echo $sharing_color ? $sharing_color : "#fff" ?>;
82
- }
83
- #heateor_sss_preview:hover{
84
- color:<?php echo $sharing_color_hover ?>;
85
- }
86
- </style>
87
- <div>
88
- <div class="heateorSssCounterPreviewTop" style="width:<?php echo 60 + ( isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] == 'rectangle' ? $options['horizontal_sharing_width'] : $options['horizontal_sharing_size'] ) ?>px">44</div>
89
- <div class="heateorSssCounterPreviewLeft">44</div>
90
- <div id="heateor_sss_preview" style="cursor:pointer;float:left">
91
- <div class="heateorSssCounterPreviewInnertop">44</div>
92
- <div class="heateorSssCounterPreviewInnerleft">44</div>
93
- <div id="horizontal_svg" style="float:left;width:100%;height:100%;background:url( 'data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%22-4%20-4%2040%2040%22%3E%3Cpath%20d%3D%22M17.78%2027.5V17.008h3.522l.527-4.09h-4.05v-2.61c0-1.182.33-1.99%202.023-1.99h2.166V4.66c-.375-.05-1.66-.16-3.155-.16-3.123%200-5.26%201.905-5.26%205.405v3.016h-3.53v4.09h3.53V27.5h4.223z%22%20fill%3D%22<?php echo $sharing_color ? str_replace( '#', '%23', $sharing_color) : "%23fff" ?>%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E' ) no-repeat center center; margin: auto"></div>
94
- <div class="heateorSssCounterPreviewInnerright">44</div>
95
- <div class="heateorSssCounterPreviewInnerbottom">44</div>
96
- </div>
97
- <div class="heateorSssCounterPreviewRight">44</div>
98
- <div class="heateorSssCounterPreviewBottom" style="width:<?php echo 60 + ( isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] == 'rectangle' ? $options['horizontal_sharing_width'] : $options['horizontal_sharing_size'] ) ?>px">44</div>
99
- </div>
100
-
101
- <script type="text/javascript">
102
- var tempHorShape = '<?php echo $sharing_shape ?>', tempHorSize = '<?php echo $sharing_size ?>', tempHorHeight = '<?php echo $sharing_height ?>', tempHorWidth = '<?php echo $sharing_width ?>', heateorSssSharingBgHover = '<?php echo $horizontal_bg_hover ?>', heateorSssSharingBg = '<?php echo $horizontal_bg ? $horizontal_bg : "#3C589A" ?>', heateorSssBorderWidth = '<?php echo $border_width ?>', heateorSssBorderColor = '<?php echo $border_color ?>', heateorSssSharingBorderRadius = '<?php echo $sharing_border_radius ? $sharing_border_radius . "px" : "0px" ?>';
103
-
104
- heateorSssSharingHorizontalPreview();
105
-
106
- jQuery( '#heateor_sss_preview' ).hover(function() {
107
- if (heateorSssSharingBgHover && heateorSssSharingBgHover != '#3C589A' ) {
108
- jQuery(this).css( 'backgroundColor', heateorSssSharingBgHover);
109
- }
110
- if (jQuery( '#heateor_sss_font_color_hover' ).val().trim() ) {
111
- jQuery(this).find( '#horizontal_svg' ).attr( 'style', jQuery(this).find( '#horizontal_svg' ).attr( 'style' ).replace(heateorSssSharingTempColor.replace( '#', '%23' ), jQuery( '#heateor_sss_font_color_hover' ).val().trim().replace( '#', '%23' ) ));
112
- jQuery(this).css( 'color', jQuery( '#heateor_sss_font_color_hover' ).val().trim() );
113
- }
114
- jQuery(this).css( 'borderStyle', 'solid' );
115
- jQuery(this).css( 'borderWidth', heateorSssBorderWidthHover ? heateorSssBorderWidthHover : heateorSssBorderWidth ? heateorSssBorderWidth : '0' );
116
- jQuery(this).css( 'borderColor', heateorSssBorderColorHover ? heateorSssBorderColorHover : 'transparent' );
117
- },function() {
118
- jQuery(this).css( 'backgroundColor', heateorSssSharingBg);
119
- if (jQuery( '#heateor_sss_font_color_hover' ).val().trim() ) {
120
- jQuery(this).find( '#horizontal_svg' ).attr( 'style', jQuery(this).find( '#horizontal_svg' ).attr( 'style' ).replace(jQuery( '#heateor_sss_font_color_hover' ).val().trim().replace( '#', '%23' ), heateorSssSharingTempColor.replace( '#', '%23' ) ));
121
- jQuery(this).css( 'color', heateorSssSharingTempColor);
122
- }
123
- jQuery(this).css( 'borderStyle', 'solid' );
124
- jQuery(this).css( 'borderWidth', heateorSssBorderWidth ? heateorSssBorderWidth : heateorSssBorderWidthHover ? heateorSssBorderWidthHover : '0' );
125
- jQuery(this).css( 'borderColor', heateorSssBorderColor ? heateorSssBorderColor : 'transparent' );
126
- });
127
- </script>
128
- </td>
129
- </tr>
130
-
131
- <tr>
132
- <td colspan="2">
133
- <div id="heateor_sss_preview_message" style="color:green;display:none;margin-top:36px"><?php _e( 'Do not forget to save the configuration after making changes by clicking the save button below', 'sassy-social-share' ); ?></div>
134
- </td>
135
- </tr>
136
-
137
- <tr>
138
- <th>
139
- <label><?php _e( "Shape", 'sassy-social-share' ); ?></label>
140
- <img id="heateor_sss_icon_shape_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
141
- </th>
142
- <td>
143
- <input id="heateor_sss_icon_round" onclick="tempHorShape = 'round';heateorSssSharingHorizontalPreview()" name="heateor_sss[horizontal_sharing_shape]" type="radio" <?php echo $sharing_shape == 'round' ? 'checked = "checked"' : '';?> value="round" />
144
- <label style="margin-right:10px" for="heateor_sss_icon_round"><?php _e( "Round", 'sassy-social-share' ); ?></label>
145
- <input id="heateor_sss_icon_square" onclick="tempHorShape = 'square';heateorSssSharingHorizontalPreview()" name="heateor_sss[horizontal_sharing_shape]" type="radio" <?php echo $sharing_shape == 'square' ? 'checked = "checked"' : '';?> value="square" />
146
- <label style="margin-right:10px" for="heateor_sss_icon_square"><?php _e( "Square", 'sassy-social-share' ); ?></label>
147
- <input id="heateor_sss_icon_rectangle" onclick="tempHorShape = 'rectangle';heateorSssSharingHorizontalPreview()" name="heateor_sss[horizontal_sharing_shape]" type="radio" <?php echo $sharing_shape == 'rectangle' ? 'checked = "checked"' : '';?> value="rectangle" />
148
- <label for="heateor_sss_icon_rectangle"><?php _e( "Rectangle", 'sassy-social-share' ); ?></label>
149
- </td>
150
- </tr>
151
-
152
- <tr class="heateor_sss_help_content" id="heateor_sss_icon_shape_help_cont">
153
- <td colspan="2">
154
- <div>
155
- <?php _e( 'Shape of the sharing icons', 'sassy-social-share' ) ?>
156
- </div>
157
- </td>
158
- </tr>
159
-
160
- <tbody id="heateor_sss_size_options" <?php echo ! isset( $options['horizontal_sharing_shape'] ) || $options['horizontal_sharing_shape'] != 'rectangle' ? '' : 'style="display: none"'; ?>>
161
- <tr>
162
- <th>
163
- <label><?php _e("Size (in pixels)", 'sassy-social-share' ); ?></label>
164
- <img id="heateor_sss_icon_size_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
165
- </th>
166
- <td>
167
- <input style="width:50px" id="heateor_sss_icon_size" name="heateor_sss[horizontal_sharing_size]" type="text" value="<?php echo $sharing_size; ?>" />
168
- <input id="heateor_sss_size_plus" type="button" value="+" onmouseup="tempHorSize = document.getElementById( 'heateor_sss_icon_size' ).value;heateorSssSharingHorizontalPreview()" />
169
- <input id="heateor_sss_size_minus" type="button" value="-" onmouseup="tempHorSize = document.getElementById( 'heateor_sss_icon_size' ).value;heateorSssSharingHorizontalPreview()" />
170
- <script type="text/javascript">
171
- heateorSssIncrement(document.getElementById( 'heateor_sss_size_plus' ), "add", document.getElementById( 'heateor_sss_icon_size' ), 300, 0.7);
172
- heateorSssIncrement(document.getElementById( 'heateor_sss_size_minus' ), "subtract", document.getElementById( 'heateor_sss_icon_size' ), 300, 0.7);
173
- </script>
174
- </td>
175
- </tr>
176
-
177
- <tr class="heateor_sss_help_content" id="heateor_sss_icon_size_help_cont">
178
- <td colspan="2">
179
- <div>
180
- <?php _e( 'Size of the sharing icons', 'sassy-social-share' ) ?>
181
- </div>
182
- </td>
183
- </tr>
184
- </tbody>
185
-
186
- <tbody id="heateor_sss_rectangle_options" <?php echo isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] == 'rectangle' ? '' : 'style="display: none"'; ?>>
187
- <tr>
188
- <th>
189
- <label><?php _e("Width (in pixels)", 'sassy-social-share' ); ?></label>
190
- <img id="heateor_sss_icon_width_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
191
- </th>
192
- <td>
193
- <input style="width:50px" id="heateor_sss_icon_width" name="heateor_sss[horizontal_sharing_width]" type="text" value="<?php echo $sharing_width; ?>" />
194
- <input id="heateor_sss_width_plus" type="button" value="+" onmouseup="tempHorWidth = document.getElementById( 'heateor_sss_icon_width' ).value;heateorSssSharingHorizontalPreview()" />
195
- <input id="heateor_sss_width_minus" type="button" value="-" onmouseup="tempHorWidth = document.getElementById( 'heateor_sss_icon_width' ).value;heateorSssSharingHorizontalPreview()" />
196
- <script type="text/javascript">
197
- heateorSssIncrement(document.getElementById( 'heateor_sss_width_plus' ), "add", document.getElementById( 'heateor_sss_icon_width' ), 300, 0.7);
198
- heateorSssIncrement(document.getElementById( 'heateor_sss_width_minus' ), "subtract", document.getElementById( 'heateor_sss_icon_width' ), 300, 0.7);
199
- </script>
200
- </td>
201
- </tr>
202
-
203
- <tr class="heateor_sss_help_content" id="heateor_sss_icon_width_help_cont">
204
- <td colspan="2">
205
- <div>
206
- <?php _e( 'Width of the sharing icons', 'sassy-social-share' ) ?>
207
- </div>
208
- </td>
209
- </tr>
210
-
211
- <tr>
212
- <th>
213
- <label><?php _e("Height (in pixels)", 'sassy-social-share' ); ?></label>
214
- <img id="heateor_sss_icon_height_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
215
- </th>
216
- <td>
217
- <input style="width:50px" id="heateor_sss_icon_height" name="heateor_sss[horizontal_sharing_height]" type="text" value="<?php echo $sharing_height; ?>" />
218
- <input id="heateor_sss_height_plus" type="button" value="+" onmouseup="tempHorHeight = document.getElementById( 'heateor_sss_icon_height' ).value;heateorSssSharingHorizontalPreview()" />
219
- <input id="heateor_sss_height_minus" type="button" value="-" onmouseup="tempHorHeight = document.getElementById( 'heateor_sss_icon_height' ).value;heateorSssSharingHorizontalPreview()" />
220
- <script type="text/javascript">
221
- heateorSssIncrement(document.getElementById( 'heateor_sss_height_plus' ), "add", document.getElementById( 'heateor_sss_icon_height' ), 300, 0.7);
222
- heateorSssIncrement(document.getElementById( 'heateor_sss_height_minus' ), "subtract", document.getElementById( 'heateor_sss_icon_height' ), 300, 0.7);
223
- </script>
224
- </td>
225
- </tr>
226
-
227
- <tr class="heateor_sss_help_content" id="heateor_sss_icon_height_help_cont">
228
- <td colspan="2">
229
- <div>
230
- <?php _e( 'Height of the sharing icons', 'sassy-social-share' ) ?>
231
- </div>
232
- </td>
233
- </tr>
234
- </tbody>
235
-
236
- <tbody id="heateor_sss_border_radius_options" <?php echo isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] != 'round' ? '' : 'style="display: none"'; ?>>
237
- <tr>
238
- <th>
239
- <label><?php _e("Border radius (in pixels)", 'sassy-social-share' ); ?></label>
240
- <img id="heateor_sss_icon_border_radius_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
241
- </th>
242
- <td>
243
- <input style="width:50px" id="heateor_sss_icon_border_radius" name="heateor_sss[horizontal_border_radius]" type="text" value="<?php echo $sharing_border_radius; ?>" onkeyup="heateorSssSharingBorderRadius = this.value.trim() ? this.value.trim() + 'px' : '0px';heateorSssUpdateSharingPreview(heateorSssSharingBorderRadius, 'borderRadius', '0px', 'heateor_sss_preview' )" />
244
- </td>
245
- </tr>
246
-
247
- <tr class="heateor_sss_help_content" id="heateor_sss_icon_border_radius_help_cont">
248
- <td colspan="2">
249
- <div>
250
- <?php _e( 'Specify a value for rounded corners. More the value, more rounded will the corners be. Leave empty for sharp corners.', 'sassy-social-share' ) ?>
251
- </div>
252
- </td>
253
- </tr>
254
- </tbody>
255
-
256
- <tr>
257
- <th>
258
- <label><?php _e("Logo Color", 'sassy-social-share' ); ?></label>
259
- <img id="heateor_sss_font_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
260
- </th>
261
- <td>
262
- <script type="text/javascript">var heateorSssSharingTempColor = '<?php echo $sharing_color ? $sharing_color : "#fff" ?>';</script>
263
- <label for="heateor_sss_font_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_font_color_default" onkeyup="if (this.value.trim() == '' || this.value.trim().length >= 3) { jQuery( '#horizontal_svg' ).attr( 'style', jQuery( '#horizontal_svg' ).attr( 'style' ).replace(heateorSssSharingTempColor.replace( '#', '%23' ), this.value.trim() ? this.value.trim().replace( '#', '%23' ) : '%23fff' ) ); heateorSssSharingTempColor = this.value.trim() ? this.value.trim() : '#fff';jQuery( '#heateor_sss_preview' ).css( 'color', heateorSssSharingTempColor.replace( '%23','#' ) ) }" name="heateor_sss[horizontal_font_color_default]" type="text" value="<?php echo $sharing_color; ?>" />
264
- <input name="heateor_sss[horizontal_sharing_replace_color]" type="hidden" value="<?php echo isset( $options['horizontal_sharing_replace_color'] ) ? $options['horizontal_sharing_replace_color'] : ''; ?>" />
265
- <label style="margin-left:10px" for="heateor_sss_font_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_font_color_hover" name="heateor_sss[horizontal_font_color_hover]" type="text" onkeyup="" value="<?php echo $sharing_color_hover; ?>" />
266
- <input name="heateor_sss[horizontal_sharing_replace_color_hover]" type="hidden" value="<?php echo isset( $options['horizontal_sharing_replace_color_hover'] ) ? $options['horizontal_sharing_replace_color_hover'] : ''; ?>" />
267
- </td>
268
- </tr>
269
-
270
- <tr class="heateor_sss_help_content" id="heateor_sss_font_color_help_cont">
271
- <td colspan="2">
272
- <div>
273
- <?php _e( 'Specify the color or hex code (example #cc78e0) for the logo of icon. Leave empty for default. You can get the hex code of the required color from <a href="http://www.colorpicker.com/" target="_blank">this link</a>', 'sassy-social-share' ) ?>
274
- </div>
275
- </td>
276
- </tr>
277
-
278
- <tr>
279
- <th>
280
- <label><?php _e("Background Color", 'sassy-social-share' ); ?></label>
281
- <img id="heateor_sss_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
282
- </th>
283
- <td>
284
- <label for="heateor_sss_bg_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_bg_color_default" name="heateor_sss[horizontal_bg_color_default]" type="text" onkeyup="heateorSssSharingBg = this.value.trim() ? this.value.trim() : '#3C589A'; heateorSssUpdateSharingPreview(this.value.trim(), 'backgroundColor', '#3C589A', 'heateor_sss_preview' )" value="<?php echo $horizontal_bg ?>" />
285
- <label style="margin-left:10px" for="heateor_sss_bg_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_bg_color_hover" name="heateor_sss[horizontal_bg_color_hover]" type="text" onkeyup="heateorSssSharingBgHover = this.value.trim() ? this.value.trim() : '#3C589A';" value="<?php echo $horizontal_bg_hover ?>" />
286
- </td>
287
- </tr>
288
-
289
- <tr class="heateor_sss_help_content" id="heateor_sss_bg_color_help_cont">
290
- <td colspan="2">
291
- <div>
292
- <?php _e( 'Specify the color or hex code (example #cc78e0) for icon background. Save "transparent" for transparent background. Leave empty for default. You can get the hex code of the required color from <a href="http://www.colorpicker.com/" target="_blank">this link</a>', 'sassy-social-share' ) ?>
293
- </div>
294
- </td>
295
- </tr>
296
-
297
- <tr>
298
- <th>
299
- <label><?php _e("Border", 'sassy-social-share' ); ?></label>
300
- <img id="heateor_sss_border_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
301
- </th>
302
- <td>
303
- <script type="text/javascript">var heateorSssBorderWidthHover = '<?php echo $border_width_hover = isset( $options['horizontal_border_width_hover'] ) ? $options['horizontal_border_width_hover'] : ''; ?>', heateorSssBorderColorHover = '<?php echo $border_color_hover = isset( $options['horizontal_border_color_hover'] ) ? $options['horizontal_border_color_hover'] : ''; ?>'</script>
304
- <label><strong><?php _e("Default", 'sassy-social-share' ); ?></strong></label>
305
- <br/>
306
- <label for="heateor_sss_border_width_default"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_width_default" onkeyup="heateorSssBorderWidth = this.value.trim(); jQuery( '#heateor_sss_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderWidth', '0px', 'heateor_sss_preview' ); heateorSssSharingHorizontalPreview();" name="heateor_sss[horizontal_border_width_default]" type="text" value="<?php echo $border_width ?>" />pixel(s)
307
- <label style="margin-left:10px" for="heateor_sss_border_color_default"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" onkeyup="heateorSssBorderColor = this.value.trim(); jQuery( '#heateor_sss_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderColor', 'transparent', 'heateor_sss_preview' )" id="heateor_sss_border_color_default" name="heateor_sss[horizontal_border_color_default]" type="text" value="<?php echo $border_color ?>" />
308
- <br/><br/>
309
- <label><strong><?php _e("On Hover", 'sassy-social-share' ); ?></strong></label>
310
- <br/>
311
- <label for="heateor_sss_border_width_hover"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_width_hover" name="heateor_sss[horizontal_border_width_hover]" type="text" value="<?php echo $border_width_hover ?>" onkeyup="heateorSssBorderWidthHover = this.value.trim();" />pixel(s)
312
- <label style="margin-left:10px" for="heateor_sss_border_color_hover"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_color_hover" name="heateor_sss[horizontal_border_color_hover]" type="text" value="<?php echo $border_color_hover ?>" onkeyup="heateorSssBorderColorHover = this.value.trim();" />
313
- </td>
314
- </tr>
315
-
316
- <tr class="heateor_sss_help_content" id="heateor_sss_border_help_cont">
317
- <td colspan="2">
318
- <div>
319
- <?php _e( 'Icon border', 'sassy-social-share' ) ?>
320
- </div>
321
- </td>
322
- </tr>
323
-
324
- <tr>
325
- <th>
326
- <label><?php _e("Counter Position", 'sassy-social-share' ); ?><br/><?php _e("(applies, if counter enabled)", 'sassy-social-share' ); ?></label>
327
- <img id="heateor_sss_counter_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
328
- </th>
329
- <td>
330
- <input id="heateor_sss_counter_left" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'left' ? 'checked = "checked"' : '';?> value="left" />
331
- <label style="margin-right:10px" for="heateor_sss_counter_left"><?php _e("Left", 'sassy-social-share' ); ?></label>
332
- <input id="heateor_sss_counter_top" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'top' ? 'checked = "checked"' : '';?> value="top" />
333
- <label style="margin-right:10px" for="heateor_sss_counter_top"><?php _e("Top", 'sassy-social-share' ); ?></label>
334
- <input id="heateor_sss_counter_right" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'right' ? 'checked = "checked"' : '';?> value="right" />
335
- <label style="margin-right:10px" for="heateor_sss_counter_right"><?php _e("Right", 'sassy-social-share' ); ?></label>
336
- <input id="heateor_sss_counter_bottom" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'bottom' ? 'checked = "checked"' : '';?> value="bottom" />
337
- <label style="margin-right:10px" for="heateor_sss_counter_bottom"><?php _e("Bottom", 'sassy-social-share' ); ?></label><br/>
338
- <input id="heateor_sss_counter_inner_left" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'inner_left' ? 'checked = "checked"' : '';?> value="inner_left" />
339
- <label style="margin-right:10px" for="heateor_sss_counter_inner_left"><?php _e("Inner Left", 'sassy-social-share' ); ?></label>
340
- <input id="heateor_sss_counter_inner_top" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'inner_top' ? 'checked = "checked"' : '';?> value="inner_top" />
341
- <label style="margin-right:10px" for="heateor_sss_counter_inner_top"><?php _e("Inner Top", 'sassy-social-share' ); ?></label>
342
- <input id="heateor_sss_counter_inner_right" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'inner_right' ? 'checked = "checked"' : '';?> value="inner_right" />
343
- <label style="margin-right:10px" for="heateor_sss_counter_inner_right"><?php _e("Inner Right", 'sassy-social-share' ); ?></label>
344
- <input id="heateor_sss_counter_inner_bottom" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'inner_bottom' ? 'checked = "checked"' : '';?> value="inner_bottom" />
345
- <label style="margin-right:10px" for="heateor_sss_counter_inner_bottom"><?php _e("Inner Bottom", 'sassy-social-share' ); ?></label>
346
- </td>
347
- </tr>
348
- <script type="text/javascript">heateorSssCounterPreview( '<?php echo $counter_position ?>' );</script>
349
-
350
- <tr class="heateor_sss_help_content" id="heateor_sss_counter_help_cont">
351
- <td colspan="2">
352
- <div>
353
- <?php _e( 'Position of share counter', 'sassy-social-share' ) ?>
354
- </div>
355
- </td>
356
- </tr>
357
-
358
- <tr>
359
- <td colspan="2">
360
- <div>
361
- <a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/responsive-icons.png', __FILE__ ) ?>" /></a>
362
- </div>
363
- </td>
364
- </tr>
365
-
366
- </table>
367
- </div>
368
- </div>
369
-
370
- <div class="stuffbox">
371
- <h3><label><?php _e( 'Floating interface theme', 'sassy-social-share' );?></label></h3>
372
- <div class="inside">
373
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
374
- <tr>
375
- <th>
376
- <label style="float:left"><?php _e("Icon Preview", 'sassy-social-share' ); ?></label>
377
- </th>
378
- <td>
379
- <?php
380
- $vertical_bg = isset( $options['vertical_bg_color_default'] ) ? $options['vertical_bg_color_default'] : '';
381
- $vertical_bg_hover = isset( $options['vertical_bg_color_hover'] ) ? $options['vertical_bg_color_hover'] : '';
382
- $vertical_border_width = isset( $options['vertical_border_width_default'] ) ? $options['vertical_border_width_default'] : '';
383
- $vertical_border_color = isset( $options['vertical_border_color_default'] ) ? $options['vertical_border_color_default'] : '';
384
- $vertical_sharing_color = isset( $options['vertical_font_color_default'] ) ? $options['vertical_font_color_default'] : '';
385
- $vertical_sharing_color_hover = isset( $options['vertical_font_color_hover'] ) ? $options['vertical_font_color_hover'] : '';
386
- $vertical_sharing_shape = isset( $options['vertical_sharing_shape'] ) ? $options['vertical_sharing_shape'] : 'round';
387
- $vertical_sharing_size = isset( $options['vertical_sharing_size'] ) ? $options['vertical_sharing_size'] : 32;
388
- $vertical_sharing_width = isset( $options['vertical_sharing_width'] ) ? $options['vertical_sharing_width'] : 32;
389
- $vertical_sharing_height = isset( $options['vertical_sharing_height'] ) ? $options['vertical_sharing_height'] : 32;
390
- $vertical_sharing_border_radius = isset( $options['vertical_border_radius'] ) ? $options['vertical_border_radius'] : '';
391
- $vertical_vertical_bg_hover = isset( $options['vertical_bg_color_hover'] ) ? $options['vertical_bg_color_hover'] : '';
392
- $vertical_counter_position = isset( $options['vertical_counter_position'] ) ? $options['vertical_counter_position'] : '';
393
- $vertical_line_height = $vertical_sharing_shape == 'rectangle' ? $vertical_sharing_height : $vertical_sharing_size;
394
- ?>
395
- <style type="text/css">
396
- #heateor_sss_vertical_preview{
397
- color:<?php echo $vertical_sharing_color ? $vertical_sharing_color : "#fff" ?>;
398
- }
399
- #heateor_sss_vertical_preview:hover{
400
- color:<?php echo $vertical_sharing_color_hover ?>;
401
- }
402
- </style>
403
- <div>
404
- <div class="heateorSssCounterVerticalPreviewTop" style="width:<?php echo 60 + ( isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] == 'rectangle' ? $options['vertical_sharing_width'] : $options['vertical_sharing_size'] ) ?>px">44</div>
405
- <div class="heateorSssCounterVerticalPreviewLeft">44</div>
406
- <div id="heateor_sss_vertical_preview" style="cursor:pointer;float:left">
407
- <div class="heateorSssCounterVerticalPreviewInnertop">44</div>
408
- <div class="heateorSssCounterVerticalPreviewInnerleft">44</div>
409
- <div id="vertical_svg" style="float:left;width:100%;height:100%;background:url( 'data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%22-4%20-4%2040%2040%22%3E%3Cpath%20d%3D%22M17.78%2027.5V17.008h3.522l.527-4.09h-4.05v-2.61c0-1.182.33-1.99%202.023-1.99h2.166V4.66c-.375-.05-1.66-.16-3.155-.16-3.123%200-5.26%201.905-5.26%205.405v3.016h-3.53v4.09h3.53V27.5h4.223z%22%20fill%3D%22<?php echo $vertical_sharing_color ? str_replace( '#', '%23', $vertical_sharing_color) : "%23fff" ?>%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E' ) no-repeat center center; margin: auto"></div>
410
- <div class="heateorSssCounterVerticalPreviewInnerright">44</div>
411
- <div class="heateorSssCounterVerticalPreviewInnerbottom">44</div>
412
- </div>
413
- <div class="heateorSssCounterVerticalPreviewRight">44</div>
414
- <div class="heateorSssCounterVerticalPreviewBottom" style="width:<?php echo 60 + ( isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] == 'rectangle' ? $options['vertical_sharing_width'] : $options['vertical_sharing_size'] ) ?>px">44</div>
415
- </div>
416
-
417
- <script type="text/javascript">
418
- var tempVerticalShape = '<?php echo $vertical_sharing_shape ?>', tempVerticalSize = '<?php echo $vertical_sharing_size ?>', tempVerticalHeight = '<?php echo $vertical_sharing_height ?>', tempVerticalWidth = '<?php echo $vertical_sharing_width ?>', heateorSssVerticalSharingBgHover = '<?php echo $vertical_bg_hover ?>', heateorSssVerticalSharingBg = '<?php echo $vertical_bg ? $vertical_bg : "#3C589A" ?>', heateorSssVerticalBorderWidth = '<?php echo $vertical_border_width ?>', heateorSssVerticalBorderColor = '<?php echo $vertical_border_color ?>', heateorSssVerticalBorderWidthHover = '<?php echo $vertical_border_width_hover = isset( $options['vertical_border_width_hover'] ) ? $options['vertical_border_width_hover'] : ''; ?>', heateorSssVerticalBorderColorHover = '<?php echo $vertical_border_color_hover = isset( $options['vertical_border_color_hover'] ) ? $options['vertical_border_color_hover'] : ''; ?>', heateorSssVerticalBorderRadius = '<?php echo $vertical_sharing_border_radius ? $vertical_sharing_border_radius . "px" : "0px" ?>';
419
-
420
- heateorSssSharingVerticalPreview();
421
-
422
- jQuery( '#heateor_sss_vertical_preview' ).hover(function() {
423
- if (heateorSssVerticalSharingBgHover && heateorSssVerticalSharingBgHover != '#3C589A' ) {
424
- jQuery(this).css( 'backgroundColor', heateorSssVerticalSharingBgHover);
425
- }
426
- if (jQuery( '#heateor_sss_vertical_font_color_hover' ).val().trim() ) {
427
- jQuery(this).find( '#vertical_svg' ).attr( 'style', jQuery(this).find( '#vertical_svg' ).attr( 'style' ).replace(heateorSssVerticalSharingTempColor.replace( '#', '%23' ), jQuery( '#heateor_sss_vertical_font_color_hover' ).val().trim().replace( '#', '%23' ) ));
428
- jQuery(this).css( 'color', jQuery( '#heateor_sss_vertical_font_color_hover' ).val().trim() );
429
- }
430
- jQuery(this).css( 'borderStyle', 'solid' );
431
- jQuery(this).css( 'borderWidth', heateorSssVerticalBorderWidthHover ? heateorSssVerticalBorderWidthHover : heateorSssVerticalBorderWidth ? heateorSssVerticalBorderWidth : '0' );
432
- jQuery(this).css( 'borderColor', heateorSssVerticalBorderColorHover ? heateorSssVerticalBorderColorHover : 'transparent' );
433
- },function() {
434
- jQuery(this).css( 'backgroundColor', heateorSssVerticalSharingBg);
435
- if (jQuery( '#heateor_sss_vertical_font_color_hover' ).val().trim() ) {
436
- jQuery(this).find( '#vertical_svg' ).attr( 'style', jQuery(this).find( '#vertical_svg' ).attr( 'style' ).replace(jQuery( '#heateor_sss_vertical_font_color_hover' ).val().trim().replace( '#', '%23' ), heateorSssVerticalSharingTempColor.replace( '#', '%23' ) ));
437
- jQuery(this).css( 'color', heateorSssVerticalSharingTempColor);
438
- }
439
- jQuery(this).css( 'borderStyle', 'solid' );
440
- jQuery(this).css( 'borderWidth', heateorSssVerticalBorderWidth ? heateorSssVerticalBorderWidth : heateorSssVerticalBorderWidthHover ? heateorSssVerticalBorderWidthHover : '0' );
441
- jQuery(this).css( 'borderColor', heateorSssVerticalBorderColor ? heateorSssVerticalBorderColor : 'transparent' );
442
- });
443
- </script>
444
- </td>
445
- </tr>
446
-
447
- <tr>
448
- <td colspan="2">
449
- <div id="heateor_sss_vertical_preview_message" style="color:green;display:none"><?php _e( 'Do not forget to save the configuration after making changes by clicking the save button below', 'sassy-social-share' ); ?></div>
450
- </td>
451
- </tr>
452
-
453
- <tr>
454
- <th>
455
- <label><?php _e("Shape", 'sassy-social-share' ); ?></label>
456
- <img id="heateor_sss_vertical_sharing_icon_shape_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
457
- </th>
458
- <td>
459
- <input id="heateor_sss_vertical_icon_round" onclick="tempVerticalShape = 'round';heateorSssSharingVerticalPreview()" name="heateor_sss[vertical_sharing_shape]" type="radio" <?php echo $vertical_sharing_shape == 'round' ? 'checked = "checked"' : '';?> value="round" />
460
- <label style="margin-right:10px" for="heateor_sss_vertical_icon_round"><?php _e("Round", 'sassy-social-share' ); ?></label>
461
- <input id="heateor_sss_vertical_icon_square" onclick="tempVerticalShape = 'square';heateorSssSharingVerticalPreview()" name="heateor_sss[vertical_sharing_shape]" type="radio" <?php echo $vertical_sharing_shape == 'square' ? 'checked = "checked"' : '';?> value="square" />
462
- <label style="margin-right:10px" for="heateor_sss_vertical_icon_square"><?php _e("Square", 'sassy-social-share' ); ?></label>
463
- <input id="heateor_sss_vertical_icon_rectangle" onclick="tempVerticalShape = 'rectangle';heateorSssSharingVerticalPreview()" name="heateor_sss[vertical_sharing_shape]" type="radio" <?php echo $vertical_sharing_shape == 'rectangle' ? 'checked = "checked"' : '';?> value="rectangle" />
464
- <label for="heateor_sss_vertical_icon_rectangle"><?php _e("Rectangle", 'sassy-social-share' ); ?></label>
465
- </td>
466
- </tr>
467
-
468
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_sharing_icon_shape_help_cont">
469
- <td colspan="2">
470
- <div>
471
- <?php _e( 'Shape of the sharing icons', 'sassy-social-share' ) ?>
472
- </div>
473
- </td>
474
- </tr>
475
-
476
- <tbody id="heateor_sss_vertical_size_options" <?php echo ! isset( $options['vertical_sharing_shape'] ) || $options['vertical_sharing_shape'] != 'rectangle' ? '' : 'style="display: none"'; ?>>
477
- <tr>
478
- <th>
479
- <label><?php _e("Size (in pixels)", 'sassy-social-share' ); ?></label>
480
- <img id="heateor_sss_vertical_sharing_icon_size_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
481
- </th>
482
- <td>
483
- <input style="width:50px" id="heateor_sss_vertical_sharing_icon_size" name="heateor_sss[vertical_sharing_size]" type="text" value="<?php echo $vertical_sharing_size; ?>" />
484
- <input id="heateor_sss_vertical_sharing_size_plus" type="button" value="+" onmouseup="tempVerticalSize = document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ).value;heateorSssSharingVerticalPreview()" />
485
- <input id="heateor_sss_vertical_sharing_size_minus" type="button" value="-" onmouseup="tempVerticalSize = document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ).value;heateorSssSharingVerticalPreview()" />
486
- <script type="text/javascript">
487
- heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_sharing_size_plus' ), "add", document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ), 300, 0.7);
488
- heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_sharing_size_minus' ), "subtract", document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ), 300, 0.7);
489
- </script>
490
- </td>
491
- </tr>
492
-
493
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_sharing_icon_size_help_cont">
494
- <td colspan="2">
495
- <div>
496
- <?php _e( 'Size of the sharing icons', 'sassy-social-share' ) ?>
497
- </div>
498
- </td>
499
- </tr>
500
- </tbody>
501
-
502
- <tbody id="heateor_sss_vertical_rectangle_options" <?php echo isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] == 'rectangle' ? '' : 'style="display: none"'; ?>>
503
- <tr>
504
- <th>
505
- <label><?php _e("Width (in pixels)", 'sassy-social-share' ); ?></label>
506
- <img id="heateor_sss_vertical_icon_width_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
507
- </th>
508
- <td>
509
- <input style="width:50px" id="heateor_sss_vertical_icon_width" name="heateor_sss[vertical_sharing_width]" type="text" value="<?php echo $vertical_sharing_width; ?>" />
510
- <input id="heateor_sss_vertical_width_plus" type="button" value="+" onmouseup="tempVerticalWidth = document.getElementById( 'heateor_sss_vertical_icon_width' ).value;heateorSssSharingVerticalPreview()" />
511
- <input id="heateor_sss_vertical_width_minus" type="button" value="-" onmouseup="tempVerticalWidth = document.getElementById( 'heateor_sss_vertical_icon_width' ).value;heateorSssSharingVerticalPreview()" />
512
- <script type="text/javascript">
513
- heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_width_plus' ), "add", document.getElementById( 'heateor_sss_vertical_icon_width' ), 300, 0.7);
514
- heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_width_minus' ), "subtract", document.getElementById( 'heateor_sss_vertical_icon_width' ), 300, 0.7);
515
- </script>
516
- </td>
517
- </tr>
518
-
519
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_icon_width_help_cont">
520
- <td colspan="2">
521
- <div>
522
- <?php _e( 'Width of the sharing icons', 'sassy-social-share' ) ?>
523
- </div>
524
- </td>
525
- </tr>
526
-
527
- <tr>
528
- <th>
529
- <label><?php _e("Height (in pixels)", 'sassy-social-share' ); ?></label>
530
- <img id="heateor_sss_vertical_icon_height_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
531
- </th>
532
- <td>
533
- <input style="width:50px" id="heateor_sss_vertical_icon_height" name="heateor_sss[vertical_sharing_height]" type="text" value="<?php echo $vertical_sharing_height; ?>" />
534
- <input id="heateor_sss_vertical_height_plus" type="button" value="+" onmouseup="tempVerticalHeight = document.getElementById( 'heateor_sss_vertical_icon_height' ).value;heateorSssSharingVerticalPreview()" />
535
- <input id="heateor_sss_vertical_height_minus" type="button" value="-" onmouseup="tempVerticalHeight = document.getElementById( 'heateor_sss_vertical_icon_height' ).value;heateorSssSharingVerticalPreview()" />
536
- <script type="text/javascript">
537
- heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_height_plus' ), "add", document.getElementById( 'heateor_sss_vertical_icon_height' ), 300, 0.7);
538
- heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_height_minus' ), "subtract", document.getElementById( 'heateor_sss_vertical_icon_height' ), 300, 0.7);
539
- </script>
540
- </td>
541
- </tr>
542
-
543
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_icon_height_help_cont">
544
- <td colspan="2">
545
- <div>
546
- <?php _e( 'Height of the sharing icons', 'sassy-social-share' ) ?>
547
- </div>
548
- </td>
549
- </tr>
550
- </tbody>
551
-
552
- <tbody id="heateor_sss_vertical_border_radius_options" <?php echo isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] != 'round' ? '' : 'style="display: none"'; ?>>
553
- <tr>
554
- <th>
555
- <label><?php _e("Border radius (in pixels)", 'sassy-social-share' ); ?></label>
556
- <img id="heateor_sss_vertical_icon_border_radius_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
557
- </th>
558
- <td>
559
- <input style="width:50px" id="heateor_sss_vertical_icon_border_radius" name="heateor_sss[vertical_border_radius]" type="text" value="<?php echo $vertical_sharing_border_radius; ?>" onkeyup="heateorSssVerticalBorderRadius = this.value.trim() ? this.value.trim() + 'px' : '0px';heateorSssUpdateSharingPreview(heateorSssVerticalBorderRadius, 'borderRadius', '0px', 'heateor_sss_vertical_preview' )" />
560
- </td>
561
- </tr>
562
-
563
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_icon_border_radius_help_cont">
564
- <td colspan="2">
565
- <div>
566
- <?php _e( 'Specify a value for rounded corners. More the value, more rounded will the corners be. Leave empty for sharp corners.', 'sassy-social-share' ) ?>
567
- </div>
568
- </td>
569
- </tr>
570
- </tbody>
571
-
572
- <tr>
573
- <th>
574
- <label><?php _e("Logo Color", 'sassy-social-share' ); ?></label>
575
- <img id="heateor_sss_vertical_font_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
576
- </th>
577
- <td>
578
- <script type="text/javascript">var heateorSssVerticalSharingTempColor = '<?php echo $vertical_sharing_color ? $vertical_sharing_color : "#fff" ?>';</script>
579
- <label for="heateor_sss_vertical_font_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_font_color_default" name="heateor_sss[vertical_font_color_default]" onkeyup="if (this.value.trim() == '' || this.value.trim().length >= 3) { jQuery( '#vertical_svg' ).attr( 'style', jQuery( '#vertical_svg' ).attr( 'style' ).replace(heateorSssVerticalSharingTempColor.replace( '#', '%23' ), this.value.trim() ? this.value.trim().replace( '#', '%23' ) : '%23fff' ) ); heateorSssVerticalSharingTempColor = this.value.trim() ? this.value.trim() : '#fff';jQuery( '#heateor_sss_vertical_preview' ).css( 'color', heateorSssVerticalSharingTempColor.replace( '%23','#' ) ) }" type="text" value="<?php echo $vertical_sharing_color ?>" />
580
- <input name="heateor_sss[vertical_sharing_replace_color]" type="hidden" value="<?php echo isset( $options['vertical_sharing_replace_color'] ) ? $options['vertical_sharing_replace_color'] : ''; ?>" />
581
- <label style="margin-left:10px" for="heateor_sss_vertical_font_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_font_color_hover" name="heateor_sss[vertical_font_color_hover]" type="text" value="<?php echo $vertical_sharing_color_hover; ?>" />
582
- <input name="heateor_sss[vertical_sharing_replace_color_hover]" type="hidden" value="<?php echo isset( $options['vertical_sharing_replace_color_hover'] ) ? $options['vertical_sharing_replace_color_hover'] : ''; ?>" />
583
- </td>
584
- </tr>
585
-
586
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_font_color_help_cont">
587
- <td colspan="2">
588
- <div>
589
- <?php _e( 'Specify the color or hex code (example #cc78e0) for the logo of icon. Leave empty for default. You can get the hex code of the required color from <a href="http://www.colorpicker.com/" target="_blank">this link</a>', 'sassy-social-share' ) ?>
590
- </div>
591
- </td>
592
- </tr>
593
-
594
- <tr>
595
- <th>
596
- <label><?php _e("Background Color", 'sassy-social-share' ); ?></label>
597
- <img id="heateor_sss_vertical_icon_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
598
- </th>
599
- <td>
600
- <label for="heateor_sss_vertical_icon_bg_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_icon_bg_color_default" name="heateor_sss[vertical_bg_color_default]" type="text" onkeyup="heateorSssVerticalSharingBg = this.value.trim() ? this.value.trim() : '#3C589A'; heateorSssUpdateSharingPreview(this.value.trim(), 'backgroundColor', '#3C589A', 'heateor_sss_vertical_preview' )" value="<?php echo $vertical_bg ?>" />
601
- <label style="margin-left:10px" for="heateor_sss_vertical_bg_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_bg_color_hover" name="heateor_sss[vertical_bg_color_hover]" type="text" onkeyup="heateorSssVerticalSharingBgHover = this.value.trim() ? this.value.trim() : '#3C589A';" value="<?php echo $vertical_bg_hover ?>" />
602
- </td>
603
- </tr>
604
-
605
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_icon_bg_color_help_cont">
606
- <td colspan="2">
607
- <div>
608
- <?php _e( 'Specify the color or hex code (example #cc78e0) for icon background. Save "transparent" for transparent background. Leave empty for default. You can get the hex code of the required color from <a href="http://www.colorpicker.com/" target="_blank">this link</a>', 'sassy-social-share' ) ?>
609
- </div>
610
- </td>
611
- </tr>
612
-
613
- <tr>
614
- <th>
615
- <label><?php _e("Border", 'sassy-social-share' ); ?></label>
616
- <img id="heateor_sss_vertical_border_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
617
- </th>
618
- <td>
619
- <label><strong><?php _e("Default", 'sassy-social-share' ); ?></strong></label>
620
- <br/>
621
- <label for="heateor_sss_vertical_border_width_default"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" onkeyup="heateorSssVerticalBorderWidth = this.value.trim(); jQuery( '#heateor_sss_vertical_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderWidth', '0px', 'heateor_sss_vertical_preview' ); heateorSssSharingVerticalPreview();" id="heateor_sss_vertical_border_width_default" name="heateor_sss[vertical_border_width_default]" type="text" value="<?php echo $vertical_border_width ?>" />pixel(s)
622
- <label style="margin-left:10px" for="heateor_sss_vertical_border_color_default"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input onkeyup="heateorSssVerticalBorderColor = this.value.trim(); jQuery( '#heateor_sss_vertical_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderColor', 'transparent', 'heateor_sss_vertical_preview' )" style="width: 100px" id="heateor_sss_vertical_border_color_default" name="heateor_sss[vertical_border_color_default]" type="text" value="<?php echo $vertical_border_color = isset( $options['vertical_border_color_default'] ) ? $options['vertical_border_color_default'] : ''; ?>" />
623
- <br/><br/>
624
- <label><strong><?php _e("On Hover", 'sassy-social-share' ); ?></strong></label>
625
- <br/>
626
- <label for="heateor_sss_vertical_border_width_hover"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_border_width_hover" name="heateor_sss[vertical_border_width_hover]" onkeyup="heateorSssVerticalBorderWidthHover = this.value.trim();" type="text" value="<?php echo $vertical_border_width_hover ?>" />pixel(s)
627
- <label style="margin-left:10px" for="heateor_sss_vertical_border_color_hover"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_border_color_hover" name="heateor_sss[vertical_border_color_hover]" onkeyup="heateorSssVerticalBorderColorHover = this.value.trim()" type="text" value="<?php echo $vertical_border_color_hover; ?>" />
628
- </td>
629
- </tr>
630
-
631
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_border_help_cont">
632
- <td colspan="2">
633
- <div>
634
- <?php _e( 'Icon border', 'sassy-social-share' ) ?>
635
- </div>
636
- </td>
637
- </tr>
638
-
639
- <tr>
640
- <th>
641
- <label><?php _e("Counter Position", 'sassy-social-share' ); ?><br/><?php _e("(applies, if counter enabled)", 'sassy-social-share' ); ?></label>
642
- <img id="heateor_sss_vertical_counter_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
643
- </th>
644
- <td>
645
- <input id="heateor_sss_vertical_counter_left" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'left' ? 'checked = "checked"' : '';?> value="left" />
646
- <label style="margin-right:10px" for="heateor_sss_vertical_counter_left"><?php _e("Left", 'sassy-social-share' ); ?></label>
647
- <input id="heateor_sss_vertical_counter_top" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'top' ? 'checked = "checked"' : '';?> value="top" />
648
- <label style="margin-right:10px" for="heateor_sss_vertical_counter_top"><?php _e("Top", 'sassy-social-share' ); ?></label>
649
- <input id="heateor_sss_vertical_counter_right" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'right' ? 'checked = "checked"' : '';?> value="right" />
650
- <label style="margin-right:10px" for="heateor_sss_vertical_counter_right"><?php _e("Right", 'sassy-social-share' ); ?></label>
651
- <input id="heateor_sss_vertical_counter_bottom" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'bottom' ? 'checked = "checked"' : '';?> value="bottom" />
652
- <label style="margin-right:10px" for="heateor_sss_vertical_counter_bottom"><?php _e("Bottom", 'sassy-social-share' ); ?></label><br/>
653
- <input id="heateor_sss_vertical_counter_inner_left" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'inner_left' ? 'checked = "checked"' : '';?> value="inner_left" />
654
- <label style="margin-right:10px" for="heateor_sss_vertical_counter_inner_left"><?php _e("Inner Left", 'sassy-social-share' ); ?></label>
655
- <input id="heateor_sss_vertical_counter_inner_top" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'inner_top' ? 'checked = "checked"' : '';?> value="inner_top" />
656
- <label style="margin-right:10px" for="heateor_sss_vertical_counter_inner_top"><?php _e("Inner Top", 'sassy-social-share' ); ?></label>
657
- <input id="heateor_sss_vertical_counter_inner_right" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'inner_right' ? 'checked = "checked"' : '';?> value="inner_right" />
658
- <label style="margin-right:10px" for="heateor_sss_vertical_counter_inner_right"><?php _e("Inner Right", 'sassy-social-share' ); ?></label>
659
- <input id="heateor_sss_vertical_counter_inner_bottom" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'inner_bottom' ? 'checked = "checked"' : '';?> value="inner_bottom" />
660
- <label style="margin-right:10px" for="heateor_sss_vertical_counter_inner_bottom"><?php _e("Inner Bottom", 'sassy-social-share' ); ?></label>
661
- </td>
662
- </tr>
663
- <script type="text/javascript">heateorSssVerticalCounterPreview( '<?php echo $vertical_counter_position ?>' );</script>
664
-
665
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_counter_help_cont">
666
- <td colspan="2">
667
- <div>
668
- <?php _e( 'Position of share counter', 'sassy-social-share' ) ?>
669
- </div>
670
- </td>
671
- </tr>
672
- </table>
673
- </div>
674
- </div>
675
- </div>
676
- <?php include 'sassy-social-share-about.php'; ?>
677
- </div>
678
-
679
- <div class="menu_containt_div" id="tabs-2">
680
- <div class="clear"></div>
681
- <div class="heateor_sss_left_column">
682
-
683
- <div class="stuffbox">
684
- <h3><label><?php _e( 'Standard Sharing Interface Options', 'sassy-social-share' );?></label></h3>
685
- <div class="inside">
686
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
687
- <tr>
688
- <th>
689
- <label for="heateor_sss_horizontal_enable"><?php _e("Enable Standard sharing interface", 'sassy-social-share' ); ?></label>
690
- <img id="heateor_sss_horizontal_enable_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
691
- </th>
692
- <td>
693
- <input id="heateor_sss_horizontal_enable" onclick="heateorSssHorizontalSharingOptionsToggle(this)" name="heateor_sss[hor_enable]" type="checkbox" <?php echo isset( $options['hor_enable'] ) ? 'checked = "checked"' : '';?> value="1" />
694
- </td>
695
- </tr>
696
-
697
- <tr class="heateor_sss_help_content" id="heateor_sss_horizontal_enable_help_cont">
698
- <td colspan="2">
699
- <div>
700
- <?php _e( 'Master control to enable standard sharing', 'sassy-social-share' ) ?>
701
- <div style="clear:both"></div>
702
- <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_horizontal_sharing.png', __FILE__ ); ?>" />
703
- </div>
704
- </td>
705
- </tr>
706
-
707
- <tbody id="heateor_sss_horizontal_sharing_options" <?php echo isset( $options['hor_enable'] ) ? '' : 'style="display: none"'; ?>>
708
- <tr>
709
- <th>
710
- <label for="heateor_sss_horizontal_target_url"><?php _e("Target Url", 'sassy-social-share' ); ?></label>
711
- <img id="heateor_sss_horizontal_target_url_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
712
- </th>
713
- <td id="heateor_sss_target_url_column">
714
- <input id="heateor_sss_target_url_default" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo !isset( $options['horizontal_target_url'] ) || $options['horizontal_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
715
- <label for="heateor_sss_target_url_default"><?php _e( 'Url of the webpage where icons are located (default)', 'sassy-social-share' ) ?></label><br/>
716
- <input id="heateor_sss_target_url_home" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo isset( $options['horizontal_target_url'] ) && $options['horizontal_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
717
- <label for="heateor_sss_target_url_home"><?php _e( 'Url of the homepage of your website', 'sassy-social-share' ) ?></label><br/>
718
- <input id="heateor_sss_target_url_custom" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo isset( $options['horizontal_target_url'] ) && $options['horizontal_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
719
- <label for="heateor_sss_target_url_custom"><?php _e( 'Custom url', 'sassy-social-share' ) ?></label><br/>
720
- <input id="heateor_sss_target_url_custom_url" name="heateor_sss[horizontal_target_url_custom]" type="text" value="<?php echo isset( $options['horizontal_target_url_custom'] ) ? $options['horizontal_target_url_custom'] : '' ?>" />
721
- </td>
722
- </tr>
723
- <tr class="heateor_sss_help_content" id="heateor_sss_horizontal_target_url_help_cont">
724
- <td colspan="2">
725
- <div>
726
- <?php _e( 'Url to share', 'sassy-social-share' ) ?>
727
- </div>
728
- </td>
729
- </tr>
730
-
731
- <tr>
732
- <th>
733
- <label for="heateor_sss_fblogin_title"><?php _e("Title", 'sassy-social-share' ); ?></label>
734
- <img id="heateor_sss_title_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
735
- </th>
736
- <td>
737
- <input id="heateor_sss_fblogin_title" name="heateor_sss[title]" type="text" value="<?php echo isset( $options['title'] ) ? $options['title'] : '' ?>" />
738
- </td>
739
- </tr>
740
-
741
- <tr class="heateor_sss_help_content" id="heateor_sss_title_help_cont">
742
- <td colspan="2">
743
- <div>
744
- <?php _e( 'The text to display above the sharing interface', 'sassy-social-share' ) ?>
745
- </div>
746
- </td>
747
- </tr>
748
-
749
- <?php
750
- $youtube_username = '';
751
- if ( isset( $options['youtube_username'] ) ) {
752
- $youtube_username = $options['youtube_username'];
753
- } elseif ( isset( $options['vertical_youtube_username'] ) ) {
754
- $youtube_username = $options['vertical_youtube_username'];
755
- }
756
- $instagram_username = '';
757
- if ( isset( $options['instagram_username'] ) ) {
758
- $instagram_username = $options['instagram_username'];
759
- } elseif ( isset( $options['vertical_instagram_username'] ) ) {
760
- $instagram_username = $options['vertical_instagram_username'];
761
- }
762
- $commentform_container_id = '';
763
- if ( isset( $options['comment_container_id'] ) ) {
764
- $commentform_container_id = $options['comment_container_id'];
765
- } elseif ( isset( $options['vertical_comment_container_id'] ) ) {
766
- $commentform_container_id = $options['vertical_comment_container_id'];
767
- }
768
- if ( ! isset( $options['horizontal_re_providers'] ) ) {
769
- $options['horizontal_re_providers'] = array();
770
- }
771
- if ( ! isset( $options['vertical_re_providers'] ) ) {
772
- $options['vertical_re_providers'] = array();
773
- }
774
- ?>
775
- <tbody id="heateor_sss_instagram_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'instagram', $options['horizontal_re_providers'] ) ? 'style = "display: none"' : '';?> >
776
- <tr>
777
- <th>
778
- <label for="heateor_sss_instagram_username"><?php _e( "Instagram username", 'sassy-social-share' ); ?></label>
779
- <img id="heateor_sss_instagram_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
780
- </th>
781
- <td>
782
- <input id="heateor_sss_instagram_username" name="heateor_sss[instagram_username]" type="text" value="<?php echo $instagram_username ?>" />
783
- </td>
784
- </tr>
785
-
786
- <tr class="heateor_sss_help_content" id="heateor_sss_instagram_username_help_cont">
787
- <td colspan="2">
788
- <div>
789
- <?php _e( 'Username of the Instagram account you want to redirect users to, on clicking the icon', 'sassy-social-share' ) ?>
790
- </div>
791
- </td>
792
- </tr>
793
- </tbody>
794
-
795
- <tbody id="heateor_sss_youtube_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'youtube', $options['horizontal_re_providers'] ) ? 'style = "display: none"' : '';?> >
796
- <tr>
797
- <th>
798
- <label for="heateor_sss_youtube_username"><?php _e( "Youtube URL", 'sassy-social-share' ); ?></label>
799
- <img id="heateor_sss_youtube_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
800
- </th>
801
- <td>
802
- <input id="heateor_sss_youtube_username" name="heateor_sss[youtube_username]" type="text" value="<?php echo $youtube_username ?>" />
803
- </td>
804
- </tr>
805
-
806
- <tr class="heateor_sss_help_content" id="heateor_sss_youtube_username_help_cont">
807
- <td colspan="2">
808
- <div>
809
- <?php _e( 'Username of the Youtube account you want to redirect users to, on clicking the icon', 'sassy-social-share' ) ?>
810
- </div>
811
- </td>
812
- </tr>
813
- </tbody>
814
-
815
- <tbody id="heateor_sss_comment_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'Comment', $options['horizontal_re_providers'] ) ? 'style = "display: none"' : '';?> >
816
- <tr>
817
- <th>
818
- <label for="heateor_sss_comment_container_id"><?php _e( "HTML ID of container element of comment form", 'sassy-social-share' ); ?></label>
819
- <img id="heateor_sss_comment_container_id_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
820
- </th>
821
- <td>
822
- <input id="heateor_sss_comment_container_id" name="heateor_sss[comment_container_id]" type="text" value="<?php echo $commentform_container_id ?>" />
823
- </td>
824
- </tr>
825
-
826
- <tr class="heateor_sss_help_content" id="heateor_sss_comment_container_id_help_cont">
827
- <td colspan="2">
828
- <div>
829
- <?php _e( 'HTML ID of the element you want to focus on the webpage, on click of Comment icon.', 'sassy-social-share' ) ?>
830
- </div>
831
- </td>
832
- </tr>
833
- </tbody>
834
- <?php
835
- $like_buttons = array( 'facebook_share', 'facebook_like', 'facebook_recommend', 'twitter_tweet', 'linkedin_share', 'pinterest_pin', 'buffer_share', 'xing_share', 'yummly_share', 'reddit_badge' );
836
- $sharing_networks = array( 'facebook', 'gab', 'twitter', 'linkedin', 'print', 'email', 'reddit', 'digg', 'float_it', 'tumblr', 'vkontakte', 'pinterest', 'xing', 'whatsapp', 'instagram', 'yummly', 'buffer', 'parler', 'AIM', 'Amazon_Wish_List', 'AOL_Mail', 'App.net', 'Balatarin', 'BibSonomy', 'Bitty_Browser', 'Blinklist', 'Blogger_Post', 'BlogMarks', 'Bookmarks.fr', 'Box.net', 'BuddyMarks', 'Care2_News', 'Comment', 'Copy_Link', 'Diary.Ru', 'Diaspora', 'Diigo', 'Douban', 'Draugiem', 'Evernote', 'Facebook_Messenger', 'Fark', 'Fintel', 'Flipboard', 'Folkd', 'GentleReader', 'Goodreads', 'Google_Bookmarks', 'Google_Classroom', 'Google_Gmail', 'Hacker_News', 'Hatena', 'Instapaper', 'Jamespot', 'Kakao', 'Kik', 'Kindle_It', 'Known', 'Line', 'LiveJournal', 'Mail.Ru', 'Mendeley', 'Meneame', 'MeWe', 'mix', 'Mixi', 'MySpace', 'Netvouz', 'Odnoklassniki', 'Outlook.com', 'Papaly', 'Pinboard', 'Plurk', 'Pocket', 'PrintFriendly', 'Protopage_Bookmarks', 'Pusha', 'Qzone', 'Rediff MyPage', 'Refind', 'Renren', 'Sina Weibo', 'SiteJot', 'Skype', 'Slashdot', 'SMS', 'StockTwits', 'Svejo', 'Symbaloo_Feeds', 'Telegram', 'Threema', 'Trello', 'Tuenti', 'Twiddla', 'TypePad_Post', 'Viadeo', 'Viber', 'Webnews', 'WordPress', 'Wykop', 'Yahoo_Mail', 'Yoolink', 'youtube' );
837
- ?>
838
-
839
- <tr>
840
- <td colspan="2">
841
- <a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/multiple-instances.png', __FILE__ ) ?>" /></a>
842
- </td>
843
- </tr>
844
-
845
- <tr>
846
- <th>
847
- <label><?php _e( "Rearrange icons", 'sassy-social-share' ); ?></label>
848
- <img id="heateor_sss_rearrange_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
849
- </th>
850
- </tr>
851
-
852
- <tr>
853
- <td colspan="2">
854
- <script>
855
- // facebook app id and secret options toggle variables
856
- var heateorSssHorizontalShares = <?php echo isset( $options['horizontal_counts'] ) ? 'true' : 'false' ?>, heateorSssHorizontalTotalShares = <?php echo isset( $options['horizontal_total_shares'] ) ? 'true' : 'false' ?>, heateorSssVerticalShares = <?php echo isset( $options['vertical_counts'] ) ? 'true' : 'false' ?>, heateorSssVerticalTotalShares = <?php echo isset( $options['vertical_total_shares'] ) ? 'true' : 'false' ?>, heateorSssHorizontalFacebookShareEnabled = <?php echo in_array( 'facebook', $options['horizontal_re_providers'] ) ? 'true' : 'false'; ?>, heateorSssVerticalFacebookShareEnabled = <?php echo in_array( 'facebook', $options['vertical_re_providers'] ) ? 'true' : 'false'; ?>;
857
- <?php
858
- $horSharingStyle = 'width:' . ( $options['horizontal_sharing_shape'] != 'rectangle' ? $options['horizontal_sharing_size'] : $options['horizontal_sharing_width'] ) . 'px;height:' . $line_height . 'px;';
859
- $horDeliciousRadius = '';
860
- if ( $options['horizontal_sharing_shape'] == 'round' ) {
861
- $horSharingStyle .= 'border-radius:999px;';
862
- $horDeliciousRadius = 'border-radius:999px;';
863
- } elseif ( isset( $options['horizontal_border_radius'] ) && $options['horizontal_border_radius'] != '' ) {
864
- $horSharingStyle .= 'border-radius:' . $options['horizontal_border_radius'] . 'px;';
865
- }
866
- ?>
867
- var heateorSssHorSharingStyle = '<?php echo $horSharingStyle ?>', heateorSssHorDeliciousRadius = '<?php echo $horDeliciousRadius ?>', heateorSssLikeButtons = ["<?php echo implode( '","', $like_buttons) ?>"];
868
- </script>
869
- <style type="text/css">
870
- <?php if ( $horizontal_bg != '' ) { ?>
871
- ul#heateor_sss_rearrange i.heateorSssInstagramBackground{background:<?php echo $horizontal_bg ?>!important;}
872
- <?php }
873
- if ( $horizontal_bg_hover != '' ) { ?>
874
- ul#heateor_sss_rearrange i.heateorSssInstagramBackground:hover{background:<?php echo $horizontal_bg_hover ?>!important;}
875
- <?php } ?>
876
- .heateorSssSharingBackground{
877
- <?php if ( $horizontal_bg ) { ?>
878
- background-color: <?php echo $horizontal_bg ?>;
879
- <?php } if ( $border_width ) { ?>
880
- border-width: <?php echo $border_width ?>px;
881
- border-style: solid;
882
- <?php } ?>
883
- border-color: <?php echo $border_color ? $border_color : 'transparent'; ?>;
884
- }
885
- .heateorSssSharingBackground:hover{
886
- <?php if ( $horizontal_bg_hover ) { ?>
887
- background-color: <?php echo $horizontal_bg_hover ?>;
888
- <?php }if ( $border_width_hover ) { ?>
889
- border-width: <?php echo $border_width_hover ?>px;
890
- border-style: solid;
891
- <?php } ?>
892
- border-color: <?php echo $border_color_hover ? $border_color_hover : 'transparent'; ?>;
893
- }
894
- </style>
895
- <ul id="heateor_sss_rearrange">
896
- <?php
897
- if ( isset( $options['horizontal_re_providers'] ) ) {
898
- foreach ( $options['horizontal_re_providers'] as $rearrange ) {
899
- ?>
900
- <li title="<?php echo ucfirst( str_replace( '_', ' ', $rearrange ) ) ?>" id="heateor_sss_re_horizontal_<?php echo str_replace(array( ' ', '.' ), '_', $rearrange) ?>" >
901
- <i style="display:block;<?php echo $horSharingStyle ?>" class="<?php echo in_array( $rearrange, $like_buttons) ? '' : 'heateorSssSharingBackground' ?> heateorSss<?php echo ucfirst(str_replace(array( '_', '.', ' ' ), '', $rearrange) ) ?>Background"><div class="heateorSssSharingSvg heateorSss<?php echo ucfirst(str_replace(array( '_', ' ', '.' ), '', $rearrange) ) ?>Svg" style="<?php echo $horDeliciousRadius ?>"></div></i>
902
- <input type="hidden" name="heateor_sss[horizontal_re_providers][]" value="<?php echo $rearrange ?>">
903
- </li>
904
- <?php
905
- }
906
- }
907
- ?>
908
- </ul>
909
- </td>
910
- </tr>
911
-
912
- <tr class="heateor_sss_help_content" id="heateor_sss_rearrange_help_cont">
913
- <td colspan="2">
914
- <div>
915
- <?php _e( 'Drag the icons to rearrange in desired order', 'sassy-social-share' ) ?>
916
- </div>
917
- </td>
918
- </tr>
919
-
920
- <tr>
921
- <th colspan="2">
922
- <label><?php _e( "Select Sharing Services", 'sassy-social-share' ); ?></label>
923
- <img id="heateor_sss_providers_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
924
- </th>
925
- </tr>
926
-
927
- <tr class="heateor_sss_help_content" id="heateor_sss_providers_help_cont">
928
- <td colspan="2">
929
- <div>
930
- <?php _e( 'Select sharing services to show in social share bar', 'sassy-social-share' ) ?>
931
- </div>
932
- </td>
933
- </tr>
934
-
935
- <tr>
936
- <td colspan="2" class="selectSharingNetworks">
937
- <?php
938
- foreach( $like_buttons as $like_button ) {
939
- ?>
940
- <div class="heateorSssHorizontalSharingProviderContainer">
941
- <input id="heateor_sss_<?php echo $like_button ?>" type="checkbox" <?php echo isset( $options['horizontal_re_providers'] ) && in_array( $like_button, $options['horizontal_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $like_button ?>" />
942
- <label for="heateor_sss_<?php echo $like_button ?>"><img src="<?php echo plugins_url( '../../images/sharing/'. $like_button .'.png', __FILE__ ) ?>" /></label>
943
- </div>
944
- <?php
945
- }
946
- ?>
947
- <div style="clear:both"></div>
948
- <div style="width:100%; margin: 10px 0"><input type="text" onkeyup="heateorSssSearchSharingNetworks(this.value.trim())" placeholder="<?php _e( 'Search social network', 'sassy-social-share' ) ?>" class="search" /></div>
949
- <div style="clear:both"></div>
950
- <?php
951
- foreach( $sharing_networks as $sharing_network ) {
952
- ?>
953
- <div class="heateorSssHorizontalSharingProviderContainer">
954
- <?php echo $sharing_network == 'Goodreads' ? '<a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank">' : ''; ?>
955
- <input id="heateor_sss_<?php echo $sharing_network ?>" type="checkbox" <?php echo $sharing_network == 'Goodreads' ? 'disabled ' : ''; ?><?php echo isset( $options['horizontal_re_providers'] ) && in_array( $sharing_network, $options['horizontal_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $sharing_network ?>" />
956
- <label <?php echo $sharing_network != 'Goodreads' ? 'for="heateor_sss_' . $sharing_network . '"' : ''; ?>><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo str_replace( array( '_', '.', ' ' ), '', ucfirst( $sharing_network ) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Svg"></ss></i></label>
957
- <label class="lblSocialNetwork" <?php echo $sharing_network != 'Goodreads' ? 'for="heateor_sss_' . $sharing_network . '"' : ''; ?>><?php echo str_replace( '_', ' ', ucfirst( $sharing_network ) ) ?></label>
958
- <?php echo $sharing_network == 'Goodreads' ? '</a>' : ''; ?>
959
- </div>
960
- <?php
961
- }
962
- ?>
963
- </td>
964
- </tr>
965
-
966
- <tr>
967
- <th>
968
- <label for="heateor_sss_hor_alignment"><?php _e( "Horizontal alignment", 'sassy-social-share' ); ?></label>
969
- <img id="heateor_sss_hor_alignment_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
970
- </th>
971
- <td>
972
- <select id="heateor_sss_hor_alignment" name="heateor_sss[hor_sharing_alignment]">
973
- <option value="left" <?php echo isset( $options['hor_sharing_alignment'] ) && $options['hor_sharing_alignment'] == 'left' ? 'selected="selected"' : '' ?>><?php _e( 'Left', 'sassy-social-share' ) ?></option>
974
- <option value="center" <?php echo isset( $options['hor_sharing_alignment'] ) && $options['hor_sharing_alignment'] == 'center' ? 'selected="selected"' : '' ?>><?php _e( 'Center', 'sassy-social-share' ) ?></option>
975
- <option value="right" <?php echo isset( $options['hor_sharing_alignment'] ) && $options['hor_sharing_alignment'] == 'right' ? 'selected="selected"' : '' ?>><?php _e( 'Right', 'sassy-social-share' ) ?></option>
976
- </select>
977
- </td>
978
- </tr>
979
-
980
- <tr class="heateor_sss_help_content" id="heateor_sss_hor_alignment_help_cont">
981
- <td colspan="2">
982
- <div>
983
- <?php _e( 'Horizontal alignment of the sharing interface', 'sassy-social-share' ) ?>
984
- </div>
985
- </td>
986
- </tr>
987
-
988
- <tr>
989
- <th>
990
- <label><?php _e("Position with respect to content", 'sassy-social-share' ); ?></label>
991
- <img id="heateor_sss_position_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
992
- </th>
993
- <td>
994
- <input id="heateor_sss_top" name="heateor_sss[top]" type="checkbox" <?php echo isset( $options['top'] ) ? 'checked = "checked"' : '';?> value="1" />
995
- <label for="heateor_sss_top"><?php _e( 'Top of the content', 'sassy-social-share' ) ?></label><br/>
996
- <input id="heateor_sss_bottom" name="heateor_sss[bottom]" type="checkbox" <?php echo isset( $options['bottom'] ) ? 'checked = "checked"' : '';?> value="1" />
997
- <label for="heateor_sss_bottom"><?php _e( 'Bottom of the content', 'sassy-social-share' ) ?></label>
998
- </td>
999
- </tr>
1000
-
1001
- <tr class="heateor_sss_help_content" id="heateor_sss_position_help_cont">
1002
- <td colspan="2">
1003
- <div>
1004
- <?php _e( 'Specify position of the sharing interface with respect to the content', 'sassy-social-share' ) ?>
1005
- </div>
1006
- </td>
1007
- </tr>
1008
-
1009
- <tr>
1010
- <td colspan="2">
1011
- <div>
1012
- <a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/social-share-popup.png', __FILE__ ) ?>" /></a>
1013
- </div>
1014
- </td>
1015
- </tr>
1016
-
1017
- <tr>
1018
- <th>
1019
- <label><?php _e("Placement", 'sassy-social-share' ); ?></label>
1020
- <img id="heateor_sss_location_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1021
- </th>
1022
- <td>
1023
- <input id="heateor_sss_home" name="heateor_sss[home]" type="checkbox" <?php echo isset( $options['home'] ) ? 'checked = "checked"' : '';?> value="1" />
1024
- <label for="heateor_sss_home"><?php _e( 'Homepage', 'sassy-social-share' ) ?></label><br/>
1025
- <input id="heateor_sss_post" name="heateor_sss[post]" type="checkbox" <?php echo isset( $options['post'] ) ? 'checked = "checked"' : '';?> value="1" />
1026
- <label for="heateor_sss_post"><?php _e( 'Posts', 'sassy-social-share' ) ?></label><br/>
1027
- <input id="heateor_sss_page" name="heateor_sss[page]" type="checkbox" <?php echo isset( $options['page'] ) ? 'checked = "checked"' : '';?> value="1" />
1028
- <label for="heateor_sss_page"><?php _e( 'Pages', 'sassy-social-share' ) ?></label><br/>
1029
- <input id="heateor_sss_excerpt" name="heateor_sss[excerpt]" type="checkbox" <?php echo isset( $options['excerpt'] ) ? 'checked = "checked"' : '';?> value="1" />
1030
- <label for="heateor_sss_excerpt"><?php _e( 'Excerpts and Posts page', 'sassy-social-share' ) ?></label><br/>
1031
- <input id="heateor_sss_category" name="heateor_sss[category]" type="checkbox" <?php echo isset( $options['category'] ) ? 'checked = "checked"' : '';?> value="1" />
1032
- <label for="heateor_sss_category"><?php _e( 'Category Archives', 'sassy-social-share' ) ?></label><br/>
1033
- <input id="heateor_sss_archive" name="heateor_sss[archive]" type="checkbox" <?php echo isset( $options['archive'] ) ? 'checked = "checked"' : '';?> value="1" />
1034
- <label for="heateor_sss_archive"><?php _e( 'Archive Pages (Category, Tag, Author or Date based pages)', 'sassy-social-share' ) ?></label><br/>
1035
- <?php
1036
- $post_types = get_post_types( array( 'public' => true ), 'names', 'and' );
1037
- $post_types = array_diff( $post_types, array( 'post', 'page' ) );
1038
- if ( count( $post_types ) ) {
1039
- foreach ( $post_types as $post_type ) {
1040
- ?>
1041
- <input id="heateor_sss_<?php echo $post_type ?>" name="heateor_sss[<?php echo $post_type ?>]" type="checkbox" <?php echo isset( $options[$post_type] ) ? 'checked = "checked"' : '';?> value="1" />
1042
- <label for="heateor_sss_<?php echo $post_type ?>"><?php echo ucfirst( $post_type ) . 's'; ?></label><br/>
1043
- <?php
1044
- }
1045
- }
1046
-
1047
- if ( $this->is_bp_active) {
1048
- ?>
1049
- <input id="heateor_sss_bp_activity" name="heateor_sss[bp_activity]" type="checkbox" <?php echo isset( $options['bp_activity'] ) ? 'checked = "checked"' : '';?> value="1" />
1050
- <label for="heateor_sss_bp_activity"><?php _e( 'BuddyPress activity', 'sassy-social-share' ) ?></label><br/>
1051
- <input id="heateor_sss_bp_group" name="heateor_sss[bp_group]" type="checkbox" <?php echo isset( $options['bp_group'] ) ? 'checked = "checked"' : '';?> value="1" />
1052
- <label for="heateor_sss_bp_group"><?php _e( 'BuddyPress group (only at top of content)', 'sassy-social-share' ) ?></label><br/>
1053
- <?php
1054
- }
1055
- if (function_exists( 'is_bbpress' ) ) {
1056
- ?>
1057
- <input id="heateor_sss_bb_forum" name="heateor_sss[bb_forum]" type="checkbox" <?php echo isset( $options['bb_forum'] ) ? 'checked = "checked"' : '';?> value="1" />
1058
- <label for="heateor_sss_bb_forum"><?php _e( 'BBPress forum', 'sassy-social-share' ) ?></label>
1059
- <br/>
1060
- <input id="heateor_sss_bb_topic" name="heateor_sss[bb_topic]" type="checkbox" <?php echo isset( $options['bb_topic'] ) ? 'checked = "checked"' : '';?> value="1" />
1061
- <label for="heateor_sss_bb_topic"><?php _e( 'BBPress topic', 'sassy-social-share' ) ?></label>
1062
- <br/>
1063
- <input id="heateor_sss_bb_reply" name="heateor_sss[bb_reply]" type="checkbox" <?php echo isset( $options['bb_reply'] ) ? 'checked = "checked"' : '';?> value="1" />
1064
- <label for="heateor_sss_bb_reply"><?php _e( 'BBPress reply', 'sassy-social-share' ) ?></label>
1065
- <br/>
1066
- <?php
1067
- }
1068
- if ( $this->is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
1069
- ?>
1070
- <input id="heateor_sss_woocom_shop" name="heateor_sss[woocom_shop]" type="checkbox" <?php echo isset( $options['woocom_shop'] ) ? 'checked = "checked"' : '';?> value="1" />
1071
- <label for="heateor_sss_woocom_shop"><?php _e( 'After individual product at WooCommerce Shop page', 'sassy-social-share' ) ?></label>
1072
- <br/>
1073
- <input id="heateor_sss_woocom_product" name="heateor_sss[woocom_product]" type="checkbox" <?php echo isset( $options['woocom_product'] ) ? 'checked = "checked"' : '';?> value="1" />
1074
- <label for="heateor_sss_woocom_product"><?php _e( 'WooCommerce Product Page', 'sassy-social-share' ) ?></label>
1075
- <br/>
1076
- <input id="heateor_sss_woocom_thankyou" name="heateor_sss[woocom_thankyou]" type="checkbox" <?php echo isset( $options['woocom_thankyou'] ) ? 'checked = "checked"' : '';?> value="1" />
1077
- <label for="heateor_sss_woocom_thankyou"><?php _e( 'WooCommerce Thankyou Page', 'sassy-social-share' ) ?></label>
1078
- <br/>
1079
- <?php
1080
- }
1081
- ?>
1082
- </td>
1083
- </tr>
1084
-
1085
- <tr class="heateor_sss_help_content" id="heateor_sss_location_help_cont">
1086
- <td colspan="2">
1087
- <div>
1088
- <?php _e( 'Specify the pages where you want to enable Sharing interface', 'sassy-social-share' ) ?>
1089
- </div>
1090
- </td>
1091
- </tr>
1092
-
1093
- <tr>
1094
- <th>
1095
- <label for="heateor_sss_counts"><?php _e( "Show share counts", 'sassy-social-share' ); ?></label>
1096
- <img id="heateor_sss_count_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1097
- </th>
1098
- <td>
1099
- <input id="heateor_sss_counts" name="heateor_sss[horizontal_counts]" type="checkbox" <?php echo isset( $options['horizontal_counts'] ) ? 'checked = "checked"' : '';?> value="1" onclick="if(this.checked){heateorSssHorizontalShares = true;}else{heateorSssHorizontalShares = false;}" />
1100
- <br/>
1101
- <span class="heateor_sss_help_content" style="display:block"><?php _e( 'Share counts are supported for Twitter, Buffer, Reddit, Pinterest, Odnoklassniki, Fintel and Vkontakte', 'sassy-social-share' ) ?></span>
1102
- <span class="heateor_sss_help_content" style="display:block"><strong><?php echo sprintf( __( 'To show Twitter share count, you have to click "Give me my Twitter counts back" button at <a href="%s" target="_blank">TwitCount.com</a> and register your website %s with them. No need to copy-paste any code from their website.', 'sassy-social-share' ), 'http://twitcount.com', home_url() ) ?></strong></span>
1103
- </td>
1104
- </tr>
1105
-
1106
- <tr class="heateor_sss_help_content" id="heateor_sss_count_help_cont">
1107
- <td colspan="2">
1108
- <div>
1109
- <?php _e( 'If enabled, share counts are displayed above sharing icons.', 'sassy-social-share' ) ?>
1110
- <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_share_count.png', __FILE__ ); ?>" />
1111
- </div>
1112
- </td>
1113
- </tr>
1114
-
1115
- <tr>
1116
- <th>
1117
- <label for="heateor_sss_total_hor_shares"><?php _e("Show total shares", 'sassy-social-share' ); ?></label>
1118
- <img id="heateor_sss_total_hor_shares_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1119
- </th>
1120
- <td>
1121
- <input id="heateor_sss_total_hor_shares" name="heateor_sss[horizontal_total_shares]" type="checkbox" <?php echo isset( $options['horizontal_total_shares'] ) ? 'checked = "checked"' : '';?> value="1" onclick="if(this.checked){heateorSssHorizontalTotalShares = true;}else{heateorSssHorizontalTotalShares = false;}" />
1122
- </td>
1123
- </tr>
1124
-
1125
- <tr class="heateor_sss_help_content" id="heateor_sss_total_hor_shares_help_cont">
1126
- <td colspan="2">
1127
- <div>
1128
- <?php _e( 'If enabled, total shares will be displayed with sharing icons', 'sassy-social-share' ) ?>
1129
- <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_horizontal_total_shares.png', __FILE__ ); ?>" />
1130
- </div>
1131
- </td>
1132
- </tr>
1133
-
1134
- <tr>
1135
- <th>
1136
- <label for="heateor_sss_hmore"><?php _e( "Enable 'More' icon", 'sassy-social-share' ); ?></label>
1137
- <img id="heateor_sss_hmore_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1138
- </th>
1139
- <td>
1140
- <input id="heateor_sss_hmore" name="heateor_sss[horizontal_more]" type="checkbox" <?php echo isset( $options['horizontal_more'] ) ? 'checked = "checked"' : '';?> value="1" />
1141
- </td>
1142
- </tr>
1143
-
1144
- <tr class="heateor_sss_help_content" id="heateor_sss_hmore_help_cont">
1145
- <td colspan="2">
1146
- <div>
1147
- <?php _e( 'If enabled, "More" icon will be displayed after selected sharing icons which shows additional sharing networks in popup', 'sassy-social-share' ) ?>
1148
- </div>
1149
- </td>
1150
- </tr>
1151
-
1152
- <tr>
1153
- <td colspan="2">
1154
- <div>
1155
- <a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/hide-standard-share-bar.png', __FILE__ ) ?>" /></a>
1156
- </div>
1157
- </td>
1158
- </tr>
1159
- </tbody>
1160
- </table>
1161
- </div>
1162
- </div>
1163
-
1164
- </div>
1165
- <?php include 'sassy-social-share-about.php'; ?>
1166
- </div>
1167
-
1168
- <div class="menu_containt_div" id="tabs-3">
1169
- <div class="clear"></div>
1170
- <div class="heateor_sss_left_column">
1171
- <div class="stuffbox">
1172
- <h3><label><?php _e( 'Floating Sharing Interface Options', 'sassy-social-share' );?></label></h3>
1173
- <div class="inside">
1174
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1175
- <tr>
1176
- <th>
1177
- <label for="heateor_sss_vertical_enable"><?php _e("Enable Floating sharing interface", 'sassy-social-share' ); ?></label>
1178
- <img id="heateor_sss_vertical_enable_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1179
- </th>
1180
- <td>
1181
- <input id="heateor_sss_vertical_enable" onclick="heateorSssVerticalSharingOptionsToggle(this)" name="heateor_sss[vertical_enable]" type="checkbox" <?php echo isset( $options['vertical_enable'] ) ? 'checked = "checked"' : '';?> value="1" />
1182
- </td>
1183
- </tr>
1184
-
1185
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_enable_help_cont">
1186
- <td colspan="2">
1187
- <div>
1188
- <?php _e( 'Master control to enable floating sharing widget', 'sassy-social-share' ) ?>
1189
- <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_vertical_sharing.png', __FILE__ ); ?>" />
1190
- </div>
1191
- </td>
1192
- </tr>
1193
-
1194
- <tbody id="heateor_sss_vertical_sharing_options" <?php echo isset( $options['vertical_enable'] ) ? '' : 'style="display: none"'; ?>>
1195
- <tr>
1196
- <th>
1197
- <label for="heateor_sss_vertical_target_url"><?php _e("Target Url", 'sassy-social-share' ); ?></label>
1198
- <img id="heateor_sss_vertical_target_url_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1199
- </th>
1200
- <td id="heateor_sss_vertical_target_url_column">
1201
- <input id="heateor_sss_vertical_target_url_default" name="heateor_sss[vertical_target_url]" type="radio" <?php echo !isset( $options['vertical_target_url'] ) || $options['vertical_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
1202
- <label for="heateor_sss_vertical_target_url_default"><?php _e( 'Url of the webpage where icons are located (default)', 'sassy-social-share' ) ?></label><br/>
1203
- <input id="heateor_sss_vertical_target_url_home" name="heateor_sss[vertical_target_url]" type="radio" <?php echo isset( $options['vertical_target_url'] ) && $options['vertical_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
1204
- <label for="heateor_sss_vertical_target_url_home"><?php _e( 'Url of the homepage of your website', 'sassy-social-share' ) ?></label><br/>
1205
- <input id="heateor_sss_vertical_target_url_custom" name="heateor_sss[vertical_target_url]" type="radio" <?php echo isset( $options['vertical_target_url'] ) && $options['vertical_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
1206
- <label for="heateor_sss_vertical_target_url_custom"><?php _e( 'Custom url', 'sassy-social-share' ) ?></label><br/>
1207
- <input id="heateor_sss_vertical_target_url_custom_url" name="heateor_sss[vertical_target_url_custom]" type="text" value="<?php echo isset( $options['vertical_target_url_custom'] ) ? $options['vertical_target_url_custom'] : '' ?>" />
1208
- </td>
1209
- </tr>
1210
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_target_url_help_cont">
1211
- <td colspan="2">
1212
- <div>
1213
- <?php _e( 'Url to share', 'sassy-social-share' ) ?>
1214
- </div>
1215
- </td>
1216
- </tr>
1217
-
1218
- <tbody id="heateor_sss_vertical_instagram_options" <?php echo ! in_array( 'instagram', $options['vertical_re_providers'] ) ? 'style = "display: none"' : '';?> >
1219
- <tr>
1220
- <th>
1221
- <label for="heateor_sss_vertical_instagram_username"><?php _e("Instagram username", 'sassy-social-share' ); ?></label>
1222
- <img id="heateor_sss_vertical_instagram_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1223
- </th>
1224
- <td>
1225
- <input id="heateor_sss_vertical_instagram_username" name="heateor_sss[vertical_instagram_username]" type="text" value="<?php echo $instagram_username ?>" />
1226
- </td>
1227
- </tr>
1228
-
1229
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_instagram_username_help_cont">
1230
- <td colspan="2">
1231
- <div>
1232
- <?php _e( 'Username of the Instagram account you want to redirect users to, on clicking the icon', 'sassy-social-share' ) ?>
1233
- </div>
1234
- </td>
1235
- </tr>
1236
- </tbody>
1237
- <tbody id="heateor_sss_vertical_youtube_options" <?php echo ! in_array( 'youtube', $options['vertical_re_providers'] ) ? 'style = "display: none"' : '';?> >
1238
- <tr>
1239
- <th>
1240
- <label for="heateor_sss_vertical_youtube_username"><?php _e( "Youtube URL", 'sassy-social-share' ); ?></label>
1241
- <img id="heateor_sss_vertical_youtube_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1242
- </th>
1243
- <td>
1244
-
1245
-
1246
- <input id="heateor_sss_vertical_youtube_username" name="heateor_sss[vertical_youtube_username]" type="text" value="<?php echo $youtube_username ?>" />
1247
- </td>
1248
- </tr>
1249
-
1250
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_instagram_username_help_cont">
1251
- <td colspan="2">
1252
- <div>
1253
- <?php _e( 'Username of the Instagram account you want to redirect users to, on clicking the icon', 'sassy-social-share' ) ?>
1254
- </div>
1255
- </td>
1256
- </tr>
1257
- </tbody>
1258
- <tbody id="heateor_sss_vertical_comment_options" <?php echo ! in_array( 'Comment', $options['vertical_re_providers'] ) ? 'style = "display: none"' : '';?> >
1259
- <tr>
1260
- <th>
1261
- <label for="heateor_sss_vertical_comment_container_id"><?php _e( "HTML ID of container element of comment form", 'sassy-social-share' ); ?></label>
1262
- <img id="heateor_sss_vertical_comment_container_id_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1263
- </th>
1264
- <td>
1265
- <input id="heateor_sss_vertical_comment_container_id" name="heateor_sss[vertical_comment_container_id]" type="text" value="<?php echo $commentform_container_id ?>" />
1266
- </td>
1267
- </tr>
1268
-
1269
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_comment_container_id_help_cont">
1270
- <td colspan="2">
1271
- <div>
1272
- <?php _e( 'HTML ID of the element you want to focus on the webpage, on click of Comment icon.', 'sassy-social-share' ) ?>
1273
- </div>
1274
- </td>
1275
- </tr>
1276
- </tbody>
1277
-
1278
- <tr>
1279
- <th>
1280
- <label><?php _e( "Rearrange icons", 'sassy-social-share' ); ?></label>
1281
- <img id="heateor_sss_vertical_rearrange_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1282
- </th>
1283
- </tr>
1284
-
1285
- <tr>
1286
- <td colspan="2">
1287
- <script>
1288
- <?php
1289
- $verticalSharingStyle = 'width:' . ( $options['vertical_sharing_shape'] != 'rectangle' ? $options['vertical_sharing_size'] : $options['vertical_sharing_width'] ) . 'px;height:' . $vertical_line_height . 'px;';
1290
- $verticalDeliciousRadius = '';
1291
- if ( $options['vertical_sharing_shape'] == 'round' ) {
1292
- $verticalSharingStyle .= 'border-radius:999px;';
1293
- $verticalDeliciousRadius = 'border-radius:999px;';
1294
- } elseif ( isset( $options['vertical_border_radius'] ) && $options['vertical_border_radius'] != '' ) {
1295
- $verticalSharingStyle .= 'border-radius:' . $options['vertical_border_radius'] . 'px;';
1296
- }
1297
- ?>
1298
- var heateorSssVerticalSharingStyle = '<?php echo $verticalSharingStyle ?>', heateorSssVerticalDeliciousRadius = '<?php echo $verticalDeliciousRadius ?>';
1299
- </script>
1300
- <style type="text/css">
1301
- <?php if ( $options['vertical_bg_color_default'] != '' ) {?>
1302
- ul#heateor_sss_vertical_rearrange i.heateorSssInstagramBackground{background:<?php echo $vertical_bg ?>!important;}
1303
- <?php }
1304
- if ( $options['vertical_bg_color_hover'] != '' ) { ?>
1305
- ul#heateor_sss_vertical_rearrange i.heateorSssInstagramBackground:hover{background:<?php echo $vertical_bg_hover ?>!important;}
1306
- <?php } ?>
1307
- .heateorSssVerticalSharingBackground{
1308
- <?php if ( $vertical_bg ) { ?>
1309
- background-color: <?php echo $vertical_bg ?>;
1310
- <?php }if ( $vertical_border_width) { ?>
1311
- border-width: <?php echo $vertical_border_width ?>px;
1312
- border-style: solid;
1313
- <?php } ?>
1314
- border-color: <?php echo $vertical_border_color ? $vertical_border_color : 'transparent'; ?>;
1315
- }
1316
- .heateorSssVerticalSharingBackground:hover{
1317
- <?php if ( $vertical_bg_hover ) { ?>
1318
- background-color: <?php echo $vertical_bg_hover ?>;
1319
- <?php } if ( $vertical_border_width_hover ) { ?>
1320
- border-width: <?php echo $vertical_border_width_hover ?>px;
1321
- border-style: solid;
1322
- <?php } ?>
1323
- border-color: <?php echo $vertical_border_color_hover ? $vertical_border_color_hover : 'transparent'; ?>;
1324
- }
1325
- </style>
1326
- <ul id="heateor_sss_vertical_rearrange">
1327
- <?php
1328
- if ( isset( $options['vertical_re_providers'] ) ) {
1329
- foreach ( $options['vertical_re_providers'] as $rearrange ) {
1330
- ?>
1331
- <li title="<?php echo ucfirst( str_replace( '_', ' ', $rearrange ) ) ?>" id="heateor_sss_re_vertical_<?php echo str_replace( array( ' ', '.' ), '_', $rearrange ) ?>" >
1332
- <i style="display:block;<?php echo $verticalSharingStyle ?>" class="<?php echo in_array( $rearrange, $like_buttons ) ? '' : 'heateorSssVerticalSharingBackground' ?> heateorSss<?php echo ucfirst( str_replace( array( '_', '.', ' ' ), '', $rearrange ) ) ?>Background"><div class="heateorSssSharingSvg heateorSss<?php echo ucfirst( str_replace( array( '_', '.', ' ' ), '', $rearrange ) ) ?>Svg" style="<?php echo $verticalDeliciousRadius ?>"></div></i>
1333
- <input type="hidden" name="heateor_sss[vertical_re_providers][]" value="<?php echo $rearrange ?>">
1334
- </li>
1335
- <?php
1336
- }
1337
- }
1338
- ?>
1339
- </ul>
1340
- </td>
1341
- </tr>
1342
-
1343
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_rearrange_help_cont">
1344
- <td colspan="2">
1345
- <div>
1346
- <?php _e( 'Drag the icons to rearrange in desired order', 'sassy-social-share' ) ?>
1347
- </div>
1348
- </td>
1349
- </tr>
1350
-
1351
- <tr>
1352
- <th colspan="2">
1353
- <label><?php _e("Select Sharing Services", 'sassy-social-share' ); ?></label>
1354
- <img id="heateor_sss_vertical_providers_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1355
- </th>
1356
- </tr>
1357
-
1358
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_providers_help_cont">
1359
- <td colspan="2">
1360
- <div>
1361
- <?php _e( 'Select sharing services to show in social share bar', 'sassy-social-share' ) ?>
1362
- </div>
1363
- </td>
1364
- </tr>
1365
-
1366
- <tr>
1367
- <td colspan="2" class="selectSharingNetworks">
1368
- <?php
1369
- foreach( $like_buttons as $like_button ) {
1370
- ?>
1371
- <div class="heateorSssVerticalSharingProviderContainer">
1372
- <input id="heateor_sss_vertical_<?php echo $like_button ?>" type="checkbox" <?php echo isset( $options['vertical_re_providers'] ) && in_array( $like_button, $options['vertical_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $like_button ?>" />
1373
- <label for="heateor_sss_vertical_<?php echo $like_button ?>"><img src="<?php echo plugins_url( '../../images/sharing/'. $like_button .'.png', __FILE__ ) ?>" /></label>
1374
- </div>
1375
- <?php
1376
- }
1377
- ?>
1378
- <div style="clear:both"></div>
1379
- <div style="width:100%; margin: 10px 0"><input type="text" onkeyup="heateorSssSearchSharingNetworks(this.value.trim())" placeholder="<?php _e( 'Search social network', 'sassy-social-share' ) ?>" class="search" /></div>
1380
- <div style="clear:both"></div>
1381
- <?php
1382
- foreach( $sharing_networks as $sharing_network) {
1383
- ?>
1384
- <div class="heateorSssVerticalSharingProviderContainer">
1385
- <?php echo $sharing_network == 'Goodreads' ? '<a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank">' : ''; ?>
1386
- <input id="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>" type="checkbox" <?php echo $sharing_network == 'Goodreads' ? 'disabled ' : ''; ?><?php echo isset( $options['vertical_re_providers'] ) && in_array( $sharing_network, $options['vertical_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $sharing_network ?>" />
1387
- <label for="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>"><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Svg"></ss></i></label>
1388
- <label class="lblSocialNetwork" <?php echo $sharing_network != 'Goodreads' ? 'for="heateor_sss_' . $sharing_network . '"' : ''; ?>><?php echo str_replace( '_', ' ', ucfirst( $sharing_network ) ) ?></label>
1389
- <?php echo $sharing_network == 'Goodreads' ? '</a>' : ''; ?>
1390
- </div>
1391
- <?php
1392
- }
1393
- ?>
1394
- </td>
1395
- </tr>
1396
-
1397
- <tr>
1398
- <th>
1399
- <label><?php _e("Background Color", 'sassy-social-share' ); ?></label>
1400
- <img id="heateor_sss_vertical_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1401
- </th>
1402
- <td>
1403
- <input style="width: 100px" name="heateor_sss[vertical_bg]" type="text" value="<?php echo isset( $options['vertical_bg'] ) ? $options['vertical_bg'] : '' ?>" />
1404
- </td>
1405
- </tr>
1406
-
1407
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_bg_color_help_cont">
1408
- <td colspan="2">
1409
- <div>
1410
- <?php _e( 'Specify the color or hex code (example #cc78e0) for the background of vertical sharing bar. Leave empty for transparent. You can get the hex code of the required color from <a href="http://www.colorpicker.com/" target="_blank">this link</a>', 'sassy-social-share' ) ?>
1411
- </div>
1412
- </td>
1413
- </tr>
1414
-
1415
- <tr>
1416
- <th>
1417
- <label for="heateor_sss_alignment"><?php _e("Horizontal alignment", 'sassy-social-share' ); ?></label>
1418
- <img id="heateor_sss_alignment_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1419
- </th>
1420
- <td>
1421
- <select onchange="heateorSssToggleOffset(this.value)" id="heateor_sss_alignment" name="heateor_sss[alignment]">
1422
- <option value="left" <?php echo isset( $options['alignment'] ) && $options['alignment'] == 'left' ? 'selected="selected"' : '' ?>><?php _e( 'Left', 'sassy-social-share' ) ?></option>
1423
- <option value="right" <?php echo isset( $options['alignment'] ) && $options['alignment'] == 'right' ? 'selected="selected"' : '' ?>><?php _e( 'Right', 'sassy-social-share' ) ?></option>
1424
- </select>
1425
- </td>
1426
- </tr>
1427
-
1428
- <tr class="heateor_sss_help_content" id="heateor_sss_alignment_help_cont">
1429
- <td colspan="2">
1430
- <div>
1431
- <?php _e( 'Horizontal alignment of the sharing interface', 'sassy-social-share' ) ?>
1432
- </div>
1433
- </td>
1434
- </tr>
1435
-
1436
- <tbody id="heateor_sss_left_offset_rows" <?php echo ( isset( $options['alignment'] ) && $options['alignment'] == 'left' ) ? '' : 'style="display: none"' ?>>
1437
- <tr>
1438
- <th>
1439
- <label for="heateor_sss_left_offset"><?php _e("Left offset", 'sassy-social-share' ); ?></label>
1440
- <img id="heateor_sss_left_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1441
- </th>
1442
- <td>
1443
- <input style="width: 100px" id="heateor_sss_left_offset" name="heateor_sss[left_offset]" type="text" value="<?php echo isset( $options['left_offset'] ) ? $options['left_offset'] : '' ?>" />px
1444
- </td>
1445
- </tr>
1446
-
1447
- <tr class="heateor_sss_help_content" id="heateor_sss_left_offset_help_cont">
1448
- <td colspan="2">
1449
- <div>
1450
- <?php _e( 'Specify a number. Increase in number will shift sharing interface towards right and decrease will shift it towards left. Number can be negative too.', 'sassy-social-share' ) ?>
1451
- </div>
1452
- </td>
1453
- </tr>
1454
- </tbody>
1455
-
1456
- <tbody id="heateor_sss_right_offset_rows" <?php echo ( isset( $options['alignment'] ) && $options['alignment'] == 'right' ) ? '' : 'style="display: none"' ?>>
1457
- <tr>
1458
- <th>
1459
- <label for="heateor_sss_right_offset"><?php _e("Right offset", 'sassy-social-share' ); ?></label>
1460
- <img id="heateor_sss_right_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1461
- </th>
1462
- <td>
1463
- <input style="width: 100px" id="heateor_sss_right_offset" name="heateor_sss[right_offset]" type="text" value="<?php echo isset( $options['right_offset'] ) ? $options['right_offset'] : '' ?>" />px
1464
- </td>
1465
- </tr>
1466
-
1467
- <tr class="heateor_sss_help_content" id="heateor_sss_right_offset_help_cont">
1468
- <td colspan="2">
1469
- <div>
1470
- <?php _e( 'Specify a number. Increase in number will shift sharing interface towards left and decrease will shift it towards right. Number can be negative too.', 'sassy-social-share' ) ?>
1471
- </div>
1472
- </td>
1473
- </tr>
1474
- </tbody>
1475
-
1476
- <tr>
1477
- <th>
1478
- <label for="heateor_sss_top_offset"><?php _e("Top offset", 'sassy-social-share' ); ?></label>
1479
- <img id="heateor_sss_top_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1480
- </th>
1481
- <td>
1482
- <input style="width: 100px" id="heateor_sss_top_offset" name="heateor_sss[top_offset]" type="text" value="<?php echo isset( $options['top_offset'] ) ? $options['top_offset'] : '' ?>" />px
1483
- </td>
1484
- </tr>
1485
-
1486
- <tr class="heateor_sss_help_content" id="heateor_sss_top_offset_help_cont">
1487
- <td colspan="2">
1488
- <div>
1489
- <?php _e( 'Specify a number. Increase in number will shift sharing interface towards bottom and decrease will shift it towards top.', 'sassy-social-share' ) ?>
1490
- </div>
1491
- </td>
1492
- </tr>
1493
-
1494
- <tr>
1495
- <th>
1496
- <label><?php _e("Placement", 'sassy-social-share' ); ?></label>
1497
- <img id="heateor_sss_vertical_location_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1498
- </th>
1499
- <td>
1500
- <input id="heateor_sss_vertical_home" name="heateor_sss[vertical_home]" type="checkbox" <?php echo isset( $options['vertical_home'] ) ? 'checked = "checked"' : '';?> value="1" />
1501
- <label for="heateor_sss_vertical_home"><?php _e( 'Homepage', 'sassy-social-share' ) ?></label><br/>
1502
- <input id="heateor_sss_vertical_post" name="heateor_sss[vertical_post]" type="checkbox" <?php echo isset( $options['vertical_post'] ) ? 'checked = "checked"' : '';?> value="1" />
1503
- <label for="heateor_sss_vertical_post"><?php _e( 'Posts', 'sassy-social-share' ) ?></label><br/>
1504
- <input id="heateor_sss_vertical_page" name="heateor_sss[vertical_page]" type="checkbox" <?php echo isset( $options['vertical_page'] ) ? 'checked = "checked"' : '';?> value="1" />
1505
- <label for="heateor_sss_vertical_page"><?php _e( 'Pages', 'sassy-social-share' ) ?></label><br/>
1506
- <input id="heateor_sss_vertical_excerpt" name="heateor_sss[vertical_excerpt]" type="checkbox" <?php echo isset( $options['vertical_excerpt'] ) ? 'checked = "checked"' : '';?> value="1" />
1507
- <label for="heateor_sss_vertical_excerpt"><?php _e( 'Excerpts and Posts page', 'sassy-social-share' ) ?></label><br/>
1508
- <input id="heateor_sss_vertical_category" name="heateor_sss[vertical_category]" type="checkbox" <?php echo isset( $options['vertical_category'] ) ? 'checked = "checked"' : '';?> value="1" />
1509
- <label for="heateor_sss_vertical_category"><?php _e( 'Category Archives', 'sassy-social-share' ) ?></label><br/>
1510
- <input id="heateor_sss_vertical_archive" name="heateor_sss[vertical_archive]" type="checkbox" <?php echo isset( $options['vertical_archive'] ) ? 'checked = "checked"' : '';?> value="1" />
1511
- <label for="heateor_sss_vertical_archive"><?php _e( 'Archive Pages (Category, Tag, Author or Date based pages)', 'sassy-social-share' ) ?></label><br/>
1512
- <?php
1513
- if ( count( $post_types ) ) {
1514
- foreach ( $post_types as $post_type ) {
1515
- ?>
1516
- <input id="heateor_sss_vertical_<?php echo $post_type ?>" name="heateor_sss[vertical_<?php echo $post_type ?>]" type="checkbox" <?php echo isset( $options['vertical_' . $post_type] ) ? 'checked = "checked"' : '';?> value="1" />
1517
- <label for="heateor_sss_vertical_<?php echo $post_type ?>"><?php echo ucfirst( $post_type ) . 's'; ?></label><br/>
1518
- <?php
1519
- }
1520
- }
1521
-
1522
- if ( $this->is_bp_active) {
1523
- ?>
1524
- <input id="heateor_sss_vertical_bp_group" name="heateor_sss[vertical_bp_group]" type="checkbox" <?php echo isset( $options['vertical_bp_group'] ) ? 'checked = "checked"' : '';?> value="1" />
1525
- <label for="heateor_sss_vertical_bp_group"><?php _e( 'BuddyPress group', 'sassy-social-share' ) ?></label><br/>
1526
- <?php
1527
- }
1528
-
1529
- if (function_exists( 'is_bbpress' ) ) {
1530
- ?>
1531
- <br/>
1532
- <input id="heateor_sss_vertical_bb_forum" name="heateor_sss[vertical_bb_forum]" type="checkbox" <?php echo isset( $options['vertical_bb_forum'] ) ? 'checked = "checked"' : '';?> value="1" />
1533
- <label for="heateor_sss_vertical_bb_forum"><?php _e( 'BBPress forum', 'sassy-social-share' ) ?></label>
1534
- <br/>
1535
- <input id="heateor_sss_vertical_bb_topic" name="heateor_sss[vertical_bb_topic]" type="checkbox" <?php echo isset( $options['vertical_bb_topic'] ) ? 'checked = "checked"' : '';?> value="1" />
1536
- <label for="heateor_sss_vertical_bb_topic"><?php _e( 'BBPress topic', 'sassy-social-share' ) ?></label>
1537
- <?php
1538
- }
1539
- ?>
1540
- </td>
1541
- </tr>
1542
-
1543
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_location_help_cont">
1544
- <td colspan="2">
1545
- <div>
1546
- <?php _e( 'Specify the pages where you want to enable vertical Sharing interface', 'sassy-social-share' ) ?>
1547
- </div>
1548
- </td>
1549
- </tr>
1550
-
1551
- <tr>
1552
- <th>
1553
- <label for="heateor_sss_vertical_counts"><?php _e( "Show share counts", 'sassy-social-share' ); ?></label>
1554
- <img id="heateor_sss_vertical_count_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1555
- </th>
1556
- <td>
1557
- <input id="heateor_sss_vertical_counts" name="heateor_sss[vertical_counts]" type="checkbox" <?php echo isset( $options['vertical_counts'] ) ? 'checked = "checked"' : '';?> value="1" onclick="if(this.checked){heateorSssVerticalShares = true;}else{heateorSssVerticalShares = false;}" />
1558
- <br/>
1559
- <span class="heateor_sss_help_content" style="display:block"><?php _e( 'Share counts are supported for Twitter, Buffer, Reddit, Pinterest, Odnoklassniki, Fintel and Vkontakte', 'sassy-social-share' ) ?></span>
1560
- <span class="heateor_sss_help_content" style="display:block"><strong><?php echo sprintf( __( 'To show Twitter share count, you have to click "Give me my Twitter counts back" button at <a href="%s" target="_blank">TwitCount.com</a> and register your website %s with them. No need to copy-paste any code from their website.', 'sassy-social-share' ), 'http://twitcount.com', home_url() ) ?></strong></span>
1561
- </td>
1562
- </tr>
1563
-
1564
- <tr class="heateor_sss_help_content" id="heateor_sss_vertical_count_help_cont">
1565
- <td colspan="2">
1566
- <div>
1567
- <?php _e( 'If enabled, share counts are displayed above sharing icons.', 'sassy-social-share' ) ?>
1568
- <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_vertical_sharing_count.png', __FILE__ ); ?>" />
1569
- </div>
1570
- </td>
1571
- </tr>
1572
-
1573
- <tr>
1574
- <th>
1575
- <label for="heateor_sss_total_vertical_shares"><?php _e( "Show total shares", 'sassy-social-share' ); ?></label>
1576
- <img id="heateor_sss_total_vertical_shares_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1577
- </th>
1578
- <td>
1579
- <input id="heateor_sss_total_vertical_shares" name="heateor_sss[vertical_total_shares]" type="checkbox" onclick="if(this.checked){heateorSssVerticalTotalShares = true;}else{heateorSssVerticalTotalShares = false;}" <?php echo isset( $options['vertical_total_shares'] ) ? 'checked = "checked"' : '';?> value="1" />
1580
- </td>
1581
- </tr>
1582
-
1583
- <tr class="heateor_sss_help_content" id="heateor_sss_total_vertical_shares_help_cont">
1584
- <td colspan="2">
1585
- <div>
1586
- <?php _e( 'If enabled, total shares will be displayed with sharing icons', 'sassy-social-share' ) ?>
1587
- <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_vertical_total_shares.png', __FILE__ ); ?>" />
1588
- </div>
1589
- </td>
1590
- </tr>
1591
-
1592
- <tr>
1593
- <th>
1594
- <label for="heateor_sss_vmore"><?php _e( "Enable 'More' icon", 'sassy-social-share' ); ?></label>
1595
- <img id="heateor_sss_vmore_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1596
- </th>
1597
- <td>
1598
- <input id="heateor_sss_vmore" name="heateor_sss[vertical_more]" type="checkbox" <?php echo isset( $options['vertical_more'] ) ? 'checked = "checked"' : '';?> value="1" />
1599
- </td>
1600
- </tr>
1601
-
1602
- <tr class="heateor_sss_help_content" id="heateor_sss_vmore_help_cont">
1603
- <td colspan="2">
1604
- <div>
1605
- <?php _e( 'If enabled, "More" icon will be displayed after selected sharing icons which shows additional sharing networks in popup', 'sassy-social-share' ) ?>
1606
- </div>
1607
- </td>
1608
- </tr>
1609
-
1610
- <tr>
1611
- <th>
1612
- <label for="heateor_sss_hslider"><?php _e( "Hide floating slider", 'sassy-social-share' ); ?></label>
1613
- <img id="heateor_sss_hslider_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1614
- </th>
1615
- <td>
1616
- <input id="heateor_sss_hslider" name="heateor_sss[hide_slider]" type="checkbox" <?php echo isset( $options['hide_slider'] ) ? 'checked = "checked"' : '';?> value="1" />
1617
- </td>
1618
- </tr>
1619
-
1620
- <tr class="heateor_sss_help_content" id="heateor_sss_hslider_help_cont">
1621
- <td colspan="2">
1622
- <div>
1623
- <?php _e( 'Hides the slider arrow present below the floating share bar', 'sassy-social-share' ) ?>
1624
- </div>
1625
- </td>
1626
- </tr>
1627
-
1628
- <tr>
1629
- <th>
1630
- <img id="heateor_sss_mobile_sharing_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1631
- <label for="heateor_sss_mobile_sharing"><?php _e("Vertical floating bar responsiveness", 'sassy-social-share' ); ?></label>
1632
- </th>
1633
- <td>
1634
- <input id="heateor_sss_mobile_sharing" name="heateor_sss[hide_mobile_sharing]" type="checkbox" <?php echo isset( $options['hide_mobile_sharing'] ) ? 'checked = "checked"' : '';?> value="1" /><label><?php echo sprintf( __( 'Display vertical interface only when screen is wider than %s pixels', 'sassy-social-share' ), '<input style="width:46px" name="heateor_sss[vertical_screen_width]" type="text" value="' . ( isset( $options['vertical_screen_width'] ) ? $options['vertical_screen_width'] : '' ) . '" />' ) ?></label>
1635
- </td>
1636
- </tr>
1637
-
1638
- <tr class="heateor_sss_help_content" id="heateor_sss_mobile_sharing_help_cont">
1639
- <td colspan="2">
1640
- <div>
1641
- <?php _e( 'Display vertical interface only when screen is wider than the width specified.', 'sassy-social-share' ) ?>
1642
- </div>
1643
- </td>
1644
- </tr>
1645
-
1646
- <tr>
1647
- <th>
1648
- <label for="heateor_sss_mobile_sharing_bottom"><?php _e("Horizontal floating bar responsiveness", 'sassy-social-share' ); ?></label>
1649
- <img id="heateor_sss_mobile_sharing_bottom_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1650
- </th>
1651
- <td>
1652
- <input id="heateor_sss_mobile_sharing_bottom" name="heateor_sss[bottom_mobile_sharing]" type="checkbox" <?php echo isset( $options['bottom_mobile_sharing'] ) ? 'checked = "checked"' : '';?> value="1" /><label><?php echo sprintf( __( 'Stick vertical floating interface horizontally at bottom only when screen is narrower than %s pixels', 'sassy-social-share' ), '<input style="width:46px" name="heateor_sss[horizontal_screen_width]" type="text" value="' . ( isset( $options['horizontal_screen_width'] ) ? $options['horizontal_screen_width'] : '' ) . '" />' ) ?></label>
1653
- </td>
1654
- </tr>
1655
-
1656
- <tr class="heateor_sss_help_content" id="heateor_sss_mobile_sharing_bottom_help_cont">
1657
- <td colspan="2">
1658
- <div>
1659
- <?php _e( 'Stick vertical floating interface horizontally at bottom only when screen is narrower than the width specified', 'sassy-social-share' ) ?>
1660
- <img src="<?php echo plugins_url( '../../images/snaps/sss_mobile_sharing.png', __FILE__ ); ?>" />
1661
- </div>
1662
- </td>
1663
- </tr>
1664
-
1665
- <tbody id="heateor_sss_bottom_sharing_options" <?php echo isset( $options['bottom_mobile_sharing'] ) ? '' : 'style="display: none"'; ?>>
1666
- <tr>
1667
- <th>
1668
- <label for="heateor_sss_mobile_sharing_position"><?php _e("Horizontal floating bar position", 'sassy-social-share' ); ?></label>
1669
- <img id="heateor_sss_mobile_sharing_position_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1670
- </th>
1671
- <td>
1672
- <input type="radio" id="bottom_sharing_position_radio_nonresponsive" <?php echo $options['bottom_sharing_position_radio'] == 'nonresponsive' ? 'checked' : ''; ?> name="heateor_sss[bottom_sharing_position_radio]" value="nonresponsive" /><label for="bottom_sharing_position_radio_nonresponsive"><?php echo sprintf( __( '%s pixels from %s', 'sassy-social-share' ), '<input id="heateor_sss_mobile_sharing_position" style="width:46px" name="heateor_sss[bottom_sharing_position]" type="text" value="' . ( isset( $options['bottom_sharing_position'] ) ? $options['bottom_sharing_position'] : '' ) . '" />', '<select style="width:63px" name="heateor_sss[bottom_sharing_alignment]"><option value="right" ' . ( ! isset( $options['bottom_sharing_alignment'] ) || $options['bottom_sharing_alignment'] == 'right' ? 'selected' : '' ) . '>right</option><option value="left" ' . ( isset( $options['bottom_sharing_alignment'] ) && $options['bottom_sharing_alignment'] == 'left' ? 'selected' : '' ) . '>left</option></select>' ) ?></label><br/>
1673
- <input type="radio" id="bottom_sharing_position_radio_responsive" <?php echo $options['bottom_sharing_position_radio'] == 'responsive' ? 'checked' : ''; ?> name="heateor_sss[bottom_sharing_position_radio]" value="responsive" /><label for="bottom_sharing_position_radio_responsive"><?php _e( 'Auto-adjust according to screen width (responsive)', 'sassy-social-share' ); ?></label>
1674
- </td>
1675
- </tr>
1676
-
1677
- <tr class="heateor_sss_help_content" id="heateor_sss_mobile_sharing_position_help_cont">
1678
- <td colspan="2">
1679
- <div>
1680
- <?php _e( 'Alignment of horizontal floating interface. Number can be negative too.', 'sassy-social-share' ) ?>
1681
- </div>
1682
- </td>
1683
- </tr>
1684
- </tbody>
1685
-
1686
-
1687
- </tbody>
1688
- </table>
1689
- </div>
1690
- </div>
1691
- </div>
1692
- <?php include 'sassy-social-share-about.php'; ?>
1693
- </div>
1694
-
1695
- <div class="menu_containt_div" id="tabs-4">
1696
- <div class="clear"></div>
1697
- <div class="heateor_sss_left_column">
1698
-
1699
- <div>
1700
- <a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank"><img style="margin-bottom:19px;" src="<?php echo plugins_url( '../../images/unlock/track-shares.png', __FILE__ ) ?>" /></a>
1701
- </div>
1702
-
1703
- <div class="stuffbox">
1704
- <h3><label><?php _e( 'Miscellaneous', 'sassy-social-share' ) ?></label></h3>
1705
- <div class="inside">
1706
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1707
- <tr>
1708
- <th>
1709
- <label for="heateor_sss_insta_bg"><?php _e( "Use plain background for Instagram icon", 'sassy-social-share' ) ?></label>
1710
- <img id="heateor_sss_insta_bg_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1711
- </th>
1712
- <td>
1713
- <input id="heateor_sss_insta_bg" name="heateor_sss[plain_instagram_bg]" type="checkbox" <?php echo isset( $options['plain_instagram_bg'] ) ? 'checked = "checked"' : '';?> value="1" />
1714
- </td>
1715
- </tr>
1716
-
1717
- <tr class="heateor_sss_help_content" id="heateor_sss_insta_bg_help_cont">
1718
- <td colspan="2">
1719
- <div>
1720
- <?php _e( 'Uses plain background for Instagram icon instead of multicolored background', 'sassy-social-share' ) ?>
1721
- </div>
1722
- </td>
1723
- </tr>
1724
-
1725
- <tr>
1726
- <th>
1727
- <label for="heateor_sss_footer_script"><?php _e( "Load Javascript files in footer", 'sassy-social-share' ) ?></label>
1728
- <img id="heateor_sss_footer_script_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1729
- </th>
1730
- <td>
1731
- <input id="heateor_sss_footer_script" name="heateor_sss[footer_script]" type="checkbox" <?php echo isset( $options['footer_script'] ) ? 'checked = "checked"' : '';?> value="1" />
1732
- </td>
1733
- </tr>
1734
-
1735
- <tr class="heateor_sss_help_content" id="heateor_sss_footer_script_help_cont">
1736
- <td colspan="2">
1737
- <div>
1738
- <?php _e( 'If enabled (recommended), Javascript files will be included in the footer of your website', 'sassy-social-share' ) ?>
1739
- </div>
1740
- </td>
1741
- </tr>
1742
-
1743
- <tr>
1744
- <th>
1745
- <label for="heateor_sss_js_when_needed"><?php _e( "Load Javascript only when needed", 'sassy-social-share' ) ?></label>
1746
- <img id="heateor_sss_js_when_needed_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1747
- </th>
1748
- <td>
1749
- <input id="heateor_sss_js_when_needed" name="heateor_sss[js_when_needed]" type="checkbox" <?php echo isset( $options['js_when_needed'] ) ? 'checked = "checked"' : '';?> value="1" />
1750
- </td>
1751
- </tr>
1752
-
1753
- <tr class="heateor_sss_help_content" id="heateor_sss_js_when_needed_help_cont">
1754
- <td colspan="2">
1755
- <div>
1756
- <?php _e( 'Javascript file will be loaded only at the webpages where share icons have been integrated', 'sassy-social-share' ) ?>
1757
- </div>
1758
- </td>
1759
- </tr>
1760
-
1761
- <tr>
1762
- <th>
1763
- <label for="heateor_sss_delete_options"><?php _e("Delete all the options on plugin deletion", 'sassy-social-share' ); ?></label>
1764
- <img id="heateor_sss_delete_options_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1765
- </th>
1766
- <td>
1767
- <input id="heateor_sss_delete_options" name="heateor_sss[delete_options]" type="checkbox" <?php echo isset( $options['delete_options'] ) ? 'checked = "checked"' : '';?> value="1" />
1768
- </td>
1769
- </tr>
1770
-
1771
- <tr class="heateor_sss_help_content" id="heateor_sss_delete_options_help_cont">
1772
- <td colspan="2">
1773
- <div>
1774
- <?php _e( 'If enabled, plugin options will get deleted when plugin is deleted/uninstalled and you will need to reconfigure the options when you install the plugin next time.', 'sassy-social-share' ) ?>
1775
- </div>
1776
- </td>
1777
- </tr>
1778
- </table>
1779
- </div>
1780
- </div>
1781
-
1782
- <div class="stuffbox">
1783
- <h3><label><?php _e( 'Share Count Cache', 'sassy-social-share' ) ?></label></h3>
1784
- <div class="inside">
1785
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1786
- <tr>
1787
- <th>
1788
- <label for="heateor_sss_share_count_cache"><?php _e( "Refresh Share Count cache every", 'sassy-social-share' ) ?></label>
1789
- <img id="heateor_sss_share_count_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1790
- </th>
1791
- <td>
1792
- <input style="width: 50px;" id="heateor_sss_share_count_cache" name="heateor_sss[share_count_cache_refresh_count]" type="text" value="<?php echo $options['share_count_cache_refresh_count']; ?>" />
1793
- <select name="heateor_sss[share_count_cache_refresh_unit]">
1794
- <option value="seconds" <?php echo $options['share_count_cache_refresh_unit'] == 'seconds' ? 'selected' : ''; ?>>Second(s)</option>
1795
- <option value="minutes" <?php echo $options['share_count_cache_refresh_unit'] == 'minutes' ? 'selected' : ''; ?>>Minute(s)</option>
1796
- <option value="hours" <?php echo $options['share_count_cache_refresh_unit'] == 'hours' ? 'selected' : ''; ?>>Hour(s)</option>
1797
- <option value="days" <?php echo $options['share_count_cache_refresh_unit'] == 'days' ? 'selected' : ''; ?>>Day(s)</option>
1798
- </select>
1799
- </td>
1800
- </tr>
1801
-
1802
- <tr class="heateor_sss_help_content" id="heateor_sss_share_count_cache_help_cont">
1803
- <td colspan="2">
1804
- <div>
1805
- <?php echo sprintf( __( 'Frequent cache refreshing results in slower loading of pages with share counts enabled. Leave empty to disable cache. More info <a href="%s" target="_blank">here</a>', 'sassy-social-share' ), 'http://support.heateor.com/why-is-share-count-not-getting-updated' ); ?>
1806
- </div>
1807
- </td>
1808
- </tr>
1809
-
1810
- <tr>
1811
- <th style="width:215px">
1812
- <input type="button" class="button-primary" value="<?php _e( 'Clear Share Counts Cache', 'sassy-social-share' ) ?>" onclick="heateorSssClearShareCountCache()" />
1813
- <img id="heateor_sss_clear_share_count_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1814
- </th>
1815
- <td>
1816
- <img src="<?php echo plugins_url( '../../images/ajax_loader.gif', __FILE__ ) ?>" id="share_count_cache_loading" style="display:none" />
1817
- <div id="heateor_sss_share_count_cache_clear_message" style="color:green;display:none;"><?php _e( 'Share Counts cache cleared successfully.', 'sassy-social-share' ); ?></div>
1818
- </td>
1819
- </tr>
1820
-
1821
- <tr class="heateor_sss_help_content" id="heateor_sss_clear_share_count_cache_help_cont">
1822
- <td colspan="2">
1823
- <div>
1824
- <?php _e( 'Use this to clear cached share counts', 'sassy-social-share' ) ?>
1825
- </div>
1826
- </td>
1827
- </tr>
1828
- </table>
1829
- </div>
1830
- </div>
1831
-
1832
- <div class="stuffbox">
1833
- <h3><label><?php _e( 'Url shortener', 'sassy-social-share' );?></label></h3>
1834
- <div class="inside">
1835
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1836
- <tr>
1837
- <th>
1838
- <label for="heateor_sss_surl_enable"><?php _e("Use shortlinks already installed", 'sassy-social-share' ); ?></label>
1839
- <img id="heateor_sss_surl_enable_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1840
- </th>
1841
- <td>
1842
- <input id="heateor_sss_surl_enable" name="heateor_sss[use_shortlinks]" type="checkbox" <?php echo isset( $options['use_shortlinks'] ) ? 'checked = "checked"' : '';?> value="1" />
1843
- </td>
1844
- </tr>
1845
-
1846
- <tr class="heateor_sss_help_content" id="heateor_sss_surl_enable_help_cont">
1847
- <td colspan="2">
1848
- <div>
1849
- <?php _e( 'Use default short url permalinks without the need for any additional plugin', 'sassy-social-share' ) ?>
1850
- </div>
1851
- </td>
1852
- </tr>
1853
-
1854
- <tr>
1855
- <th>
1856
- <label for="heateor_sss_bitly_enable"><?php _e("Enable bit.ly url shortener for sharing", 'sassy-social-share' ); ?></label>
1857
- <img id="heateor_sss_bitly_enable_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1858
- </th>
1859
- <td>
1860
- <input id="heateor_sss_bitly_enable" name="heateor_sss[bitly_enable]" type="checkbox" <?php echo isset( $options['bitly_enable'] ) ? 'checked = "checked"' : '';?> value="1" />
1861
- </td>
1862
- </tr>
1863
-
1864
-
1865
- <tr class="heateor_sss_help_content" id="heateor_sss_bitly_enable_help_cont">
1866
- <td colspan="2">
1867
- <div>
1868
- <?php _e( 'Master control to enable bit.ly url shortening for sharing', 'sassy-social-share' ) ?>
1869
- </div>
1870
- </td>
1871
- </tr>
1872
-
1873
- <tr>
1874
- <th>
1875
- <label for="heateor_sss_bitly_access_token"><?php _e( "Bit.ly Generic Access Token", 'sassy-social-share' ); ?></label>
1876
- <img id="heateor_sss_bitly_access_token_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1877
- </th>
1878
- <td>
1879
- <input id="heateor_sss_bitly_access_token" name="heateor_sss[bitly_access_token]" type="text" value="<?php echo isset( $options['bitly_access_token'] ) ? $options['bitly_access_token'] : '' ?>" />
1880
- </td>
1881
- </tr>
1882
-
1883
- <tr class="heateor_sss_help_content" id="heateor_sss_bitly_access_token_help_cont">
1884
- <td colspan="2">
1885
- <div>
1886
- <?php echo sprintf( __( 'Login to your bit.ly account and navigate to <strong>Profile Settings > Generic Access Token</strong> (top-right corner) and authenticate to generate access token. More details at the <a href="%s" target="_blank">link</a>', 'sassy-social-share' ), 'https://support.sendible.com/hc/en-us/articles/360021876751-How-To-Access-Your-Bit-ly-Key' ) ?>
1887
- </div>
1888
- </td>
1889
- </tr>
1890
-
1891
- <tr>
1892
- <th>
1893
- <input type="button" class="button-primary" value="<?php _e( 'Clear Bitly Cache', 'sassy-social-share' ) ?>" onclick="heateorSssClearShorturlCache()" />
1894
- <img id="heateor_sss_clear_shorturl_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1895
- </th>
1896
- <td>
1897
- <img src="<?php echo plugins_url( '../../images/ajax_loader.gif', __FILE__ ) ?>" id="shorturl_cache_loading" style="display:none" />
1898
- <div id="heateor_sss_cache_clear_message" style="color:green;display:none;"><?php _e( 'ShortUrl cache cleared successfully.', 'sassy-social-share' ); ?></div>
1899
- </td>
1900
- </tr>
1901
-
1902
- <tr class="heateor_sss_help_content" id="heateor_sss_clear_shorturl_cache_help_cont">
1903
- <td colspan="2">
1904
- <div>
1905
- <?php _e( 'Use this to delete short urls saved in database. Handy, if urls of your website have been changed but short urls are still being generated for old urls.', 'sassy-social-share' ) ?>
1906
- </div>
1907
- </td>
1908
- </tr>
1909
- </table>
1910
- </div>
1911
- </div>
1912
-
1913
- <div class="stuffbox">
1914
- <h3><label><?php _e( 'Language', 'sassy-social-share' );?></label></h3>
1915
- <div class="inside">
1916
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1917
- <tr>
1918
- <th>
1919
- <label for="heateor_sss_sc_language"><?php _e("Language", 'sassy-social-share' ); ?></label>
1920
- <img id="heateor_sss_sc_language_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1921
- </th>
1922
- <td>
1923
- <input id="heateor_sss_sc_language" name="heateor_sss[language]" type="text" value="<?php echo $options['language'] ? $options['language'] : '' ?>" />
1924
- </td>
1925
- </tr>
1926
-
1927
- <tr class="heateor_sss_help_content" id="heateor_sss_sc_language_help_cont">
1928
- <td colspan="2">
1929
- <div>
1930
- <?php echo sprintf(__( 'Enter the code of the language you want to use for like buttons. You can find the language codes at <a href="%s" target="_blank">this link</a>. Leave it empty for default language(English)', 'sassy-social-share' ), 'http://fbdevwiki.com/wiki/Locales#Complete_List_.28as_of_2012-06-10.29' ) ?>
1931
- </div>
1932
- </td>
1933
- </tr>
1934
- </table>
1935
- </div>
1936
- </div>
1937
-
1938
- <div class="stuffbox">
1939
- <h3><label><?php _e( 'Username in sharing', 'sassy-social-share' );?></label></h3>
1940
- <div class="inside">
1941
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1942
- <tr>
1943
- <th>
1944
- <label for="heateor_sss_twitter_username"><?php _e("Twitter username (without @)", 'sassy-social-share' ); ?></label>
1945
- <img id="heateor_sss_twitter_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1946
- </th>
1947
- <td>
1948
- <input id="heateor_sss_twitter_username" name="heateor_sss[twitter_username]" type="text" value="<?php echo isset( $options['twitter_username'] ) ? $options['twitter_username'] : '' ?>" />
1949
- </td>
1950
- </tr>
1951
-
1952
- <tr class="heateor_sss_help_content" id="heateor_sss_twitter_username_help_cont">
1953
- <td colspan="2">
1954
- <div>
1955
- <?php _e( 'Provided username will be appended after the content being shared as "via @USERNAME". Leave empty if you do not want any username in the content being shared.', 'sassy-social-share' ) ?>
1956
- <br/><img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_twitter_username.png', __FILE__ ); ?>" />
1957
- </div>
1958
- </td>
1959
- </tr>
1960
-
1961
- <tr>
1962
- <th>
1963
- <label for="heateor_sss_buffer_username"><?php _e("Buffer username (without @)", 'sassy-social-share' ); ?></label>
1964
- <img id="heateor_sss_buffer_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1965
- </th>
1966
- <td>
1967
- <input id="heateor_sss_buffer_username" name="heateor_sss[buffer_username]" type="text" value="<?php echo isset( $options['buffer_username'] ) ? $options['buffer_username'] : '' ?>" />
1968
- </td>
1969
- </tr>
1970
-
1971
- <tr class="heateor_sss_help_content" id="heateor_sss_buffer_username_help_cont">
1972
- <td colspan="2">
1973
- <div>
1974
- <?php _e( 'Provided username will be appended after the content being shared as "via @USERNAME". Leave empty if you do not want any username in the content being shared.', 'sassy-social-share' ) ?>
1975
- </div>
1976
- </td>
1977
- </tr>
1978
- </table>
1979
- </div>
1980
- </div>
1981
-
1982
- <div class="stuffbox">
1983
- <h3><label><?php _e( 'AMP', 'sassy-social-share' );?></label></h3>
1984
- <div class="inside">
1985
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1986
- <tr>
1987
- <th>
1988
- <label for="heateor_sss_amp_enable"><?php _e("Enable sharing on AMP pages", 'sassy-social-share' ); ?></label>
1989
- <img id="heateor_sss_amp_enable_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1990
- </th>
1991
- <td>
1992
- <input id="heateor_sss_amp_enable" name="heateor_sss[amp_enable]" type="checkbox" <?php echo isset( $options['amp_enable'] ) ? 'checked = "checked"' : '';?> value="1" />
1993
- </td>
1994
- </tr>
1995
-
1996
- <tr class="heateor_sss_help_content" id="heateor_sss_amp_enable_help_cont">
1997
- <td colspan="2">
1998
- <div>
1999
- <?php _e( 'Enable this option to render sharing icons on AMP pages', 'sassy-social-share' ) ?>
2000
- </div>
2001
- </td>
2002
- </tr>
2003
- </table>
2004
- </div>
2005
- </div>
2006
-
2007
- <div class="stuffbox">
2008
- <h3><label><?php _e( 'Custom CSS', 'sassy-social-share' );?></label></h3>
2009
- <div class="inside">
2010
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
2011
- <tr>
2012
- <th>
2013
- <label for="heateor_sss_custom_css"><?php _e("Custom CSS", 'sassy-social-share' ); ?></label>
2014
- <img id="heateor_sss_custom_css_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
2015
- </th>
2016
- <td>
2017
- <textarea rows="7" cols="63" id="heateor_sss_custom_css" name="heateor_sss[custom_css]"><?php echo isset( $options['custom_css'] ) ? $options['custom_css'] : '' ?></textarea>
2018
- </td>
2019
- </tr>
2020
-
2021
- <tr class="heateor_sss_help_content" id="heateor_sss_custom_css_help_cont">
2022
- <td colspan="2">
2023
- <div>
2024
- <?php _e( 'You can specify any additional CSS rules (without &lt;style&gt; tag)', 'sassy-social-share' ) ?>
2025
- </div>
2026
- </td>
2027
- </tr>
2028
- </table>
2029
- </div>
2030
- </div>
2031
-
2032
- <div>
2033
- <a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/custom-icon-url.png', __FILE__ ) ?>" /></a>
2034
- </div>
2035
-
2036
- </div>
2037
- <?php include 'sassy-social-share-about.php'; ?>
2038
- </div>
2039
-
2040
- <?php
2041
- if ( $this->is_plugin_active( 'mycred/mycred.php' ) ) {
2042
- ?>
2043
- <div class="menu_containt_div" id="tabs-5">
2044
- <div class="clear"></div>
2045
- <div class="heateor_sss_left_column">
2046
- <div class="stuffbox">
2047
- <h3><label><?php _e( 'myCRED', 'sassy-social-share' );?></label></h3>
2048
- <div class="inside">
2049
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
2050
- <tr>
2051
- <th>
2052
- <label for="heateor_sss_mycred_referral_id"><?php _e( "Append myCRED referral ID to the urls being shared", 'sassy-social-share' ); ?></label>
2053
- <img id="heateor_sss_mycred_referral_id_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
2054
- </th>
2055
- <td>
2056
- <input id="heateor_sss_mycred_referral_id" name="heateor_sss[mycred_referral]" type="checkbox" <?php echo isset( $options['mycred_referral'] ) ? 'checked = "checked"' : '';?> value="1" />
2057
- </td>
2058
- </tr>
2059
- </table>
2060
- </div>
2061
- </div>
2062
- </div>
2063
- <?php include 'sassy-social-share-about.php'; ?>
2064
- </div>
2065
- <?php
2066
- }
2067
- ?>
2068
-
2069
- <div class="menu_containt_div" id="tabs-6">
2070
- <div class="clear"></div>
2071
- <div class="heateor_sss_left_column">
2072
- <div class="stuffbox">
2073
- <h3><label><?php _e( 'Shortcode & Widget', 'sassy-social-share' );?></label></h3>
2074
- <div class="inside" style="padding-left:7px">
2075
- <p><a style="text-decoration:none" href="http://support.heateor.com/sassy-social-share-shortcode-and-widget" target="_blank"><?php _e( 'Social Share Shortcode & Widget', 'sassy-social-share' ) ?></a></p>
2076
- <p><a style="text-decoration:none" href="http://support.heateor.com/sassy-follow-icons-shortcode" target="_blank"><?php _e( 'Follow Icons Shortcode & Widget', 'sassy-social-share' ) ?></a></p>
2077
- <p><a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/click-to-tweet-shortcode.png', __FILE__ ) ?>" /></a></p>
2078
- </div>
2079
- </div>
2080
- </div>
2081
- <?php include 'sassy-social-share-about.php'; ?>
2082
- </div>
2083
-
2084
- <div class="menu_containt_div" id="tabs-7">
2085
- <div class="clear"></div>
2086
- <div class="heateor_sss_left_column">
2087
- <div class="stuffbox">
2088
- <h3><label><?php _e( 'Facebook Sharing Troubleshooter', 'sassy-social-share' );?></label></h3>
2089
- <div class="inside" style="padding-left:1px">
2090
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
2091
- <tr>
2092
- <td>
2093
- <?php _e( 'If Facebook sharing is not working fine, click at the following link and enter the problematic url (where Facebook sharing is not working properly) of your website in the text field. Click "Fetch New Scrape Information" button.', 'sassy-social-share' ) ?><br/>
2094
- <a style="text-decoration: none" target="_blank" href="https://developers.facebook.com/tools/debug/">https://developers.facebook.com/tools/debug/</a>
2095
- </td>
2096
- </tr>
2097
- </table>
2098
- </div>
2099
- </div>
2100
- </div>
2101
- <?php include 'sassy-social-share-about.php'; ?>
2102
- </div>
2103
-
2104
- <div class="menu_containt_div" id="tabs-8">
2105
- <div class="clear"></div>
2106
- <div class="heateor_sss_left_column">
2107
- <div class="stuffbox">
2108
- <h3><label><?php _e( 'FAQ', 'sassy-social-share' ) ?></label></h3>
2109
- <div class="inside faq" style="padding-left:8px">
2110
- <p><?php _e( '<strong>Note:</strong> Plugin will not work on local server. You should have an online website for the plugin to function properly.', 'sassy-social-share' ); ?></p>
2111
- <p><a href="http://support.heateor.com/why-is-sharer-not-showing-the-correct-image-title-and-other-meta-tags-content" target="_blank"><?php _e( 'Why is sharer not showing the correct image, title and other content when sharing a webpage?', 'sassy-social-share' ) ?></a></p>
2112
- <a href="javascript:void(0)"><?php _e( 'Why is Facebook share count not working?', 'sassy-social-share' ); ?></a>
2113
- <div><?php echo sprintf( __( "After the recent changes introduced in the Facebook graph API, it's not possible to track Facebook shares using it. Pro and Premium versions of this plugin offer a feature that allows you to track shares not just for Facebook but for all the social networks. Comparison of the features of the Pro and Premium versions can be found at the <a href='%s' target='_blank'>link</a>", 'sassy-social-share' ), 'https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/' ); ?></div>
2114
- <p><a href="http://support.heateor.com/how-to-customize-the-url-being-shared" target="_blank"><?php _e( 'How to Customize the Url being Shared?', 'sassy-social-share' ) ?></a></p>
2115
- <a href="javascript:void(0)"><?php _e( 'Why is Instagram icon redirecting to Instagram website?', 'sassy-social-share' ); ?></a>
2116
- <div><?php _e( 'Instagram icon is there to send website visitors to the Instagram page of your choice. You can save the desired Instagram handle in "Instagram Username" option in "Standard Interface" and "Floating Interface" sections.', 'sassy-social-share' ); ?></div>
2117
- <p>
2118
- <a href="javascript:void(0)"><?php _e( 'Why are Twitter shares not appearing even after registering at Twitcount.com?', 'sassy-social-share' ); ?></a>
2119
- <div><?php _e( "It takes some time for their service to track the shares made on Twitter from your website. If you still feel it's taking too long you can contact their support directly from their website.", 'sassy-social-share' ); ?></div>
2120
- </p>
2121
- <p><a href="https://www.heateor.com/recover-social-share-counts/" target="_blank"><?php _e('How to restore Social Share counts lost after moving my website to SSL/Https?', 'sassy-social-share' ) ?></a></p>
2122
- <p><a href="http://support.heateor.com/how-to-integrate-google-analytics-with-sharing" target="_blank"><?php _e( 'How to integrate Google Analytics with sharing?', 'sassy-social-share' ) ?></a></p>
2123
- <p><a href="http://support.heateor.com/color-share-icons-not-being-updated" target="_blank"><?php _e( 'Why the color of share icons is not being updated?', 'sassy-social-share' ) ?></a></p>
2124
- <p><a style="text-decoration:none" href="https://www.heateor.com/facebook-comments-moderation" target="_blank"><?php _e( 'How to show recent Facebook Comments from all over the website in a widget?', 'sassy-social-share' ) ?></a></p>
2125
- <p><a style="text-decoration:none" href="http://support.heateor.com/recover-facebook-comments-wordpress-moving-to-https-ssl/" target="_blank"><?php _e( 'How to recover the Facebook Comments lost after moving my website to SSL/Https?', 'sassy-social-share' ) ?></a></p>
2126
- <p><a href="http://support.heateor.com/place-title-social-share-icons-row/" target="_blank"><?php _e( 'How to Place Title and Social Share Icons in the Same Row?', 'sassy-social-share' ) ?></a></p>
2127
- <p><a href="http://support.heateor.com/how-can-i-show-share-counts-of-my-website-rather-than-of-individual-pagepost/" target="_blank"><?php _e( 'How can I show share counts of my website rather than of individual pages/posts?', 'sassy-social-share' ) ?></a></p>
2128
- <p><a href="http://support.heateor.com/how-can-i-disable-social-sharing-on-particular-pagepost/" target="_blank"><?php _e( 'How can I disable sharing on particular page/post?', 'sassy-social-share' ) ?></a></p>
2129
- <p><a href="http://support.heateor.com/how-can-i-specify-minimum-sharing-count-for-sharing-networks/" target="_blank"><?php _e( 'How can I specify minimum sharing count for sharing networks?', 'sassy-social-share' ) ?></a></p>
2130
- <p><a href="http://support.heateor.com/how-to-share-specific-page/" target="_blank"><?php _e( 'How to share specific page?', 'sassy-social-share' ) ?></a></p>
2131
- <p><a href="http://support.heateor.com/how-to-customize-the-look-of-total-share-counts" target="_blank"><?php _e( 'How to customize the look of total share counts?', 'sassy-social-share' ) ?></a></p>
2132
- <p><a href="http://support.heateor.com/how-to-customize-the-look-of-individual-share-counts" target="_blank"><?php _e( 'How to customize the look of individual share counts?', 'sassy-social-share' ) ?></a></p>
2133
- <p><a href="http://support.heateor.com/how-to-show-whatsapp-icon-only-on-mobile-devices" target="_blank"><?php _e( 'How to show Whatsapp icon only on mobile devices?', 'sassy-social-share' ) ?></a></p>
2134
- <p><a href="http://support.heateor.com/how-to-hide-arrow-after-floating-sharing-bar" target="_blank"><?php _e( 'How to hide arrow after floating sharing bar?', 'sassy-social-share' ) ?></a></p>
2135
- <p><a href="http://support.heateor.com/why-is-share-count-not-getting-updated" target="_blank"><?php _e( 'Why is share count not getting updated?', 'sassy-social-share' ) ?></a></p>
2136
- <p><a href="http://support.heateor.com/why-is-there-so-much-space-between-like-buttons" target="_blank"><?php _e( 'Why is there so much space between like buttons?', 'sassy-social-share' ) ?></a></p>
2137
- <p><a href="http://support.heateor.com/why-is-floating-share-like-button-not-appearing-at-homepage" target="_blank"><?php _e( 'Why are floating sharing/like buttons not appearing at homepage?', 'sassy-social-share' ) ?></a></p>
2138
- </div>
2139
- </div>
2140
-
2141
- </div>
2142
- <?php include 'sassy-social-share-about.php'; ?>
2143
- </div>
2144
-
2145
- <div class="heateor_sss_clear"></div>
2146
- <p class="submit">
2147
- <input style="margin-left:8px" type="submit" name="save" class="button button-primary" value="<?php _e( "Save Changes", 'sassy-social-share' ); ?>" />
2148
- </p>
2149
- <p>
2150
- <?php
2151
- echo sprintf( __( 'You can appreciate the effort put in this free plugin by rating it <a href="%s" target="_blank">here</a>', 'sassy-social-share' ), 'https://wordpress.org/support/view/plugin-reviews/sassy-social-share' );
2152
- ?>
2153
- </p>
2154
- </form>
2155
-
2156
- <div class="stuffbox">
2157
- <h3><label>Instagram Shoutout</label></h3>
2158
- <div class="inside" style="padding-left:7px">
2159
- <p><?php _e( 'If you can send (to hello@heateor.com) how this plugin is helping your business, we would be glad to shoutout on Instagram. You can also send any relevant hashtags and people to mention in the Instagram post.', 'sassy-social-share' ) ?></p>
2160
- </div>
2161
- </div>
2162
- </div>
2163
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Options page
4
+ *
5
+ * @since 1.0.0
6
+ */
7
+ defined( 'ABSPATH' ) or die( "Cheating........Uh!!" );
8
+ ?>
9
+
10
+ <div id="fb-root"></div>
11
+
12
+ <div class="metabox-holder columns-2" id="post-body">
13
+ <h1>Sassy Social Share</h1>
14
+ <div>
15
+ <?php
16
+ echo sprintf( __( 'You can appreciate the effort put in this free plugin by rating it <a href="%s" target="_blank">here</a>', 'sassy-social-share' ), 'https://wordpress.org/support/view/plugin-reviews/sassy-social-share' );
17
+ ?>
18
+ </div>
19
+ <div class="menu_div" id="tabs">
20
+ <form id="heateor_sss_form" action="options.php" method="post">
21
+ <?php settings_fields( 'heateor_sss_options' ); ?>
22
+ <h2 class="nav-tab-wrapper" style="height:34px">
23
+ <ul>
24
+ <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-1"><?php _e( 'Theme Selection', 'sassy-social-share' ) ?></a></li>
25
+ <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-2"><?php _e( 'Standard Interface', 'sassy-social-share' ) ?></a></li>
26
+ <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-3"><?php _e( 'Floating Interface', 'sassy-social-share' ) ?></a></li>
27
+ <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-4"><?php _e( 'Miscellaneous', 'sassy-social-share' ) ?></a></li>
28
+ <?php
29
+ if ( $this->is_plugin_active( 'mycred/mycred.php' ) ) {
30
+ ?>
31
+ <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-5"><?php _e( '3rd Party Integration', 'sassy-social-share' ) ?></a></li>
32
+ <?php
33
+ }
34
+ ?>
35
+ <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-6"><?php _e( 'Shortcode & Widget', 'sassy-social-share' ) ?></a></li>
36
+ <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-7"><?php _e( 'Troubleshooter', 'sassy-social-share' ) ?></a></li>
37
+ <li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-8"><?php _e( 'FAQ', 'sassy-social-share' ) ?></a></li>
38
+ </ul>
39
+ </h2>
40
+
41
+ <div class="menu_containt_div" id="tabs-1">
42
+ <div class="clear"></div>
43
+ <div class="heateor_sss_left_column">
44
+ <div class="stuffbox">
45
+ <h3><label><?php _e( 'Standard interface theme', 'sassy-social-share' );?></label></h3>
46
+ <div class="inside">
47
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
48
+ <tr>
49
+ <th>
50
+ <label style="float:left"><?php _e("Icon Preview", 'sassy-social-share' ); ?></label>
51
+ </th>
52
+ <td>
53
+ <?php
54
+ $horizontal_bg = isset( $options['horizontal_bg_color_default'] ) ? $options['horizontal_bg_color_default'] : '';
55
+ $border_width = isset( $options['horizontal_border_width_default'] ) ? $options['horizontal_border_width_default'] : '';
56
+ $border_color = isset( $options['horizontal_border_color_default'] ) ? $options['horizontal_border_color_default'] : '';
57
+ $sharing_color = isset( $options['horizontal_font_color_default'] ) ? $options['horizontal_font_color_default'] : '';
58
+ $sharing_color_hover = isset( $options['horizontal_font_color_hover'] ) ? $options['horizontal_font_color_hover'] : '';
59
+ $sharing_shape = isset( $options['horizontal_sharing_shape'] ) ? $options['horizontal_sharing_shape'] : 'round';
60
+ $sharing_size = isset( $options['horizontal_sharing_size'] ) ? $options['horizontal_sharing_size'] : 32;
61
+ $sharing_width = isset( $options['horizontal_sharing_width'] ) ? $options['horizontal_sharing_width'] : 32;
62
+ $sharing_height = isset( $options['horizontal_sharing_height'] ) ? $options['horizontal_sharing_height'] : 32;
63
+ $sharing_border_radius = isset( $options['horizontal_border_radius'] ) ? $options['horizontal_border_radius'] : '';
64
+ $horizontal_bg_hover = isset( $options['horizontal_bg_color_hover'] ) ? $options['horizontal_bg_color_hover'] : '';
65
+ $counter_position = isset( $options['horizontal_counter_position'] ) ? $options['horizontal_counter_position'] : '';
66
+ $line_height = $sharing_shape == 'rectangle' ? $sharing_height : $sharing_size;
67
+ ?>
68
+ <style type="text/css">
69
+ <?php
70
+ if ( isset( $options['plain_instagram_bg'] ) ) {
71
+ ?>
72
+ .heateorSssInstagramBackground{background-color:#527fa4}
73
+ <?php
74
+ } else {
75
+ ?>
76
+ .heateorSssInstagramBackground{background:radial-gradient(circle at 30% 107%,#fdf497 0,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%)}
77
+ <?php
78
+ }
79
+ ?>
80
+ #heateor_sss_preview{
81
+ color:<?php echo $sharing_color ? $sharing_color : "#fff" ?>;
82
+ }
83
+ #heateor_sss_preview:hover{
84
+ color:<?php echo $sharing_color_hover ?>;
85
+ }
86
+ </style>
87
+ <div>
88
+ <div class="heateorSssCounterPreviewTop" style="width:<?php echo 60 + ( isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] == 'rectangle' ? $options['horizontal_sharing_width'] : $options['horizontal_sharing_size'] ) ?>px">44</div>
89
+ <div class="heateorSssCounterPreviewLeft">44</div>
90
+ <div id="heateor_sss_preview" style="cursor:pointer;float:left">
91
+ <div class="heateorSssCounterPreviewInnertop">44</div>
92
+ <div class="heateorSssCounterPreviewInnerleft">44</div>
93
+ <div id="horizontal_svg" style="float:left;width:100%;height:100%;background:url( 'data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%22-4%20-4%2040%2040%22%3E%3Cpath%20d%3D%22M17.78%2027.5V17.008h3.522l.527-4.09h-4.05v-2.61c0-1.182.33-1.99%202.023-1.99h2.166V4.66c-.375-.05-1.66-.16-3.155-.16-3.123%200-5.26%201.905-5.26%205.405v3.016h-3.53v4.09h3.53V27.5h4.223z%22%20fill%3D%22<?php echo $sharing_color ? str_replace( '#', '%23', $sharing_color) : "%23fff" ?>%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E' ) no-repeat center center; margin: auto"></div>
94
+ <div class="heateorSssCounterPreviewInnerright">44</div>
95
+ <div class="heateorSssCounterPreviewInnerbottom">44</div>
96
+ </div>
97
+ <div class="heateorSssCounterPreviewRight">44</div>
98
+ <div class="heateorSssCounterPreviewBottom" style="width:<?php echo 60 + ( isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] == 'rectangle' ? $options['horizontal_sharing_width'] : $options['horizontal_sharing_size'] ) ?>px">44</div>
99
+ </div>
100
+
101
+ <script type="text/javascript">
102
+ var tempHorShape = '<?php echo $sharing_shape ?>', tempHorSize = '<?php echo $sharing_size ?>', tempHorHeight = '<?php echo $sharing_height ?>', tempHorWidth = '<?php echo $sharing_width ?>', heateorSssSharingBgHover = '<?php echo $horizontal_bg_hover ?>', heateorSssSharingBg = '<?php echo $horizontal_bg ? $horizontal_bg : "#3C589A" ?>', heateorSssBorderWidth = '<?php echo $border_width ?>', heateorSssBorderColor = '<?php echo $border_color ?>', heateorSssSharingBorderRadius = '<?php echo $sharing_border_radius ? $sharing_border_radius . "px" : "0px" ?>';
103
+
104
+ heateorSssSharingHorizontalPreview();
105
+
106
+ jQuery( '#heateor_sss_preview' ).hover(function() {
107
+ if (heateorSssSharingBgHover && heateorSssSharingBgHover != '#3C589A' ) {
108
+ jQuery(this).css( 'backgroundColor', heateorSssSharingBgHover);
109
+ }
110
+ if (jQuery( '#heateor_sss_font_color_hover' ).val().trim() ) {
111
+ jQuery(this).find( '#horizontal_svg' ).attr( 'style', jQuery(this).find( '#horizontal_svg' ).attr( 'style' ).replace(heateorSssSharingTempColor.replace( '#', '%23' ), jQuery( '#heateor_sss_font_color_hover' ).val().trim().replace( '#', '%23' ) ));
112
+ jQuery(this).css( 'color', jQuery( '#heateor_sss_font_color_hover' ).val().trim() );
113
+ }
114
+ jQuery(this).css( 'borderStyle', 'solid' );
115
+ jQuery(this).css( 'borderWidth', heateorSssBorderWidthHover ? heateorSssBorderWidthHover : heateorSssBorderWidth ? heateorSssBorderWidth : '0' );
116
+ jQuery(this).css( 'borderColor', heateorSssBorderColorHover ? heateorSssBorderColorHover : 'transparent' );
117
+ },function() {
118
+ jQuery(this).css( 'backgroundColor', heateorSssSharingBg);
119
+ if (jQuery( '#heateor_sss_font_color_hover' ).val().trim() ) {
120
+ jQuery(this).find( '#horizontal_svg' ).attr( 'style', jQuery(this).find( '#horizontal_svg' ).attr( 'style' ).replace(jQuery( '#heateor_sss_font_color_hover' ).val().trim().replace( '#', '%23' ), heateorSssSharingTempColor.replace( '#', '%23' ) ));
121
+ jQuery(this).css( 'color', heateorSssSharingTempColor);
122
+ }
123
+ jQuery(this).css( 'borderStyle', 'solid' );
124
+ jQuery(this).css( 'borderWidth', heateorSssBorderWidth ? heateorSssBorderWidth : heateorSssBorderWidthHover ? heateorSssBorderWidthHover : '0' );
125
+ jQuery(this).css( 'borderColor', heateorSssBorderColor ? heateorSssBorderColor : 'transparent' );
126
+ });
127
+ </script>
128
+ </td>
129
+ </tr>
130
+
131
+ <tr>
132
+ <td colspan="2">
133
+ <div id="heateor_sss_preview_message" style="color:green;display:none;margin-top:36px"><?php _e( 'Do not forget to save the configuration after making changes by clicking the save button below', 'sassy-social-share' ); ?></div>
134
+ </td>
135
+ </tr>
136
+
137
+ <tr>
138
+ <th>
139
+ <label><?php _e( "Shape", 'sassy-social-share' ); ?></label>
140
+ <img id="heateor_sss_icon_shape_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
141
+ </th>
142
+ <td>
143
+ <input id="heateor_sss_icon_round" onclick="tempHorShape = 'round';heateorSssSharingHorizontalPreview()" name="heateor_sss[horizontal_sharing_shape]" type="radio" <?php echo $sharing_shape == 'round' ? 'checked = "checked"' : '';?> value="round" />
144
+ <label style="margin-right:10px" for="heateor_sss_icon_round"><?php _e( "Round", 'sassy-social-share' ); ?></label>
145
+ <input id="heateor_sss_icon_square" onclick="tempHorShape = 'square';heateorSssSharingHorizontalPreview()" name="heateor_sss[horizontal_sharing_shape]" type="radio" <?php echo $sharing_shape == 'square' ? 'checked = "checked"' : '';?> value="square" />
146
+ <label style="margin-right:10px" for="heateor_sss_icon_square"><?php _e( "Square", 'sassy-social-share' ); ?></label>
147
+ <input id="heateor_sss_icon_rectangle" onclick="tempHorShape = 'rectangle';heateorSssSharingHorizontalPreview()" name="heateor_sss[horizontal_sharing_shape]" type="radio" <?php echo $sharing_shape == 'rectangle' ? 'checked = "checked"' : '';?> value="rectangle" />
148
+ <label for="heateor_sss_icon_rectangle"><?php _e( "Rectangle", 'sassy-social-share' ); ?></label>
149
+ </td>
150
+ </tr>
151
+
152
+ <tr class="heateor_sss_help_content" id="heateor_sss_icon_shape_help_cont">
153
+ <td colspan="2">
154
+ <div>
155
+ <?php _e( 'Shape of the sharing icons', 'sassy-social-share' ) ?>
156
+ </div>
157
+ </td>
158
+ </tr>
159
+
160
+ <tbody id="heateor_sss_size_options" <?php echo ! isset( $options['horizontal_sharing_shape'] ) || $options['horizontal_sharing_shape'] != 'rectangle' ? '' : 'style="display: none"'; ?>>
161
+ <tr>
162
+ <th>
163
+ <label><?php _e("Size (in pixels)", 'sassy-social-share' ); ?></label>
164
+ <img id="heateor_sss_icon_size_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
165
+ </th>
166
+ <td>
167
+ <input style="width:50px" id="heateor_sss_icon_size" name="heateor_sss[horizontal_sharing_size]" type="text" value="<?php echo $sharing_size; ?>" />
168
+ <input id="heateor_sss_size_plus" type="button" value="+" onmouseup="tempHorSize = document.getElementById( 'heateor_sss_icon_size' ).value;heateorSssSharingHorizontalPreview()" />
169
+ <input id="heateor_sss_size_minus" type="button" value="-" onmouseup="tempHorSize = document.getElementById( 'heateor_sss_icon_size' ).value;heateorSssSharingHorizontalPreview()" />
170
+ <script type="text/javascript">
171
+ heateorSssIncrement(document.getElementById( 'heateor_sss_size_plus' ), "add", document.getElementById( 'heateor_sss_icon_size' ), 300, 0.7);
172
+ heateorSssIncrement(document.getElementById( 'heateor_sss_size_minus' ), "subtract", document.getElementById( 'heateor_sss_icon_size' ), 300, 0.7);
173
+ </script>
174
+ </td>
175
+ </tr>
176
+
177
+ <tr class="heateor_sss_help_content" id="heateor_sss_icon_size_help_cont">
178
+ <td colspan="2">
179
+ <div>
180
+ <?php _e( 'Size of the sharing icons', 'sassy-social-share' ) ?>
181
+ </div>
182
+ </td>
183
+ </tr>
184
+ </tbody>
185
+
186
+ <tbody id="heateor_sss_rectangle_options" <?php echo isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] == 'rectangle' ? '' : 'style="display: none"'; ?>>
187
+ <tr>
188
+ <th>
189
+ <label><?php _e("Width (in pixels)", 'sassy-social-share' ); ?></label>
190
+ <img id="heateor_sss_icon_width_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
191
+ </th>
192
+ <td>
193
+ <input style="width:50px" id="heateor_sss_icon_width" name="heateor_sss[horizontal_sharing_width]" type="text" value="<?php echo $sharing_width; ?>" />
194
+ <input id="heateor_sss_width_plus" type="button" value="+" onmouseup="tempHorWidth = document.getElementById( 'heateor_sss_icon_width' ).value;heateorSssSharingHorizontalPreview()" />
195
+ <input id="heateor_sss_width_minus" type="button" value="-" onmouseup="tempHorWidth = document.getElementById( 'heateor_sss_icon_width' ).value;heateorSssSharingHorizontalPreview()" />
196
+ <script type="text/javascript">
197
+ heateorSssIncrement(document.getElementById( 'heateor_sss_width_plus' ), "add", document.getElementById( 'heateor_sss_icon_width' ), 300, 0.7);
198
+ heateorSssIncrement(document.getElementById( 'heateor_sss_width_minus' ), "subtract", document.getElementById( 'heateor_sss_icon_width' ), 300, 0.7);
199
+ </script>
200
+ </td>
201
+ </tr>
202
+
203
+ <tr class="heateor_sss_help_content" id="heateor_sss_icon_width_help_cont">
204
+ <td colspan="2">
205
+ <div>
206
+ <?php _e( 'Width of the sharing icons', 'sassy-social-share' ) ?>
207
+ </div>
208
+ </td>
209
+ </tr>
210
+
211
+ <tr>
212
+ <th>
213
+ <label><?php _e("Height (in pixels)", 'sassy-social-share' ); ?></label>
214
+ <img id="heateor_sss_icon_height_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
215
+ </th>
216
+ <td>
217
+ <input style="width:50px" id="heateor_sss_icon_height" name="heateor_sss[horizontal_sharing_height]" type="text" value="<?php echo $sharing_height; ?>" />
218
+ <input id="heateor_sss_height_plus" type="button" value="+" onmouseup="tempHorHeight = document.getElementById( 'heateor_sss_icon_height' ).value;heateorSssSharingHorizontalPreview()" />
219
+ <input id="heateor_sss_height_minus" type="button" value="-" onmouseup="tempHorHeight = document.getElementById( 'heateor_sss_icon_height' ).value;heateorSssSharingHorizontalPreview()" />
220
+ <script type="text/javascript">
221
+ heateorSssIncrement(document.getElementById( 'heateor_sss_height_plus' ), "add", document.getElementById( 'heateor_sss_icon_height' ), 300, 0.7);
222
+ heateorSssIncrement(document.getElementById( 'heateor_sss_height_minus' ), "subtract", document.getElementById( 'heateor_sss_icon_height' ), 300, 0.7);
223
+ </script>
224
+ </td>
225
+ </tr>
226
+
227
+ <tr class="heateor_sss_help_content" id="heateor_sss_icon_height_help_cont">
228
+ <td colspan="2">
229
+ <div>
230
+ <?php _e( 'Height of the sharing icons', 'sassy-social-share' ) ?>
231
+ </div>
232
+ </td>
233
+ </tr>
234
+ </tbody>
235
+
236
+ <tbody id="heateor_sss_border_radius_options" <?php echo isset( $options['horizontal_sharing_shape'] ) && $options['horizontal_sharing_shape'] != 'round' ? '' : 'style="display: none"'; ?>>
237
+ <tr>
238
+ <th>
239
+ <label><?php _e("Border radius (in pixels)", 'sassy-social-share' ); ?></label>
240
+ <img id="heateor_sss_icon_border_radius_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
241
+ </th>
242
+ <td>
243
+ <input style="width:50px" id="heateor_sss_icon_border_radius" name="heateor_sss[horizontal_border_radius]" type="text" value="<?php echo $sharing_border_radius; ?>" onkeyup="heateorSssSharingBorderRadius = this.value.trim() ? this.value.trim() + 'px' : '0px';heateorSssUpdateSharingPreview(heateorSssSharingBorderRadius, 'borderRadius', '0px', 'heateor_sss_preview' )" />
244
+ </td>
245
+ </tr>
246
+
247
+ <tr class="heateor_sss_help_content" id="heateor_sss_icon_border_radius_help_cont">
248
+ <td colspan="2">
249
+ <div>
250
+ <?php _e( 'Specify a value for rounded corners. More the value, more rounded will the corners be. Leave empty for sharp corners.', 'sassy-social-share' ) ?>
251
+ </div>
252
+ </td>
253
+ </tr>
254
+ </tbody>
255
+
256
+ <tr>
257
+ <th>
258
+ <label><?php _e("Logo Color", 'sassy-social-share' ); ?></label>
259
+ <img id="heateor_sss_font_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
260
+ </th>
261
+ <td>
262
+ <script type="text/javascript">var heateorSssSharingTempColor = '<?php echo $sharing_color ? $sharing_color : "#fff" ?>';</script>
263
+ <label for="heateor_sss_font_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_font_color_default" onkeyup="if (this.value.trim() == '' || this.value.trim().length >= 3) { jQuery( '#horizontal_svg' ).attr( 'style', jQuery( '#horizontal_svg' ).attr( 'style' ).replace(heateorSssSharingTempColor.replace( '#', '%23' ), this.value.trim() ? this.value.trim().replace( '#', '%23' ) : '%23fff' ) ); heateorSssSharingTempColor = this.value.trim() ? this.value.trim() : '#fff';jQuery( '#heateor_sss_preview' ).css( 'color', heateorSssSharingTempColor.replace( '%23','#' ) ) }" name="heateor_sss[horizontal_font_color_default]" type="text" value="<?php echo $sharing_color; ?>" />
264
+ <input name="heateor_sss[horizontal_sharing_replace_color]" type="hidden" value="<?php echo isset( $options['horizontal_sharing_replace_color'] ) ? $options['horizontal_sharing_replace_color'] : ''; ?>" />
265
+ <label style="margin-left:10px" for="heateor_sss_font_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_font_color_hover" name="heateor_sss[horizontal_font_color_hover]" type="text" onkeyup="" value="<?php echo $sharing_color_hover; ?>" />
266
+ <input name="heateor_sss[horizontal_sharing_replace_color_hover]" type="hidden" value="<?php echo isset( $options['horizontal_sharing_replace_color_hover'] ) ? $options['horizontal_sharing_replace_color_hover'] : ''; ?>" />
267
+ </td>
268
+ </tr>
269
+
270
+ <tr class="heateor_sss_help_content" id="heateor_sss_font_color_help_cont">
271
+ <td colspan="2">
272
+ <div>
273
+ <?php _e( 'Specify the color or hex code (example #cc78e0) for the logo of icon. Leave empty for default. You can get the hex code of the required color from <a href="http://www.colorpicker.com/" target="_blank">this link</a>', 'sassy-social-share' ) ?>
274
+ </div>
275
+ </td>
276
+ </tr>
277
+
278
+ <tr>
279
+ <th>
280
+ <label><?php _e("Background Color", 'sassy-social-share' ); ?></label>
281
+ <img id="heateor_sss_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
282
+ </th>
283
+ <td>
284
+ <label for="heateor_sss_bg_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_bg_color_default" name="heateor_sss[horizontal_bg_color_default]" type="text" onkeyup="heateorSssSharingBg = this.value.trim() ? this.value.trim() : '#3C589A'; heateorSssUpdateSharingPreview(this.value.trim(), 'backgroundColor', '#3C589A', 'heateor_sss_preview' )" value="<?php echo $horizontal_bg ?>" />
285
+ <label style="margin-left:10px" for="heateor_sss_bg_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_bg_color_hover" name="heateor_sss[horizontal_bg_color_hover]" type="text" onkeyup="heateorSssSharingBgHover = this.value.trim() ? this.value.trim() : '#3C589A';" value="<?php echo $horizontal_bg_hover ?>" />
286
+ </td>
287
+ </tr>
288
+
289
+ <tr class="heateor_sss_help_content" id="heateor_sss_bg_color_help_cont">
290
+ <td colspan="2">
291
+ <div>
292
+ <?php _e( 'Specify the color or hex code (example #cc78e0) for icon background. Save "transparent" for transparent background. Leave empty for default. You can get the hex code of the required color from <a href="http://www.colorpicker.com/" target="_blank">this link</a>', 'sassy-social-share' ) ?>
293
+ </div>
294
+ </td>
295
+ </tr>
296
+
297
+ <tr>
298
+ <th>
299
+ <label><?php _e("Border", 'sassy-social-share' ); ?></label>
300
+ <img id="heateor_sss_border_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
301
+ </th>
302
+ <td>
303
+ <script type="text/javascript">var heateorSssBorderWidthHover = '<?php echo $border_width_hover = isset( $options['horizontal_border_width_hover'] ) ? $options['horizontal_border_width_hover'] : ''; ?>', heateorSssBorderColorHover = '<?php echo $border_color_hover = isset( $options['horizontal_border_color_hover'] ) ? $options['horizontal_border_color_hover'] : ''; ?>'</script>
304
+ <label><strong><?php _e("Default", 'sassy-social-share' ); ?></strong></label>
305
+ <br/>
306
+ <label for="heateor_sss_border_width_default"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_width_default" onkeyup="heateorSssBorderWidth = this.value.trim(); jQuery( '#heateor_sss_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderWidth', '0px', 'heateor_sss_preview' ); heateorSssSharingHorizontalPreview();" name="heateor_sss[horizontal_border_width_default]" type="text" value="<?php echo $border_width ?>" />pixel(s)
307
+ <label style="margin-left:10px" for="heateor_sss_border_color_default"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" onkeyup="heateorSssBorderColor = this.value.trim(); jQuery( '#heateor_sss_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderColor', 'transparent', 'heateor_sss_preview' )" id="heateor_sss_border_color_default" name="heateor_sss[horizontal_border_color_default]" type="text" value="<?php echo $border_color ?>" />
308
+ <br/><br/>
309
+ <label><strong><?php _e("On Hover", 'sassy-social-share' ); ?></strong></label>
310
+ <br/>
311
+ <label for="heateor_sss_border_width_hover"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_width_hover" name="heateor_sss[horizontal_border_width_hover]" type="text" value="<?php echo $border_width_hover ?>" onkeyup="heateorSssBorderWidthHover = this.value.trim();" />pixel(s)
312
+ <label style="margin-left:10px" for="heateor_sss_border_color_hover"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_border_color_hover" name="heateor_sss[horizontal_border_color_hover]" type="text" value="<?php echo $border_color_hover ?>" onkeyup="heateorSssBorderColorHover = this.value.trim();" />
313
+ </td>
314
+ </tr>
315
+
316
+ <tr class="heateor_sss_help_content" id="heateor_sss_border_help_cont">
317
+ <td colspan="2">
318
+ <div>
319
+ <?php _e( 'Icon border', 'sassy-social-share' ) ?>
320
+ </div>
321
+ </td>
322
+ </tr>
323
+
324
+ <tr>
325
+ <th>
326
+ <label><?php _e("Counter Position", 'sassy-social-share' ); ?><br/><?php _e("(applies, if counter enabled)", 'sassy-social-share' ); ?></label>
327
+ <img id="heateor_sss_counter_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
328
+ </th>
329
+ <td>
330
+ <input id="heateor_sss_counter_left" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'left' ? 'checked = "checked"' : '';?> value="left" />
331
+ <label style="margin-right:10px" for="heateor_sss_counter_left"><?php _e("Left", 'sassy-social-share' ); ?></label>
332
+ <input id="heateor_sss_counter_top" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'top' ? 'checked = "checked"' : '';?> value="top" />
333
+ <label style="margin-right:10px" for="heateor_sss_counter_top"><?php _e("Top", 'sassy-social-share' ); ?></label>
334
+ <input id="heateor_sss_counter_right" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'right' ? 'checked = "checked"' : '';?> value="right" />
335
+ <label style="margin-right:10px" for="heateor_sss_counter_right"><?php _e("Right", 'sassy-social-share' ); ?></label>
336
+ <input id="heateor_sss_counter_bottom" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'bottom' ? 'checked = "checked"' : '';?> value="bottom" />
337
+ <label style="margin-right:10px" for="heateor_sss_counter_bottom"><?php _e("Bottom", 'sassy-social-share' ); ?></label><br/>
338
+ <input id="heateor_sss_counter_inner_left" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'inner_left' ? 'checked = "checked"' : '';?> value="inner_left" />
339
+ <label style="margin-right:10px" for="heateor_sss_counter_inner_left"><?php _e("Inner Left", 'sassy-social-share' ); ?></label>
340
+ <input id="heateor_sss_counter_inner_top" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'inner_top' ? 'checked = "checked"' : '';?> value="inner_top" />
341
+ <label style="margin-right:10px" for="heateor_sss_counter_inner_top"><?php _e("Inner Top", 'sassy-social-share' ); ?></label>
342
+ <input id="heateor_sss_counter_inner_right" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'inner_right' ? 'checked = "checked"' : '';?> value="inner_right" />
343
+ <label style="margin-right:10px" for="heateor_sss_counter_inner_right"><?php _e("Inner Right", 'sassy-social-share' ); ?></label>
344
+ <input id="heateor_sss_counter_inner_bottom" name="heateor_sss[horizontal_counter_position]" onclick="heateorSssCounterPreview(this.value.trim() )" type="radio" <?php echo $counter_position == 'inner_bottom' ? 'checked = "checked"' : '';?> value="inner_bottom" />
345
+ <label style="margin-right:10px" for="heateor_sss_counter_inner_bottom"><?php _e("Inner Bottom", 'sassy-social-share' ); ?></label>
346
+ </td>
347
+ </tr>
348
+ <script type="text/javascript">heateorSssCounterPreview( '<?php echo $counter_position ?>' );</script>
349
+
350
+ <tr class="heateor_sss_help_content" id="heateor_sss_counter_help_cont">
351
+ <td colspan="2">
352
+ <div>
353
+ <?php _e( 'Position of share counter', 'sassy-social-share' ) ?>
354
+ </div>
355
+ </td>
356
+ </tr>
357
+
358
+ <tr>
359
+ <td colspan="2">
360
+ <div>
361
+ <a href="https://www.heateor.com/comparison-between-sassy-social-share-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/responsive-icons.png', __FILE__ ) ?>" /></a>
362
+ </div>
363
+ </td>
364
+ </tr>
365
+
366
+ </table>
367
+ </div>
368
+ </div>
369
+
370
+ <div class="stuffbox">
371
+ <h3><label><?php _e( 'Floating interface theme', 'sassy-social-share' );?></label></h3>
372
+ <div class="inside">
373
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
374
+ <tr>
375
+ <th>
376
+ <label style="float:left"><?php _e("Icon Preview", 'sassy-social-share' ); ?></label>
377
+ </th>
378
+ <td>
379
+ <?php
380
+ $vertical_bg = isset( $options['vertical_bg_color_default'] ) ? $options['vertical_bg_color_default'] : '';
381
+ $vertical_bg_hover = isset( $options['vertical_bg_color_hover'] ) ? $options['vertical_bg_color_hover'] : '';
382
+ $vertical_border_width = isset( $options['vertical_border_width_default'] ) ? $options['vertical_border_width_default'] : '';
383
+ $vertical_border_color = isset( $options['vertical_border_color_default'] ) ? $options['vertical_border_color_default'] : '';
384
+ $vertical_sharing_color = isset( $options['vertical_font_color_default'] ) ? $options['vertical_font_color_default'] : '';
385
+ $vertical_sharing_color_hover = isset( $options['vertical_font_color_hover'] ) ? $options['vertical_font_color_hover'] : '';
386
+ $vertical_sharing_shape = isset( $options['vertical_sharing_shape'] ) ? $options['vertical_sharing_shape'] : 'round';
387
+ $vertical_sharing_size = isset( $options['vertical_sharing_size'] ) ? $options['vertical_sharing_size'] : 32;
388
+ $vertical_sharing_width = isset( $options['vertical_sharing_width'] ) ? $options['vertical_sharing_width'] : 32;
389
+ $vertical_sharing_height = isset( $options['vertical_sharing_height'] ) ? $options['vertical_sharing_height'] : 32;
390
+ $vertical_sharing_border_radius = isset( $options['vertical_border_radius'] ) ? $options['vertical_border_radius'] : '';
391
+ $vertical_vertical_bg_hover = isset( $options['vertical_bg_color_hover'] ) ? $options['vertical_bg_color_hover'] : '';
392
+ $vertical_counter_position = isset( $options['vertical_counter_position'] ) ? $options['vertical_counter_position'] : '';
393
+ $vertical_line_height = $vertical_sharing_shape == 'rectangle' ? $vertical_sharing_height : $vertical_sharing_size;
394
+ ?>
395
+ <style type="text/css">
396
+ #heateor_sss_vertical_preview{
397
+ color:<?php echo $vertical_sharing_color ? $vertical_sharing_color : "#fff" ?>;
398
+ }
399
+ #heateor_sss_vertical_preview:hover{
400
+ color:<?php echo $vertical_sharing_color_hover ?>;
401
+ }
402
+ </style>
403
+ <div>
404
+ <div class="heateorSssCounterVerticalPreviewTop" style="width:<?php echo 60 + ( isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] == 'rectangle' ? $options['vertical_sharing_width'] : $options['vertical_sharing_size'] ) ?>px">44</div>
405
+ <div class="heateorSssCounterVerticalPreviewLeft">44</div>
406
+ <div id="heateor_sss_vertical_preview" style="cursor:pointer;float:left">
407
+ <div class="heateorSssCounterVerticalPreviewInnertop">44</div>
408
+ <div class="heateorSssCounterVerticalPreviewInnerleft">44</div>
409
+ <div id="vertical_svg" style="float:left;width:100%;height:100%;background:url( 'data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%22-4%20-4%2040%2040%22%3E%3Cpath%20d%3D%22M17.78%2027.5V17.008h3.522l.527-4.09h-4.05v-2.61c0-1.182.33-1.99%202.023-1.99h2.166V4.66c-.375-.05-1.66-.16-3.155-.16-3.123%200-5.26%201.905-5.26%205.405v3.016h-3.53v4.09h3.53V27.5h4.223z%22%20fill%3D%22<?php echo $vertical_sharing_color ? str_replace( '#', '%23', $vertical_sharing_color) : "%23fff" ?>%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E' ) no-repeat center center; margin: auto"></div>
410
+ <div class="heateorSssCounterVerticalPreviewInnerright">44</div>
411
+ <div class="heateorSssCounterVerticalPreviewInnerbottom">44</div>
412
+ </div>
413
+ <div class="heateorSssCounterVerticalPreviewRight">44</div>
414
+ <div class="heateorSssCounterVerticalPreviewBottom" style="width:<?php echo 60 + ( isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] == 'rectangle' ? $options['vertical_sharing_width'] : $options['vertical_sharing_size'] ) ?>px">44</div>
415
+ </div>
416
+
417
+ <script type="text/javascript">
418
+ var tempVerticalShape = '<?php echo $vertical_sharing_shape ?>', tempVerticalSize = '<?php echo $vertical_sharing_size ?>', tempVerticalHeight = '<?php echo $vertical_sharing_height ?>', tempVerticalWidth = '<?php echo $vertical_sharing_width ?>', heateorSssVerticalSharingBgHover = '<?php echo $vertical_bg_hover ?>', heateorSssVerticalSharingBg = '<?php echo $vertical_bg ? $vertical_bg : "#3C589A" ?>', heateorSssVerticalBorderWidth = '<?php echo $vertical_border_width ?>', heateorSssVerticalBorderColor = '<?php echo $vertical_border_color ?>', heateorSssVerticalBorderWidthHover = '<?php echo $vertical_border_width_hover = isset( $options['vertical_border_width_hover'] ) ? $options['vertical_border_width_hover'] : ''; ?>', heateorSssVerticalBorderColorHover = '<?php echo $vertical_border_color_hover = isset( $options['vertical_border_color_hover'] ) ? $options['vertical_border_color_hover'] : ''; ?>', heateorSssVerticalBorderRadius = '<?php echo $vertical_sharing_border_radius ? $vertical_sharing_border_radius . "px" : "0px" ?>';
419
+
420
+ heateorSssSharingVerticalPreview();
421
+
422
+ jQuery( '#heateor_sss_vertical_preview' ).hover(function() {
423
+ if (heateorSssVerticalSharingBgHover && heateorSssVerticalSharingBgHover != '#3C589A' ) {
424
+ jQuery(this).css( 'backgroundColor', heateorSssVerticalSharingBgHover);
425
+ }
426
+ if (jQuery( '#heateor_sss_vertical_font_color_hover' ).val().trim() ) {
427
+ jQuery(this).find( '#vertical_svg' ).attr( 'style', jQuery(this).find( '#vertical_svg' ).attr( 'style' ).replace(heateorSssVerticalSharingTempColor.replace( '#', '%23' ), jQuery( '#heateor_sss_vertical_font_color_hover' ).val().trim().replace( '#', '%23' ) ));
428
+ jQuery(this).css( 'color', jQuery( '#heateor_sss_vertical_font_color_hover' ).val().trim() );
429
+ }
430
+ jQuery(this).css( 'borderStyle', 'solid' );
431
+ jQuery(this).css( 'borderWidth', heateorSssVerticalBorderWidthHover ? heateorSssVerticalBorderWidthHover : heateorSssVerticalBorderWidth ? heateorSssVerticalBorderWidth : '0' );
432
+ jQuery(this).css( 'borderColor', heateorSssVerticalBorderColorHover ? heateorSssVerticalBorderColorHover : 'transparent' );
433
+ },function() {
434
+ jQuery(this).css( 'backgroundColor', heateorSssVerticalSharingBg);
435
+ if (jQuery( '#heateor_sss_vertical_font_color_hover' ).val().trim() ) {
436
+ jQuery(this).find( '#vertical_svg' ).attr( 'style', jQuery(this).find( '#vertical_svg' ).attr( 'style' ).replace(jQuery( '#heateor_sss_vertical_font_color_hover' ).val().trim().replace( '#', '%23' ), heateorSssVerticalSharingTempColor.replace( '#', '%23' ) ));
437
+ jQuery(this).css( 'color', heateorSssVerticalSharingTempColor);
438
+ }
439
+ jQuery(this).css( 'borderStyle', 'solid' );
440
+ jQuery(this).css( 'borderWidth', heateorSssVerticalBorderWidth ? heateorSssVerticalBorderWidth : heateorSssVerticalBorderWidthHover ? heateorSssVerticalBorderWidthHover : '0' );
441
+ jQuery(this).css( 'borderColor', heateorSssVerticalBorderColor ? heateorSssVerticalBorderColor : 'transparent' );
442
+ });
443
+ </script>
444
+ </td>
445
+ </tr>
446
+
447
+ <tr>
448
+ <td colspan="2">
449
+ <div id="heateor_sss_vertical_preview_message" style="color:green;display:none"><?php _e( 'Do not forget to save the configuration after making changes by clicking the save button below', 'sassy-social-share' ); ?></div>
450
+ </td>
451
+ </tr>
452
+
453
+ <tr>
454
+ <th>
455
+ <label><?php _e("Shape", 'sassy-social-share' ); ?></label>
456
+ <img id="heateor_sss_vertical_sharing_icon_shape_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
457
+ </th>
458
+ <td>
459
+ <input id="heateor_sss_vertical_icon_round" onclick="tempVerticalShape = 'round';heateorSssSharingVerticalPreview()" name="heateor_sss[vertical_sharing_shape]" type="radio" <?php echo $vertical_sharing_shape == 'round' ? 'checked = "checked"' : '';?> value="round" />
460
+ <label style="margin-right:10px" for="heateor_sss_vertical_icon_round"><?php _e("Round", 'sassy-social-share' ); ?></label>
461
+ <input id="heateor_sss_vertical_icon_square" onclick="tempVerticalShape = 'square';heateorSssSharingVerticalPreview()" name="heateor_sss[vertical_sharing_shape]" type="radio" <?php echo $vertical_sharing_shape == 'square' ? 'checked = "checked"' : '';?> value="square" />
462
+ <label style="margin-right:10px" for="heateor_sss_vertical_icon_square"><?php _e("Square", 'sassy-social-share' ); ?></label>
463
+ <input id="heateor_sss_vertical_icon_rectangle" onclick="tempVerticalShape = 'rectangle';heateorSssSharingVerticalPreview()" name="heateor_sss[vertical_sharing_shape]" type="radio" <?php echo $vertical_sharing_shape == 'rectangle' ? 'checked = "checked"' : '';?> value="rectangle" />
464
+ <label for="heateor_sss_vertical_icon_rectangle"><?php _e("Rectangle", 'sassy-social-share' ); ?></label>
465
+ </td>
466
+ </tr>
467
+
468
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_sharing_icon_shape_help_cont">
469
+ <td colspan="2">
470
+ <div>
471
+ <?php _e( 'Shape of the sharing icons', 'sassy-social-share' ) ?>
472
+ </div>
473
+ </td>
474
+ </tr>
475
+
476
+ <tbody id="heateor_sss_vertical_size_options" <?php echo ! isset( $options['vertical_sharing_shape'] ) || $options['vertical_sharing_shape'] != 'rectangle' ? '' : 'style="display: none"'; ?>>
477
+ <tr>
478
+ <th>
479
+ <label><?php _e("Size (in pixels)", 'sassy-social-share' ); ?></label>
480
+ <img id="heateor_sss_vertical_sharing_icon_size_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
481
+ </th>
482
+ <td>
483
+ <input style="width:50px" id="heateor_sss_vertical_sharing_icon_size" name="heateor_sss[vertical_sharing_size]" type="text" value="<?php echo $vertical_sharing_size; ?>" />
484
+ <input id="heateor_sss_vertical_sharing_size_plus" type="button" value="+" onmouseup="tempVerticalSize = document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ).value;heateorSssSharingVerticalPreview()" />
485
+ <input id="heateor_sss_vertical_sharing_size_minus" type="button" value="-" onmouseup="tempVerticalSize = document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ).value;heateorSssSharingVerticalPreview()" />
486
+ <script type="text/javascript">
487
+ heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_sharing_size_plus' ), "add", document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ), 300, 0.7);
488
+ heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_sharing_size_minus' ), "subtract", document.getElementById( 'heateor_sss_vertical_sharing_icon_size' ), 300, 0.7);
489
+ </script>
490
+ </td>
491
+ </tr>
492
+
493
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_sharing_icon_size_help_cont">
494
+ <td colspan="2">
495
+ <div>
496
+ <?php _e( 'Size of the sharing icons', 'sassy-social-share' ) ?>
497
+ </div>
498
+ </td>
499
+ </tr>
500
+ </tbody>
501
+
502
+ <tbody id="heateor_sss_vertical_rectangle_options" <?php echo isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] == 'rectangle' ? '' : 'style="display: none"'; ?>>
503
+ <tr>
504
+ <th>
505
+ <label><?php _e("Width (in pixels)", 'sassy-social-share' ); ?></label>
506
+ <img id="heateor_sss_vertical_icon_width_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
507
+ </th>
508
+ <td>
509
+ <input style="width:50px" id="heateor_sss_vertical_icon_width" name="heateor_sss[vertical_sharing_width]" type="text" value="<?php echo $vertical_sharing_width; ?>" />
510
+ <input id="heateor_sss_vertical_width_plus" type="button" value="+" onmouseup="tempVerticalWidth = document.getElementById( 'heateor_sss_vertical_icon_width' ).value;heateorSssSharingVerticalPreview()" />
511
+ <input id="heateor_sss_vertical_width_minus" type="button" value="-" onmouseup="tempVerticalWidth = document.getElementById( 'heateor_sss_vertical_icon_width' ).value;heateorSssSharingVerticalPreview()" />
512
+ <script type="text/javascript">
513
+ heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_width_plus' ), "add", document.getElementById( 'heateor_sss_vertical_icon_width' ), 300, 0.7);
514
+ heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_width_minus' ), "subtract", document.getElementById( 'heateor_sss_vertical_icon_width' ), 300, 0.7);
515
+ </script>
516
+ </td>
517
+ </tr>
518
+
519
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_icon_width_help_cont">
520
+ <td colspan="2">
521
+ <div>
522
+ <?php _e( 'Width of the sharing icons', 'sassy-social-share' ) ?>
523
+ </div>
524
+ </td>
525
+ </tr>
526
+
527
+ <tr>
528
+ <th>
529
+ <label><?php _e("Height (in pixels)", 'sassy-social-share' ); ?></label>
530
+ <img id="heateor_sss_vertical_icon_height_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
531
+ </th>
532
+ <td>
533
+ <input style="width:50px" id="heateor_sss_vertical_icon_height" name="heateor_sss[vertical_sharing_height]" type="text" value="<?php echo $vertical_sharing_height; ?>" />
534
+ <input id="heateor_sss_vertical_height_plus" type="button" value="+" onmouseup="tempVerticalHeight = document.getElementById( 'heateor_sss_vertical_icon_height' ).value;heateorSssSharingVerticalPreview()" />
535
+ <input id="heateor_sss_vertical_height_minus" type="button" value="-" onmouseup="tempVerticalHeight = document.getElementById( 'heateor_sss_vertical_icon_height' ).value;heateorSssSharingVerticalPreview()" />
536
+ <script type="text/javascript">
537
+ heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_height_plus' ), "add", document.getElementById( 'heateor_sss_vertical_icon_height' ), 300, 0.7);
538
+ heateorSssIncrement(document.getElementById( 'heateor_sss_vertical_height_minus' ), "subtract", document.getElementById( 'heateor_sss_vertical_icon_height' ), 300, 0.7);
539
+ </script>
540
+ </td>
541
+ </tr>
542
+
543
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_icon_height_help_cont">
544
+ <td colspan="2">
545
+ <div>
546
+ <?php _e( 'Height of the sharing icons', 'sassy-social-share' ) ?>
547
+ </div>
548
+ </td>
549
+ </tr>
550
+ </tbody>
551
+
552
+ <tbody id="heateor_sss_vertical_border_radius_options" <?php echo isset( $options['vertical_sharing_shape'] ) && $options['vertical_sharing_shape'] != 'round' ? '' : 'style="display: none"'; ?>>
553
+ <tr>
554
+ <th>
555
+ <label><?php _e("Border radius (in pixels)", 'sassy-social-share' ); ?></label>
556
+ <img id="heateor_sss_vertical_icon_border_radius_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
557
+ </th>
558
+ <td>
559
+ <input style="width:50px" id="heateor_sss_vertical_icon_border_radius" name="heateor_sss[vertical_border_radius]" type="text" value="<?php echo $vertical_sharing_border_radius; ?>" onkeyup="heateorSssVerticalBorderRadius = this.value.trim() ? this.value.trim() + 'px' : '0px';heateorSssUpdateSharingPreview(heateorSssVerticalBorderRadius, 'borderRadius', '0px', 'heateor_sss_vertical_preview' )" />
560
+ </td>
561
+ </tr>
562
+
563
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_icon_border_radius_help_cont">
564
+ <td colspan="2">
565
+ <div>
566
+ <?php _e( 'Specify a value for rounded corners. More the value, more rounded will the corners be. Leave empty for sharp corners.', 'sassy-social-share' ) ?>
567
+ </div>
568
+ </td>
569
+ </tr>
570
+ </tbody>
571
+
572
+ <tr>
573
+ <th>
574
+ <label><?php _e("Logo Color", 'sassy-social-share' ); ?></label>
575
+ <img id="heateor_sss_vertical_font_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
576
+ </th>
577
+ <td>
578
+ <script type="text/javascript">var heateorSssVerticalSharingTempColor = '<?php echo $vertical_sharing_color ? $vertical_sharing_color : "#fff" ?>';</script>
579
+ <label for="heateor_sss_vertical_font_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_font_color_default" name="heateor_sss[vertical_font_color_default]" onkeyup="if (this.value.trim() == '' || this.value.trim().length >= 3) { jQuery( '#vertical_svg' ).attr( 'style', jQuery( '#vertical_svg' ).attr( 'style' ).replace(heateorSssVerticalSharingTempColor.replace( '#', '%23' ), this.value.trim() ? this.value.trim().replace( '#', '%23' ) : '%23fff' ) ); heateorSssVerticalSharingTempColor = this.value.trim() ? this.value.trim() : '#fff';jQuery( '#heateor_sss_vertical_preview' ).css( 'color', heateorSssVerticalSharingTempColor.replace( '%23','#' ) ) }" type="text" value="<?php echo $vertical_sharing_color ?>" />
580
+ <input name="heateor_sss[vertical_sharing_replace_color]" type="hidden" value="<?php echo isset( $options['vertical_sharing_replace_color'] ) ? $options['vertical_sharing_replace_color'] : ''; ?>" />
581
+ <label style="margin-left:10px" for="heateor_sss_vertical_font_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_font_color_hover" name="heateor_sss[vertical_font_color_hover]" type="text" value="<?php echo $vertical_sharing_color_hover; ?>" />
582
+ <input name="heateor_sss[vertical_sharing_replace_color_hover]" type="hidden" value="<?php echo isset( $options['vertical_sharing_replace_color_hover'] ) ? $options['vertical_sharing_replace_color_hover'] : ''; ?>" />
583
+ </td>
584
+ </tr>
585
+
586
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_font_color_help_cont">
587
+ <td colspan="2">
588
+ <div>
589
+ <?php _e( 'Specify the color or hex code (example #cc78e0) for the logo of icon. Leave empty for default. You can get the hex code of the required color from <a href="http://www.colorpicker.com/" target="_blank">this link</a>', 'sassy-social-share' ) ?>
590
+ </div>
591
+ </td>
592
+ </tr>
593
+
594
+ <tr>
595
+ <th>
596
+ <label><?php _e("Background Color", 'sassy-social-share' ); ?></label>
597
+ <img id="heateor_sss_vertical_icon_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
598
+ </th>
599
+ <td>
600
+ <label for="heateor_sss_vertical_icon_bg_color_default"><?php _e("Default", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_icon_bg_color_default" name="heateor_sss[vertical_bg_color_default]" type="text" onkeyup="heateorSssVerticalSharingBg = this.value.trim() ? this.value.trim() : '#3C589A'; heateorSssUpdateSharingPreview(this.value.trim(), 'backgroundColor', '#3C589A', 'heateor_sss_vertical_preview' )" value="<?php echo $vertical_bg ?>" />
601
+ <label style="margin-left:10px" for="heateor_sss_vertical_bg_color_hover"><?php _e("On Hover", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_bg_color_hover" name="heateor_sss[vertical_bg_color_hover]" type="text" onkeyup="heateorSssVerticalSharingBgHover = this.value.trim() ? this.value.trim() : '#3C589A';" value="<?php echo $vertical_bg_hover ?>" />
602
+ </td>
603
+ </tr>
604
+
605
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_icon_bg_color_help_cont">
606
+ <td colspan="2">
607
+ <div>
608
+ <?php _e( 'Specify the color or hex code (example #cc78e0) for icon background. Save "transparent" for transparent background. Leave empty for default. You can get the hex code of the required color from <a href="http://www.colorpicker.com/" target="_blank">this link</a>', 'sassy-social-share' ) ?>
609
+ </div>
610
+ </td>
611
+ </tr>
612
+
613
+ <tr>
614
+ <th>
615
+ <label><?php _e("Border", 'sassy-social-share' ); ?></label>
616
+ <img id="heateor_sss_vertical_border_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
617
+ </th>
618
+ <td>
619
+ <label><strong><?php _e("Default", 'sassy-social-share' ); ?></strong></label>
620
+ <br/>
621
+ <label for="heateor_sss_vertical_border_width_default"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" onkeyup="heateorSssVerticalBorderWidth = this.value.trim(); jQuery( '#heateor_sss_vertical_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderWidth', '0px', 'heateor_sss_vertical_preview' ); heateorSssSharingVerticalPreview();" id="heateor_sss_vertical_border_width_default" name="heateor_sss[vertical_border_width_default]" type="text" value="<?php echo $vertical_border_width ?>" />pixel(s)
622
+ <label style="margin-left:10px" for="heateor_sss_vertical_border_color_default"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input onkeyup="heateorSssVerticalBorderColor = this.value.trim(); jQuery( '#heateor_sss_vertical_preview' ).css( 'borderStyle', 'solid' ); heateorSssUpdateSharingPreview(this.value.trim(), 'borderColor', 'transparent', 'heateor_sss_vertical_preview' )" style="width: 100px" id="heateor_sss_vertical_border_color_default" name="heateor_sss[vertical_border_color_default]" type="text" value="<?php echo $vertical_border_color = isset( $options['vertical_border_color_default'] ) ? $options['vertical_border_color_default'] : ''; ?>" />
623
+ <br/><br/>
624
+ <label><strong><?php _e("On Hover", 'sassy-social-share' ); ?></strong></label>
625
+ <br/>
626
+ <label for="heateor_sss_vertical_border_width_hover"><?php _e("Border Width", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_border_width_hover" name="heateor_sss[vertical_border_width_hover]" onkeyup="heateorSssVerticalBorderWidthHover = this.value.trim();" type="text" value="<?php echo $vertical_border_width_hover ?>" />pixel(s)
627
+ <label style="margin-left:10px" for="heateor_sss_vertical_border_color_hover"><?php _e("Border Color", 'sassy-social-share' ); ?></label><input style="width: 100px" id="heateor_sss_vertical_border_color_hover" name="heateor_sss[vertical_border_color_hover]" onkeyup="heateorSssVerticalBorderColorHover = this.value.trim()" type="text" value="<?php echo $vertical_border_color_hover; ?>" />
628
+ </td>
629
+ </tr>
630
+
631
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_border_help_cont">
632
+ <td colspan="2">
633
+ <div>
634
+ <?php _e( 'Icon border', 'sassy-social-share' ) ?>
635
+ </div>
636
+ </td>
637
+ </tr>
638
+
639
+ <tr>
640
+ <th>
641
+ <label><?php _e("Counter Position", 'sassy-social-share' ); ?><br/><?php _e("(applies, if counter enabled)", 'sassy-social-share' ); ?></label>
642
+ <img id="heateor_sss_vertical_counter_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
643
+ </th>
644
+ <td>
645
+ <input id="heateor_sss_vertical_counter_left" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'left' ? 'checked = "checked"' : '';?> value="left" />
646
+ <label style="margin-right:10px" for="heateor_sss_vertical_counter_left"><?php _e("Left", 'sassy-social-share' ); ?></label>
647
+ <input id="heateor_sss_vertical_counter_top" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'top' ? 'checked = "checked"' : '';?> value="top" />
648
+ <label style="margin-right:10px" for="heateor_sss_vertical_counter_top"><?php _e("Top", 'sassy-social-share' ); ?></label>
649
+ <input id="heateor_sss_vertical_counter_right" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'right' ? 'checked = "checked"' : '';?> value="right" />
650
+ <label style="margin-right:10px" for="heateor_sss_vertical_counter_right"><?php _e("Right", 'sassy-social-share' ); ?></label>
651
+ <input id="heateor_sss_vertical_counter_bottom" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'bottom' ? 'checked = "checked"' : '';?> value="bottom" />
652
+ <label style="margin-right:10px" for="heateor_sss_vertical_counter_bottom"><?php _e("Bottom", 'sassy-social-share' ); ?></label><br/>
653
+ <input id="heateor_sss_vertical_counter_inner_left" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'inner_left' ? 'checked = "checked"' : '';?> value="inner_left" />
654
+ <label style="margin-right:10px" for="heateor_sss_vertical_counter_inner_left"><?php _e("Inner Left", 'sassy-social-share' ); ?></label>
655
+ <input id="heateor_sss_vertical_counter_inner_top" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'inner_top' ? 'checked = "checked"' : '';?> value="inner_top" />
656
+ <label style="margin-right:10px" for="heateor_sss_vertical_counter_inner_top"><?php _e("Inner Top", 'sassy-social-share' ); ?></label>
657
+ <input id="heateor_sss_vertical_counter_inner_right" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'inner_right' ? 'checked = "checked"' : '';?> value="inner_right" />
658
+ <label style="margin-right:10px" for="heateor_sss_vertical_counter_inner_right"><?php _e("Inner Right", 'sassy-social-share' ); ?></label>
659
+ <input id="heateor_sss_vertical_counter_inner_bottom" name="heateor_sss[vertical_counter_position]" onclick="heateorSssVerticalCounterPreview(this.value.trim() )" type="radio" <?php echo $vertical_counter_position == 'inner_bottom' ? 'checked = "checked"' : '';?> value="inner_bottom" />
660
+ <label style="margin-right:10px" for="heateor_sss_vertical_counter_inner_bottom"><?php _e("Inner Bottom", 'sassy-social-share' ); ?></label>
661
+ </td>
662
+ </tr>
663
+ <script type="text/javascript">heateorSssVerticalCounterPreview( '<?php echo $vertical_counter_position ?>' );</script>
664
+
665
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_counter_help_cont">
666
+ <td colspan="2">
667
+ <div>
668
+ <?php _e( 'Position of share counter', 'sassy-social-share' ) ?>
669
+ </div>
670
+ </td>
671
+ </tr>
672
+ </table>
673
+ </div>
674
+ </div>
675
+ </div>
676
+ <?php include 'sassy-social-share-about.php'; ?>
677
+ </div>
678
+
679
+ <div class="menu_containt_div" id="tabs-2">
680
+ <div class="clear"></div>
681
+ <div class="heateor_sss_left_column">
682
+
683
+ <div class="stuffbox">
684
+ <h3><label><?php _e( 'Standard Sharing Interface Options', 'sassy-social-share' );?></label></h3>
685
+ <div class="inside">
686
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
687
+ <tr>
688
+ <th>
689
+ <label for="heateor_sss_horizontal_enable"><?php _e("Enable Standard sharing interface", 'sassy-social-share' ); ?></label>
690
+ <img id="heateor_sss_horizontal_enable_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
691
+ </th>
692
+ <td>
693
+ <input id="heateor_sss_horizontal_enable" onclick="heateorSssHorizontalSharingOptionsToggle(this)" name="heateor_sss[hor_enable]" type="checkbox" <?php echo isset( $options['hor_enable'] ) ? 'checked = "checked"' : '';?> value="1" />
694
+ </td>
695
+ </tr>
696
+
697
+ <tr class="heateor_sss_help_content" id="heateor_sss_horizontal_enable_help_cont">
698
+ <td colspan="2">
699
+ <div>
700
+ <?php _e( 'Master control to enable standard sharing', 'sassy-social-share' ) ?>
701
+ <div style="clear:both"></div>
702
+ <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_horizontal_sharing.png', __FILE__ ); ?>" />
703
+ </div>
704
+ </td>
705
+ </tr>
706
+
707
+ <tbody id="heateor_sss_horizontal_sharing_options" <?php echo isset( $options['hor_enable'] ) ? '' : 'style="display: none"'; ?>>
708
+ <tr>
709
+ <th>
710
+ <label for="heateor_sss_horizontal_target_url"><?php _e("Target Url", 'sassy-social-share' ); ?></label>
711
+ <img id="heateor_sss_horizontal_target_url_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
712
+ </th>
713
+ <td id="heateor_sss_target_url_column">
714
+ <input id="heateor_sss_target_url_default" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo !isset( $options['horizontal_target_url'] ) || $options['horizontal_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
715
+ <label for="heateor_sss_target_url_default"><?php _e( 'Url of the webpage where icons are located (default)', 'sassy-social-share' ) ?></label><br/>
716
+ <input id="heateor_sss_target_url_home" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo isset( $options['horizontal_target_url'] ) && $options['horizontal_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
717
+ <label for="heateor_sss_target_url_home"><?php _e( 'Url of the homepage of your website', 'sassy-social-share' ) ?></label><br/>
718
+ <input id="heateor_sss_target_url_custom" name="heateor_sss[horizontal_target_url]" type="radio" <?php echo isset( $options['horizontal_target_url'] ) && $options['horizontal_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
719
+ <label for="heateor_sss_target_url_custom"><?php _e( 'Custom url', 'sassy-social-share' ) ?></label><br/>
720
+ <input id="heateor_sss_target_url_custom_url" name="heateor_sss[horizontal_target_url_custom]" type="text" value="<?php echo isset( $options['horizontal_target_url_custom'] ) ? $options['horizontal_target_url_custom'] : '' ?>" />
721
+ </td>
722
+ </tr>
723
+ <tr class="heateor_sss_help_content" id="heateor_sss_horizontal_target_url_help_cont">
724
+ <td colspan="2">
725
+ <div>
726
+ <?php _e( 'Url to share', 'sassy-social-share' ) ?>
727
+ </div>
728
+ </td>
729
+ </tr>
730
+
731
+ <tr>
732
+ <th>
733
+ <label for="heateor_sss_fblogin_title"><?php _e("Title", 'sassy-social-share' ); ?></label>
734
+ <img id="heateor_sss_title_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
735
+ </th>
736
+ <td>
737
+ <input id="heateor_sss_fblogin_title" name="heateor_sss[title]" type="text" value="<?php echo isset( $options['title'] ) ? $options['title'] : '' ?>" />
738
+ </td>
739
+ </tr>
740
+
741
+ <tr class="heateor_sss_help_content" id="heateor_sss_title_help_cont">
742
+ <td colspan="2">
743
+ <div>
744
+ <?php _e( 'The text to display above the sharing interface', 'sassy-social-share' ) ?>
745
+ </div>
746
+ </td>
747
+ </tr>
748
+
749
+ <?php
750
+ $youtube_username = '';
751
+ if ( isset( $options['youtube_username'] ) ) {
752
+ $youtube_username = $options['youtube_username'];
753
+ } elseif ( isset( $options['vertical_youtube_username'] ) ) {
754
+ $youtube_username = $options['vertical_youtube_username'];
755
+ }
756
+ $instagram_username = '';
757
+ if ( isset( $options['instagram_username'] ) ) {
758
+ $instagram_username = $options['instagram_username'];
759
+ } elseif ( isset( $options['vertical_instagram_username'] ) ) {
760
+ $instagram_username = $options['vertical_instagram_username'];
761
+ }
762
+ $commentform_container_id = '';
763
+ if ( isset( $options['comment_container_id'] ) ) {
764
+ $commentform_container_id = $options['comment_container_id'];
765
+ } elseif ( isset( $options['vertical_comment_container_id'] ) ) {
766
+ $commentform_container_id = $options['vertical_comment_container_id'];
767
+ }
768
+ if ( ! isset( $options['horizontal_re_providers'] ) ) {
769
+ $options['horizontal_re_providers'] = array();
770
+ }
771
+ if ( ! isset( $options['vertical_re_providers'] ) ) {
772
+ $options['vertical_re_providers'] = array();
773
+ }
774
+ ?>
775
+ <tbody id="heateor_sss_instagram_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'instagram', $options['horizontal_re_providers'] ) ? 'style = "display: none"' : '';?> >
776
+ <tr>
777
+ <th>
778
+ <label for="heateor_sss_instagram_username"><?php _e( "Instagram username", 'sassy-social-share' ); ?></label>
779
+ <img id="heateor_sss_instagram_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
780
+ </th>
781
+ <td>
782
+ <input id="heateor_sss_instagram_username" name="heateor_sss[instagram_username]" type="text" value="<?php echo $instagram_username ?>" />
783
+ </td>
784
+ </tr>
785
+
786
+ <tr class="heateor_sss_help_content" id="heateor_sss_instagram_username_help_cont">
787
+ <td colspan="2">
788
+ <div>
789
+ <?php _e( 'Username of the Instagram account you want to redirect users to, on clicking the icon', 'sassy-social-share' ) ?>
790
+ </div>
791
+ </td>
792
+ </tr>
793
+ </tbody>
794
+
795
+ <tbody id="heateor_sss_youtube_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'youtube', $options['horizontal_re_providers'] ) ? 'style = "display: none"' : '';?> >
796
+ <tr>
797
+ <th>
798
+ <label for="heateor_sss_youtube_username"><?php _e( "Youtube URL", 'sassy-social-share' ); ?></label>
799
+ <img id="heateor_sss_youtube_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
800
+ </th>
801
+ <td>
802
+ <input id="heateor_sss_youtube_username" name="heateor_sss[youtube_username]" type="text" value="<?php echo $youtube_username ?>" />
803
+ </td>
804
+ </tr>
805
+
806
+ <tr class="heateor_sss_help_content" id="heateor_sss_youtube_username_help_cont">
807
+ <td colspan="2">
808
+ <div>
809
+ <?php _e( 'Username of the Youtube account you want to redirect users to, on clicking the icon', 'sassy-social-share' ) ?>
810
+ </div>
811
+ </td>
812
+ </tr>
813
+ </tbody>
814
+
815
+ <tbody id="heateor_sss_comment_options" <?php echo ! isset( $options['horizontal_re_providers'] ) || ! in_array( 'Comment', $options['horizontal_re_providers'] ) ? 'style = "display: none"' : '';?> >
816
+ <tr>
817
+ <th>
818
+ <label for="heateor_sss_comment_container_id"><?php _e( "HTML ID of container element of comment form", 'sassy-social-share' ); ?></label>
819
+ <img id="heateor_sss_comment_container_id_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
820
+ </th>
821
+ <td>
822
+ <input id="heateor_sss_comment_container_id" name="heateor_sss[comment_container_id]" type="text" value="<?php echo $commentform_container_id ?>" />
823
+ </td>
824
+ </tr>
825
+
826
+ <tr class="heateor_sss_help_content" id="heateor_sss_comment_container_id_help_cont">
827
+ <td colspan="2">
828
+ <div>
829
+ <?php _e( 'HTML ID of the element you want to focus on the webpage, on click of Comment icon.', 'sassy-social-share' ) ?>
830
+ </div>
831
+ </td>
832
+ </tr>
833
+ </tbody>
834
+ <?php
835
+ $like_buttons = array( 'facebook_share', 'facebook_like', 'facebook_recommend', 'twitter_tweet', 'linkedin_share', 'pinterest_pin', 'buffer_share', 'xing_share', 'yummly_share', 'reddit_badge' );
836
+ $sharing_networks = array( 'facebook', 'gab', 'twitter', 'linkedin', 'print', 'email', 'reddit', 'digg', 'float_it', 'tumblr', 'vkontakte', 'pinterest', 'xing', 'whatsapp', 'instagram', 'yummly', 'buffer', 'parler', 'AIM', 'Amazon_Wish_List', 'AOL_Mail', 'App.net', 'Balatarin', 'BibSonomy', 'Bitty_Browser', 'Blinklist', 'Blogger_Post', 'BlogMarks', 'Bookmarks.fr', 'Box.net', 'BuddyMarks', 'Care2_News', 'Comment', 'Copy_Link', 'Diary.Ru', 'Diaspora', 'Diigo', 'Douban', 'Draugiem', 'Evernote', 'Facebook_Messenger', 'Fark', 'Fintel', 'Flipboard', 'Folkd', 'GentleReader', 'Goodreads', 'Google_Bookmarks', 'Google_Classroom', 'Google_Gmail', 'Hacker_News', 'Hatena', 'Instapaper', 'Jamespot', 'Kakao', 'Kik', 'Kindle_It', 'Known', 'Line', 'LiveJournal', 'Mail.Ru', 'Mendeley', 'Meneame', 'MeWe', 'mix', 'Mixi', 'MySpace', 'Netvouz', 'Odnoklassniki', 'Outlook.com', 'Papaly', 'Pinboard', 'Plurk', 'Pocket', 'PrintFriendly', 'Protopage_Bookmarks', 'Pusha', 'Qzone', 'Rediff MyPage', 'Refind', 'Renren', 'Sina Weibo', 'SiteJot', 'Skype', 'Slashdot', 'SMS', 'StockTwits', 'Svejo', 'Symbaloo_Feeds', 'Telegram', 'Threema', 'Trello', 'Tuenti', 'Twiddla', 'TypePad_Post', 'Viadeo', 'Viber', 'Webnews', 'WordPress', 'Wykop', 'Yahoo_Mail', 'Yoolink', 'youtube' );
837
+ ?>
838
+
839
+ <tr>
840
+ <td colspan="2">
841
+ <a href="https://www.heateor.com/comparison-between-sassy-social-share-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/multiple-instances.png', __FILE__ ) ?>" /></a>
842
+ </td>
843
+ </tr>
844
+
845
+ <tr>
846
+ <th>
847
+ <label><?php _e( "Rearrange icons", 'sassy-social-share' ); ?></label>
848
+ <img id="heateor_sss_rearrange_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
849
+ </th>
850
+ </tr>
851
+
852
+ <tr>
853
+ <td colspan="2">
854
+ <script>
855
+ // facebook app id and secret options toggle variables
856
+ var heateorSssHorizontalShares = <?php echo isset( $options['horizontal_counts'] ) ? 'true' : 'false' ?>, heateorSssHorizontalTotalShares = <?php echo isset( $options['horizontal_total_shares'] ) ? 'true' : 'false' ?>, heateorSssVerticalShares = <?php echo isset( $options['vertical_counts'] ) ? 'true' : 'false' ?>, heateorSssVerticalTotalShares = <?php echo isset( $options['vertical_total_shares'] ) ? 'true' : 'false' ?>, heateorSssHorizontalFacebookShareEnabled = <?php echo in_array( 'facebook', $options['horizontal_re_providers'] ) ? 'true' : 'false'; ?>, heateorSssVerticalFacebookShareEnabled = <?php echo in_array( 'facebook', $options['vertical_re_providers'] ) ? 'true' : 'false'; ?>;
857
+ <?php
858
+ $horSharingStyle = 'width:' . ( $options['horizontal_sharing_shape'] != 'rectangle' ? $options['horizontal_sharing_size'] : $options['horizontal_sharing_width'] ) . 'px;height:' . $line_height . 'px;';
859
+ $horDeliciousRadius = '';
860
+ if ( $options['horizontal_sharing_shape'] == 'round' ) {
861
+ $horSharingStyle .= 'border-radius:999px;';
862
+ $horDeliciousRadius = 'border-radius:999px;';
863
+ } elseif ( isset( $options['horizontal_border_radius'] ) && $options['horizontal_border_radius'] != '' ) {
864
+ $horSharingStyle .= 'border-radius:' . $options['horizontal_border_radius'] . 'px;';
865
+ }
866
+ ?>
867
+ var heateorSssHorSharingStyle = '<?php echo $horSharingStyle ?>', heateorSssHorDeliciousRadius = '<?php echo $horDeliciousRadius ?>', heateorSssLikeButtons = ["<?php echo implode( '","', $like_buttons) ?>"];
868
+ </script>
869
+ <style type="text/css">
870
+ <?php if ( $horizontal_bg != '' ) { ?>
871
+ ul#heateor_sss_rearrange i.heateorSssInstagramBackground{background:<?php echo $horizontal_bg ?>!important;}
872
+ <?php }
873
+ if ( $horizontal_bg_hover != '' ) { ?>
874
+ ul#heateor_sss_rearrange i.heateorSssInstagramBackground:hover{background:<?php echo $horizontal_bg_hover ?>!important;}
875
+ <?php } ?>
876
+ .heateorSssSharingBackground{
877
+ <?php if ( $horizontal_bg ) { ?>
878
+ background-color: <?php echo $horizontal_bg ?>;
879
+ <?php } if ( $border_width ) { ?>
880
+ border-width: <?php echo $border_width ?>px;
881
+ border-style: solid;
882
+ <?php } ?>
883
+ border-color: <?php echo $border_color ? $border_color : 'transparent'; ?>;
884
+ }
885
+ .heateorSssSharingBackground:hover{
886
+ <?php if ( $horizontal_bg_hover ) { ?>
887
+ background-color: <?php echo $horizontal_bg_hover ?>;
888
+ <?php }if ( $border_width_hover ) { ?>
889
+ border-width: <?php echo $border_width_hover ?>px;
890
+ border-style: solid;
891
+ <?php } ?>
892
+ border-color: <?php echo $border_color_hover ? $border_color_hover : 'transparent'; ?>;
893
+ }
894
+ </style>
895
+ <ul id="heateor_sss_rearrange">
896
+ <?php
897
+ if ( isset( $options['horizontal_re_providers'] ) ) {
898
+ foreach ( $options['horizontal_re_providers'] as $rearrange ) {
899
+ ?>
900
+ <li title="<?php echo ucfirst( str_replace( '_', ' ', $rearrange ) ) ?>" id="heateor_sss_re_horizontal_<?php echo str_replace(array( ' ', '.' ), '_', $rearrange) ?>" >
901
+ <i style="display:block;<?php echo $horSharingStyle ?>" class="<?php echo in_array( $rearrange, $like_buttons) ? '' : 'heateorSssSharingBackground' ?> heateorSss<?php echo ucfirst(str_replace(array( '_', '.', ' ' ), '', $rearrange) ) ?>Background"><div class="heateorSssSharingSvg heateorSss<?php echo ucfirst(str_replace(array( '_', ' ', '.' ), '', $rearrange) ) ?>Svg" style="<?php echo $horDeliciousRadius ?>"></div></i>
902
+ <input type="hidden" name="heateor_sss[horizontal_re_providers][]" value="<?php echo $rearrange ?>">
903
+ </li>
904
+ <?php
905
+ }
906
+ }
907
+ ?>
908
+ </ul>
909
+ </td>
910
+ </tr>
911
+
912
+ <tr class="heateor_sss_help_content" id="heateor_sss_rearrange_help_cont">
913
+ <td colspan="2">
914
+ <div>
915
+ <?php _e( 'Drag the icons to rearrange in desired order', 'sassy-social-share' ) ?>
916
+ </div>
917
+ </td>
918
+ </tr>
919
+
920
+ <tr>
921
+ <th colspan="2">
922
+ <label><?php _e( "Select Sharing Services", 'sassy-social-share' ); ?></label>
923
+ <img id="heateor_sss_providers_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
924
+ </th>
925
+ </tr>
926
+
927
+ <tr class="heateor_sss_help_content" id="heateor_sss_providers_help_cont">
928
+ <td colspan="2">
929
+ <div>
930
+ <?php _e( 'Select sharing services to show in social share bar', 'sassy-social-share' ) ?>
931
+ </div>
932
+ </td>
933
+ </tr>
934
+
935
+ <tr>
936
+ <td colspan="2" class="selectSharingNetworks">
937
+ <?php
938
+ foreach( $like_buttons as $like_button ) {
939
+ ?>
940
+ <div class="heateorSssHorizontalSharingProviderContainer">
941
+ <input id="heateor_sss_<?php echo $like_button ?>" type="checkbox" <?php echo isset( $options['horizontal_re_providers'] ) && in_array( $like_button, $options['horizontal_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $like_button ?>" />
942
+ <label for="heateor_sss_<?php echo $like_button ?>"><img src="<?php echo plugins_url( '../../images/sharing/'. $like_button .'.png', __FILE__ ) ?>" /></label>
943
+ </div>
944
+ <?php
945
+ }
946
+ ?>
947
+ <div style="clear:both"></div>
948
+ <div style="width:100%; margin: 10px 0"><input type="text" onkeyup="heateorSssSearchSharingNetworks(this.value.trim())" placeholder="<?php _e( 'Search social network', 'sassy-social-share' ) ?>" class="search" /></div>
949
+ <div style="clear:both"></div>
950
+ <?php
951
+ foreach( $sharing_networks as $sharing_network ) {
952
+ ?>
953
+ <div class="heateorSssHorizontalSharingProviderContainer">
954
+ <?php echo $sharing_network == 'Goodreads' ? '<a href="https://www.heateor.com/comparison-between-sassy-social-share-and-premium/" target="_blank">' : ''; ?>
955
+ <input id="heateor_sss_<?php echo $sharing_network ?>" type="checkbox" <?php echo $sharing_network == 'Goodreads' ? 'disabled ' : ''; ?><?php echo isset( $options['horizontal_re_providers'] ) && in_array( $sharing_network, $options['horizontal_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $sharing_network ?>" />
956
+ <label <?php echo $sharing_network != 'Goodreads' ? 'for="heateor_sss_' . $sharing_network . '"' : ''; ?>><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo str_replace( array( '_', '.', ' ' ), '', ucfirst( $sharing_network ) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Svg"></ss></i></label>
957
+ <label class="lblSocialNetwork" <?php echo $sharing_network != 'Goodreads' ? 'for="heateor_sss_' . $sharing_network . '"' : ''; ?>><?php echo str_replace( '_', ' ', ucfirst( $sharing_network ) ) ?></label>
958
+ <?php echo $sharing_network == 'Goodreads' ? '</a>' : ''; ?>
959
+ </div>
960
+ <?php
961
+ }
962
+ ?>
963
+ </td>
964
+ </tr>
965
+
966
+ <tr>
967
+ <th>
968
+ <label for="heateor_sss_hor_alignment"><?php _e( "Horizontal alignment", 'sassy-social-share' ); ?></label>
969
+ <img id="heateor_sss_hor_alignment_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
970
+ </th>
971
+ <td>
972
+ <select id="heateor_sss_hor_alignment" name="heateor_sss[hor_sharing_alignment]">
973
+ <option value="left" <?php echo isset( $options['hor_sharing_alignment'] ) && $options['hor_sharing_alignment'] == 'left' ? 'selected="selected"' : '' ?>><?php _e( 'Left', 'sassy-social-share' ) ?></option>
974
+ <option value="center" <?php echo isset( $options['hor_sharing_alignment'] ) && $options['hor_sharing_alignment'] == 'center' ? 'selected="selected"' : '' ?>><?php _e( 'Center', 'sassy-social-share' ) ?></option>
975
+ <option value="right" <?php echo isset( $options['hor_sharing_alignment'] ) && $options['hor_sharing_alignment'] == 'right' ? 'selected="selected"' : '' ?>><?php _e( 'Right', 'sassy-social-share' ) ?></option>
976
+ </select>
977
+ </td>
978
+ </tr>
979
+
980
+ <tr class="heateor_sss_help_content" id="heateor_sss_hor_alignment_help_cont">
981
+ <td colspan="2">
982
+ <div>
983
+ <?php _e( 'Horizontal alignment of the sharing interface', 'sassy-social-share' ) ?>
984
+ </div>
985
+ </td>
986
+ </tr>
987
+
988
+ <tr>
989
+ <th>
990
+ <label><?php _e("Position with respect to content", 'sassy-social-share' ); ?></label>
991
+ <img id="heateor_sss_position_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
992
+ </th>
993
+ <td>
994
+ <input id="heateor_sss_top" name="heateor_sss[top]" type="checkbox" <?php echo isset( $options['top'] ) ? 'checked = "checked"' : '';?> value="1" />
995
+ <label for="heateor_sss_top"><?php _e( 'Top of the content', 'sassy-social-share' ) ?></label><br/>
996
+ <input id="heateor_sss_bottom" name="heateor_sss[bottom]" type="checkbox" <?php echo isset( $options['bottom'] ) ? 'checked = "checked"' : '';?> value="1" />
997
+ <label for="heateor_sss_bottom"><?php _e( 'Bottom of the content', 'sassy-social-share' ) ?></label>
998
+ </td>
999
+ </tr>
1000
+
1001
+ <tr class="heateor_sss_help_content" id="heateor_sss_position_help_cont">
1002
+ <td colspan="2">
1003
+ <div>
1004
+ <?php _e( 'Specify position of the sharing interface with respect to the content', 'sassy-social-share' ) ?>
1005
+ </div>
1006
+ </td>
1007
+ </tr>
1008
+
1009
+ <tr>
1010
+ <td colspan="2">
1011
+ <div>
1012
+ <a href="https://www.heateor.com/comparison-between-sassy-social-share-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/social-share-popup.png', __FILE__ ) ?>" /></a>
1013
+ </div>
1014
+ </td>
1015
+ </tr>
1016
+
1017
+ <tr>
1018
+ <th>
1019
+ <label><?php _e("Placement", 'sassy-social-share' ); ?></label>
1020
+ <img id="heateor_sss_location_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1021
+ </th>
1022
+ <td>
1023
+ <input id="heateor_sss_home" name="heateor_sss[home]" type="checkbox" <?php echo isset( $options['home'] ) ? 'checked = "checked"' : '';?> value="1" />
1024
+ <label for="heateor_sss_home"><?php _e( 'Homepage', 'sassy-social-share' ) ?></label><br/>
1025
+ <input id="heateor_sss_post" name="heateor_sss[post]" type="checkbox" <?php echo isset( $options['post'] ) ? 'checked = "checked"' : '';?> value="1" />
1026
+ <label for="heateor_sss_post"><?php _e( 'Posts', 'sassy-social-share' ) ?></label><br/>
1027
+ <input id="heateor_sss_page" name="heateor_sss[page]" type="checkbox" <?php echo isset( $options['page'] ) ? 'checked = "checked"' : '';?> value="1" />
1028
+ <label for="heateor_sss_page"><?php _e( 'Pages', 'sassy-social-share' ) ?></label><br/>
1029
+ <input id="heateor_sss_excerpt" name="heateor_sss[excerpt]" type="checkbox" <?php echo isset( $options['excerpt'] ) ? 'checked = "checked"' : '';?> value="1" />
1030
+ <label for="heateor_sss_excerpt"><?php _e( 'Excerpts and Posts page', 'sassy-social-share' ) ?></label><br/>
1031
+ <input id="heateor_sss_category" name="heateor_sss[category]" type="checkbox" <?php echo isset( $options['category'] ) ? 'checked = "checked"' : '';?> value="1" />
1032
+ <label for="heateor_sss_category"><?php _e( 'Category Archives', 'sassy-social-share' ) ?></label><br/>
1033
+ <input id="heateor_sss_archive" name="heateor_sss[archive]" type="checkbox" <?php echo isset( $options['archive'] ) ? 'checked = "checked"' : '';?> value="1" />
1034
+ <label for="heateor_sss_archive"><?php _e( 'Archive Pages (Category, Tag, Author or Date based pages)', 'sassy-social-share' ) ?></label><br/>
1035
+ <?php
1036
+ $post_types = get_post_types( array( 'public' => true ), 'names', 'and' );
1037
+ $post_types = array_diff( $post_types, array( 'post', 'page' ) );
1038
+ if ( count( $post_types ) ) {
1039
+ foreach ( $post_types as $post_type ) {
1040
+ ?>
1041
+ <input id="heateor_sss_<?php echo $post_type ?>" name="heateor_sss[<?php echo $post_type ?>]" type="checkbox" <?php echo isset( $options[$post_type] ) ? 'checked = "checked"' : '';?> value="1" />
1042
+ <label for="heateor_sss_<?php echo $post_type ?>"><?php echo ucfirst( $post_type ) . 's'; ?></label><br/>
1043
+ <?php
1044
+ }
1045
+ }
1046
+
1047
+ if ( $this->is_bp_active) {
1048
+ ?>
1049
+ <input id="heateor_sss_bp_activity" name="heateor_sss[bp_activity]" type="checkbox" <?php echo isset( $options['bp_activity'] ) ? 'checked = "checked"' : '';?> value="1" />
1050
+ <label for="heateor_sss_bp_activity"><?php _e( 'BuddyPress activity', 'sassy-social-share' ) ?></label><br/>
1051
+ <input id="heateor_sss_bp_group" name="heateor_sss[bp_group]" type="checkbox" <?php echo isset( $options['bp_group'] ) ? 'checked = "checked"' : '';?> value="1" />
1052
+ <label for="heateor_sss_bp_group"><?php _e( 'BuddyPress group (only at top of content)', 'sassy-social-share' ) ?></label><br/>
1053
+ <?php
1054
+ }
1055
+ if (function_exists( 'is_bbpress' ) ) {
1056
+ ?>
1057
+ <input id="heateor_sss_bb_forum" name="heateor_sss[bb_forum]" type="checkbox" <?php echo isset( $options['bb_forum'] ) ? 'checked = "checked"' : '';?> value="1" />
1058
+ <label for="heateor_sss_bb_forum"><?php _e( 'BBPress forum', 'sassy-social-share' ) ?></label>
1059
+ <br/>
1060
+ <input id="heateor_sss_bb_topic" name="heateor_sss[bb_topic]" type="checkbox" <?php echo isset( $options['bb_topic'] ) ? 'checked = "checked"' : '';?> value="1" />
1061
+ <label for="heateor_sss_bb_topic"><?php _e( 'BBPress topic', 'sassy-social-share' ) ?></label>
1062
+ <br/>
1063
+ <input id="heateor_sss_bb_reply" name="heateor_sss[bb_reply]" type="checkbox" <?php echo isset( $options['bb_reply'] ) ? 'checked = "checked"' : '';?> value="1" />
1064
+ <label for="heateor_sss_bb_reply"><?php _e( 'BBPress reply', 'sassy-social-share' ) ?></label>
1065
+ <br/>
1066
+ <?php
1067
+ }
1068
+ if ( $this->is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
1069
+ ?>
1070
+ <input id="heateor_sss_woocom_shop" name="heateor_sss[woocom_shop]" type="checkbox" <?php echo isset( $options['woocom_shop'] ) ? 'checked = "checked"' : '';?> value="1" />
1071
+ <label for="heateor_sss_woocom_shop"><?php _e( 'After individual product at WooCommerce Shop page', 'sassy-social-share' ) ?></label>
1072
+ <br/>
1073
+ <input id="heateor_sss_woocom_product" name="heateor_sss[woocom_product]" type="checkbox" <?php echo isset( $options['woocom_product'] ) ? 'checked = "checked"' : '';?> value="1" />
1074
+ <label for="heateor_sss_woocom_product"><?php _e( 'WooCommerce Product Page', 'sassy-social-share' ) ?></label>
1075
+ <br/>
1076
+ <input id="heateor_sss_woocom_thankyou" name="heateor_sss[woocom_thankyou]" type="checkbox" <?php echo isset( $options['woocom_thankyou'] ) ? 'checked = "checked"' : '';?> value="1" />
1077
+ <label for="heateor_sss_woocom_thankyou"><?php _e( 'WooCommerce Thankyou Page', 'sassy-social-share' ) ?></label>
1078
+ <br/>
1079
+ <?php
1080
+ }
1081
+ ?>
1082
+ </td>
1083
+ </tr>
1084
+
1085
+ <tr class="heateor_sss_help_content" id="heateor_sss_location_help_cont">
1086
+ <td colspan="2">
1087
+ <div>
1088
+ <?php _e( 'Specify the pages where you want to enable Sharing interface', 'sassy-social-share' ) ?>
1089
+ </div>
1090
+ </td>
1091
+ </tr>
1092
+
1093
+ <tr>
1094
+ <th>
1095
+ <label for="heateor_sss_counts"><?php _e( "Show share counts", 'sassy-social-share' ); ?></label>
1096
+ <img id="heateor_sss_count_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1097
+ </th>
1098
+ <td>
1099
+ <input id="heateor_sss_counts" name="heateor_sss[horizontal_counts]" type="checkbox" <?php echo isset( $options['horizontal_counts'] ) ? 'checked = "checked"' : '';?> value="1" onclick="if(this.checked){heateorSssHorizontalShares = true;}else{heateorSssHorizontalShares = false;}" />
1100
+ <br/>
1101
+ <span class="heateor_sss_help_content" style="display:block"><?php _e( 'Share counts are supported for Twitter, Buffer, Reddit, Pinterest, Odnoklassniki, Fintel and Vkontakte', 'sassy-social-share' ) ?></span>
1102
+ <span class="heateor_sss_help_content" style="display:block"><strong><?php echo sprintf( __( 'To show Twitter share count, you have to click "Give me my Twitter counts back" button at <a href="%s" target="_blank">TwitCount.com</a> and register your website %s with them. No need to copy-paste any code from their website.', 'sassy-social-share' ), 'http://twitcount.com', home_url() ) ?></strong></span>
1103
+ </td>
1104
+ </tr>
1105
+
1106
+ <tr class="heateor_sss_help_content" id="heateor_sss_count_help_cont">
1107
+ <td colspan="2">
1108
+ <div>
1109
+ <?php _e( 'If enabled, share counts are displayed above sharing icons.', 'sassy-social-share' ) ?>
1110
+ <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_share_count.png', __FILE__ ); ?>" />
1111
+ </div>
1112
+ </td>
1113
+ </tr>
1114
+
1115
+ <tr>
1116
+ <th>
1117
+ <label for="heateor_sss_total_hor_shares"><?php _e("Show total shares", 'sassy-social-share' ); ?></label>
1118
+ <img id="heateor_sss_total_hor_shares_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1119
+ </th>
1120
+ <td>
1121
+ <input id="heateor_sss_total_hor_shares" name="heateor_sss[horizontal_total_shares]" type="checkbox" <?php echo isset( $options['horizontal_total_shares'] ) ? 'checked = "checked"' : '';?> value="1" onclick="if(this.checked){heateorSssHorizontalTotalShares = true;}else{heateorSssHorizontalTotalShares = false;}" />
1122
+ </td>
1123
+ </tr>
1124
+
1125
+ <tr class="heateor_sss_help_content" id="heateor_sss_total_hor_shares_help_cont">
1126
+ <td colspan="2">
1127
+ <div>
1128
+ <?php _e( 'If enabled, total shares will be displayed with sharing icons', 'sassy-social-share' ) ?>
1129
+ <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_horizontal_total_shares.png', __FILE__ ); ?>" />
1130
+ </div>
1131
+ </td>
1132
+ </tr>
1133
+
1134
+ <tr>
1135
+ <th>
1136
+ <label for="heateor_sss_hmore"><?php _e( "Enable 'More' icon", 'sassy-social-share' ); ?></label>
1137
+ <img id="heateor_sss_hmore_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1138
+ </th>
1139
+ <td>
1140
+ <input id="heateor_sss_hmore" name="heateor_sss[horizontal_more]" type="checkbox" <?php echo isset( $options['horizontal_more'] ) ? 'checked = "checked"' : '';?> value="1" />
1141
+ </td>
1142
+ </tr>
1143
+
1144
+ <tr class="heateor_sss_help_content" id="heateor_sss_hmore_help_cont">
1145
+ <td colspan="2">
1146
+ <div>
1147
+ <?php _e( 'If enabled, "More" icon will be displayed after selected sharing icons which shows additional sharing networks in popup', 'sassy-social-share' ) ?>
1148
+ </div>
1149
+ </td>
1150
+ </tr>
1151
+
1152
+ <tr>
1153
+ <td colspan="2">
1154
+ <div>
1155
+ <a href="https://www.heateor.com/comparison-between-sassy-social-share-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/hide-standard-share-bar.png', __FILE__ ) ?>" /></a>
1156
+ </div>
1157
+ </td>
1158
+ </tr>
1159
+ </tbody>
1160
+ </table>
1161
+ </div>
1162
+ </div>
1163
+
1164
+ </div>
1165
+ <?php include 'sassy-social-share-about.php'; ?>
1166
+ </div>
1167
+
1168
+ <div class="menu_containt_div" id="tabs-3">
1169
+ <div class="clear"></div>
1170
+ <div class="heateor_sss_left_column">
1171
+ <div class="stuffbox">
1172
+ <h3><label><?php _e( 'Floating Sharing Interface Options', 'sassy-social-share' );?></label></h3>
1173
+ <div class="inside">
1174
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1175
+ <tr>
1176
+ <th>
1177
+ <label for="heateor_sss_vertical_enable"><?php _e("Enable Floating sharing interface", 'sassy-social-share' ); ?></label>
1178
+ <img id="heateor_sss_vertical_enable_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1179
+ </th>
1180
+ <td>
1181
+ <input id="heateor_sss_vertical_enable" onclick="heateorSssVerticalSharingOptionsToggle(this)" name="heateor_sss[vertical_enable]" type="checkbox" <?php echo isset( $options['vertical_enable'] ) ? 'checked = "checked"' : '';?> value="1" />
1182
+ </td>
1183
+ </tr>
1184
+
1185
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_enable_help_cont">
1186
+ <td colspan="2">
1187
+ <div>
1188
+ <?php _e( 'Master control to enable floating sharing widget', 'sassy-social-share' ) ?>
1189
+ <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_vertical_sharing.png', __FILE__ ); ?>" />
1190
+ </div>
1191
+ </td>
1192
+ </tr>
1193
+
1194
+ <tbody id="heateor_sss_vertical_sharing_options" <?php echo isset( $options['vertical_enable'] ) ? '' : 'style="display: none"'; ?>>
1195
+ <tr>
1196
+ <th>
1197
+ <label for="heateor_sss_vertical_target_url"><?php _e("Target Url", 'sassy-social-share' ); ?></label>
1198
+ <img id="heateor_sss_vertical_target_url_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1199
+ </th>
1200
+ <td id="heateor_sss_vertical_target_url_column">
1201
+ <input id="heateor_sss_vertical_target_url_default" name="heateor_sss[vertical_target_url]" type="radio" <?php echo !isset( $options['vertical_target_url'] ) || $options['vertical_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
1202
+ <label for="heateor_sss_vertical_target_url_default"><?php _e( 'Url of the webpage where icons are located (default)', 'sassy-social-share' ) ?></label><br/>
1203
+ <input id="heateor_sss_vertical_target_url_home" name="heateor_sss[vertical_target_url]" type="radio" <?php echo isset( $options['vertical_target_url'] ) && $options['vertical_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
1204
+ <label for="heateor_sss_vertical_target_url_home"><?php _e( 'Url of the homepage of your website', 'sassy-social-share' ) ?></label><br/>
1205
+ <input id="heateor_sss_vertical_target_url_custom" name="heateor_sss[vertical_target_url]" type="radio" <?php echo isset( $options['vertical_target_url'] ) && $options['vertical_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
1206
+ <label for="heateor_sss_vertical_target_url_custom"><?php _e( 'Custom url', 'sassy-social-share' ) ?></label><br/>
1207
+ <input id="heateor_sss_vertical_target_url_custom_url" name="heateor_sss[vertical_target_url_custom]" type="text" value="<?php echo isset( $options['vertical_target_url_custom'] ) ? $options['vertical_target_url_custom'] : '' ?>" />
1208
+ </td>
1209
+ </tr>
1210
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_target_url_help_cont">
1211
+ <td colspan="2">
1212
+ <div>
1213
+ <?php _e( 'Url to share', 'sassy-social-share' ) ?>
1214
+ </div>
1215
+ </td>
1216
+ </tr>
1217
+
1218
+ <tbody id="heateor_sss_vertical_instagram_options" <?php echo ! in_array( 'instagram', $options['vertical_re_providers'] ) ? 'style = "display: none"' : '';?> >
1219
+ <tr>
1220
+ <th>
1221
+ <label for="heateor_sss_vertical_instagram_username"><?php _e("Instagram username", 'sassy-social-share' ); ?></label>
1222
+ <img id="heateor_sss_vertical_instagram_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1223
+ </th>
1224
+ <td>
1225
+ <input id="heateor_sss_vertical_instagram_username" name="heateor_sss[vertical_instagram_username]" type="text" value="<?php echo $instagram_username ?>" />
1226
+ </td>
1227
+ </tr>
1228
+
1229
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_instagram_username_help_cont">
1230
+ <td colspan="2">
1231
+ <div>
1232
+ <?php _e( 'Username of the Instagram account you want to redirect users to, on clicking the icon', 'sassy-social-share' ) ?>
1233
+ </div>
1234
+ </td>
1235
+ </tr>
1236
+ </tbody>
1237
+ <tbody id="heateor_sss_vertical_youtube_options" <?php echo ! in_array( 'youtube', $options['vertical_re_providers'] ) ? 'style = "display: none"' : '';?> >
1238
+ <tr>
1239
+ <th>
1240
+ <label for="heateor_sss_vertical_youtube_username"><?php _e( "Youtube URL", 'sassy-social-share' ); ?></label>
1241
+ <img id="heateor_sss_vertical_youtube_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1242
+ </th>
1243
+ <td>
1244
+
1245
+
1246
+ <input id="heateor_sss_vertical_youtube_username" name="heateor_sss[vertical_youtube_username]" type="text" value="<?php echo $youtube_username ?>" />
1247
+ </td>
1248
+ </tr>
1249
+
1250
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_instagram_username_help_cont">
1251
+ <td colspan="2">
1252
+ <div>
1253
+ <?php _e( 'Username of the Instagram account you want to redirect users to, on clicking the icon', 'sassy-social-share' ) ?>
1254
+ </div>
1255
+ </td>
1256
+ </tr>
1257
+ </tbody>
1258
+ <tbody id="heateor_sss_vertical_comment_options" <?php echo ! in_array( 'Comment', $options['vertical_re_providers'] ) ? 'style = "display: none"' : '';?> >
1259
+ <tr>
1260
+ <th>
1261
+ <label for="heateor_sss_vertical_comment_container_id"><?php _e( "HTML ID of container element of comment form", 'sassy-social-share' ); ?></label>
1262
+ <img id="heateor_sss_vertical_comment_container_id_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1263
+ </th>
1264
+ <td>
1265
+ <input id="heateor_sss_vertical_comment_container_id" name="heateor_sss[vertical_comment_container_id]" type="text" value="<?php echo $commentform_container_id ?>" />
1266
+ </td>
1267
+ </tr>
1268
+
1269
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_comment_container_id_help_cont">
1270
+ <td colspan="2">
1271
+ <div>
1272
+ <?php _e( 'HTML ID of the element you want to focus on the webpage, on click of Comment icon.', 'sassy-social-share' ) ?>
1273
+ </div>
1274
+ </td>
1275
+ </tr>
1276
+ </tbody>
1277
+
1278
+ <tr>
1279
+ <th>
1280
+ <label><?php _e( "Rearrange icons", 'sassy-social-share' ); ?></label>
1281
+ <img id="heateor_sss_vertical_rearrange_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1282
+ </th>
1283
+ </tr>
1284
+
1285
+ <tr>
1286
+ <td colspan="2">
1287
+ <script>
1288
+ <?php
1289
+ $verticalSharingStyle = 'width:' . ( $options['vertical_sharing_shape'] != 'rectangle' ? $options['vertical_sharing_size'] : $options['vertical_sharing_width'] ) . 'px;height:' . $vertical_line_height . 'px;';
1290
+ $verticalDeliciousRadius = '';
1291
+ if ( $options['vertical_sharing_shape'] == 'round' ) {
1292
+ $verticalSharingStyle .= 'border-radius:999px;';
1293
+ $verticalDeliciousRadius = 'border-radius:999px;';
1294
+ } elseif ( isset( $options['vertical_border_radius'] ) && $options['vertical_border_radius'] != '' ) {
1295
+ $verticalSharingStyle .= 'border-radius:' . $options['vertical_border_radius'] . 'px;';
1296
+ }
1297
+ ?>
1298
+ var heateorSssVerticalSharingStyle = '<?php echo $verticalSharingStyle ?>', heateorSssVerticalDeliciousRadius = '<?php echo $verticalDeliciousRadius ?>';
1299
+ </script>
1300
+ <style type="text/css">
1301
+ <?php if ( $options['vertical_bg_color_default'] != '' ) {?>
1302
+ ul#heateor_sss_vertical_rearrange i.heateorSssInstagramBackground{background:<?php echo $vertical_bg ?>!important;}
1303
+ <?php }
1304
+ if ( $options['vertical_bg_color_hover'] != '' ) { ?>
1305
+ ul#heateor_sss_vertical_rearrange i.heateorSssInstagramBackground:hover{background:<?php echo $vertical_bg_hover ?>!important;}
1306
+ <?php } ?>
1307
+ .heateorSssVerticalSharingBackground{
1308
+ <?php if ( $vertical_bg ) { ?>
1309
+ background-color: <?php echo $vertical_bg ?>;
1310
+ <?php }if ( $vertical_border_width) { ?>
1311
+ border-width: <?php echo $vertical_border_width ?>px;
1312
+ border-style: solid;
1313
+ <?php } ?>
1314
+ border-color: <?php echo $vertical_border_color ? $vertical_border_color : 'transparent'; ?>;
1315
+ }
1316
+ .heateorSssVerticalSharingBackground:hover{
1317
+ <?php if ( $vertical_bg_hover ) { ?>
1318
+ background-color: <?php echo $vertical_bg_hover ?>;
1319
+ <?php } if ( $vertical_border_width_hover ) { ?>
1320
+ border-width: <?php echo $vertical_border_width_hover ?>px;
1321
+ border-style: solid;
1322
+ <?php } ?>
1323
+ border-color: <?php echo $vertical_border_color_hover ? $vertical_border_color_hover : 'transparent'; ?>;
1324
+ }
1325
+ </style>
1326
+ <ul id="heateor_sss_vertical_rearrange">
1327
+ <?php
1328
+ if ( isset( $options['vertical_re_providers'] ) ) {
1329
+ foreach ( $options['vertical_re_providers'] as $rearrange ) {
1330
+ ?>
1331
+ <li title="<?php echo ucfirst( str_replace( '_', ' ', $rearrange ) ) ?>" id="heateor_sss_re_vertical_<?php echo str_replace( array( ' ', '.' ), '_', $rearrange ) ?>" >
1332
+ <i style="display:block;<?php echo $verticalSharingStyle ?>" class="<?php echo in_array( $rearrange, $like_buttons ) ? '' : 'heateorSssVerticalSharingBackground' ?> heateorSss<?php echo ucfirst( str_replace( array( '_', '.', ' ' ), '', $rearrange ) ) ?>Background"><div class="heateorSssSharingSvg heateorSss<?php echo ucfirst( str_replace( array( '_', '.', ' ' ), '', $rearrange ) ) ?>Svg" style="<?php echo $verticalDeliciousRadius ?>"></div></i>
1333
+ <input type="hidden" name="heateor_sss[vertical_re_providers][]" value="<?php echo $rearrange ?>">
1334
+ </li>
1335
+ <?php
1336
+ }
1337
+ }
1338
+ ?>
1339
+ </ul>
1340
+ </td>
1341
+ </tr>
1342
+
1343
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_rearrange_help_cont">
1344
+ <td colspan="2">
1345
+ <div>
1346
+ <?php _e( 'Drag the icons to rearrange in desired order', 'sassy-social-share' ) ?>
1347
+ </div>
1348
+ </td>
1349
+ </tr>
1350
+
1351
+ <tr>
1352
+ <th colspan="2">
1353
+ <label><?php _e("Select Sharing Services", 'sassy-social-share' ); ?></label>
1354
+ <img id="heateor_sss_vertical_providers_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1355
+ </th>
1356
+ </tr>
1357
+
1358
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_providers_help_cont">
1359
+ <td colspan="2">
1360
+ <div>
1361
+ <?php _e( 'Select sharing services to show in social share bar', 'sassy-social-share' ) ?>
1362
+ </div>
1363
+ </td>
1364
+ </tr>
1365
+
1366
+ <tr>
1367
+ <td colspan="2" class="selectSharingNetworks">
1368
+ <?php
1369
+ foreach( $like_buttons as $like_button ) {
1370
+ ?>
1371
+ <div class="heateorSssVerticalSharingProviderContainer">
1372
+ <input id="heateor_sss_vertical_<?php echo $like_button ?>" type="checkbox" <?php echo isset( $options['vertical_re_providers'] ) && in_array( $like_button, $options['vertical_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $like_button ?>" />
1373
+ <label for="heateor_sss_vertical_<?php echo $like_button ?>"><img src="<?php echo plugins_url( '../../images/sharing/'. $like_button .'.png', __FILE__ ) ?>" /></label>
1374
+ </div>
1375
+ <?php
1376
+ }
1377
+ ?>
1378
+ <div style="clear:both"></div>
1379
+ <div style="width:100%; margin: 10px 0"><input type="text" onkeyup="heateorSssSearchSharingNetworks(this.value.trim())" placeholder="<?php _e( 'Search social network', 'sassy-social-share' ) ?>" class="search" /></div>
1380
+ <div style="clear:both"></div>
1381
+ <?php
1382
+ foreach( $sharing_networks as $sharing_network) {
1383
+ ?>
1384
+ <div class="heateorSssVerticalSharingProviderContainer">
1385
+ <?php echo $sharing_network == 'Goodreads' ? '<a href="https://www.heateor.com/comparison-between-sassy-social-share-and-premium/" target="_blank">' : ''; ?>
1386
+ <input id="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>" type="checkbox" <?php echo $sharing_network == 'Goodreads' ? 'disabled ' : ''; ?><?php echo isset( $options['vertical_re_providers'] ) && in_array( $sharing_network, $options['vertical_re_providers'] ) ? 'checked = "checked"' : '';?> value="<?php echo $sharing_network ?>" />
1387
+ <label for="heateor_sss_vertical_sharing_<?php echo $sharing_network ?>"><i style="display:block;width:18px;height:18px;" class="heateorSssSharing heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Background"><ss style="display:block;" class="heateorSssSharingSvg heateorSss<?php echo str_replace(array( '_', '.', ' ' ), '', ucfirst( $sharing_network) ) ?>Svg"></ss></i></label>
1388
+ <label class="lblSocialNetwork" <?php echo $sharing_network != 'Goodreads' ? 'for="heateor_sss_' . $sharing_network . '"' : ''; ?>><?php echo str_replace( '_', ' ', ucfirst( $sharing_network ) ) ?></label>
1389
+ <?php echo $sharing_network == 'Goodreads' ? '</a>' : ''; ?>
1390
+ </div>
1391
+ <?php
1392
+ }
1393
+ ?>
1394
+ </td>
1395
+ </tr>
1396
+
1397
+ <tr>
1398
+ <th>
1399
+ <label><?php _e("Background Color", 'sassy-social-share' ); ?></label>
1400
+ <img id="heateor_sss_vertical_bg_color_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1401
+ </th>
1402
+ <td>
1403
+ <input style="width: 100px" name="heateor_sss[vertical_bg]" type="text" value="<?php echo isset( $options['vertical_bg'] ) ? $options['vertical_bg'] : '' ?>" />
1404
+ </td>
1405
+ </tr>
1406
+
1407
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_bg_color_help_cont">
1408
+ <td colspan="2">
1409
+ <div>
1410
+ <?php _e( 'Specify the color or hex code (example #cc78e0) for the background of vertical sharing bar. Leave empty for transparent. You can get the hex code of the required color from <a href="http://www.colorpicker.com/" target="_blank">this link</a>', 'sassy-social-share' ) ?>
1411
+ </div>
1412
+ </td>
1413
+ </tr>
1414
+
1415
+ <tr>
1416
+ <th>
1417
+ <label for="heateor_sss_alignment"><?php _e("Horizontal alignment", 'sassy-social-share' ); ?></label>
1418
+ <img id="heateor_sss_alignment_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1419
+ </th>
1420
+ <td>
1421
+ <select onchange="heateorSssToggleOffset(this.value)" id="heateor_sss_alignment" name="heateor_sss[alignment]">
1422
+ <option value="left" <?php echo isset( $options['alignment'] ) && $options['alignment'] == 'left' ? 'selected="selected"' : '' ?>><?php _e( 'Left', 'sassy-social-share' ) ?></option>
1423
+ <option value="right" <?php echo isset( $options['alignment'] ) && $options['alignment'] == 'right' ? 'selected="selected"' : '' ?>><?php _e( 'Right', 'sassy-social-share' ) ?></option>
1424
+ </select>
1425
+ </td>
1426
+ </tr>
1427
+
1428
+ <tr class="heateor_sss_help_content" id="heateor_sss_alignment_help_cont">
1429
+ <td colspan="2">
1430
+ <div>
1431
+ <?php _e( 'Horizontal alignment of the sharing interface', 'sassy-social-share' ) ?>
1432
+ </div>
1433
+ </td>
1434
+ </tr>
1435
+
1436
+ <tbody id="heateor_sss_left_offset_rows" <?php echo ( isset( $options['alignment'] ) && $options['alignment'] == 'left' ) ? '' : 'style="display: none"' ?>>
1437
+ <tr>
1438
+ <th>
1439
+ <label for="heateor_sss_left_offset"><?php _e("Left offset", 'sassy-social-share' ); ?></label>
1440
+ <img id="heateor_sss_left_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1441
+ </th>
1442
+ <td>
1443
+ <input style="width: 100px" id="heateor_sss_left_offset" name="heateor_sss[left_offset]" type="text" value="<?php echo isset( $options['left_offset'] ) ? $options['left_offset'] : '' ?>" />px
1444
+ </td>
1445
+ </tr>
1446
+
1447
+ <tr class="heateor_sss_help_content" id="heateor_sss_left_offset_help_cont">
1448
+ <td colspan="2">
1449
+ <div>
1450
+ <?php _e( 'Specify a number. Increase in number will shift sharing interface towards right and decrease will shift it towards left. Number can be negative too.', 'sassy-social-share' ) ?>
1451
+ </div>
1452
+ </td>
1453
+ </tr>
1454
+ </tbody>
1455
+
1456
+ <tbody id="heateor_sss_right_offset_rows" <?php echo ( isset( $options['alignment'] ) && $options['alignment'] == 'right' ) ? '' : 'style="display: none"' ?>>
1457
+ <tr>
1458
+ <th>
1459
+ <label for="heateor_sss_right_offset"><?php _e("Right offset", 'sassy-social-share' ); ?></label>
1460
+ <img id="heateor_sss_right_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1461
+ </th>
1462
+ <td>
1463
+ <input style="width: 100px" id="heateor_sss_right_offset" name="heateor_sss[right_offset]" type="text" value="<?php echo isset( $options['right_offset'] ) ? $options['right_offset'] : '' ?>" />px
1464
+ </td>
1465
+ </tr>
1466
+
1467
+ <tr class="heateor_sss_help_content" id="heateor_sss_right_offset_help_cont">
1468
+ <td colspan="2">
1469
+ <div>
1470
+ <?php _e( 'Specify a number. Increase in number will shift sharing interface towards left and decrease will shift it towards right. Number can be negative too.', 'sassy-social-share' ) ?>
1471
+ </div>
1472
+ </td>
1473
+ </tr>
1474
+ </tbody>
1475
+
1476
+ <tr>
1477
+ <th>
1478
+ <label for="heateor_sss_top_offset"><?php _e("Top offset", 'sassy-social-share' ); ?></label>
1479
+ <img id="heateor_sss_top_offset_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1480
+ </th>
1481
+ <td>
1482
+ <input style="width: 100px" id="heateor_sss_top_offset" name="heateor_sss[top_offset]" type="text" value="<?php echo isset( $options['top_offset'] ) ? $options['top_offset'] : '' ?>" />px
1483
+ </td>
1484
+ </tr>
1485
+
1486
+ <tr class="heateor_sss_help_content" id="heateor_sss_top_offset_help_cont">
1487
+ <td colspan="2">
1488
+ <div>
1489
+ <?php _e( 'Specify a number. Increase in number will shift sharing interface towards bottom and decrease will shift it towards top.', 'sassy-social-share' ) ?>
1490
+ </div>
1491
+ </td>
1492
+ </tr>
1493
+
1494
+ <tr>
1495
+ <th>
1496
+ <label><?php _e("Placement", 'sassy-social-share' ); ?></label>
1497
+ <img id="heateor_sss_vertical_location_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1498
+ </th>
1499
+ <td>
1500
+ <input id="heateor_sss_vertical_home" name="heateor_sss[vertical_home]" type="checkbox" <?php echo isset( $options['vertical_home'] ) ? 'checked = "checked"' : '';?> value="1" />
1501
+ <label for="heateor_sss_vertical_home"><?php _e( 'Homepage', 'sassy-social-share' ) ?></label><br/>
1502
+ <input id="heateor_sss_vertical_post" name="heateor_sss[vertical_post]" type="checkbox" <?php echo isset( $options['vertical_post'] ) ? 'checked = "checked"' : '';?> value="1" />
1503
+ <label for="heateor_sss_vertical_post"><?php _e( 'Posts', 'sassy-social-share' ) ?></label><br/>
1504
+ <input id="heateor_sss_vertical_page" name="heateor_sss[vertical_page]" type="checkbox" <?php echo isset( $options['vertical_page'] ) ? 'checked = "checked"' : '';?> value="1" />
1505
+ <label for="heateor_sss_vertical_page"><?php _e( 'Pages', 'sassy-social-share' ) ?></label><br/>
1506
+ <input id="heateor_sss_vertical_excerpt" name="heateor_sss[vertical_excerpt]" type="checkbox" <?php echo isset( $options['vertical_excerpt'] ) ? 'checked = "checked"' : '';?> value="1" />
1507
+ <label for="heateor_sss_vertical_excerpt"><?php _e( 'Excerpts and Posts page', 'sassy-social-share' ) ?></label><br/>
1508
+ <input id="heateor_sss_vertical_category" name="heateor_sss[vertical_category]" type="checkbox" <?php echo isset( $options['vertical_category'] ) ? 'checked = "checked"' : '';?> value="1" />
1509
+ <label for="heateor_sss_vertical_category"><?php _e( 'Category Archives', 'sassy-social-share' ) ?></label><br/>
1510
+ <input id="heateor_sss_vertical_archive" name="heateor_sss[vertical_archive]" type="checkbox" <?php echo isset( $options['vertical_archive'] ) ? 'checked = "checked"' : '';?> value="1" />
1511
+ <label for="heateor_sss_vertical_archive"><?php _e( 'Archive Pages (Category, Tag, Author or Date based pages)', 'sassy-social-share' ) ?></label><br/>
1512
+ <?php
1513
+ if ( count( $post_types ) ) {
1514
+ foreach ( $post_types as $post_type ) {
1515
+ ?>
1516
+ <input id="heateor_sss_vertical_<?php echo $post_type ?>" name="heateor_sss[vertical_<?php echo $post_type ?>]" type="checkbox" <?php echo isset( $options['vertical_' . $post_type] ) ? 'checked = "checked"' : '';?> value="1" />
1517
+ <label for="heateor_sss_vertical_<?php echo $post_type ?>"><?php echo ucfirst( $post_type ) . 's'; ?></label><br/>
1518
+ <?php
1519
+ }
1520
+ }
1521
+
1522
+ if ( $this->is_bp_active) {
1523
+ ?>
1524
+ <input id="heateor_sss_vertical_bp_group" name="heateor_sss[vertical_bp_group]" type="checkbox" <?php echo isset( $options['vertical_bp_group'] ) ? 'checked = "checked"' : '';?> value="1" />
1525
+ <label for="heateor_sss_vertical_bp_group"><?php _e( 'BuddyPress group', 'sassy-social-share' ) ?></label><br/>
1526
+ <?php
1527
+ }
1528
+
1529
+ if (function_exists( 'is_bbpress' ) ) {
1530
+ ?>
1531
+ <br/>
1532
+ <input id="heateor_sss_vertical_bb_forum" name="heateor_sss[vertical_bb_forum]" type="checkbox" <?php echo isset( $options['vertical_bb_forum'] ) ? 'checked = "checked"' : '';?> value="1" />
1533
+ <label for="heateor_sss_vertical_bb_forum"><?php _e( 'BBPress forum', 'sassy-social-share' ) ?></label>
1534
+ <br/>
1535
+ <input id="heateor_sss_vertical_bb_topic" name="heateor_sss[vertical_bb_topic]" type="checkbox" <?php echo isset( $options['vertical_bb_topic'] ) ? 'checked = "checked"' : '';?> value="1" />
1536
+ <label for="heateor_sss_vertical_bb_topic"><?php _e( 'BBPress topic', 'sassy-social-share' ) ?></label>
1537
+ <?php
1538
+ }
1539
+ ?>
1540
+ </td>
1541
+ </tr>
1542
+
1543
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_location_help_cont">
1544
+ <td colspan="2">
1545
+ <div>
1546
+ <?php _e( 'Specify the pages where you want to enable vertical Sharing interface', 'sassy-social-share' ) ?>
1547
+ </div>
1548
+ </td>
1549
+ </tr>
1550
+
1551
+ <tr>
1552
+ <th>
1553
+ <label for="heateor_sss_vertical_counts"><?php _e( "Show share counts", 'sassy-social-share' ); ?></label>
1554
+ <img id="heateor_sss_vertical_count_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1555
+ </th>
1556
+ <td>
1557
+ <input id="heateor_sss_vertical_counts" name="heateor_sss[vertical_counts]" type="checkbox" <?php echo isset( $options['vertical_counts'] ) ? 'checked = "checked"' : '';?> value="1" onclick="if(this.checked){heateorSssVerticalShares = true;}else{heateorSssVerticalShares = false;}" />
1558
+ <br/>
1559
+ <span class="heateor_sss_help_content" style="display:block"><?php _e( 'Share counts are supported for Twitter, Buffer, Reddit, Pinterest, Odnoklassniki, Fintel and Vkontakte', 'sassy-social-share' ) ?></span>
1560
+ <span class="heateor_sss_help_content" style="display:block"><strong><?php echo sprintf( __( 'To show Twitter share count, you have to click "Give me my Twitter counts back" button at <a href="%s" target="_blank">TwitCount.com</a> and register your website %s with them. No need to copy-paste any code from their website.', 'sassy-social-share' ), 'http://twitcount.com', home_url() ) ?></strong></span>
1561
+ </td>
1562
+ </tr>
1563
+
1564
+ <tr class="heateor_sss_help_content" id="heateor_sss_vertical_count_help_cont">
1565
+ <td colspan="2">
1566
+ <div>
1567
+ <?php _e( 'If enabled, share counts are displayed above sharing icons.', 'sassy-social-share' ) ?>
1568
+ <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_vertical_sharing_count.png', __FILE__ ); ?>" />
1569
+ </div>
1570
+ </td>
1571
+ </tr>
1572
+
1573
+ <tr>
1574
+ <th>
1575
+ <label for="heateor_sss_total_vertical_shares"><?php _e( "Show total shares", 'sassy-social-share' ); ?></label>
1576
+ <img id="heateor_sss_total_vertical_shares_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1577
+ </th>
1578
+ <td>
1579
+ <input id="heateor_sss_total_vertical_shares" name="heateor_sss[vertical_total_shares]" type="checkbox" onclick="if(this.checked){heateorSssVerticalTotalShares = true;}else{heateorSssVerticalTotalShares = false;}" <?php echo isset( $options['vertical_total_shares'] ) ? 'checked = "checked"' : '';?> value="1" />
1580
+ </td>
1581
+ </tr>
1582
+
1583
+ <tr class="heateor_sss_help_content" id="heateor_sss_total_vertical_shares_help_cont">
1584
+ <td colspan="2">
1585
+ <div>
1586
+ <?php _e( 'If enabled, total shares will be displayed with sharing icons', 'sassy-social-share' ) ?>
1587
+ <img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_vertical_total_shares.png', __FILE__ ); ?>" />
1588
+ </div>
1589
+ </td>
1590
+ </tr>
1591
+
1592
+ <tr>
1593
+ <th>
1594
+ <label for="heateor_sss_vmore"><?php _e( "Enable 'More' icon", 'sassy-social-share' ); ?></label>
1595
+ <img id="heateor_sss_vmore_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1596
+ </th>
1597
+ <td>
1598
+ <input id="heateor_sss_vmore" name="heateor_sss[vertical_more]" type="checkbox" <?php echo isset( $options['vertical_more'] ) ? 'checked = "checked"' : '';?> value="1" />
1599
+ </td>
1600
+ </tr>
1601
+
1602
+ <tr class="heateor_sss_help_content" id="heateor_sss_vmore_help_cont">
1603
+ <td colspan="2">
1604
+ <div>
1605
+ <?php _e( 'If enabled, "More" icon will be displayed after selected sharing icons which shows additional sharing networks in popup', 'sassy-social-share' ) ?>
1606
+ </div>
1607
+ </td>
1608
+ </tr>
1609
+
1610
+ <tr>
1611
+ <th>
1612
+ <label for="heateor_sss_hslider"><?php _e( "Hide floating slider", 'sassy-social-share' ); ?></label>
1613
+ <img id="heateor_sss_hslider_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1614
+ </th>
1615
+ <td>
1616
+ <input id="heateor_sss_hslider" name="heateor_sss[hide_slider]" type="checkbox" <?php echo isset( $options['hide_slider'] ) ? 'checked = "checked"' : '';?> value="1" />
1617
+ </td>
1618
+ </tr>
1619
+
1620
+ <tr class="heateor_sss_help_content" id="heateor_sss_hslider_help_cont">
1621
+ <td colspan="2">
1622
+ <div>
1623
+ <?php _e( 'Hides the slider arrow present below the floating share bar', 'sassy-social-share' ) ?>
1624
+ </div>
1625
+ </td>
1626
+ </tr>
1627
+
1628
+ <tr>
1629
+ <th>
1630
+ <img id="heateor_sss_mobile_sharing_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1631
+ <label for="heateor_sss_mobile_sharing"><?php _e("Vertical floating bar responsiveness", 'sassy-social-share' ); ?></label>
1632
+ </th>
1633
+ <td>
1634
+ <input id="heateor_sss_mobile_sharing" name="heateor_sss[hide_mobile_sharing]" type="checkbox" <?php echo isset( $options['hide_mobile_sharing'] ) ? 'checked = "checked"' : '';?> value="1" /><label><?php echo sprintf( __( 'Display vertical interface only when screen is wider than %s pixels', 'sassy-social-share' ), '<input style="width:46px" name="heateor_sss[vertical_screen_width]" type="text" value="' . ( isset( $options['vertical_screen_width'] ) ? $options['vertical_screen_width'] : '' ) . '" />' ) ?></label>
1635
+ </td>
1636
+ </tr>
1637
+
1638
+ <tr class="heateor_sss_help_content" id="heateor_sss_mobile_sharing_help_cont">
1639
+ <td colspan="2">
1640
+ <div>
1641
+ <?php _e( 'Display vertical interface only when screen is wider than the width specified.', 'sassy-social-share' ) ?>
1642
+ </div>
1643
+ </td>
1644
+ </tr>
1645
+
1646
+ <tr>
1647
+ <th>
1648
+ <label for="heateor_sss_mobile_sharing_bottom"><?php _e("Horizontal floating bar responsiveness", 'sassy-social-share' ); ?></label>
1649
+ <img id="heateor_sss_mobile_sharing_bottom_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1650
+ </th>
1651
+ <td>
1652
+ <input id="heateor_sss_mobile_sharing_bottom" name="heateor_sss[bottom_mobile_sharing]" type="checkbox" <?php echo isset( $options['bottom_mobile_sharing'] ) ? 'checked = "checked"' : '';?> value="1" /><label><?php echo sprintf( __( 'Stick vertical floating interface horizontally at bottom only when screen is narrower than %s pixels', 'sassy-social-share' ), '<input style="width:46px" name="heateor_sss[horizontal_screen_width]" type="text" value="' . ( isset( $options['horizontal_screen_width'] ) ? $options['horizontal_screen_width'] : '' ) . '" />' ) ?></label>
1653
+ </td>
1654
+ </tr>
1655
+
1656
+ <tr class="heateor_sss_help_content" id="heateor_sss_mobile_sharing_bottom_help_cont">
1657
+ <td colspan="2">
1658
+ <div>
1659
+ <?php _e( 'Stick vertical floating interface horizontally at bottom only when screen is narrower than the width specified', 'sassy-social-share' ) ?>
1660
+ <img src="<?php echo plugins_url( '../../images/snaps/sss_mobile_sharing.png', __FILE__ ); ?>" />
1661
+ </div>
1662
+ </td>
1663
+ </tr>
1664
+
1665
+ <tbody id="heateor_sss_bottom_sharing_options" <?php echo isset( $options['bottom_mobile_sharing'] ) ? '' : 'style="display: none"'; ?>>
1666
+ <tr>
1667
+ <th>
1668
+ <label for="heateor_sss_mobile_sharing_position"><?php _e("Horizontal floating bar position", 'sassy-social-share' ); ?></label>
1669
+ <img id="heateor_sss_mobile_sharing_position_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1670
+ </th>
1671
+ <td>
1672
+ <input type="radio" id="bottom_sharing_position_radio_nonresponsive" <?php echo $options['bottom_sharing_position_radio'] == 'nonresponsive' ? 'checked' : ''; ?> name="heateor_sss[bottom_sharing_position_radio]" value="nonresponsive" /><label for="bottom_sharing_position_radio_nonresponsive"><?php echo sprintf( __( '%s pixels from %s', 'sassy-social-share' ), '<input id="heateor_sss_mobile_sharing_position" style="width:46px" name="heateor_sss[bottom_sharing_position]" type="text" value="' . ( isset( $options['bottom_sharing_position'] ) ? $options['bottom_sharing_position'] : '' ) . '" />', '<select style="width:63px" name="heateor_sss[bottom_sharing_alignment]"><option value="right" ' . ( ! isset( $options['bottom_sharing_alignment'] ) || $options['bottom_sharing_alignment'] == 'right' ? 'selected' : '' ) . '>right</option><option value="left" ' . ( isset( $options['bottom_sharing_alignment'] ) && $options['bottom_sharing_alignment'] == 'left' ? 'selected' : '' ) . '>left</option></select>' ) ?></label><br/>
1673
+ <input type="radio" id="bottom_sharing_position_radio_responsive" <?php echo $options['bottom_sharing_position_radio'] == 'responsive' ? 'checked' : ''; ?> name="heateor_sss[bottom_sharing_position_radio]" value="responsive" /><label for="bottom_sharing_position_radio_responsive"><?php _e( 'Auto-adjust according to screen width (responsive)', 'sassy-social-share' ); ?></label>
1674
+ </td>
1675
+ </tr>
1676
+
1677
+ <tr class="heateor_sss_help_content" id="heateor_sss_mobile_sharing_position_help_cont">
1678
+ <td colspan="2">
1679
+ <div>
1680
+ <?php _e( 'Alignment of horizontal floating interface. Number can be negative too.', 'sassy-social-share' ) ?>
1681
+ </div>
1682
+ </td>
1683
+ </tr>
1684
+ </tbody>
1685
+
1686
+
1687
+ </tbody>
1688
+ </table>
1689
+ </div>
1690
+ </div>
1691
+ </div>
1692
+ <?php include 'sassy-social-share-about.php'; ?>
1693
+ </div>
1694
+
1695
+ <div class="menu_containt_div" id="tabs-4">
1696
+ <div class="clear"></div>
1697
+ <div class="heateor_sss_left_column">
1698
+
1699
+ <div>
1700
+ <a href="https://www.heateor.com/comparison-between-sassy-social-share-and-premium/" target="_blank"><img style="margin-bottom:19px;" src="<?php echo plugins_url( '../../images/unlock/track-shares.png', __FILE__ ) ?>" /></a>
1701
+ </div>
1702
+
1703
+ <div class="stuffbox">
1704
+ <h3><label><?php _e( 'Miscellaneous', 'sassy-social-share' ) ?></label></h3>
1705
+ <div class="inside">
1706
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1707
+ <tr>
1708
+ <th>
1709
+ <label for="heateor_sss_insta_bg"><?php _e( "Use plain background for Instagram icon", 'sassy-social-share' ) ?></label>
1710
+ <img id="heateor_sss_insta_bg_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1711
+ </th>
1712
+ <td>
1713
+ <input id="heateor_sss_insta_bg" name="heateor_sss[plain_instagram_bg]" type="checkbox" <?php echo isset( $options['plain_instagram_bg'] ) ? 'checked = "checked"' : '';?> value="1" />
1714
+ </td>
1715
+ </tr>
1716
+
1717
+ <tr class="heateor_sss_help_content" id="heateor_sss_insta_bg_help_cont">
1718
+ <td colspan="2">
1719
+ <div>
1720
+ <?php _e( 'Uses plain background for Instagram icon instead of multicolored background', 'sassy-social-share' ) ?>
1721
+ </div>
1722
+ </td>
1723
+ </tr>
1724
+
1725
+ <tr>
1726
+ <th>
1727
+ <label for="heateor_sss_footer_script"><?php _e( "Load Javascript files in footer", 'sassy-social-share' ) ?></label>
1728
+ <img id="heateor_sss_footer_script_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1729
+ </th>
1730
+ <td>
1731
+ <input id="heateor_sss_footer_script" name="heateor_sss[footer_script]" type="checkbox" <?php echo isset( $options['footer_script'] ) ? 'checked = "checked"' : '';?> value="1" />
1732
+ </td>
1733
+ </tr>
1734
+
1735
+ <tr class="heateor_sss_help_content" id="heateor_sss_footer_script_help_cont">
1736
+ <td colspan="2">
1737
+ <div>
1738
+ <?php _e( 'If enabled (recommended), Javascript files will be included in the footer of your website', 'sassy-social-share' ) ?>
1739
+ </div>
1740
+ </td>
1741
+ </tr>
1742
+
1743
+ <tr>
1744
+ <th>
1745
+ <label for="heateor_sss_js_when_needed"><?php _e( "Load Javascript only when needed", 'sassy-social-share' ) ?></label>
1746
+ <img id="heateor_sss_js_when_needed_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1747
+ </th>
1748
+ <td>
1749
+ <input id="heateor_sss_js_when_needed" name="heateor_sss[js_when_needed]" type="checkbox" <?php echo isset( $options['js_when_needed'] ) ? 'checked = "checked"' : '';?> value="1" />
1750
+ </td>
1751
+ </tr>
1752
+
1753
+ <tr class="heateor_sss_help_content" id="heateor_sss_js_when_needed_help_cont">
1754
+ <td colspan="2">
1755
+ <div>
1756
+ <?php _e( 'Javascript file will be loaded only at the webpages where share icons have been integrated', 'sassy-social-share' ) ?>
1757
+ </div>
1758
+ </td>
1759
+ </tr>
1760
+
1761
+ <tr>
1762
+ <th>
1763
+ <label for="heateor_sss_delete_options"><?php _e("Delete all the options on plugin deletion", 'sassy-social-share' ); ?></label>
1764
+ <img id="heateor_sss_delete_options_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1765
+ </th>
1766
+ <td>
1767
+ <input id="heateor_sss_delete_options" name="heateor_sss[delete_options]" type="checkbox" <?php echo isset( $options['delete_options'] ) ? 'checked = "checked"' : '';?> value="1" />
1768
+ </td>
1769
+ </tr>
1770
+
1771
+ <tr class="heateor_sss_help_content" id="heateor_sss_delete_options_help_cont">
1772
+ <td colspan="2">
1773
+ <div>
1774
+ <?php _e( 'If enabled, plugin options will get deleted when plugin is deleted/uninstalled and you will need to reconfigure the options when you install the plugin next time.', 'sassy-social-share' ) ?>
1775
+ </div>
1776
+ </td>
1777
+ </tr>
1778
+ </table>
1779
+ </div>
1780
+ </div>
1781
+
1782
+ <div class="stuffbox">
1783
+ <h3><label><?php _e( 'Share Count Cache', 'sassy-social-share' ) ?></label></h3>
1784
+ <div class="inside">
1785
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1786
+ <tr>
1787
+ <th>
1788
+ <label for="heateor_sss_share_count_cache"><?php _e( "Refresh Share Count cache every", 'sassy-social-share' ) ?></label>
1789
+ <img id="heateor_sss_share_count_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1790
+ </th>
1791
+ <td>
1792
+ <input style="width: 50px;" id="heateor_sss_share_count_cache" name="heateor_sss[share_count_cache_refresh_count]" type="text" value="<?php echo $options['share_count_cache_refresh_count']; ?>" />
1793
+ <select name="heateor_sss[share_count_cache_refresh_unit]">
1794
+ <option value="seconds" <?php echo $options['share_count_cache_refresh_unit'] == 'seconds' ? 'selected' : ''; ?>>Second(s)</option>
1795
+ <option value="minutes" <?php echo $options['share_count_cache_refresh_unit'] == 'minutes' ? 'selected' : ''; ?>>Minute(s)</option>
1796
+ <option value="hours" <?php echo $options['share_count_cache_refresh_unit'] == 'hours' ? 'selected' : ''; ?>>Hour(s)</option>
1797
+ <option value="days" <?php echo $options['share_count_cache_refresh_unit'] == 'days' ? 'selected' : ''; ?>>Day(s)</option>
1798
+ </select>
1799
+ </td>
1800
+ </tr>
1801
+
1802
+ <tr class="heateor_sss_help_content" id="heateor_sss_share_count_cache_help_cont">
1803
+ <td colspan="2">
1804
+ <div>
1805
+ <?php echo sprintf( __( 'Frequent cache refreshing results in slower loading of pages with share counts enabled. Leave empty to disable cache. More info <a href="%s" target="_blank">here</a>', 'sassy-social-share' ), 'http://support.heateor.com/why-is-share-count-not-getting-updated' ); ?>
1806
+ </div>
1807
+ </td>
1808
+ </tr>
1809
+
1810
+ <tr>
1811
+ <th style="width:215px">
1812
+ <input type="button" class="button-primary" value="<?php _e( 'Clear Share Counts Cache', 'sassy-social-share' ) ?>" onclick="heateorSssClearShareCountCache()" />
1813
+ <img id="heateor_sss_clear_share_count_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1814
+ </th>
1815
+ <td>
1816
+ <img src="<?php echo plugins_url( '../../images/ajax_loader.gif', __FILE__ ) ?>" id="share_count_cache_loading" style="display:none" />
1817
+ <div id="heateor_sss_share_count_cache_clear_message" style="color:green;display:none;"><?php _e( 'Share Counts cache cleared successfully.', 'sassy-social-share' ); ?></div>
1818
+ </td>
1819
+ </tr>
1820
+
1821
+ <tr class="heateor_sss_help_content" id="heateor_sss_clear_share_count_cache_help_cont">
1822
+ <td colspan="2">
1823
+ <div>
1824
+ <?php _e( 'Use this to clear cached share counts', 'sassy-social-share' ) ?>
1825
+ </div>
1826
+ </td>
1827
+ </tr>
1828
+ </table>
1829
+ </div>
1830
+ </div>
1831
+
1832
+ <div class="stuffbox">
1833
+ <h3><label><?php _e( 'Url shortener', 'sassy-social-share' );?></label></h3>
1834
+ <div class="inside">
1835
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1836
+ <tr>
1837
+ <th>
1838
+ <label for="heateor_sss_surl_enable"><?php _e("Use shortlinks already installed", 'sassy-social-share' ); ?></label>
1839
+ <img id="heateor_sss_surl_enable_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1840
+ </th>
1841
+ <td>
1842
+ <input id="heateor_sss_surl_enable" name="heateor_sss[use_shortlinks]" type="checkbox" <?php echo isset( $options['use_shortlinks'] ) ? 'checked = "checked"' : '';?> value="1" />
1843
+ </td>
1844
+ </tr>
1845
+
1846
+ <tr class="heateor_sss_help_content" id="heateor_sss_surl_enable_help_cont">
1847
+ <td colspan="2">
1848
+ <div>
1849
+ <?php _e( 'Use default short url permalinks without the need for any additional plugin', 'sassy-social-share' ) ?>
1850
+ </div>
1851
+ </td>
1852
+ </tr>
1853
+
1854
+ <tr>
1855
+ <th>
1856
+ <label for="heateor_sss_bitly_enable"><?php _e("Enable bit.ly url shortener for sharing", 'sassy-social-share' ); ?></label>
1857
+ <img id="heateor_sss_bitly_enable_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1858
+ </th>
1859
+ <td>
1860
+ <input id="heateor_sss_bitly_enable" name="heateor_sss[bitly_enable]" type="checkbox" <?php echo isset( $options['bitly_enable'] ) ? 'checked = "checked"' : '';?> value="1" />
1861
+ </td>
1862
+ </tr>
1863
+
1864
+
1865
+ <tr class="heateor_sss_help_content" id="heateor_sss_bitly_enable_help_cont">
1866
+ <td colspan="2">
1867
+ <div>
1868
+ <?php _e( 'Master control to enable bit.ly url shortening for sharing', 'sassy-social-share' ) ?>
1869
+ </div>
1870
+ </td>
1871
+ </tr>
1872
+
1873
+ <tr>
1874
+ <th>
1875
+ <label for="heateor_sss_bitly_access_token"><?php _e( "Bit.ly Generic Access Token", 'sassy-social-share' ); ?></label>
1876
+ <img id="heateor_sss_bitly_access_token_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1877
+ </th>
1878
+ <td>
1879
+ <input id="heateor_sss_bitly_access_token" name="heateor_sss[bitly_access_token]" type="text" value="<?php echo isset( $options['bitly_access_token'] ) ? $options['bitly_access_token'] : '' ?>" />
1880
+ </td>
1881
+ </tr>
1882
+
1883
+ <tr class="heateor_sss_help_content" id="heateor_sss_bitly_access_token_help_cont">
1884
+ <td colspan="2">
1885
+ <div>
1886
+ <?php echo sprintf( __( 'Login to your bit.ly account and navigate to <strong>Profile Settings > Generic Access Token</strong> (top-right corner) and authenticate to generate access token. More details at the <a href="%s" target="_blank">link</a>', 'sassy-social-share' ), 'https://support.sendible.com/hc/en-us/articles/360021876751-How-To-Access-Your-Bit-ly-Key' ) ?>
1887
+ </div>
1888
+ </td>
1889
+ </tr>
1890
+
1891
+ <tr>
1892
+ <th>
1893
+ <input type="button" class="button-primary" value="<?php _e( 'Clear Bitly Cache', 'sassy-social-share' ) ?>" onclick="heateorSssClearShorturlCache()" />
1894
+ <img id="heateor_sss_clear_shorturl_cache_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1895
+ </th>
1896
+ <td>
1897
+ <img src="<?php echo plugins_url( '../../images/ajax_loader.gif', __FILE__ ) ?>" id="shorturl_cache_loading" style="display:none" />
1898
+ <div id="heateor_sss_cache_clear_message" style="color:green;display:none;"><?php _e( 'ShortUrl cache cleared successfully.', 'sassy-social-share' ); ?></div>
1899
+ </td>
1900
+ </tr>
1901
+
1902
+ <tr class="heateor_sss_help_content" id="heateor_sss_clear_shorturl_cache_help_cont">
1903
+ <td colspan="2">
1904
+ <div>
1905
+ <?php _e( 'Use this to delete short urls saved in database. Handy, if urls of your website have been changed but short urls are still being generated for old urls.', 'sassy-social-share' ) ?>
1906
+ </div>
1907
+ </td>
1908
+ </tr>
1909
+ </table>
1910
+ </div>
1911
+ </div>
1912
+
1913
+ <div class="stuffbox">
1914
+ <h3><label><?php _e( 'Language', 'sassy-social-share' );?></label></h3>
1915
+ <div class="inside">
1916
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1917
+ <tr>
1918
+ <th>
1919
+ <label for="heateor_sss_sc_language"><?php _e("Language", 'sassy-social-share' ); ?></label>
1920
+ <img id="heateor_sss_sc_language_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1921
+ </th>
1922
+ <td>
1923
+ <input id="heateor_sss_sc_language" name="heateor_sss[language]" type="text" value="<?php echo $options['language'] ? $options['language'] : '' ?>" />
1924
+ </td>
1925
+ </tr>
1926
+
1927
+ <tr class="heateor_sss_help_content" id="heateor_sss_sc_language_help_cont">
1928
+ <td colspan="2">
1929
+ <div>
1930
+ <?php echo sprintf(__( 'Enter the code of the language you want to use for like buttons. You can find the language codes at <a href="%s" target="_blank">this link</a>. Leave it empty for default language(English)', 'sassy-social-share' ), 'http://fbdevwiki.com/wiki/Locales#Complete_List_.28as_of_2012-06-10.29' ) ?>
1931
+ </div>
1932
+ </td>
1933
+ </tr>
1934
+ </table>
1935
+ </div>
1936
+ </div>
1937
+
1938
+ <div class="stuffbox">
1939
+ <h3><label><?php _e( 'Username in sharing', 'sassy-social-share' );?></label></h3>
1940
+ <div class="inside">
1941
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1942
+ <tr>
1943
+ <th>
1944
+ <label for="heateor_sss_twitter_username"><?php _e("Twitter username (without @)", 'sassy-social-share' ); ?></label>
1945
+ <img id="heateor_sss_twitter_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1946
+ </th>
1947
+ <td>
1948
+ <input id="heateor_sss_twitter_username" name="heateor_sss[twitter_username]" type="text" value="<?php echo isset( $options['twitter_username'] ) ? $options['twitter_username'] : '' ?>" />
1949
+ </td>
1950
+ </tr>
1951
+
1952
+ <tr class="heateor_sss_help_content" id="heateor_sss_twitter_username_help_cont">
1953
+ <td colspan="2">
1954
+ <div>
1955
+ <?php _e( 'Provided username will be appended after the content being shared as "via @USERNAME". Leave empty if you do not want any username in the content being shared.', 'sassy-social-share' ) ?>
1956
+ <br/><img width="550" src="<?php echo plugins_url( '../../images/snaps/sss_twitter_username.png', __FILE__ ); ?>" />
1957
+ </div>
1958
+ </td>
1959
+ </tr>
1960
+
1961
+ <tr>
1962
+ <th>
1963
+ <label for="heateor_sss_buffer_username"><?php _e("Buffer username (without @)", 'sassy-social-share' ); ?></label>
1964
+ <img id="heateor_sss_buffer_username_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1965
+ </th>
1966
+ <td>
1967
+ <input id="heateor_sss_buffer_username" name="heateor_sss[buffer_username]" type="text" value="<?php echo isset( $options['buffer_username'] ) ? $options['buffer_username'] : '' ?>" />
1968
+ </td>
1969
+ </tr>
1970
+
1971
+ <tr class="heateor_sss_help_content" id="heateor_sss_buffer_username_help_cont">
1972
+ <td colspan="2">
1973
+ <div>
1974
+ <?php _e( 'Provided username will be appended after the content being shared as "via @USERNAME". Leave empty if you do not want any username in the content being shared.', 'sassy-social-share' ) ?>
1975
+ </div>
1976
+ </td>
1977
+ </tr>
1978
+ </table>
1979
+ </div>
1980
+ </div>
1981
+
1982
+ <div class="stuffbox">
1983
+ <h3><label><?php _e( 'Export/Import configuration', 'sassy-social-share' );?></label></h3>
1984
+ <div class="inside">
1985
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
1986
+ <tr>
1987
+ <td colspan="2">
1988
+ <input type="button" class="button-primary" value="<?php _e( "Export Configuration", 'sassy-social-share' ); ?>" onclick="heateorSssExportConfig()" />
1989
+ <img id="heateor_sss_export_config_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1990
+ <div class="heateor_sss_clear"></div>
1991
+ <img src="<?php echo plugins_url( '../../images/ajax_loader.gif', __FILE__ ) ?>" id="export_config_loading" style="display:none;margin-top:5px" />
1992
+ </td>
1993
+ </tr>
1994
+
1995
+ <tr class="heateor_sss_help_content" id="heateor_sss_export_config_help_cont">
1996
+ <td colspan="2">
1997
+ <div>
1998
+ <?php _e( 'Click this button to get the configuration of plugin at this website in the textbox below to export to some other website', 'sassy-social-share' ) ?>
1999
+ </div>
2000
+ </td>
2001
+ </tr>
2002
+
2003
+ <tr>
2004
+ <td colspan="2">
2005
+ <textarea id="heateor_sss_exported_config" rows="5" cols="50"></textarea>
2006
+ </td>
2007
+ </tr>
2008
+
2009
+ <tr>
2010
+ <th colspan="2">
2011
+ <?php _e( "Import Configuration", 'sassy-social-share' ); ?>
2012
+ <img id="heateor_sss_import_config_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
2013
+ </th>
2014
+ </tr>
2015
+
2016
+ <tr class="heateor_sss_help_content" id="heateor_sss_import_config_help_cont">
2017
+ <td colspan="2">
2018
+ <div>
2019
+ <?php _e( 'Paste the plugin-configuration you want to import to this website in the textbox given below and click Import Configuration button', 'sassy-social-share' ) ?>
2020
+ </div>
2021
+ </td>
2022
+ </tr>
2023
+
2024
+ <tr>
2025
+ <td colspan="2">
2026
+ <textarea id="heateor_sss_import_config_txt" rows="5" cols="50"></textarea>
2027
+ <br/>
2028
+ <input type="button" class="button-primary" value="<?php _e( "Import Configuration", 'sassy-social-share' ); ?>" onclick="heateorSssImportConfig()" />
2029
+ <div class="heateor_sss_clear"></div>
2030
+ <img src="<?php echo plugins_url( '../../images/ajax_loader.gif', __FILE__ ) ?>" id="import_config_loading" style="display:none;margin-top:5px" />
2031
+ </td>
2032
+ </tr>
2033
+ </table>
2034
+ </div>
2035
+ </div>
2036
+
2037
+
2038
+
2039
+ <div class="stuffbox">
2040
+ <h3><label><?php _e( 'AMP', 'sassy-social-share' );?></label></h3>
2041
+ <div class="inside">
2042
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
2043
+ <tr>
2044
+ <th>
2045
+ <label for="heateor_sss_amp_enable"><?php _e("Enable sharing on AMP pages", 'sassy-social-share' ); ?></label>
2046
+ <img id="heateor_sss_amp_enable_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
2047
+ </th>
2048
+ <td>
2049
+ <input id="heateor_sss_amp_enable" name="heateor_sss[amp_enable]" type="checkbox" <?php echo isset( $options['amp_enable'] ) ? 'checked = "checked"' : '';?> value="1" />
2050
+ </td>
2051
+ </tr>
2052
+
2053
+ <tr class="heateor_sss_help_content" id="heateor_sss_amp_enable_help_cont">
2054
+ <td colspan="2">
2055
+ <div>
2056
+ <?php _e( 'Enable this option to render sharing icons on AMP pages', 'sassy-social-share' ) ?>
2057
+ </div>
2058
+ </td>
2059
+ </tr>
2060
+ </table>
2061
+ </div>
2062
+ </div>
2063
+
2064
+ <div class="stuffbox">
2065
+ <h3><label><?php _e( 'Custom CSS', 'sassy-social-share' );?></label></h3>
2066
+ <div class="inside">
2067
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
2068
+ <tr>
2069
+ <th>
2070
+ <label for="heateor_sss_custom_css"><?php _e("Custom CSS", 'sassy-social-share' ); ?></label>
2071
+ <img id="heateor_sss_custom_css_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
2072
+ </th>
2073
+ <td>
2074
+ <textarea rows="7" cols="63" id="heateor_sss_custom_css" name="heateor_sss[custom_css]"><?php echo isset( $options['custom_css'] ) ? $options['custom_css'] : '' ?></textarea>
2075
+ </td>
2076
+ </tr>
2077
+
2078
+ <tr class="heateor_sss_help_content" id="heateor_sss_custom_css_help_cont">
2079
+ <td colspan="2">
2080
+ <div>
2081
+ <?php _e( 'You can specify any additional CSS rules (without &lt;style&gt; tag)', 'sassy-social-share' ) ?>
2082
+ </div>
2083
+ </td>
2084
+ </tr>
2085
+ </table>
2086
+ </div>
2087
+ </div>
2088
+
2089
+ <div>
2090
+ <a href="https://www.heateor.com/comparison-between-sassy-social-share-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/custom-icon-url.png', __FILE__ ) ?>" /></a>
2091
+ </div>
2092
+
2093
+ </div>
2094
+ <?php include 'sassy-social-share-about.php'; ?>
2095
+ </div>
2096
+
2097
+ <?php
2098
+ if ( $this->is_plugin_active( 'mycred/mycred.php' ) ) {
2099
+ ?>
2100
+ <div class="menu_containt_div" id="tabs-5">
2101
+ <div class="clear"></div>
2102
+ <div class="heateor_sss_left_column">
2103
+ <div class="stuffbox">
2104
+ <h3><label><?php _e( 'myCRED', 'sassy-social-share' );?></label></h3>
2105
+ <div class="inside">
2106
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
2107
+ <tr>
2108
+ <th>
2109
+ <label for="heateor_sss_mycred_referral_id"><?php _e( "Append myCRED referral ID to the urls being shared", 'sassy-social-share' ); ?></label>
2110
+ <img id="heateor_sss_mycred_referral_id_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
2111
+ </th>
2112
+ <td>
2113
+ <input id="heateor_sss_mycred_referral_id" name="heateor_sss[mycred_referral]" type="checkbox" <?php echo isset( $options['mycred_referral'] ) ? 'checked = "checked"' : '';?> value="1" />
2114
+ </td>
2115
+ </tr>
2116
+ </table>
2117
+ </div>
2118
+ </div>
2119
+ </div>
2120
+ <?php include 'sassy-social-share-about.php'; ?>
2121
+ </div>
2122
+ <?php
2123
+ }
2124
+ ?>
2125
+
2126
+ <div class="menu_containt_div" id="tabs-6">
2127
+ <div class="clear"></div>
2128
+ <div class="heateor_sss_left_column">
2129
+ <div class="stuffbox">
2130
+ <h3><label><?php _e( 'Shortcode & Widget', 'sassy-social-share' );?></label></h3>
2131
+ <div class="inside" style="padding-left:7px">
2132
+ <p><a style="text-decoration:none" href="http://support.heateor.com/sassy-social-share-shortcode-and-widget" target="_blank"><?php _e( 'Social Share Shortcode & Widget', 'sassy-social-share' ) ?></a></p>
2133
+ <p><a style="text-decoration:none" href="http://support.heateor.com/sassy-follow-icons-shortcode" target="_blank"><?php _e( 'Follow Icons Shortcode & Widget', 'sassy-social-share' ) ?></a></p>
2134
+ <p><a href="https://www.heateor.com/comparison-between-sassy-social-share-and-premium/" target="_blank"><img src="<?php echo plugins_url( '../../images/unlock/click-to-tweet-shortcode.png', __FILE__ ) ?>" /></a></p>
2135
+ </div>
2136
+ </div>
2137
+ </div>
2138
+ <?php include 'sassy-social-share-about.php'; ?>
2139
+ </div>
2140
+
2141
+ <div class="menu_containt_div" id="tabs-7">
2142
+ <div class="clear"></div>
2143
+ <div class="heateor_sss_left_column">
2144
+ <div class="stuffbox">
2145
+ <h3><label><?php _e( 'Facebook Sharing Troubleshooter', 'sassy-social-share' );?></label></h3>
2146
+ <div class="inside" style="padding-left:1px">
2147
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
2148
+ <tr>
2149
+ <td>
2150
+ <?php _e( 'If Facebook sharing is not working fine, click at the following link and enter the problematic url (where Facebook sharing is not working properly) of your website in the text field. Click "Fetch New Scrape Information" button.', 'sassy-social-share' ) ?><br/>
2151
+ <a style="text-decoration: none" target="_blank" href="https://developers.facebook.com/tools/debug/">https://developers.facebook.com/tools/debug/</a>
2152
+ </td>
2153
+ </tr>
2154
+ </table>
2155
+ </div>
2156
+ </div>
2157
+ </div>
2158
+ <?php include 'sassy-social-share-about.php'; ?>
2159
+ </div>
2160
+
2161
+ <div class="menu_containt_div" id="tabs-8">
2162
+ <div class="clear"></div>
2163
+ <div class="heateor_sss_left_column">
2164
+ <div class="stuffbox">
2165
+ <h3><label><?php _e( 'FAQ', 'sassy-social-share' ) ?></label></h3>
2166
+ <div class="inside faq" style="padding-left:8px">
2167
+ <p><?php _e( '<strong>Note:</strong> Plugin will not work on local server. You should have an online website for the plugin to function properly.', 'sassy-social-share' ); ?></p>
2168
+ <p><a href="http://support.heateor.com/why-is-sharer-not-showing-the-correct-image-title-and-other-meta-tags-content" target="_blank"><?php _e( 'Why is sharer not showing the correct image, title and other content when sharing a webpage?', 'sassy-social-share' ) ?></a></p>
2169
+ <a href="javascript:void(0)"><?php _e( 'Why is Facebook share count not working?', 'sassy-social-share' ); ?></a>
2170
+ <div><?php echo sprintf( __( "After the recent changes introduced in the Facebook graph API, it's not possible to track Facebook shares using it. Pro and Premium versions of this plugin offer a feature that allows you to track shares not just for Facebook but for all the social networks. Comparison of the features of the Pro and Premium versions can be found at the <a href='%s' target='_blank'>link</a>", 'sassy-social-share' ), 'https://www.heateor.com/comparison-between-sassy-social-share-and-premium/' ); ?></div>
2171
+ <p><a href="http://support.heateor.com/how-to-customize-the-url-being-shared" target="_blank"><?php _e( 'How to Customize the Url being Shared?', 'sassy-social-share' ) ?></a></p>
2172
+ <a href="javascript:void(0)"><?php _e( 'Why is Instagram icon redirecting to Instagram website?', 'sassy-social-share' ); ?></a>
2173
+ <div><?php _e( 'Instagram icon is there to send website visitors to the Instagram page of your choice. You can save the desired Instagram handle in "Instagram Username" option in "Standard Interface" and "Floating Interface" sections.', 'sassy-social-share' ); ?></div>
2174
+ <p>
2175
+ <a href="javascript:void(0)"><?php _e( 'Why are Twitter shares not appearing even after registering at Twitcount.com?', 'sassy-social-share' ); ?></a>
2176
+ <div><?php _e( "It takes some time for their service to track the shares made on Twitter from your website. If you still feel it's taking too long you can contact their support directly from their website.", 'sassy-social-share' ); ?></div>
2177
+ </p>
2178
+ <p><a href="https://www.heateor.com/recover-social-share-counts/" target="_blank"><?php _e('How to restore Social Share counts lost after moving my website to SSL/Https?', 'sassy-social-share' ) ?></a></p>
2179
+ <p><a href="http://support.heateor.com/how-to-integrate-google-analytics-with-sharing" target="_blank"><?php _e( 'How to integrate Google Analytics with sharing?', 'sassy-social-share' ) ?></a></p>
2180
+ <p><a href="http://support.heateor.com/color-share-icons-not-being-updated" target="_blank"><?php _e( 'Why the color of share icons is not being updated?', 'sassy-social-share' ) ?></a></p>
2181
+ <p><a style="text-decoration:none" href="https://www.heateor.com/facebook-comments-moderation" target="_blank"><?php _e( 'How to show recent Facebook Comments from all over the website in a widget?', 'sassy-social-share' ) ?></a></p>
2182
+ <p><a style="text-decoration:none" href="http://support.heateor.com/recover-facebook-comments-wordpress-moving-to-https-ssl/" target="_blank"><?php _e( 'How to recover the Facebook Comments lost after moving my website to SSL/Https?', 'sassy-social-share' ) ?></a></p>
2183
+ <p><a href="http://support.heateor.com/place-title-social-share-icons-row/" target="_blank"><?php _e( 'How to Place Title and Social Share Icons in the Same Row?', 'sassy-social-share' ) ?></a></p>
2184
+ <p><a href="http://support.heateor.com/how-can-i-show-share-counts-of-my-website-rather-than-of-individual-pagepost/" target="_blank"><?php _e( 'How can I show share counts of my website rather than of individual pages/posts?', 'sassy-social-share' ) ?></a></p>
2185
+ <p><a href="http://support.heateor.com/how-can-i-disable-social-sharing-on-particular-pagepost/" target="_blank"><?php _e( 'How can I disable sharing on particular page/post?', 'sassy-social-share' ) ?></a></p>
2186
+ <p><a href="http://support.heateor.com/how-can-i-specify-minimum-sharing-count-for-sharing-networks/" target="_blank"><?php _e( 'How can I specify minimum sharing count for sharing networks?', 'sassy-social-share' ) ?></a></p>
2187
+ <p><a href="http://support.heateor.com/how-to-share-specific-page/" target="_blank"><?php _e( 'How to share specific page?', 'sassy-social-share' ) ?></a></p>
2188
+ <p><a href="http://support.heateor.com/how-to-customize-the-look-of-total-share-counts" target="_blank"><?php _e( 'How to customize the look of total share counts?', 'sassy-social-share' ) ?></a></p>
2189
+ <p><a href="http://support.heateor.com/how-to-customize-the-look-of-individual-share-counts" target="_blank"><?php _e( 'How to customize the look of individual share counts?', 'sassy-social-share' ) ?></a></p>
2190
+ <p><a href="http://support.heateor.com/how-to-show-whatsapp-icon-only-on-mobile-devices" target="_blank"><?php _e( 'How to show Whatsapp icon only on mobile devices?', 'sassy-social-share' ) ?></a></p>
2191
+ <p><a href="http://support.heateor.com/how-to-hide-arrow-after-floating-sharing-bar" target="_blank"><?php _e( 'How to hide arrow after floating sharing bar?', 'sassy-social-share' ) ?></a></p>
2192
+ <p><a href="http://support.heateor.com/why-is-share-count-not-getting-updated" target="_blank"><?php _e( 'Why is share count not getting updated?', 'sassy-social-share' ) ?></a></p>
2193
+ <p><a href="http://support.heateor.com/why-is-there-so-much-space-between-like-buttons" target="_blank"><?php _e( 'Why is there so much space between like buttons?', 'sassy-social-share' ) ?></a></p>
2194
+ <p><a href="http://support.heateor.com/why-is-floating-share-like-button-not-appearing-at-homepage" target="_blank"><?php _e( 'Why are floating sharing/like buttons not appearing at homepage?', 'sassy-social-share' ) ?></a></p>
2195
+ </div>
2196
+ </div>
2197
+
2198
+ </div>
2199
+ <?php include 'sassy-social-share-about.php'; ?>
2200
+ </div>
2201
+
2202
+ <div class="heateor_sss_clear"></div>
2203
+ <p class="submit">
2204
+ <input style="margin-left:8px" type="submit" name="save" class="button button-primary" value="<?php _e( "Save Changes", 'sassy-social-share' ); ?>" />
2205
+ </p>
2206
+ <p>
2207
+ <?php
2208
+ echo sprintf( __( 'You can appreciate the effort put in this free plugin by rating it <a href="%s" target="_blank">here</a>', 'sassy-social-share' ), 'https://wordpress.org/support/view/plugin-reviews/sassy-social-share' );
2209
+ ?>
2210
+ </p>
2211
+ </form>
2212
+
2213
+ <div class="stuffbox">
2214
+ <h3><label>Instagram Shoutout</label></h3>
2215
+ <div class="inside" style="padding-left:7px">
2216
+ <p><?php _e( 'If you can send (to hello@heateor.com) how this plugin is helping your business, we would be glad to shoutout on Instagram. You can also send any relevant hashtags and people to mention in the Instagram post.', 'sassy-social-share' ) ?></p>
2217
+ </div>
2218
+ </div>
2219
+ </div>
2220
+ </div>
includes/class-sassy-social-share.php CHANGED
@@ -1,273 +1,277 @@
1
- <?php
2
-
3
- /**
4
- * The file that defines the core plugin class
5
- *
6
- * A class definition that includes attributes and functions used across both the
7
- * public-facing side of the site and the admin area.
8
- *
9
- * @since 1.0.0
10
- *
11
- */
12
-
13
- /**
14
- * The core plugin class.
15
- *
16
- * This is used to define hooks.
17
- *
18
- * Also maintains the unique identifier of this plugin as well as the current
19
- * version of the plugin.
20
- *
21
- * @since 1.0.0
22
- */
23
- class Sassy_Social_Share {
24
-
25
- /**
26
- * The unique identifier of this plugin.
27
- *
28
- * @since 1.0.0
29
- */
30
- protected $plugin_slug;
31
-
32
- /**
33
- * Current version of the plugin.
34
- *
35
- * @since 1.0.0
36
- */
37
- protected $version;
38
-
39
- /**
40
- * Options saved in database.
41
- *
42
- * @since 1.0.0
43
- */
44
- public $options;
45
-
46
- /**
47
- * Member to assign object of Sassy_Social_Share_Public Class.
48
- *
49
- * @since 1.0.0
50
- */
51
- public $plugin_public;
52
-
53
- /**
54
- * Define the core functionality of the plugin.
55
- *
56
- * @since 1.0.0
57
- */
58
- public function __construct( $version ) {
59
-
60
- $this->plugin_slug = 'sassy-social-share';
61
- $this->version = $version;
62
- $this->options = get_option( 'heateor_sss' );
63
-
64
- $this->load_dependencies();
65
- $this->set_locale();
66
- $this->call_admin_hooks();
67
- $this->call_public_hooks();
68
-
69
- $this->define_shortcodes();
70
- $this->define_widgets();
71
-
72
- }
73
-
74
- /**
75
- * Load the required dependencies for this plugin.
76
- *
77
- * @since 1.0.0
78
- */
79
- private function load_dependencies() {
80
-
81
- /**
82
- * The class responsible for defining all functions for the functionality that occur in the admin area.
83
- */
84
- require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-sassy-social-share-admin.php';
85
-
86
- /**
87
- * The class responsible for defining all functions for the functionality that occur at front-end of website.
88
- */
89
- require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-sassy-social-share-public.php';
90
-
91
- /**
92
- * The class responsible for defining all functions for widgets.
93
- */
94
- require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-sassy-social-share-widgets.php';
95
-
96
- /**
97
- * The class responsible for defining all shortcode functions.
98
- */
99
- require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-sassy-social-share-shortcodes.php';
100
-
101
- /**
102
- * The class responsible for defining sharing networks and their sharer urls.
103
- */
104
- require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-sassy-social-share-sharing-networks.php';
105
-
106
- }
107
-
108
- /**
109
- * Define the locale for this plugin for internationalization.
110
- *
111
- * @since 1.0.0
112
- */
113
- private function set_locale() {
114
-
115
- load_plugin_textdomain( 'sassy-social-share', false, plugin_dir_path( dirname( __FILE__ ) ) . '/languages/' );
116
-
117
- }
118
-
119
- /**
120
- * Register all of the hooks related to the admin area functionality of the plugin
121
- *
122
- * @since 1.0.0
123
- */
124
- private function call_admin_hooks() {
125
-
126
- // create object of admin class to pass options
127
- $plugin_admin = new Sassy_Social_Share_Admin( $this->options, $this->version );
128
- // hook to upate plugin db/options based on version
129
- add_action( 'plugins_loaded', array( $plugin_admin, 'update_db_check' ) );
130
- // save GDPR notification flag in DB
131
- add_action( 'wp_ajax_heateor_sss_gdpr_notification_read', array( $plugin_admin, 'gdpr_notification_read' ) );
132
- // save Twitter share count notification flag in DB
133
- add_action( 'wp_ajax_heateor_sss_twitter_share_notification_read', array( $plugin_admin, 'twitter_share_notification_read' ) );
134
- // save Twitcount notification flag in DB
135
- add_action( 'wp_ajax_heateor_sss_twitcount_notification_read', array( $plugin_admin, 'twitcount_notification_read' ) );
136
- // create admin menu
137
- add_action( 'admin_menu', array( $plugin_admin, 'create_admin_menu' ) );
138
- // set sanitization callback for plugin options
139
- add_action( 'admin_init', array( $plugin_admin, 'options_init' ) );
140
- // check if BuddyPress is active
141
- add_action( 'bp_include', array( $plugin_admin, 'is_bp_loaded' ) );
142
- // if multisite is enabled and this is the main website
143
- if ( is_multisite() && is_main_site() ) {
144
- // replicate the options to the new blog created
145
- add_action( 'wpmu_new_blog', array( $plugin_admin, 'replicate_settings' ) );
146
- // update the options in all the old blogs
147
- add_action( 'update_option_heateor_sss', array( $plugin_admin, 'update_old_blogs' ) );
148
- }
149
- // ajax function to clear bitly short url cache
150
- add_action( 'wp_ajax_heateor_sss_clear_shorturl_cache', array( $plugin_admin, 'clear_shorturl_cache' ) );
151
- // ajax function to clear share counts cache
152
- add_action( 'wp_ajax_heateor_sss_clear_share_count_cache', array( $plugin_admin, 'clear_share_count_cache' ) );
153
- // show notices
154
- add_action( 'admin_notices', array( $plugin_admin, 'show_notices' ) );
155
- // add links to settings, add-ons etc. to show at "Plugins" page
156
- add_filter( 'plugin_action_links_sassy-social-share/sassy-social-share.php', array( $plugin_admin, 'add_links' ) );
157
-
158
- }
159
-
160
- /**
161
- * Register all of the hooks related to the front-end functionality of the plugin.
162
- *
163
- * @since 1.0.0
164
- */
165
- private function call_public_hooks() {
166
-
167
- // create object of public class to pass options
168
- $plugin_public = new Sassy_Social_Share_Public( $this->options, $this->version );
169
- $this->plugin_public = $plugin_public;
170
-
171
- // hook the plugin functions on 'init' event.
172
- add_action( 'init', array( $plugin_public, 'init' ) );
173
- // hooks to enable sharing interface
174
- add_filter( 'the_content', array( $plugin_public, 'render_sharing' ), 99 );
175
- add_filter( 'the_excerpt', array( $plugin_public, 'render_sharing' ), 99 );
176
- if ( isset( $this->options['bp_activity'] ) ) {
177
- add_action( 'bp_activity_entry_meta', array( $plugin_public, 'render_sharing' ), 999 );
178
- }
179
- if ( isset( $this->options['bp_group'] ) || isset( $this->options['vertical_bp_group'] ) ) {
180
- add_action( 'bp_before_group_header', array( $plugin_public, 'render_sharing' ) );
181
- }
182
- add_filter( 'bbp_get_reply_content', array( $plugin_public, 'render_sharing' ) );
183
- add_filter( 'bbp_template_before_single_forum', array( $plugin_public, 'render_sharing' ) );
184
- add_filter( 'bbp_template_before_single_topic', array( $plugin_public, 'render_sharing' ) );
185
- add_filter( 'bbp_template_before_lead_topic', array( $plugin_public, 'render_sharing' ) );
186
- add_filter( 'bbp_template_after_single_forum', array( $plugin_public, 'render_sharing' ) );
187
- add_filter( 'bbp_template_after_single_topic', array( $plugin_public, 'render_sharing' ) );
188
- add_filter( 'bbp_template_after_lead_topic', array( $plugin_public, 'render_sharing' ) );
189
- // Sharing at WooCommerce pages
190
- if ( isset( $this->options['woocom_shop'] ) ) {
191
- add_action( 'woocommerce_after_shop_loop_item', array( $plugin_public, 'render_sharing' ) );
192
- }
193
- if ( isset( $this->options['woocom_product'] ) ) {
194
- add_action( 'woocommerce_share', array( $plugin_public, 'render_sharing' ) );
195
- }
196
- if ( isset( $this->options['woocom_thankyou'] ) ) {
197
- add_action( 'woocommerce_thankyou', array( $plugin_public, 'render_sharing' ) );
198
- }
199
-
200
- // fetch share counts
201
- add_action( 'wp_ajax_heateor_sss_sharing_count', array( $plugin_public, 'fetch_share_counts' ) );
202
- add_action( 'wp_ajax_nopriv_heateor_sss_sharing_count', array( $plugin_public, 'fetch_share_counts' ) );
203
-
204
- // save Facebook share counts
205
- add_action( 'wp_ajax_heateor_sss_save_facebook_shares', array( $plugin_public, 'save_facebook_shares' ) );
206
- add_action( 'wp_ajax_nopriv_heateor_sss_save_facebook_shares', array( $plugin_public, 'save_facebook_shares' ) );
207
-
208
- if ( isset( $this->options['mycred_referral'] ) ) {
209
- add_filter( 'heateor_sss_target_share_url_filter', array( $plugin_public, 'append_mycred_referral_id' ), 10, 3 );
210
- }
211
-
212
- }
213
-
214
- /**
215
- * Define widgets
216
- *
217
- * @since 1.0.0
218
- */
219
- private function define_widgets() {
220
-
221
- // standard widget
222
- add_action( 'widgets_init', function() { return register_widget( "Sassy_Social_Share_Standard_Widget" ); } );
223
- // floating widget
224
- add_action( 'widgets_init', function() { return register_widget( "Sassy_Social_Share_Floating_Widget" ); } );
225
- // follow icons widget
226
- add_action( 'widgets_init', function() { return register_widget( "Sassy_Social_Share_Follow_Widget" ); } );
227
-
228
- }
229
-
230
- /**
231
- * Define shortcodes
232
- *
233
- * @since 1.0.0
234
- */
235
- private function define_shortcodes() {
236
-
237
- // create object of shortcode class
238
- $plugin_shortcodes = new Sassy_Social_Share_Shortcodes( $this->options, $this->plugin_public );
239
-
240
- // shortcode for sharing
241
- add_shortcode( 'Sassy_Social_Share', array( $plugin_shortcodes, 'sharing_shortcode' ) );
242
-
243
- // shortcode for follow icons
244
- add_shortcode( 'Sassy_Follow_Icons', array( $plugin_shortcodes, 'follow_icons_shortcode' ) );
245
-
246
-
247
- }
248
-
249
- /**
250
- * Returns the plugin slug
251
- *
252
- * @since 1.0.0
253
- * @return string The plugin slug.
254
- */
255
- public function get_plugin_slug() {
256
-
257
- return $this->plugin_slug;
258
-
259
- }
260
-
261
- /**
262
- * Retrieve the version number of the plugin
263
- *
264
- * @since 1.0.0
265
- * @return string The version number of the plugin.
266
- */
267
- public function get_version() {
268
-
269
- return $this->version;
270
-
271
- }
272
-
273
- }
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * The file that defines the core plugin class
5
+ *
6
+ * A class definition that includes attributes and functions used across both the
7
+ * public-facing side of the site and the admin area.
8
+ *
9
+ * @since 1.0.0
10
+ *
11
+ */
12
+
13
+ /**
14
+ * The core plugin class.
15
+ *
16
+ * This is used to define hooks.
17
+ *
18
+ * Also maintains the unique identifier of this plugin as well as the current
19
+ * version of the plugin.
20
+ *
21
+ * @since 1.0.0
22
+ */
23
+ class Sassy_Social_Share {
24
+
25
+ /**
26
+ * The unique identifier of this plugin.
27
+ *
28
+ * @since 1.0.0
29
+ */
30
+ protected $plugin_slug;
31
+
32
+ /**
33
+ * Current version of the plugin.
34
+ *
35
+ * @since 1.0.0
36
+ */
37
+ protected $version;
38
+
39
+ /**
40
+ * Options saved in database.
41
+ *
42
+ * @since 1.0.0
43
+ */
44
+ public $options;
45
+
46
+ /**
47
+ * Member to assign object of Sassy_Social_Share_Public Class.
48
+ *
49
+ * @since 1.0.0
50
+ */
51
+ public $plugin_public;
52
+
53
+ /**
54
+ * Define the core functionality of the plugin.
55
+ *
56
+ * @since 1.0.0
57
+ */
58
+ public function __construct( $version ) {
59
+
60
+ $this->plugin_slug = 'sassy-social-share';
61
+ $this->version = $version;
62
+ $this->options = get_option( 'heateor_sss' );
63
+
64
+ $this->load_dependencies();
65
+ $this->set_locale();
66
+ $this->call_admin_hooks();
67
+ $this->call_public_hooks();
68
+
69
+ $this->define_shortcodes();
70
+ $this->define_widgets();
71
+
72
+ }
73
+
74
+ /**
75
+ * Load the required dependencies for this plugin.
76
+ *
77
+ * @since 1.0.0
78
+ */
79
+ private function load_dependencies() {
80
+
81
+ /**
82
+ * The class responsible for defining all functions for the functionality that occur in the admin area.
83
+ */
84
+ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-sassy-social-share-admin.php';
85
+
86
+ /**
87
+ * The class responsible for defining all functions for the functionality that occur at front-end of website.
88
+ */
89
+ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-sassy-social-share-public.php';
90
+
91
+ /**
92
+ * The class responsible for defining all functions for widgets.
93
+ */
94
+ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-sassy-social-share-widgets.php';
95
+
96
+ /**
97
+ * The class responsible for defining all shortcode functions.
98
+ */
99
+ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-sassy-social-share-shortcodes.php';
100
+
101
+ /**
102
+ * The class responsible for defining sharing networks and their sharer urls.
103
+ */
104
+ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-sassy-social-share-sharing-networks.php';
105
+
106
+ }
107
+
108
+ /**
109
+ * Define the locale for this plugin for internationalization.
110
+ *
111
+ * @since 1.0.0
112
+ */
113
+ private function set_locale() {
114
+
115
+ load_plugin_textdomain( 'sassy-social-share', false, plugin_dir_path( dirname( __FILE__ ) ) . '/languages/' );
116
+
117
+ }
118
+
119
+ /**
120
+ * Register all of the hooks related to the admin area functionality of the plugin
121
+ *
122
+ * @since 1.0.0
123
+ */
124
+ private function call_admin_hooks() {
125
+
126
+ // create object of admin class to pass options
127
+ $plugin_admin = new Sassy_Social_Share_Admin( $this->options, $this->version );
128
+ // hook to upate plugin db/options based on version
129
+ add_action( 'plugins_loaded', array( $plugin_admin, 'update_db_check' ) );
130
+ // save GDPR notification flag in DB
131
+ add_action( 'wp_ajax_heateor_sss_gdpr_notification_read', array( $plugin_admin, 'gdpr_notification_read' ) );
132
+ // save Twitter share count notification flag in DB
133
+ add_action( 'wp_ajax_heateor_sss_twitter_share_notification_read', array( $plugin_admin, 'twitter_share_notification_read' ) );
134
+ // save Twitcount notification flag in DB
135
+ add_action( 'wp_ajax_heateor_sss_twitcount_notification_read', array( $plugin_admin, 'twitcount_notification_read' ) );
136
+ // ajax function to export plugin configuration
137
+ add_action( 'wp_ajax_heateor_sss_export_config', array( $plugin_admin, 'export_config' ) );
138
+ // ajax function to import plugin configuration
139
+ add_action( 'wp_ajax_heateor_sss_import_config', array( $plugin_admin, 'import_config' ) );
140
+ // create admin menu
141
+ add_action( 'admin_menu', array( $plugin_admin, 'create_admin_menu' ) );
142
+ // set sanitization callback for plugin options
143
+ add_action( 'admin_init', array( $plugin_admin, 'options_init' ) );
144
+ // check if BuddyPress is active
145
+ add_action( 'bp_include', array( $plugin_admin, 'is_bp_loaded' ) );
146
+ // if multisite is enabled and this is the main website
147
+ if ( is_multisite() && is_main_site() ) {
148
+ // replicate the options to the new blog created
149
+ add_action( 'wpmu_new_blog', array( $plugin_admin, 'replicate_settings' ) );
150
+ // update the options in all the old blogs
151
+ add_action( 'update_option_heateor_sss', array( $plugin_admin, 'update_old_blogs' ) );
152
+ }
153
+ // ajax function to clear bitly short url cache
154
+ add_action( 'wp_ajax_heateor_sss_clear_shorturl_cache', array( $plugin_admin, 'clear_shorturl_cache' ) );
155
+ // ajax function to clear share counts cache
156
+ add_action( 'wp_ajax_heateor_sss_clear_share_count_cache', array( $plugin_admin, 'clear_share_count_cache' ) );
157
+ // show notices
158
+ add_action( 'admin_notices', array( $plugin_admin, 'show_notices' ) );
159
+ // add links to settings, add-ons etc. to show at "Plugins" page
160
+ add_filter( 'plugin_action_links_sassy-social-share/sassy-social-share.php', array( $plugin_admin, 'add_links' ) );
161
+
162
+ }
163
+
164
+ /**
165
+ * Register all of the hooks related to the front-end functionality of the plugin.
166
+ *
167
+ * @since 1.0.0
168
+ */
169
+ private function call_public_hooks() {
170
+
171
+ // create object of public class to pass options
172
+ $plugin_public = new Sassy_Social_Share_Public( $this->options, $this->version );
173
+ $this->plugin_public = $plugin_public;
174
+
175
+ // hook the plugin functions on 'init' event.
176
+ add_action( 'init', array( $plugin_public, 'init' ) );
177
+ // hooks to enable sharing interface
178
+ add_filter( 'the_content', array( $plugin_public, 'render_sharing' ), 99 );
179
+ add_filter( 'the_excerpt', array( $plugin_public, 'render_sharing' ), 99 );
180
+ if ( isset( $this->options['bp_activity'] ) ) {
181
+ add_action( 'bp_activity_entry_meta', array( $plugin_public, 'render_sharing' ), 999 );
182
+ }
183
+ if ( isset( $this->options['bp_group'] ) || isset( $this->options['vertical_bp_group'] ) ) {
184
+ add_action( 'bp_before_group_header', array( $plugin_public, 'render_sharing' ) );
185
+ }
186
+ add_filter( 'bbp_get_reply_content', array( $plugin_public, 'render_sharing' ) );
187
+ add_filter( 'bbp_template_before_single_forum', array( $plugin_public, 'render_sharing' ) );
188
+ add_filter( 'bbp_template_before_single_topic', array( $plugin_public, 'render_sharing' ) );
189
+ add_filter( 'bbp_template_before_lead_topic', array( $plugin_public, 'render_sharing' ) );
190
+ add_filter( 'bbp_template_after_single_forum', array( $plugin_public, 'render_sharing' ) );
191
+ add_filter( 'bbp_template_after_single_topic', array( $plugin_public, 'render_sharing' ) );
192
+ add_filter( 'bbp_template_after_lead_topic', array( $plugin_public, 'render_sharing' ) );
193
+ // Sharing at WooCommerce pages
194
+ if ( isset( $this->options['woocom_shop'] ) ) {
195
+ add_action( 'woocommerce_after_shop_loop_item', array( $plugin_public, 'render_sharing' ) );
196
+ }
197
+ if ( isset( $this->options['woocom_product'] ) ) {
198
+ add_action( 'woocommerce_share', array( $plugin_public, 'render_sharing' ) );
199
+ }
200
+ if ( isset( $this->options['woocom_thankyou'] ) ) {
201
+ add_action( 'woocommerce_thankyou', array( $plugin_public, 'render_sharing' ) );
202
+ }
203
+
204
+ // fetch share counts
205
+ add_action( 'wp_ajax_heateor_sss_sharing_count', array( $plugin_public, 'fetch_share_counts' ) );
206
+ add_action( 'wp_ajax_nopriv_heateor_sss_sharing_count', array( $plugin_public, 'fetch_share_counts' ) );
207
+
208
+ // save Facebook share counts
209
+ add_action( 'wp_ajax_heateor_sss_save_facebook_shares', array( $plugin_public, 'save_facebook_shares' ) );
210
+ add_action( 'wp_ajax_nopriv_heateor_sss_save_facebook_shares', array( $plugin_public, 'save_facebook_shares' ) );
211
+
212
+ if ( isset( $this->options['mycred_referral'] ) ) {
213
+ add_filter( 'heateor_sss_target_share_url_filter', array( $plugin_public, 'append_mycred_referral_id' ), 10, 3 );
214
+ }
215
+
216
+ }
217
+
218
+ /**
219
+ * Define widgets
220
+ *
221
+ * @since 1.0.0
222
+ */
223
+ private function define_widgets() {
224
+
225
+ // standard widget
226
+ add_action( 'widgets_init', function() { return register_widget( "Sassy_Social_Share_Standard_Widget" ); } );
227
+ // floating widget
228
+ add_action( 'widgets_init', function() { return register_widget( "Sassy_Social_Share_Floating_Widget" ); } );
229
+ // follow icons widget
230
+ add_action( 'widgets_init', function() { return register_widget( "Sassy_Social_Share_Follow_Widget" ); } );
231
+
232
+ }
233
+
234
+ /**
235
+ * Define shortcodes
236
+ *
237
+ * @since 1.0.0
238
+ */
239
+ private function define_shortcodes() {
240
+
241
+ // create object of shortcode class
242
+ $plugin_shortcodes = new Sassy_Social_Share_Shortcodes( $this->options, $this->plugin_public );
243
+
244
+ // shortcode for sharing
245
+ add_shortcode( 'Sassy_Social_Share', array( $plugin_shortcodes, 'sharing_shortcode' ) );
246
+
247
+ // shortcode for follow icons
248
+ add_shortcode( 'Sassy_Follow_Icons', array( $plugin_shortcodes, 'follow_icons_shortcode' ) );
249
+
250
+
251
+ }
252
+
253
+ /**
254
+ * Returns the plugin slug
255
+ *
256
+ * @since 1.0.0
257
+ * @return string The plugin slug.
258
+ */
259
+ public function get_plugin_slug() {
260
+
261
+ return $this->plugin_slug;
262
+
263
+ }
264
+
265
+ /**
266
+ * Retrieve the version number of the plugin
267
+ *
268
+ * @since 1.0.0
269
+ * @return string The version number of the plugin.
270
+ */
271
+ public function get_version() {
272
+
273
+ return $this->version;
274
+
275
+ }
276
+
277
+ }
languages/sassy-social-share.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Sassy Social Share\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2021-07-14 12:25+0530\n"
7
  "PO-Revision-Date: 2021-02-03 13:11+0530\n"
8
  "Last-Translator: Heateor <hello@heateor.com>\n"
9
  "Language-Team: Heateor <hello@heateor.com>\n"
@@ -61,35 +61,35 @@ msgstr "Iniciando contagem compartilhada para "
61
  msgid "Floating sharing"
62
  msgstr "Interface de Compartilhamento Flutuante"
63
 
64
- #: admin/class-sassy-social-share-admin.php:409
65
  msgid "Click to toggle help"
66
  msgstr ""
67
 
68
- #: admin/class-sassy-social-share-admin.php:442
69
  #, fuzzy
70
  msgid "Settings saved"
71
  msgstr "Configurações salvas"
72
 
73
- #: admin/class-sassy-social-share-admin.php:442
74
  #, fuzzy
75
  msgid "Dismiss this notice"
76
  msgstr "Dispense este aviso"
77
 
78
- #: admin/class-sassy-social-share-admin.php:539
79
  msgid "Thanks for installing Sassy Social Share plugin"
80
  msgstr ""
81
 
82
- #: admin/class-sassy-social-share-admin.php:541
83
  msgid "Configure the Plugin"
84
  msgstr ""
85
 
86
- #: admin/class-sassy-social-share-admin.php:552
87
  msgid ""
88
  "Update \"Social Share myCRED Integration\" add-on for maximum compatibility "
89
  "with current version of Sassy Social Share"
90
  msgstr ""
91
 
92
- #: admin/class-sassy-social-share-admin.php:576
93
  #, php-format
94
  msgid ""
95
  "This plugin is GDPR compliant. You need to update the privacy policy of your "
@@ -97,13 +97,13 @@ msgid ""
97
  "\"%s\" target=\"_blank\">here</a>"
98
  msgstr ""
99
 
100
- #: admin/class-sassy-social-share-admin.php:576
101
- #: admin/class-sassy-social-share-admin.php:602
102
- #: admin/class-sassy-social-share-admin.php:625
103
  msgid "Okay"
104
  msgstr ""
105
 
106
- #: admin/class-sassy-social-share-admin.php:602
107
  #, php-format
108
  msgid ""
109
  "Twitter share counts are no longer working as newsharecounts.com is down. To "
@@ -111,7 +111,7 @@ msgid ""
111
  "\"_blank\">here</a> with this domain. No other steps needed."
112
  msgstr ""
113
 
114
- #: admin/class-sassy-social-share-admin.php:625
115
  #, php-format
116
  msgid ""
117
  "Now plugin supports a new service Twitcount.com to show Twitter shares. To "
@@ -120,15 +120,15 @@ msgid ""
120
  "your website %s with them. No need to copy-paste any code from their website."
121
  msgstr ""
122
 
123
- #: admin/class-sassy-social-share-admin.php:643
124
  msgid "Add-Ons"
125
  msgstr ""
126
 
127
- #: admin/class-sassy-social-share-admin.php:644
128
  msgid "Support Documentation"
129
  msgstr ""
130
 
131
- #: admin/class-sassy-social-share-admin.php:645
132
  #, fuzzy
133
  msgid "Settings"
134
  msgstr "Configurações"
@@ -216,7 +216,7 @@ msgid "Rate 5-star"
216
  msgstr "Pontue como 5-strelas"
217
 
218
  #: admin/partials/sassy-social-share-options-page.php:16
219
- #: admin/partials/sassy-social-share-options-page.php:2151
220
  #, php-format
221
  msgid ""
222
  "You can appreciate the effort put in this free plugin by rating it <a href="
@@ -249,7 +249,7 @@ msgid "3rd Party Integration"
249
  msgstr ""
250
 
251
  #: admin/partials/sassy-social-share-options-page.php:35
252
- #: admin/partials/sassy-social-share-options-page.php:2073
253
  #, fuzzy
254
  msgid "Shortcode & Widget"
255
  msgstr "Shortcode & Widget"
@@ -260,7 +260,7 @@ msgid "Troubleshooter"
260
  msgstr "Resolução de Problemas"
261
 
262
  #: admin/partials/sassy-social-share-options-page.php:37
263
- #: admin/partials/sassy-social-share-options-page.php:2108
264
  #, fuzzy
265
  msgid "FAQ"
266
  msgstr "P&R"
@@ -1207,52 +1207,77 @@ msgid "Buffer username (without @)"
1207
  msgstr "Username do Buffer (sem @)"
1208
 
1209
  #: admin/partials/sassy-social-share-options-page.php:1983
1210
- msgid "AMP"
1211
  msgstr ""
1212
 
1213
  #: admin/partials/sassy-social-share-options-page.php:1988
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1214
  msgid "Enable sharing on AMP pages"
1215
  msgstr ""
1216
 
1217
- #: admin/partials/sassy-social-share-options-page.php:1999
1218
  msgid "Enable this option to render sharing icons on AMP pages"
1219
  msgstr ""
1220
 
1221
- #: admin/partials/sassy-social-share-options-page.php:2008
1222
- #: admin/partials/sassy-social-share-options-page.php:2013
1223
  #, fuzzy
1224
  msgid "Custom CSS"
1225
  msgstr "CSS Personalizado"
1226
 
1227
- #: admin/partials/sassy-social-share-options-page.php:2024
1228
  #, fuzzy
1229
  msgid "You can specify any additional CSS rules (without &lt;style&gt; tag)"
1230
  msgstr ""
1231
  "Você poderá especificar qualquer regra adicional de CSS (sem a tag &lt;"
1232
  "style&gt; )"
1233
 
1234
- #: admin/partials/sassy-social-share-options-page.php:2047
1235
  msgid "myCRED"
1236
  msgstr ""
1237
 
1238
- #: admin/partials/sassy-social-share-options-page.php:2052
1239
  msgid "Append myCRED referral ID to the urls being shared"
1240
  msgstr ""
1241
 
1242
- #: admin/partials/sassy-social-share-options-page.php:2075
1243
  msgid "Social Share Shortcode & Widget"
1244
  msgstr ""
1245
 
1246
- #: admin/partials/sassy-social-share-options-page.php:2076
1247
  msgid "Follow Icons Shortcode & Widget"
1248
  msgstr ""
1249
 
1250
- #: admin/partials/sassy-social-share-options-page.php:2088
1251
  #, fuzzy
1252
  msgid "Facebook Sharing Troubleshooter"
1253
  msgstr "Solução de problema no compartilhamento com o Facebook"
1254
 
1255
- #: admin/partials/sassy-social-share-options-page.php:2093
1256
  msgid ""
1257
  "If Facebook sharing is not working fine, click at the following link and "
1258
  "enter the problematic url (where Facebook sharing is not working properly) "
@@ -1260,23 +1285,23 @@ msgid ""
1260
  "button."
1261
  msgstr ""
1262
 
1263
- #: admin/partials/sassy-social-share-options-page.php:2110
1264
  msgid ""
1265
  "<strong>Note:</strong> Plugin will not work on local server. You should have "
1266
  "an online website for the plugin to function properly."
1267
  msgstr ""
1268
 
1269
- #: admin/partials/sassy-social-share-options-page.php:2111
1270
  msgid ""
1271
  "Why is sharer not showing the correct image, title and other content when "
1272
  "sharing a webpage?"
1273
  msgstr ""
1274
 
1275
- #: admin/partials/sassy-social-share-options-page.php:2112
1276
  msgid "Why is Facebook share count not working?"
1277
  msgstr ""
1278
 
1279
- #: admin/partials/sassy-social-share-options-page.php:2113
1280
  #, php-format
1281
  msgid ""
1282
  "After the recent changes introduced in the Facebook graph API, it's not "
@@ -1286,15 +1311,15 @@ msgid ""
1286
  "Premium versions can be found at the <a href='%s' target='_blank'>link</a>"
1287
  msgstr ""
1288
 
1289
- #: admin/partials/sassy-social-share-options-page.php:2114
1290
  msgid "How to Customize the Url being Shared?"
1291
  msgstr ""
1292
 
1293
- #: admin/partials/sassy-social-share-options-page.php:2115
1294
  msgid "Why is Instagram icon redirecting to Instagram website?"
1295
  msgstr ""
1296
 
1297
- #: admin/partials/sassy-social-share-options-page.php:2116
1298
  msgid ""
1299
  "Instagram icon is there to send website visitors to the Instagram page of "
1300
  "your choice. You can save the desired Instagram handle in \"Instagram "
@@ -1302,48 +1327,48 @@ msgid ""
1302
  "sections."
1303
  msgstr ""
1304
 
1305
- #: admin/partials/sassy-social-share-options-page.php:2118
1306
  msgid ""
1307
  "Why are Twitter shares not appearing even after registering at Twitcount.com?"
1308
  msgstr ""
1309
 
1310
- #: admin/partials/sassy-social-share-options-page.php:2119
1311
  msgid ""
1312
  "It takes some time for their service to track the shares made on Twitter "
1313
  "from your website. If you still feel it's taking too long you can contact "
1314
  "their support directly from their website."
1315
  msgstr ""
1316
 
1317
- #: admin/partials/sassy-social-share-options-page.php:2121
1318
  msgid ""
1319
  "How to restore Social Share counts lost after moving my website to SSL/Https?"
1320
  msgstr ""
1321
 
1322
- #: admin/partials/sassy-social-share-options-page.php:2122
1323
  #, fuzzy
1324
  msgid "How to integrate Google Analytics with sharing?"
1325
  msgstr "Como integrar o Google Analytics com compartilhamento?"
1326
 
1327
- #: admin/partials/sassy-social-share-options-page.php:2123
1328
  msgid "Why the color of share icons is not being updated?"
1329
  msgstr ""
1330
 
1331
- #: admin/partials/sassy-social-share-options-page.php:2124
1332
  msgid ""
1333
  "How to show recent Facebook Comments from all over the website in a widget?"
1334
  msgstr ""
1335
 
1336
- #: admin/partials/sassy-social-share-options-page.php:2125
1337
  msgid ""
1338
  "How to recover the Facebook Comments lost after moving my website to SSL/"
1339
  "Https?"
1340
  msgstr ""
1341
 
1342
- #: admin/partials/sassy-social-share-options-page.php:2126
1343
  msgid "How to Place Title and Social Share Icons in the Same Row?"
1344
  msgstr ""
1345
 
1346
- #: admin/partials/sassy-social-share-options-page.php:2127
1347
  #, fuzzy
1348
  msgid ""
1349
  "How can I show share counts of my website rather than of individual pages/"
@@ -1352,64 +1377,64 @@ msgstr ""
1352
  "Como posso exibir os contadores de compartilhamento do meu website ao invés "
1353
  "das páginas/posts individuais?"
1354
 
1355
- #: admin/partials/sassy-social-share-options-page.php:2128
1356
  #, fuzzy
1357
  msgid "How can I disable sharing on particular page/post?"
1358
  msgstr ""
1359
  "Como posso desabilitar o compartilhamento em uma página/post em particular?"
1360
 
1361
- #: admin/partials/sassy-social-share-options-page.php:2129
1362
  #, fuzzy
1363
  msgid "How can I specify minimum sharing count for sharing networks?"
1364
  msgstr ""
1365
  "Como posso especificar um contador mínimo de compartilhamento das redes "
1366
  "sociais?"
1367
 
1368
- #: admin/partials/sassy-social-share-options-page.php:2130
1369
  #, fuzzy
1370
  msgid "How to share specific page?"
1371
  msgstr "Como compartilhar página específica?"
1372
 
1373
- #: admin/partials/sassy-social-share-options-page.php:2131
1374
  #, fuzzy
1375
  msgid "How to customize the look of total share counts?"
1376
  msgstr ""
1377
  "Como personalizar a aparência dos contatores de compartilhamentos totais?"
1378
 
1379
- #: admin/partials/sassy-social-share-options-page.php:2132
1380
  #, fuzzy
1381
  msgid "How to customize the look of individual share counts?"
1382
  msgstr ""
1383
  "Como personalizar a aparência dos contadores de compartilhamento individuais?"
1384
 
1385
- #: admin/partials/sassy-social-share-options-page.php:2133
1386
  #, fuzzy
1387
  msgid "How to show Whatsapp icon only on mobile devices?"
1388
  msgstr "Como exibir o ícone do Whatsapp apenas em dispositivos móveis?"
1389
 
1390
- #: admin/partials/sassy-social-share-options-page.php:2134
1391
  #, fuzzy
1392
  msgid "How to hide arrow after floating sharing bar?"
1393
  msgstr "Como esconder a seta após a barra de compartilahmento flutuante?"
1394
 
1395
- #: admin/partials/sassy-social-share-options-page.php:2135
1396
  msgid "Why is share count not getting updated?"
1397
  msgstr ""
1398
 
1399
- #: admin/partials/sassy-social-share-options-page.php:2136
1400
  msgid "Why is there so much space between like buttons?"
1401
  msgstr ""
1402
 
1403
- #: admin/partials/sassy-social-share-options-page.php:2137
1404
  msgid "Why are floating sharing/like buttons not appearing at homepage?"
1405
  msgstr ""
1406
 
1407
- #: admin/partials/sassy-social-share-options-page.php:2147
1408
  #, fuzzy
1409
  msgid "Save Changes"
1410
  msgstr "Salvar Alterações"
1411
 
1412
- #: admin/partials/sassy-social-share-options-page.php:2159
1413
  msgid ""
1414
  "If you can send (to hello@heateor.com) how this plugin is helping your "
1415
  "business, we would be glad to shoutout on Instagram. You can also send any "
3
  msgstr ""
4
  "Project-Id-Version: Sassy Social Share\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2021-07-29 16:06+0530\n"
7
  "PO-Revision-Date: 2021-02-03 13:11+0530\n"
8
  "Last-Translator: Heateor <hello@heateor.com>\n"
9
  "Language-Team: Heateor <hello@heateor.com>\n"
61
  msgid "Floating sharing"
62
  msgstr "Interface de Compartilhamento Flutuante"
63
 
64
+ #: admin/class-sassy-social-share-admin.php:410
65
  msgid "Click to toggle help"
66
  msgstr ""
67
 
68
+ #: admin/class-sassy-social-share-admin.php:483
69
  #, fuzzy
70
  msgid "Settings saved"
71
  msgstr "Configurações salvas"
72
 
73
+ #: admin/class-sassy-social-share-admin.php:483
74
  #, fuzzy
75
  msgid "Dismiss this notice"
76
  msgstr "Dispense este aviso"
77
 
78
+ #: admin/class-sassy-social-share-admin.php:580
79
  msgid "Thanks for installing Sassy Social Share plugin"
80
  msgstr ""
81
 
82
+ #: admin/class-sassy-social-share-admin.php:582
83
  msgid "Configure the Plugin"
84
  msgstr ""
85
 
86
+ #: admin/class-sassy-social-share-admin.php:593
87
  msgid ""
88
  "Update \"Social Share myCRED Integration\" add-on for maximum compatibility "
89
  "with current version of Sassy Social Share"
90
  msgstr ""
91
 
92
+ #: admin/class-sassy-social-share-admin.php:617
93
  #, php-format
94
  msgid ""
95
  "This plugin is GDPR compliant. You need to update the privacy policy of your "
97
  "\"%s\" target=\"_blank\">here</a>"
98
  msgstr ""
99
 
100
+ #: admin/class-sassy-social-share-admin.php:617
101
+ #: admin/class-sassy-social-share-admin.php:643
102
+ #: admin/class-sassy-social-share-admin.php:666
103
  msgid "Okay"
104
  msgstr ""
105
 
106
+ #: admin/class-sassy-social-share-admin.php:643
107
  #, php-format
108
  msgid ""
109
  "Twitter share counts are no longer working as newsharecounts.com is down. To "
111
  "\"_blank\">here</a> with this domain. No other steps needed."
112
  msgstr ""
113
 
114
+ #: admin/class-sassy-social-share-admin.php:666
115
  #, php-format
116
  msgid ""
117
  "Now plugin supports a new service Twitcount.com to show Twitter shares. To "
120
  "your website %s with them. No need to copy-paste any code from their website."
121
  msgstr ""
122
 
123
+ #: admin/class-sassy-social-share-admin.php:684
124
  msgid "Add-Ons"
125
  msgstr ""
126
 
127
+ #: admin/class-sassy-social-share-admin.php:685
128
  msgid "Support Documentation"
129
  msgstr ""
130
 
131
+ #: admin/class-sassy-social-share-admin.php:686
132
  #, fuzzy
133
  msgid "Settings"
134
  msgstr "Configurações"
216
  msgstr "Pontue como 5-strelas"
217
 
218
  #: admin/partials/sassy-social-share-options-page.php:16
219
+ #: admin/partials/sassy-social-share-options-page.php:2208
220
  #, php-format
221
  msgid ""
222
  "You can appreciate the effort put in this free plugin by rating it <a href="
249
  msgstr ""
250
 
251
  #: admin/partials/sassy-social-share-options-page.php:35
252
+ #: admin/partials/sassy-social-share-options-page.php:2130
253
  #, fuzzy
254
  msgid "Shortcode & Widget"
255
  msgstr "Shortcode & Widget"
260
  msgstr "Resolução de Problemas"
261
 
262
  #: admin/partials/sassy-social-share-options-page.php:37
263
+ #: admin/partials/sassy-social-share-options-page.php:2165
264
  #, fuzzy
265
  msgid "FAQ"
266
  msgstr "P&R"
1207
  msgstr "Username do Buffer (sem @)"
1208
 
1209
  #: admin/partials/sassy-social-share-options-page.php:1983
1210
+ msgid "Export/Import configuration"
1211
  msgstr ""
1212
 
1213
  #: admin/partials/sassy-social-share-options-page.php:1988
1214
+ msgid "Export Configuration"
1215
+ msgstr ""
1216
+
1217
+ #: admin/partials/sassy-social-share-options-page.php:1998
1218
+ msgid ""
1219
+ "Click this button to get the configuration of plugin at this website in the "
1220
+ "textbox below to export to some other website"
1221
+ msgstr ""
1222
+
1223
+ #: admin/partials/sassy-social-share-options-page.php:2011
1224
+ #: admin/partials/sassy-social-share-options-page.php:2028
1225
+ msgid "Import Configuration"
1226
+ msgstr ""
1227
+
1228
+ #: admin/partials/sassy-social-share-options-page.php:2019
1229
+ msgid ""
1230
+ "Paste the plugin-configuration you want to import to this website in the "
1231
+ "textbox given below and click Import Configuration button"
1232
+ msgstr ""
1233
+
1234
+ #: admin/partials/sassy-social-share-options-page.php:2040
1235
+ msgid "AMP"
1236
+ msgstr ""
1237
+
1238
+ #: admin/partials/sassy-social-share-options-page.php:2045
1239
  msgid "Enable sharing on AMP pages"
1240
  msgstr ""
1241
 
1242
+ #: admin/partials/sassy-social-share-options-page.php:2056
1243
  msgid "Enable this option to render sharing icons on AMP pages"
1244
  msgstr ""
1245
 
1246
+ #: admin/partials/sassy-social-share-options-page.php:2065
1247
+ #: admin/partials/sassy-social-share-options-page.php:2070
1248
  #, fuzzy
1249
  msgid "Custom CSS"
1250
  msgstr "CSS Personalizado"
1251
 
1252
+ #: admin/partials/sassy-social-share-options-page.php:2081
1253
  #, fuzzy
1254
  msgid "You can specify any additional CSS rules (without &lt;style&gt; tag)"
1255
  msgstr ""
1256
  "Você poderá especificar qualquer regra adicional de CSS (sem a tag &lt;"
1257
  "style&gt; )"
1258
 
1259
+ #: admin/partials/sassy-social-share-options-page.php:2104
1260
  msgid "myCRED"
1261
  msgstr ""
1262
 
1263
+ #: admin/partials/sassy-social-share-options-page.php:2109
1264
  msgid "Append myCRED referral ID to the urls being shared"
1265
  msgstr ""
1266
 
1267
+ #: admin/partials/sassy-social-share-options-page.php:2132
1268
  msgid "Social Share Shortcode & Widget"
1269
  msgstr ""
1270
 
1271
+ #: admin/partials/sassy-social-share-options-page.php:2133
1272
  msgid "Follow Icons Shortcode & Widget"
1273
  msgstr ""
1274
 
1275
+ #: admin/partials/sassy-social-share-options-page.php:2145
1276
  #, fuzzy
1277
  msgid "Facebook Sharing Troubleshooter"
1278
  msgstr "Solução de problema no compartilhamento com o Facebook"
1279
 
1280
+ #: admin/partials/sassy-social-share-options-page.php:2150
1281
  msgid ""
1282
  "If Facebook sharing is not working fine, click at the following link and "
1283
  "enter the problematic url (where Facebook sharing is not working properly) "
1285
  "button."
1286
  msgstr ""
1287
 
1288
+ #: admin/partials/sassy-social-share-options-page.php:2167
1289
  msgid ""
1290
  "<strong>Note:</strong> Plugin will not work on local server. You should have "
1291
  "an online website for the plugin to function properly."
1292
  msgstr ""
1293
 
1294
+ #: admin/partials/sassy-social-share-options-page.php:2168
1295
  msgid ""
1296
  "Why is sharer not showing the correct image, title and other content when "
1297
  "sharing a webpage?"
1298
  msgstr ""
1299
 
1300
+ #: admin/partials/sassy-social-share-options-page.php:2169
1301
  msgid "Why is Facebook share count not working?"
1302
  msgstr ""
1303
 
1304
+ #: admin/partials/sassy-social-share-options-page.php:2170
1305
  #, php-format
1306
  msgid ""
1307
  "After the recent changes introduced in the Facebook graph API, it's not "
1311
  "Premium versions can be found at the <a href='%s' target='_blank'>link</a>"
1312
  msgstr ""
1313
 
1314
+ #: admin/partials/sassy-social-share-options-page.php:2171
1315
  msgid "How to Customize the Url being Shared?"
1316
  msgstr ""
1317
 
1318
+ #: admin/partials/sassy-social-share-options-page.php:2172
1319
  msgid "Why is Instagram icon redirecting to Instagram website?"
1320
  msgstr ""
1321
 
1322
+ #: admin/partials/sassy-social-share-options-page.php:2173
1323
  msgid ""
1324
  "Instagram icon is there to send website visitors to the Instagram page of "
1325
  "your choice. You can save the desired Instagram handle in \"Instagram "
1327
  "sections."
1328
  msgstr ""
1329
 
1330
+ #: admin/partials/sassy-social-share-options-page.php:2175
1331
  msgid ""
1332
  "Why are Twitter shares not appearing even after registering at Twitcount.com?"
1333
  msgstr ""
1334
 
1335
+ #: admin/partials/sassy-social-share-options-page.php:2176
1336
  msgid ""
1337
  "It takes some time for their service to track the shares made on Twitter "
1338
  "from your website. If you still feel it's taking too long you can contact "
1339
  "their support directly from their website."
1340
  msgstr ""
1341
 
1342
+ #: admin/partials/sassy-social-share-options-page.php:2178
1343
  msgid ""
1344
  "How to restore Social Share counts lost after moving my website to SSL/Https?"
1345
  msgstr ""
1346
 
1347
+ #: admin/partials/sassy-social-share-options-page.php:2179
1348
  #, fuzzy
1349
  msgid "How to integrate Google Analytics with sharing?"
1350
  msgstr "Como integrar o Google Analytics com compartilhamento?"
1351
 
1352
+ #: admin/partials/sassy-social-share-options-page.php:2180
1353
  msgid "Why the color of share icons is not being updated?"
1354
  msgstr ""
1355
 
1356
+ #: admin/partials/sassy-social-share-options-page.php:2181
1357
  msgid ""
1358
  "How to show recent Facebook Comments from all over the website in a widget?"
1359
  msgstr ""
1360
 
1361
+ #: admin/partials/sassy-social-share-options-page.php:2182
1362
  msgid ""
1363
  "How to recover the Facebook Comments lost after moving my website to SSL/"
1364
  "Https?"
1365
  msgstr ""
1366
 
1367
+ #: admin/partials/sassy-social-share-options-page.php:2183
1368
  msgid "How to Place Title and Social Share Icons in the Same Row?"
1369
  msgstr ""
1370
 
1371
+ #: admin/partials/sassy-social-share-options-page.php:2184
1372
  #, fuzzy
1373
  msgid ""
1374
  "How can I show share counts of my website rather than of individual pages/"
1377
  "Como posso exibir os contadores de compartilhamento do meu website ao invés "
1378
  "das páginas/posts individuais?"
1379
 
1380
+ #: admin/partials/sassy-social-share-options-page.php:2185
1381
  #, fuzzy
1382
  msgid "How can I disable sharing on particular page/post?"
1383
  msgstr ""
1384
  "Como posso desabilitar o compartilhamento em uma página/post em particular?"
1385
 
1386
+ #: admin/partials/sassy-social-share-options-page.php:2186
1387
  #, fuzzy
1388
  msgid "How can I specify minimum sharing count for sharing networks?"
1389
  msgstr ""
1390
  "Como posso especificar um contador mínimo de compartilhamento das redes "
1391
  "sociais?"
1392
 
1393
+ #: admin/partials/sassy-social-share-options-page.php:2187
1394
  #, fuzzy
1395
  msgid "How to share specific page?"
1396
  msgstr "Como compartilhar página específica?"
1397
 
1398
+ #: admin/partials/sassy-social-share-options-page.php:2188
1399
  #, fuzzy
1400
  msgid "How to customize the look of total share counts?"
1401
  msgstr ""
1402
  "Como personalizar a aparência dos contatores de compartilhamentos totais?"
1403
 
1404
+ #: admin/partials/sassy-social-share-options-page.php:2189
1405
  #, fuzzy
1406
  msgid "How to customize the look of individual share counts?"
1407
  msgstr ""
1408
  "Como personalizar a aparência dos contadores de compartilhamento individuais?"
1409
 
1410
+ #: admin/partials/sassy-social-share-options-page.php:2190
1411
  #, fuzzy
1412
  msgid "How to show Whatsapp icon only on mobile devices?"
1413
  msgstr "Como exibir o ícone do Whatsapp apenas em dispositivos móveis?"
1414
 
1415
+ #: admin/partials/sassy-social-share-options-page.php:2191
1416
  #, fuzzy
1417
  msgid "How to hide arrow after floating sharing bar?"
1418
  msgstr "Como esconder a seta após a barra de compartilahmento flutuante?"
1419
 
1420
+ #: admin/partials/sassy-social-share-options-page.php:2192
1421
  msgid "Why is share count not getting updated?"
1422
  msgstr ""
1423
 
1424
+ #: admin/partials/sassy-social-share-options-page.php:2193
1425
  msgid "Why is there so much space between like buttons?"
1426
  msgstr ""
1427
 
1428
+ #: admin/partials/sassy-social-share-options-page.php:2194
1429
  msgid "Why are floating sharing/like buttons not appearing at homepage?"
1430
  msgstr ""
1431
 
1432
+ #: admin/partials/sassy-social-share-options-page.php:2204
1433
  #, fuzzy
1434
  msgid "Save Changes"
1435
  msgstr "Salvar Alterações"
1436
 
1437
+ #: admin/partials/sassy-social-share-options-page.php:2216
1438
  msgid ""
1439
  "If you can send (to hello@heateor.com) how this plugin is helping your "
1440
  "business, we would be glad to shoutout on Instagram. You can also send any "
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Heateor, jatin8heateor, farhan8heateor
3
  Donate link: https://www.heateor.com/donate/?action=Sassy+Social+Share
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, whatsapp share, line share, gab share, parler share
5
  Requires at least: 2.5.0
6
- Tested up to: 5.7.2
7
- Stable tag: 3.3.22
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, Whatsapp, Parler, Gab and over 100 more.
@@ -123,7 +123,10 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
123
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
124
 
125
  == Changelog ==
126
- = 3.3.22 [14 July 2021] =
 
 
 
127
  * [Improvement] Admin UI improvements
128
  * [Improvement] Performance improvement of Social Media Follow widget
129
 
@@ -1009,6 +1012,9 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
1009
  * [Improvement] Widgets enabled from the "Appearance > Widgets" page were causing PHP notices in some cases
1010
  * [Improvement] Compatible with PHP 8
1011
 
1012
- = 3.3.22 [14 July 2021] =
1013
  * [Improvement] Admin UI improvements
1014
- * [Improvement] Performance improvement of Social Media Follow widget
 
 
 
3
  Donate link: https://www.heateor.com/donate/?action=Sassy+Social+Share
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, whatsapp share, line share, gab share, parler share
5
  Requires at least: 2.5.0
6
+ Tested up to: 5.8
7
+ Stable tag: 3.3.23
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, Whatsapp, Parler, Gab and over 100 more.
123
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
124
 
125
  == Changelog ==
126
+ = 3.3.23 [29 July 2021] =
127
+ * [New] Added options to export and import plugin configuration
128
+
129
+ = 3.3.22 [13 July 2021] =
130
  * [Improvement] Admin UI improvements
131
  * [Improvement] Performance improvement of Social Media Follow widget
132
 
1012
  * [Improvement] Widgets enabled from the "Appearance > Widgets" page were causing PHP notices in some cases
1013
  * [Improvement] Compatible with PHP 8
1014
 
1015
+ = 3.3.22 [13 July 2021] =
1016
  * [Improvement] Admin UI improvements
1017
+ * [Improvement] Performance improvement of Social Media Follow widget
1018
+
1019
+ = 3.3.23 [29 July 2021] =
1020
+ * [New] Added options to export and import plugin configuration
sassy-social-share.php CHANGED
@@ -6,7 +6,7 @@
6
  * Plugin Name: Sassy Social Share
7
  * Plugin URI: https://www.heateor.com
8
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more
9
- * Version: 3.3.22
10
  * Author: Team Heateor
11
  * Author URI: https://www.heateor.com
12
  * Text Domain: sassy-social-share
@@ -20,7 +20,7 @@ if ( ! defined( 'WPINC' ) ) {
20
  die;
21
  }
22
 
23
- define( 'HEATEOR_SSS_VERSION', '3.3.22' );
24
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
25
 
26
  // plugin core class object
6
  * Plugin Name: Sassy Social Share
7
  * Plugin URI: https://www.heateor.com
8
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more
9
+ * Version: 3.3.23
10
  * Author: Team Heateor
11
  * Author URI: https://www.heateor.com
12
  * Text Domain: sassy-social-share
20
  die;
21
  }
22
 
23
+ define( 'HEATEOR_SSS_VERSION', '3.3.23' );
24
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
25
 
26
  // plugin core class object