WP Socializer - Version 6.0

Version Description

  • New: Brand new version with major improvements and new features.
  • New: Redesigned administration page and is now easy to use.
  • New: Plugin code is now 50% lighter and takes less footprint.
  • New: Shortcodes.
  • New: Mobile ready with new responsive options for different screen size.
  • New: Updated brand icon colors for Facebook, Twitter, Instagram and YouTube.
  • New: Mobile sharebar feature is merged with "Floating share bar".
  • New: App linking for platforms like WhatsApp and Facebook Messenger.
  • Fix: Share buttons widget has been removed since the availability of shortcodes.
  • Fix: Facebook share count not working.
  • Fix: Drop icon style design.
  • Fix: Deprecated features are removed.
  • Note: Old features like "share buttons" and "sharebar" are removed and replaced with "share icons" and "floating sharebar" features.
Download this release

Release Info

Developer vaakash
Plugin Icon 128x128 WP Socializer
Version 6.0
Comparing to
See all releases

Code changes from version 5.2.1 to 6.0

Files changed (140) hide show
  1. admin/admin.php +194 -494
  2. admin/buttons.php +0 -161
  3. admin/buttons_picker.php +0 -291
  4. admin/css/button_picker_preview.css +0 -117
  5. admin/css/sharebar_preview.css +0 -49
  6. admin/css/style.css +416 -772
  7. admin/css/style_setup.css +0 -475
  8. admin/css/style_widgets.css +37 -62
  9. admin/floating_sharebar.php +0 -309
  10. admin/followbar.php +0 -436
  11. admin/form.php +215 -0
  12. admin/general_settings.php +0 -89
  13. admin/{icons_editor.php → icons-editor.php} +4 -2
  14. admin/images/banners/facebook-widget.svg +1 -0
  15. admin/images/banners/floating-sharebar-2.svg +0 -1
  16. admin/images/banners/floating-sharebar.svg +1 -168
  17. admin/images/banners/follow-bar.svg +0 -117
  18. admin/images/banners/follow-icons-widget.svg +1 -0
  19. admin/images/banners/follow-icons.svg +1 -0
  20. admin/images/banners/followbar.png +0 -0
  21. admin/images/banners/import-export.png +0 -0
  22. admin/images/banners/import-export.svg +1 -0
  23. admin/images/banners/mobile-sharebar-big.png +0 -0
  24. admin/images/banners/mobile-sharebar.svg +0 -227
  25. admin/images/banners/settings.png +0 -0
  26. admin/images/banners/settings.svg +1 -0
  27. admin/images/banners/setup.png +0 -0
  28. admin/images/banners/share-buttons-big.png +0 -0
  29. admin/images/banners/share-buttons.svg +0 -251
  30. admin/images/banners/share-icons.svg +1 -0
  31. admin/images/banners/sharebar.png +0 -0
  32. admin/images/banners/shortcodes.svg +1 -0
  33. admin/images/banners/social-icons.svg +0 -1
  34. admin/images/banners/test.png +0 -0
  35. admin/images/banners/text-sharebar.svg +1 -164
  36. admin/images/banners/twitter-widget.svg +1 -0
  37. admin/images/banners/ufw.png +0 -0
  38. admin/images/banners/ultimate-floating-widgets.png +0 -0
  39. admin/images/banners/widgets-big.png +0 -0
  40. admin/images/banners/widgets.svg +0 -258
  41. admin/images/icons/add.png +0 -0
  42. admin/images/icons/anpn-thumb.svg +0 -1
  43. admin/images/icons/coffee.svg +0 -99
  44. admin/images/icons/donate.svg +0 -1
  45. admin/images/icons/facebook.png +0 -0
  46. admin/images/icons/google-plus.png +0 -0
  47. admin/images/icons/html.png +0 -0
  48. admin/images/icons/linkedin.png +0 -0
  49. admin/images/icons/pinterest.png +0 -0
  50. admin/images/icons/pocket.png +0 -0
  51. admin/images/icons/rate-wpsr.svg +0 -1
  52. admin/images/icons/reddit.png +0 -0
  53. admin/images/icons/share_counter.png +0 -0
  54. admin/images/icons/sharethis.png +0 -0
  55. admin/images/icons/shortcode.png +0 -0
  56. admin/images/icons/social_icons.png +0 -0
  57. admin/images/icons/stumbleupon.png +0 -0
  58. admin/images/icons/twitter.png +0 -0
  59. admin/images/select_images/desktop-mobile.png +0 -0
  60. admin/images/select_images/desktop.png +0 -0
  61. admin/images/select_images/mobile.png +0 -0
  62. admin/images/select_images/native-buttons-sb.png +0 -0
  63. admin/images/select_images/sb-horizontal.png +0 -0
  64. admin/images/select_images/sb-vertical.png +0 -0
  65. admin/images/select_images/shape-drop.svg +1 -1
  66. admin/images/select_images/social-icons-counter-sb.png +0 -0
  67. admin/images/select_images/social-icons-sb.png +0 -0
  68. admin/images/tips/btn-text-types.png +0 -0
  69. admin/images/tips/fb-types.png +0 -0
  70. admin/images/tips/googleplus-sizes.png +0 -0
  71. admin/images/tips/reddit-types.png +0 -0
  72. admin/images/tips/sb-types.png +0 -0
  73. admin/images/tips/stumbleupon-types.png +0 -0
  74. admin/images/tips/tsb-sizes.png +0 -0
  75. admin/images/widgets/facebook.png +0 -0
  76. admin/images/widgets/follow-me.png +0 -0
  77. admin/images/widgets/google-plus.png +0 -0
  78. admin/images/widgets/share-buttons.png +0 -0
  79. admin/images/widgets/twitter.png +0 -0
  80. admin/import_export.php +0 -80
  81. admin/js/script.js +49 -739
  82. admin/js/script_setup.js +0 -367
  83. admin/js/script_widgets.js +6 -27
  84. admin/js/setup/buttons.json +0 -108
  85. admin/js/setup/templates.json +0 -474
  86. admin/js/sharebar_preview.js +0 -35
  87. admin/js/tinymce.js +35 -0
  88. admin/js/trumbowyg/icons.svg +0 -1
  89. admin/js/trumbowyg/trumbowyg.min.css +0 -2
  90. admin/js/trumbowyg/trumbowyg.min.js +0 -2
  91. admin/mobile_sharebar.php +0 -172
  92. admin/pages/floating-sharebar.php +350 -0
  93. admin/pages/follow-icons.php +370 -0
  94. admin/pages/general-settings.php +167 -0
  95. admin/pages/import-export.php +83 -0
  96. admin/pages/share-icons.php +380 -0
  97. admin/pages/shortcodes.php +358 -0
  98. admin/pages/text-sharebar.php +170 -0
  99. admin/setup.php +0 -595
  100. admin/sharebar.php +0 -252
  101. admin/social_icons.php +0 -316
  102. admin/text_sharebar.php +0 -163
  103. admin/tools.php +40 -0
  104. admin/widgets.php +106 -57
  105. core/buttons.php +0 -326
  106. core/{import_export.php → import-export.php} +2 -4
  107. core/includes.php +57 -25
  108. core/lists.php +11 -267
  109. core/{location_rules.php → location-rules.php} +4 -24
  110. core/metadata.php +6 -7
  111. core/options.php +579 -0
  112. core/services.php +0 -185
  113. core/{share_counter.php → share-counter.php} +84 -48
  114. core/shortcodes.php +176 -0
  115. core/templates.php +0 -1043
  116. core/templates/floating-sharebar.php +219 -0
  117. core/templates/follow-icons.php +132 -0
  118. core/templates/share-icons.php +304 -0
  119. core/templates/text-sharebar.php +62 -0
  120. core/widgets.php +28 -334
  121. core/widgets/facebook.php +119 -0
  122. core/widgets/follow-icons.php +159 -0
  123. core/widgets/twitter.php +112 -0
  124. public/css/wp-socializer.css +67 -199
  125. public/css/wp-socializer.min.css +1 -1
  126. public/css/wpsr.min.css +2 -2
  127. public/js/wp-socializer.js +114 -76
  128. public/js/wp-socializer.min.js +1 -1
  129. readme.txt +112 -161
  130. services/facebook.php +0 -344
  131. services/html.php +0 -159
  132. services/linkedin.php +0 -139
  133. services/pinterest.php +0 -196
  134. services/pocket.php +0 -123
  135. services/reddit.php +0 -118
  136. services/share_counter.php +0 -208
  137. services/sharethis.php +0 -112
  138. services/social_icons.php +0 -611
  139. services/twitter.php +0 -270
  140. wpsr.php +33 -35
admin/admin.php CHANGED
@@ -4,6 +4,8 @@
4
  *
5
  **/
6
 
 
 
7
  class WPSR_Admin{
8
 
9
  public static $pages = array();
@@ -12,196 +14,201 @@ class WPSR_Admin{
12
 
13
  public static function init(){
14
 
 
 
 
15
  // Register the admin menu
16
  add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ) );
17
-
18
- // Load all the admin pages
19
- add_action( 'init', array( __CLASS__, 'register_pages' ) );
20
-
21
  // Enqueue the scripts and styles
22
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ) );
23
-
24
  // Register action to include admin scripts
25
  add_action( 'admin_print_scripts', array( __CLASS__, 'inline_scripts' ) );
26
-
27
  // Register the action for admin ajax features
28
  add_action( 'wp_ajax_wpsr_admin_ajax', array( __CLASS__, 'admin_ajax' ) );
29
-
30
  // Register the action links in plugin list page
31
  add_filter( 'plugin_action_links_' . WPSR_BASE_NAME, array( __CLASS__, 'action_links' ) );
32
-
33
  // Register the admin notice to inform new version features
34
  add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) );
35
-
36
  add_action( 'plugins_loaded', array( __CLASS__, 'on_activate' ) );
37
-
38
  add_filter( 'admin_footer_text', array( __class__, 'footer_text' ) );
39
 
40
  register_activation_hook( WPSR_BASE_NAME, array( __CLASS__, 'on_activate' ) );
41
-
42
- }
43
-
44
- public static function admin_menu(){
45
-
46
- $pages = self::get_pages();
47
- $icon = WPSR_ADMIN_URL . 'images/icons/wp-socializer-sm.png';
48
-
49
- add_menu_page( 'WP Socializer - Admin page', 'WP Socializer', 'manage_options', 'wp_socializer', array( __CLASS__, 'admin_page' ), $icon );
50
-
51
- add_submenu_page( 'wp_socializer', 'WP Socializer - Admin page', 'Home', 'manage_options', 'wp_socializer', array( __CLASS__, 'admin_page' ) );
52
-
53
- foreach( $pages as $id=>$config ){
54
- if( !isset( $config[ 'hide_in_nav' ] ) ){
55
- add_submenu_page( 'wp_socializer', 'WP Socializer - ' . $config[ 'name' ], $config[ 'name' ], 'manage_options', 'wp_socializer&tab="' . $id . '"', array( __CLASS__, 'admin_page' ) );
56
- }
57
- }
58
  }
59
 
60
  public static function register_pages(){
61
 
62
  $init_pages = apply_filters( 'wpsr_register_admin_page', array() );
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  foreach( $init_pages as $id => $config ){
65
-
 
66
  self::$pages[ $id ] = $config;
67
-
68
  // Register the validation filter for the form
69
- if( isset( $config[ 'form' ][ 'validation' ] ) ){
70
- add_filter( 'wpsr_form_validation_' . $config[ 'form' ][ 'name' ], $config[ 'form' ][ 'validation' ] );
71
  }
72
 
73
  }
74
 
75
  }
76
-
77
  public static function get_pages(){
78
  return apply_filters( 'wpsr_mod_admin_pages', self::$pages );
79
  }
80
-
81
- public static function admin_page(){
82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  if( !current_user_can( 'manage_options' ) ){
84
  wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
85
  }
86
-
87
  $pages = self::get_pages();
88
  self::$current_page = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
89
-
90
  // Set default page
91
  if( empty( self::$current_page ) || !array_key_exists( self::$current_page, $pages ) ){
92
  self::$current_page = 'home';
93
  }
94
-
95
- echo '<div class="wrap page_' . self::$current_page . '">';
96
-
97
- self::admin_header();
98
-
99
- echo '<div id="content">';
100
 
101
- $c_share_buttons = get_option( 'wpsr_button_settings' );
102
- $c_sharebar = get_option( 'wpsr_sharebar_settings' );
103
-
104
- if( isset( $c_share_buttons[ 'ft_status' ] ) && $c_share_buttons[ 'ft_status' ] == 'enable' ){
105
- echo '<div class="notice notice-error"><p>Classic share buttons feature is enabled on your site. Please note that this feature is <strong>deprecated</strong> and will be removed in the <strong>month of May</strong>. Please use the <strong>new and easy to configure</strong> "social icons" feature. For any help in migrating the settings, please post your queries in the <a href="https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/" target="_blank">support forums</a></p></div>';
106
- }
107
-
108
- if( isset( $c_sharebar[ 'ft_status' ] ) && $c_sharebar[ 'ft_status' ] == 'enable' ){
109
- echo '<div class="notice notice-error"><p>Classic floating sharebar feature is enabled on your site. Please note that this feature is <strong>deprecated</strong> and will be removed in the <strong>month of May</strong>. Please use the <strong>new and easy to configure</strong> "floating sharebar" feature. For any help in migrating the settings, please post your queries in the <a href="https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/" target="_blank">support forums</a></p></div>';
110
- }
111
-
112
- if(self::$current_page == 'home'){
113
-
114
- echo '<h1><i class="fa fa-star-of-life"></i>Features</h1>';
115
- self::admin_pages_list();
116
-
117
- echo '<h1><i class="fa fa-wrench"></i>Settings</h1>';
118
- self::admin_pages_list(false);
119
-
120
- }else{
121
- call_user_func( self::$pages[ self::$current_page ][ 'page_callback' ] );
122
- }
123
 
124
- self::coffee_box();
125
 
 
 
 
126
  echo '</div>';
127
 
128
- self::admin_sidebar();
129
 
130
- self::intro_popups();
131
 
132
- echo '</div>';
133
-
134
  }
135
-
136
  public static function admin_header(){
137
 
138
  echo '<header id="wpsr_header">';
139
  echo '<hgroup>';
140
  echo '<h1 class="wpsr_title">WP Socializer
141
- <span class="title-count">' . WPSR_VERSION . '</span><a href="admin.php?page=wp_socializer" class="back_btn"><i class="fa fa-chevron-left"></i>
142
- Back</a></h1>';
143
  self::admin_links();
144
  echo '</hgroup>';
145
  echo '</header>';
146
 
147
  }
148
 
149
- public static function admin_pages_list($only_features=true){
150
-
151
- echo '<div class="admin_pages_list clearfix">';
152
-
153
  $pages = self::get_pages();
154
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  foreach( $pages as $id => $config ){
156
 
157
- // Apply default config
158
- $config = WPSR_Lists::set_defaults( $config, array(
159
- 'name' => '',
160
- 'banner' => '',
161
- 'page_callback' => '',
162
- 'feature' => true,
163
- 'link' => '',
164
- 'class' => '',
165
- 'form' => array(
166
- 'id' => '',
167
- 'name' => '',
168
- 'callback' => '',
169
- 'validation' => '',
170
- )
171
- ));
172
-
173
- $is_feature_page = $config['feature'];
174
- $is_feat_active = false;
175
- $has_feat_status = $is_feature_page && !empty($config['form']['callback']);
176
- $link = empty($config['link']) ? ('admin.php?page=wp_socializer&tab=' . $id) : $config['link'];
177
-
178
- if($has_feat_status){
179
- $feat_settings = get_option('wpsr_' . $config['form']['name'], array());
180
- $feat_settings = WPSR_Lists::set_defaults($feat_settings, WPSR_Lists::defaults($id));
181
- $is_feat_active = (isset($feat_settings['ft_status']) && $feat_settings['ft_status'] == 'enable') ? true : false;
182
- }
183
-
184
- if(($only_features && !$is_feature_page) || (!$only_features && $is_feature_page)){
185
  continue;
186
  }
187
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  $card_class = array(
189
  'page_card',
190
  'card_' . $id,
191
- (!$only_features ? 'card_others' : ''),
192
- ($is_feat_active ? 'active' : ''),
193
- $config['class']
194
  );
195
-
196
- echo '<a class="' . implode(' ', $card_class) . '" href="' . $link . '" style="background-image: url(' . $config['banner'] . ')">';
 
 
197
  echo '<h3>' . $config[ 'name' ] . '</h3>';
198
-
199
- if($has_feat_status){
200
- echo '<div class="page_feat_status">' . ($is_feat_active ? '<i class="fa fa-check" aria-hidden="true"></i> Enabled' : 'Disabled') . '</div>';
201
- }else{
202
- echo '<div class="page_feat_status">Open</div>';
203
- }
204
-
205
  echo '</a>';
206
 
207
  }
@@ -210,13 +217,15 @@ class WPSR_Admin{
210
  }
211
 
212
  public static function settings_form( $id = '' ){
213
-
214
  if( empty( $id ) )
215
  return;
216
-
217
- $form_id = self::$pages[ $id ][ 'form' ][ 'id' ];
218
- $form_name = self::$pages[ $id ][ 'form' ][ 'name' ];
219
- $form_callback = self::$pages[ $id ][ 'form' ][ 'callback' ];
 
 
220
 
221
  $option = 'wpsr_' . $form_name;
222
  $nonce = 'wpsr_nonce_' . $form_name . '_submit';
@@ -231,13 +240,18 @@ class WPSR_Admin{
231
 
232
  update_option( $option, $post_value );
233
 
234
- echo '<div class="notice notice-success inline is-dismissible"><p>' . __( 'Settings saved !', 'wpsr' ) . '</p></div>';
 
 
 
 
 
235
  }
236
 
237
  // Get saved details
238
  $saved_settings = get_option( $option );
239
-
240
- echo '<form method="post" id="' . $form_id . '" class="main_form">';
241
 
242
  // Execute all hooked form fields from services
243
  if( is_callable( $form_callback ) ){
@@ -248,7 +262,7 @@ class WPSR_Admin{
248
 
249
  wp_nonce_field( $nonce );
250
 
251
- echo '<div class="main_form_footer postbox"><input type="submit" value="Save Settings" class="button button-primary" /></div>';
252
 
253
  echo '</form>';
254
 
@@ -280,7 +294,6 @@ class WPSR_Admin{
280
 
281
  if( self::$pagehook == $screen->id ){
282
 
283
- $services = WPSR_Services::list_all();
284
  $loc_rules = WPSR_Location_Rules::rules_list();
285
 
286
  $js_texts = array(
@@ -293,7 +306,6 @@ class WPSR_Admin{
293
  echo '<script>
294
  var wpsr = {
295
  ajaxurl: "' . get_admin_url() . 'admin-ajax.php",
296
- services: ' . wp_json_encode( $services ) . ',
297
  loc_rules: ' . wp_json_encode( $loc_rules ) . ',
298
  js_texts: ' . wp_json_encode( $js_texts ) . ',
299
  ext_res: ' . wp_json_encode( WPSR_Lists::ext_res() ) . ',
@@ -302,8 +314,7 @@ class WPSR_Admin{
302
 
303
  echo '<script>
304
  var wpsr_show = {
305
- changelog: "' . ( ( get_option( 'wpsr_last_changelog' ) != WPSR_VERSION ) ? WPSR_VERSION : 'false' ) . '",
306
- setup: "' . ( ( get_option( 'wpsr_setup' ) != WPSR_SETUP_VERSION ) ? WPSR_SETUP_VERSION : 'false' ) . '"
307
  }
308
  </script>';
309
  }
@@ -313,333 +324,17 @@ class WPSR_Admin{
313
  public static function on_activate(){
314
 
315
  $prev_version = get_option( 'wpsr_version' );
316
-
317
- if( version_compare( WPSR_VERSION, $prev_version, '>' ) ){
318
-
319
- $buttons = WPSR_Buttons::list_all();
320
-
321
- foreach( $buttons as $id => $config ){
322
- $service = $config[ 'service' ];
323
-
324
- // Rename social_buttons service name to social_icons
325
- if( $service == 'social_buttons' ){
326
- $buttons[ $id ][ 'service' ] = 'social_icons';
327
-
328
- unset( $buttons[ $id ][ 'settings' ][ 'sr-icon-color' ] );
329
- unset( $buttons[ $id ][ 'settings' ][ 'sr-border-color' ] );
330
- unset( $buttons[ $id ][ 'settings' ][ 'sr-background-color' ] );
331
- }
332
-
333
- // Delete stumbleupon service buttons
334
- if( $service == 'stumbleupon' ){
335
- unset( $buttons[ $id ] );
336
- }
337
-
338
- // Add feature property to the button config for older settings
339
- if( !array_key_exists( 'feature', $config ) && array_key_exists( 'flags', $config ) ){
340
- $flags = $config[ 'flags' ];
341
- $feature = ( $flags == 1 ) ? 'buttons' : 'sharebar';
342
- $buttons[ $id ][ 'feature' ] = $feature;
343
- unset( $buttons[ $id ][ 'flags' ] );
344
- }
345
-
346
- }
347
-
348
- update_option( 'wpsr_buttons', $buttons );
349
-
350
- }
351
-
352
  if( WPSR_VERSION != $prev_version ){
353
  update_option( 'wpsr_version', WPSR_VERSION );
354
  }
355
 
356
- }
357
-
358
- public static function box_wrap( $type, $title = '' , $desc = '', $step = '', $class = '' ){
359
-
360
- $title = !empty( $step ) ? '<span class="step" data-step="' . $step . '">' . $title . '</span>' : $title;
361
-
362
- if( $type == 'open' ){
363
- echo '<h3 class="hndle">' . $title . '</h3>';
364
- echo '<div class="postbox ' . $class . '">';
365
- echo '<div class="inside">';
366
- if( !empty( $desc ) ) echo '<p>' . $desc . '</p>';
367
- }
368
-
369
- if( $type == 'close' ){
370
- echo '</div></div> <!-- postbox, inside -->';
371
- }
372
-
373
- }
374
-
375
- public static function build_table( $input, $title = '', $desc = '', $mini = false, $step = '', $class = '' ){
376
-
377
- //$input = array( array( 'Desc', 'field' ), array( 'Desc2', 'field2' ) );
378
-
379
- if( !is_array( $input ) )
380
- return '';
381
-
382
- if( !empty( $title ) && $mini == false ){
383
- WPSR_Admin::box_wrap( 'open', $title, $desc, $step, $class );
384
- }else if ( $mini == true ){
385
- echo !empty( $title ) || !empty( $desc ) ? '<div class="sec_title_wrap">' : '';
386
- echo !empty( $title ) ? '<h4>' . $title . '</h4>' : '';
387
- echo !empty( $desc ) ? '<p>' . $desc . '</p>' : '';
388
- echo !empty( $title ) || !empty( $desc ) ? '</div>' : '';
389
  }
390
-
391
- echo '<table class="form-table">';
392
- foreach( $input as $r ){
393
-
394
- $row_class = empty( $r[1] ) ? ' class="sub_head"' : '';
395
 
396
- echo '<tr ' . ( isset( $r[2] ) ? $r[2] : '' ) . '' . $row_class . '>';
397
- echo '<th>' . $r[0] . '</th>';
398
- echo '<td>' . $r[1] . '</td>';
399
- echo '</tr>';
400
- }
401
- echo '</table>';
402
-
403
- if( !empty( $title ) && $mini == false ){
404
- echo '</div></div>';
405
- }
406
-
407
  }
408
 
409
- public static function field( $field_type, $params = array() ){
410
-
411
- $defaults = array(
412
-
413
- 'text' => array(
414
- 'type' => 'text',
415
- 'value' => '',
416
- 'default' => '',
417
- 'id' => '',
418
- 'class' => 'regular-text',
419
- 'name' => '',
420
- 'placeholder' => '',
421
- 'required' => '',
422
- 'helper' => '',
423
- 'custom' => '',
424
- 'tip' => '',
425
- 'qtip' => ''
426
- ),
427
-
428
- 'select' => array(
429
- 'id' => '',
430
- 'class' => '',
431
- 'name' => '',
432
- 'list' => array(),
433
- 'value' => '',
434
- 'default' => '',
435
- 'helper' => '',
436
- 'custom' => '',
437
- 'tip' => '',
438
- 'qtip' => ''
439
- ),
440
-
441
- 'image_select' => array(
442
- 'id' => '',
443
- 'class' => '',
444
- 'name' => '',
445
- 'list' => array(),
446
- 'value' => '',
447
- 'default' => '',
448
- 'helper' => '',
449
- 'custom' => '',
450
- 'tip' => '',
451
- 'qtip' => ''
452
- ),
453
-
454
- 'radio' => array(
455
- 'id' => '',
456
- 'class' => '',
457
- 'name' => '',
458
- 'list' => array(),
459
- 'value' => '',
460
- 'default' => '',
461
- 'helper' => '',
462
- 'custom' => '',
463
- 'tip' => '',
464
- 'qtip' => ''
465
- ),
466
-
467
- 'checkbox' => array(
468
- 'id' => '',
469
- 'class' => '',
470
- 'name' => '',
471
- 'value' => '',
472
- 'default' => '',
473
- 'helper' => '',
474
- 'custom' => '',
475
- 'tip' => '',
476
- 'qtip' => ''
477
- ),
478
-
479
- 'checkboxes' => array(
480
- 'id' => '',
481
- 'class' => '',
482
- 'name' => '',
483
- 'list' => array(),
484
- 'value' => array(),
485
- 'default' => array(),
486
- 'helper' => '',
487
- 'custom' => '',
488
- 'tip' => '',
489
- 'qtip' => ''
490
- ),
491
-
492
- 'textarea' => array(
493
- 'type' => 'text',
494
- 'value' => '',
495
- 'name' => '',
496
- 'default' => '',
497
- 'id' => '',
498
- 'class' => '',
499
- 'placeholder' => '',
500
- 'rows' => '',
501
- 'cols' => '',
502
- 'helper' => '',
503
- 'custom' => '',
504
- 'tip' => '',
505
- 'qtip' => ''
506
- )
507
-
508
- );
509
-
510
- $params = WPSR_Lists::set_defaults( $params, $defaults[ $field_type ] );
511
- $field_html = '';
512
-
513
- $params = self::clean_attr( $params );
514
- extract( $params, EXTR_SKIP );
515
-
516
- $tip = !empty( $tip ) ? ' data-htip="' . esc_attr($tip) . '" ' : '';
517
-
518
- switch( $field_type ){
519
- case 'text':
520
- $field_html = "<input type='$type' class='$class' id='$id' name='$name' value='$value' placeholder='$placeholder' " . ( $required ? "required='$required'" : "" ) . " $custom $tip />";
521
- break;
522
-
523
- case 'select':
524
- $field_html .= "<select name='$name' class='$class' id='$id' $custom $tip>";
525
- foreach( $list as $k => $v ){
526
- $field_html .= "<option value='$k' " . selected( $value, $k, false ) . ">$v</option>";
527
- }
528
- $field_html .= "</select>";
529
- break;
530
-
531
- case 'image_select':
532
- $field_html .= "<select name='$name' class='$class img_select' id='$id' $custom $tip>";
533
- foreach( $list as $k => $v ){
534
- $opt_name = ( count( $v ) >= 2 ) ? $v[0] : $v;
535
- $field_html .= "<option value='$k' " . selected( $value, $k, false ) . ">$opt_name</option>";
536
- }
537
- $field_html .= "</select>";
538
- $field_html .= "<ul class='img_select_list clearfix'>";
539
- foreach( $list as $k => $v ){
540
- $is_selected = ( $value == $k ) ? 'img_opt_selected' : '';
541
- $img = 'default_image.png';
542
- $opt_name = '';
543
- if( count( $v ) >= 2 ){
544
- $opt_name = $v[0];
545
- $img = $v[1];
546
- }else{
547
- $opt_name = $v;
548
- }
549
- $img = ( substr( $img, 0, 4 ) !== 'http' ) ? ( WPSR_ADMIN_URL . 'images/select_images/' . $img ) : $img;
550
- $width = ( is_array( $v ) && isset( $v[2] ) ) ? "style='width:" . $v[2] . "'" : "";
551
- $field_html .= "<li data-value='$k' data-init='false' class='" . $is_selected . "' $width><img src='" . $img . "' /><span>" . $opt_name . "</span></li>";
552
- }
553
- $field_html .= "</ul>";
554
- break;
555
-
556
- case 'radio':
557
- foreach( $list as $k => $v ){
558
- $field_html .= "<label class='lbl_margin' $custom $tip><input type='radio' name='$name' class='$class' value='$k' id='$id' " . checked( $value, $k, false ) . " />&nbsp;$v </label>";
559
- }
560
- break;
561
-
562
- case 'checkbox':
563
- $checked = ( $value == '1' ) ? 'checked="checked"' : '';
564
- $field_html .= "<input type='checkbox' name='$name' class='$class' value='1' id='$id' $checked $custom $tip />";
565
- break;
566
-
567
- case 'checkboxes':
568
- foreach( $list as $k => $v ){
569
- $checked = ( in_array( $k,(array) $value ) ) ? 'checked="checked"' : '';
570
- $field_html .= "<label $custom $tip><input type='checkbox' name='" . $name . "[]' class='$class' value='$k' id='$id' $checked />&nbsp;$v </label>&nbsp;&nbsp;";
571
- }
572
- break;
573
-
574
- case 'textarea':
575
- $field_html .= "<textarea id='$id' name='$name' class='$class' placeholder='$placeholder' rows='$rows' cols='$cols' $custom $tip>$value</textarea>";
576
- break;
577
- }
578
-
579
- if( !empty( $qtip ) )
580
- $field_html .= "<a href='$qtip' class='qtip_icon' title='" . __( 'Click to view help', 'wpsr' ) . "' target='_blank'><i class='fa fa-question-circle'></i></a>";
581
-
582
- if( !empty( $helper ) )
583
- $field_html .= "<p class='description'>$helper</p>";
584
-
585
- return $field_html;
586
-
587
- }
588
-
589
- public static function buttons_veditor( $name, $content, $multiple_rows = true, $preview = false ){
590
-
591
- echo '<div class="vedit_wrap">';
592
- echo '<div class="veditor">';
593
-
594
- $tmpl = base64_decode( $content );
595
- $tmpl_cnt = ( empty( $tmpl ) || !isset( $tmpl ) ) ? '{"1":{"properties":{},"buttons":{}}}' : $tmpl ;
596
- $tmpl_cnt_obj = json_decode( $tmpl_cnt );
597
- $services = WPSR_Services::list_all();
598
- $buttons = WPSR_Buttons::list_all();
599
-
600
- foreach( $tmpl_cnt_obj as $k => $o ){
601
- $buttons_row = array();
602
- foreach( $o->buttons as $bid ){ // Iterate through array of button objects
603
- $bkey = key((array)$bid); // Get the key of the button obj
604
- array_push( $buttons_row, $bkey );
605
- }
606
- WPSR_Buttons_Picker::print_veditor_buttons( $buttons_row );
607
- }
608
-
609
- echo '</div>';
610
- echo '<input type="hidden" class="veditor_content" name="' . $name . '" />';
611
-
612
- echo '<div class="vedit_menu">';
613
-
614
- echo '<button class="button button-primary vedit_add_button"><i class="fa fa-plus-circle"></i> Add sharing button</button>';
615
-
616
- if( $preview ){
617
- echo '<button class="button vedit_preview_btn" data-action="' . $preview . '" title="' . __( 'Click to show preview for the above template', 'wpsr' ) . '" data-refresh="' . __( 'Refresh preview', 'wpsr' ) . '"><i class="fa fa-eye"></i> ' . __( 'Show preview', 'wpsr' ) . '</button>';
618
- }
619
-
620
- if( $multiple_rows ){
621
- echo '<button class="button vedit_add_row"><i class="fa fa-plus"></i> Add a new row</button>';
622
- }
623
-
624
- echo '</div>';
625
-
626
-
627
- if( $preview ){
628
- echo '<div class="veditor_preview">';
629
- echo '<iframe src="" width="100%" class="vedit_preview_iframe"></iframe>';
630
- echo '</div>';
631
- }
632
-
633
- echo '</div><!-- veditor_wrap -->';
634
-
635
- if( $multiple_rows ){
636
- echo '<div class="vedit_row_menu">
637
- <a class="vedit_delete_row" title="' . __( 'Delete row', 'wpsr' ) . '"><i class="fa fa-times"></i></a>
638
- </div>';
639
- }
640
-
641
- }
642
-
643
  public static function admin_ajax(){
644
 
645
  $get = self::clean_get();
@@ -649,12 +344,7 @@ class WPSR_Admin{
649
  update_option( 'wpsr_last_changelog', WPSR_VERSION );
650
  echo 'done';
651
  }
652
-
653
- if( $do == 'close_setup' ){
654
- update_option( 'wpsr_setup', WPSR_SETUP_VERSION );
655
- echo 'done';
656
- }
657
-
658
  die( 0 );
659
 
660
  }
@@ -703,19 +393,29 @@ class WPSR_Admin{
703
  if( in_array( get_current_screen()->id, $pages_display ) ){
704
  if( version_compare( WPSR_VERSION, get_option( 'wpsr_last_changelog' ), '>' ) ){
705
  echo '<div class="notice notice-success is-dismissible">
706
- <p>' . __( '<b>WP Socializer</b> is updated to the latest brand new version', 'wpsr') . '</p>
707
- <p>' . sprintf( __( 'Social icons and floating sharebar features have been updated. Social icons and sharebar is now beautiful and easy to configure. Please visit the %ssettings%s page to configure them.', 'wpsr' ), '<a href="' . esc_url( admin_url( 'admin.php?page=wp_socializer') ) . '">', '</a>' ) . '</p>
708
- <p><a href="' . esc_url( admin_url( 'admin.php?page=wp_socializer') ) . '" class="button button-primary">' . __( 'Open settings', 'wpsr' ) . '</a></p>
709
  </div>';
710
  }
711
  }
712
  }
713
 
714
  public static function admin_links(){
715
- echo '<div class="admin_links">
716
- <a href="https://twitter.com/intent/tweet?hashtags=wordpress&ref_src=twsrc%5Etfw&related=aakashweb&text=Check%20out%20WP%20Socializer%2C%20a%20powerful%20social%20media%20share%20icons%2C%20buttons%20plugin%20for%20WordPress&tw_p=tweetbutton&url=https%3A%2F%2Fwww.aakashweb.com%2Fwordpress-plugins%2Fwp-socializer%2F&via=aakashweb" target="_blank" class="twitter_btn"><i class="fab fa-twitter"></i>Recommend this plugin</a>
717
- <a href="https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/?utm_source=wp-socializer&utm_medium=admin&utm_campaign=feedback" target="_blank" class="feedback_btn"><i class="fa fa-comment"></i>Feedback</a>
718
- </div>';
 
 
 
 
 
 
 
 
 
 
719
  }
720
 
721
  public static function footer_text( $text ){
@@ -723,7 +423,7 @@ class WPSR_Admin{
723
  $screen = get_current_screen();
724
 
725
  if( self::$pagehook == $screen->id ){
726
- return '<img src="' . WPSR_ADMIN_URL . '/images/icons/aakash-web.png" /> Thank you for using WP Socializer. Created by <a href="https://www.aakashweb.com" target="_blank">Aakash Chakravarthy</a>. More <a href="https://www.aakashweb.com/wordpress-plugins/" target="_blank">WordPress plugins</a>';
727
  }
728
 
729
  return $text;
@@ -735,12 +435,15 @@ class WPSR_Admin{
735
  echo '<div id="sidebar">';
736
 
737
  echo '<div class="side_card">';
738
- echo '<h2>Get updates</h2>';
 
 
 
 
 
 
 
739
  echo '<p>Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.</p>';
740
- echo '<div class="social_share">
741
- <a href="https://www.facebook.com/aakashweb" class="ss_facebook" target="_blank"><span class="dashicons dashicons-facebook"></span><div>Facebook</div></a>
742
- <a href="https://twitter.com/aakashweb" class="ss_twitter" target="_blank"><span class="dashicons dashicons-twitter"></span><div>Twitter</div></a>
743
- </div>';
744
 
745
  echo '<form class="subscribe_form" action="https://aakashweb.us19.list-manage.com/subscribe/post?u=b7023581458d048107298247e&amp;id=ef5ab3c5c4" method="post" name="mc-embedded-subscribe-form" target="_blank" novalidate>
746
  <input type="email" value="" name="EMAIL" class="required subscribe_email_box" id="mce-EMAIL" placeholder="Your email address">
@@ -748,19 +451,15 @@ class WPSR_Admin{
748
  <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button subscribe_btn">
749
  </form>';
750
 
 
 
751
  echo '</div>';
752
 
753
- echo '<div class="ufw"><h4><a href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/?utm_source=wp-socializer&utm_medium=sidebar&utm_campaign=ufw" target="_blank">
754
- <i>Check out <span class="dashicons dashicons-arrow-right-alt2"></span></i>
755
- <br/> Ultimate floating widgets</a></h4>
756
- <img src="' . WPSR_ADMIN_URL . 'images/banners/ufw.png" class="balloon" />
757
- <p>A WordPress plugin to create floating widgets from the same developer</p></div>';
758
-
759
- echo '<a class="rate_review" href="https://wordpress.org/support/plugin/wp-socializer/reviews/?rate=5#new-post" target="_blank">
760
- <h4>Rate &amp; Review</h4>
761
- <span class="dashicons dashicons-star-filled"></span>
762
- <p>Like this plugin ? please do rate and review.</p>
763
- </a>';
764
 
765
  echo '</div>';
766
 
@@ -770,26 +469,19 @@ class WPSR_Admin{
770
 
771
  echo '<div class="welcome_wrap intro_popup style_ele">
772
  <section></section>
773
- <footer><button class="button button-primary close_changelog_btn">' . __( 'Start using WP Socializer', 'wpsr' ) . '</button></footer>
774
- </div>';
775
-
776
- echo '<div class="setup_intro intro_popup style_ele">
777
- <section>
778
- <h1 align="center"><i class="fa fa-magic"></i> Quick and easy setup wizard</h1>
779
- <p class="setup_hint">1 <i class="fa fa-caret-right"></i> 2 <i class="fa fa-caret-right"></i> <i class="fa fa-check-circle"></i></p>
780
- <p>WP Socializer has a setup wizard to quickly add social sharing buttons and icons.</p>
781
- <p>There are 50+ hand picked social icons and icons design template to choose from the setup.</p>
782
- <p>Open the setup wizard to begin with.</p>
783
- </section>
784
- <footer><a href="#" class="button close_setup_intro_btn">' . __( 'Skip setup', 'wpsr' ) . '</a> <a href="' . admin_url( 'admin.php?page=wp_socializer_setup' ) . '" class="button button-primary">' . __( 'Open setup wizard', 'wpsr' ) . '</a></footer>
785
  </div>';
786
-
787
  }
788
 
789
  public static function coffee_box(){
790
 
 
 
 
 
791
  echo '<div class="cfe_bottom">';
792
- echo '<img src="' . WPSR_ADMIN_URL . '/images/icons/coffee.svg" />';
793
  echo '<h3>Buy me a Coffee !</h3><p>If you like this plugin, buy me a coffee and help support this plugin !</p>';
794
  echo '<div class="cfe_form">';
795
  echo '<select class="cfe_amt">';
@@ -802,6 +494,14 @@ class WPSR_Admin{
802
  echo '</div>';
803
  echo '</div>';
804
 
 
 
 
 
 
 
 
 
805
  }
806
 
807
  }
4
  *
5
  **/
6
 
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
  class WPSR_Admin{
10
 
11
  public static $pages = array();
14
 
15
  public static function init(){
16
 
17
+ // Register the admin pages
18
+ add_action( 'init', array( __CLASS__, 'register_pages' ) );
19
+
20
  // Register the admin menu
21
  add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ) );
22
+
 
 
 
23
  // Enqueue the scripts and styles
24
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ) );
25
+
26
  // Register action to include admin scripts
27
  add_action( 'admin_print_scripts', array( __CLASS__, 'inline_scripts' ) );
28
+
29
  // Register the action for admin ajax features
30
  add_action( 'wp_ajax_wpsr_admin_ajax', array( __CLASS__, 'admin_ajax' ) );
31
+
32
  // Register the action links in plugin list page
33
  add_filter( 'plugin_action_links_' . WPSR_BASE_NAME, array( __CLASS__, 'action_links' ) );
34
+
35
  // Register the admin notice to inform new version features
36
  add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) );
37
+
38
  add_action( 'plugins_loaded', array( __CLASS__, 'on_activate' ) );
39
+
40
  add_filter( 'admin_footer_text', array( __class__, 'footer_text' ) );
41
 
42
  register_activation_hook( WPSR_BASE_NAME, array( __CLASS__, 'on_activate' ) );
43
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
45
 
46
  public static function register_pages(){
47
 
48
  $init_pages = apply_filters( 'wpsr_register_admin_page', array() );
49
+ $defaults = array(
50
+ 'name' => '',
51
+ 'banner' => '',
52
+ 'description' => '',
53
+ 'category' => '',
54
+ 'type' => '',
55
+ 'form_name' => '',
56
+ 'callbacks' => array(
57
+ 'page' => false,
58
+ 'form' => false,
59
+ 'validation' => false,
60
+ )
61
+ );
62
 
63
  foreach( $init_pages as $id => $config ){
64
+
65
+ $config = WPSR_Lists::set_defaults( $config, $defaults );
66
  self::$pages[ $id ] = $config;
67
+
68
  // Register the validation filter for the form
69
+ if( $config[ 'callbacks' ][ 'validation' ] ){
70
+ add_filter( 'wpsr_form_validation_' . $config[ 'form_name' ], $config[ 'callbacks' ][ 'validation' ] );
71
  }
72
 
73
  }
74
 
75
  }
76
+
77
  public static function get_pages(){
78
  return apply_filters( 'wpsr_mod_admin_pages', self::$pages );
79
  }
80
+
81
+ public static function admin_menu(){
82
 
83
+ $pages = self::get_pages();
84
+ $icon = WPSR_ADMIN_URL . 'images/icons/wp-socializer-sm.png';
85
+
86
+ add_menu_page( 'WP Socializer - Admin page', 'WP Socializer', 'manage_options', 'wp_socializer', array( __CLASS__, 'admin_page' ), $icon );
87
+
88
+ add_submenu_page( 'wp_socializer', 'WP Socializer - Admin page', 'Home', 'manage_options', 'wp_socializer', array( __CLASS__, 'admin_page' ) );
89
+
90
+ foreach( $pages as $id => $config ){
91
+ if( empty( $config[ 'link' ] ) ){
92
+ add_submenu_page( 'wp_socializer', 'WP Socializer - ' . $config[ 'name' ], $config[ 'name' ], 'manage_options', 'wp_socializer&tab="' . $id . '"', array( __CLASS__, 'admin_page' ) );
93
+ }
94
+ }
95
+ }
96
+
97
+ public static function admin_page(){
98
+
99
  if( !current_user_can( 'manage_options' ) ){
100
  wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
101
  }
102
+
103
  $pages = self::get_pages();
104
  self::$current_page = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
105
+
106
  // Set default page
107
  if( empty( self::$current_page ) || !array_key_exists( self::$current_page, $pages ) ){
108
  self::$current_page = 'home';
109
  }
 
 
 
 
 
 
110
 
111
+ echo '<div class="wrap page_' . self::$current_page . '">';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
+ self::admin_header();
114
 
115
+ echo '<div id="main">';
116
+ self::admin_content();
117
+ self::admin_sidebar();
118
  echo '</div>';
119
 
120
+ echo '</div>';
121
 
122
+ self::intro_popups();
123
 
 
 
124
  }
125
+
126
  public static function admin_header(){
127
 
128
  echo '<header id="wpsr_header">';
129
  echo '<hgroup>';
130
  echo '<h1 class="wpsr_title">WP Socializer
131
+ <span class="title-count">' . WPSR_VERSION . '</span><a href="admin.php?page=wp_socializer" class="back_btn"><i class="fa fa-chevron-left"></i> Back</a></h1>';
 
132
  self::admin_links();
133
  echo '</hgroup>';
134
  echo '</header>';
135
 
136
  }
137
 
138
+ public static function admin_content(){
139
+
 
 
140
  $pages = self::get_pages();
141
+
142
+ echo '<div id="content">';
143
+
144
+ if(self::$current_page == 'home'){
145
+
146
+ echo '<h1><i class="fa fa-star-of-life"></i>Features</h1>';
147
+ self::admin_pages_list( 'feature' );
148
+
149
+ echo '<h1><i class="fas fa-columns"></i>Widgets</h1>';
150
+ self::admin_pages_list( 'widget' );
151
+
152
+ echo '<h1><i class="fa fa-wrench"></i>Settings</h1>';
153
+ self::admin_pages_list( 'other' );
154
+
155
+ }else{
156
+
157
+ $page = $pages[ self::$current_page ];
158
+ echo '<div class="page_head">';
159
+ echo '<h1><i class="fa fa-star-of-life"></i>' . $page[ 'name' ] . '</h1>';
160
+ if( !empty( $page[ 'description' ] ) ) echo '<p>' . $page[ 'description' ] . '</p>';
161
+ echo '</div>';
162
+
163
+ call_user_func( $pages[ self::$current_page ][ 'callbacks' ][ 'page' ] );
164
+ }
165
+
166
+ self::coffee_box();
167
+
168
+ echo '</div>';
169
+
170
+ }
171
+
172
+ public static function admin_pages_list( $category = false ){
173
+
174
+ $pages = self::get_pages();
175
+
176
+ echo '<div class="admin_pages_list">';
177
+
178
  foreach( $pages as $id => $config ){
179
 
180
+ if( $config[ 'category' ] != $category ){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  continue;
182
  }
183
+
184
+ $is_feature_active = false;
185
+ $action_text = __( 'Open', 'wpsr' );
186
+ $link = empty( $config['link'] ) ? ( 'admin.php?page=wp_socializer&tab=' . $id ) : $config[ 'link' ];
187
+
188
+ if( $config[ 'type' ] == 'feature' ){
189
+ $feat_settings = get_option( 'wpsr_' . $config['form_name'], array() );
190
+ $feat_settings = WPSR_Lists::set_defaults( $feat_settings, WPSR_Options::default_values( $id ) );
191
+ $is_feature_active = ( isset( $feat_settings[ 'ft_status' ] ) && $feat_settings[ 'ft_status' ] == 'enable' ) ? true : false;
192
+ $action_text = $is_feature_active ? '<i class="fa fa-check"></i>' . __( 'Active', 'wpsr' ) : __( 'Inactive', 'wpsr' );
193
+ }
194
+
195
+ if( $config[ 'type' ] == 'widget' ){
196
+ $action_text = __( 'Add widget', 'wpsr' );
197
+ }
198
+
199
  $card_class = array(
200
  'page_card',
201
  'card_' . $id,
202
+ ( $is_feature_active ? 'active' : '' )
 
 
203
  );
204
+
205
+ echo '<a class="' . implode( ' ', $card_class ) . '" href="' . $link . '">';
206
+ echo '<div class="card_banner" style="background-image: url(' . $config[ 'banner' ] . '?v=' . WPSR_VERSION . ')"></div>';
207
+ echo '<div class="card_info">';
208
  echo '<h3>' . $config[ 'name' ] . '</h3>';
209
+ if( !empty( $config[ 'description' ] ) ) echo '<p>' . $config[ 'description' ] . '</p>';
210
+ echo '</div>';
211
+ echo '<div class="page_feat_status">' . $action_text . '</div>';
 
 
 
 
212
  echo '</a>';
213
 
214
  }
217
  }
218
 
219
  public static function settings_form( $id = '' ){
220
+
221
  if( empty( $id ) )
222
  return;
223
+
224
+ $pages = self::get_pages();
225
+ $page = $pages[ $id ];
226
+
227
+ $form_name = $page[ 'form_name' ];
228
+ $form_callback = $page[ 'callbacks' ][ 'form' ];
229
 
230
  $option = 'wpsr_' . $form_name;
231
  $nonce = 'wpsr_nonce_' . $form_name . '_submit';
240
 
241
  update_option( $option, $post_value );
242
 
243
+ echo '<div class="notice notice-success inline is-dismissible save_notice">';
244
+ echo '<p>' . __( 'Settings saved successfully ! ', 'wpsr' );
245
+ echo '<a href="' . get_site_url() . '" target="_blank">' . __( 'Visit site', 'wpsr' ) . ' <i class="fas fa-arrow-right"></i></a></p>';
246
+ echo '<hr />';
247
+ echo '<p>📢 <a href="https://twitter.com/intent/tweet?hashtags=wordpress,plugin,facebook,twitter,addtoany,addthis&ref_src=twsrc%5Etfw&related=aakashweb&text=Check%20out%20WP%20Socializer%20⚡%20a%20free%20all%20in%20one%20plugin%20to%20add%20social%20sharing%20buttons%2C%20profile%20links%2C%20sticky%20share%20bar%20and%20widgets%20to%20your%20WordPress%20site&tw_p=tweetbutton&url=https%3A%2F%2Fwww.aakashweb.com%2Fwordpress-plugins%2Fwp-socializer%2F&via=aakashweb" target="_blank">Tweet, share and help others try this plugin <i class="fas fa-arrow-right"></i></a></p>';
248
+ echo '</div>';
249
  }
250
 
251
  // Get saved details
252
  $saved_settings = get_option( $option );
253
+
254
+ echo '<form method="post" id="' . $form_name . '" class="main_form">';
255
 
256
  // Execute all hooked form fields from services
257
  if( is_callable( $form_callback ) ){
262
 
263
  wp_nonce_field( $nonce );
264
 
265
+ echo '<div class="main_form_footer postbox"><input type="submit" value="' . __( 'Save settings', 'wpsr' ) . '" class="button button-primary" /></div>';
266
 
267
  echo '</form>';
268
 
294
 
295
  if( self::$pagehook == $screen->id ){
296
 
 
297
  $loc_rules = WPSR_Location_Rules::rules_list();
298
 
299
  $js_texts = array(
306
  echo '<script>
307
  var wpsr = {
308
  ajaxurl: "' . get_admin_url() . 'admin-ajax.php",
 
309
  loc_rules: ' . wp_json_encode( $loc_rules ) . ',
310
  js_texts: ' . wp_json_encode( $js_texts ) . ',
311
  ext_res: ' . wp_json_encode( WPSR_Lists::ext_res() ) . ',
314
 
315
  echo '<script>
316
  var wpsr_show = {
317
+ changelog: "' . ( ( get_option( 'wpsr_last_changelog' ) != WPSR_VERSION ) ? WPSR_VERSION : 'false' ) . '"
 
318
  }
319
  </script>';
320
  }
324
  public static function on_activate(){
325
 
326
  $prev_version = get_option( 'wpsr_version' );
327
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328
  if( WPSR_VERSION != $prev_version ){
329
  update_option( 'wpsr_version', WPSR_VERSION );
330
  }
331
 
332
+ if( !get_option( 'wpsr_since' ) ){
333
+ add_option( 'wpsr_since', time() );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
334
  }
 
 
 
 
 
335
 
 
 
 
 
 
 
 
 
 
 
 
336
  }
337
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  public static function admin_ajax(){
339
 
340
  $get = self::clean_get();
344
  update_option( 'wpsr_last_changelog', WPSR_VERSION );
345
  echo 'done';
346
  }
347
+
 
 
 
 
 
348
  die( 0 );
349
 
350
  }
393
  if( in_array( get_current_screen()->id, $pages_display ) ){
394
  if( version_compare( WPSR_VERSION, get_option( 'wpsr_last_changelog' ), '>' ) ){
395
  echo '<div class="notice notice-success is-dismissible">
396
+ <p>✨ ' . __( '<b>WP Socializer</b> plugin is updated to the latest version', 'wpsr') . ' <code>' . WPSR_VERSION . '</code></p>
397
+ <p>' . __( 'Please read the changelog in the settings page.', 'wpsr') . '</p>
398
+ <p><a href="' . esc_url( admin_url( 'admin.php?page=wp_socializer') ) . '" class="button button-primary">' . __( 'View change log', 'wpsr' ) . '</a></p>
399
  </div>';
400
  }
401
  }
402
  }
403
 
404
  public static function admin_links(){
405
+ echo '<ul class="admin_links">';
406
+ echo '<li class="slogan">⚡ Your all in one social sharing plugin</li>';
407
+ echo '<li><a href="#"><i class="fas fa-bars"></i> Features</a>';
408
+ echo '<ul class="sub_menu">';
409
+ $pages = self::get_pages();
410
+ foreach( $pages as $id => $config ){
411
+ $link = empty( $config['link'] ) ? ( 'admin.php?page=wp_socializer&tab=' . $id ) : $config[ 'link' ];
412
+ echo '<li><a href="' . $link . '">' . $config[ 'name' ] . '</a></li>';
413
+ }
414
+ echo '</ul>';
415
+ echo '</li>';
416
+ echo '<li><a href="https://www.paypal.me/vaakash/6" target="_blank">Buy me a coffee</a></li>';
417
+ echo '<li><a href="https://wordpress.org/support/plugin/wp-socializer/reviews/?rate=5#new-post" target="_blank">Rate this plugin</a></li>';
418
+ echo '</ul>';
419
  }
420
 
421
  public static function footer_text( $text ){
423
  $screen = get_current_screen();
424
 
425
  if( self::$pagehook == $screen->id ){
426
+ return '<img src="' . WPSR_ADMIN_URL . '/images/icons/aakash-web.png" alt="Aakash Web" /> Thank you for using WP Socializer. Created by <a href="https://www.aakashweb.com" target="_blank">Aakash Chakravarthy</a>. More <a href="https://www.aakashweb.com/wordpress-plugins/" target="_blank">WordPress plugins</a>';
427
  }
428
 
429
  return $text;
435
  echo '<div id="sidebar">';
436
 
437
  echo '<div class="side_card">';
438
+ echo '<h2><i class="fas fa-lightbulb"></i> Floating/sticky widgets</h2>';
439
+ echo '<a class="side_banner" href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/?utm_source=wp-socializer&utm_medium=sidebar&utm_campaign=ufw" target="_blank"><img src="' . WPSR_ADMIN_URL . '/images/banners/ultimate-floating-widgets.png" /></a>';
440
+ echo '<p>If your website does not have a sidebar, but still want to use widgets then you can try Ultimate floating widgets plugin. It creates a sticky popup where you can place your widgets.</p>';
441
+ echo '<a class="cta_link" href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/?utm_source=wp-socializer&utm_medium=sidebar&utm_campaign=ufw" target="_blank">Learn more <i class="fas fa-arrow-right"></i></a>';
442
+ echo '</div>';
443
+
444
+ echo '<div class="side_card">';
445
+ echo '<h2><i class="fas fa-info-circle"></i> Get updates</h2>';
446
  echo '<p>Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.</p>';
 
 
 
 
447
 
448
  echo '<form class="subscribe_form" action="https://aakashweb.us19.list-manage.com/subscribe/post?u=b7023581458d048107298247e&amp;id=ef5ab3c5c4" method="post" name="mc-embedded-subscribe-form" target="_blank" novalidate>
449
  <input type="email" value="" name="EMAIL" class="required subscribe_email_box" id="mce-EMAIL" placeholder="Your email address">
451
  <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button subscribe_btn">
452
  </form>';
453
 
454
+ echo '<a href="https://www.facebook.com/aakashweb" target="_blank" class="cta_link">Follow me on Facebook <i class="fas fa-arrow-right"></i></a>';
455
+ echo '<a href="https://www.twitter.com/aakashweb" target="_blank" class="cta_link">Follow me on Twitter <i class="fas fa-arrow-right"></i></a>';
456
  echo '</div>';
457
 
458
+ echo '<div class="side_card">';
459
+ echo '<h2><i class="fas fa-life-ring"></i> Help &amp; Support</h2>';
460
+ echo '<p>Got any issue or not sure how to achieve what you are looking for with the plugin or have any idea or missing feature ? Let me know. Please post a topic in the forum for an answer.</p>';
461
+ echo '<a class="cta_link" href="https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/" target="_blank">Visit the support forum <i class="fas fa-arrow-right"></i></a>';
462
+ echo '</div>';
 
 
 
 
 
 
463
 
464
  echo '</div>';
465
 
469
 
470
  echo '<div class="welcome_wrap intro_popup style_ele">
471
  <section></section>
472
+ <footer><button class="button button-primary close_changelog_btn">' . __( 'Start using WP Socializer', 'wpsr' ) . '</button> <a href="https://twitter.com/intent/tweet?hashtags=wordpress,plugin,facebook,twitter,addtoany,addthis&ref_src=twsrc%5Etfw&related=aakashweb&text=Check%20out%20WP%20Socializer%20⚡%20a%20free%20all%20in%20one%20plugin%20to%20add%20social%20sharing%20buttons%2C%20profile%20links%2C%20sticky%20share%20bar%20and%20widgets%20to%20your%20WordPress%20site&tw_p=tweetbutton&url=https%3A%2F%2Fwww.aakashweb.com%2Fwordpress-plugins%2Fwp-socializer%2F&via=aakashweb" class="button" target="_blank">Share on Twitter</a></footer>
 
 
 
 
 
 
 
 
 
 
 
473
  </div>';
474
+
475
  }
476
 
477
  public static function coffee_box(){
478
 
479
+ echo '<div class="happy_box">';
480
+
481
+ echo '<h2>Happy with the plugin ?</h2>';
482
+
483
  echo '<div class="cfe_bottom">';
484
+ echo '<div class="icon">☕</div>';
485
  echo '<h3>Buy me a Coffee !</h3><p>If you like this plugin, buy me a coffee and help support this plugin !</p>';
486
  echo '<div class="cfe_form">';
487
  echo '<select class="cfe_amt">';
494
  echo '</div>';
495
  echo '</div>';
496
 
497
+ echo '<div class="rate_review">';
498
+ echo '<div class="icon">⭐</div>';
499
+ echo '<h3>Rate &amp; Review</h3><p>If you have a minute, please rate this plugin and let others know and try this plugin.</p>';
500
+ echo '<a href="https://wordpress.org/support/plugin/wp-socializer/reviews/?rate=5#new-post" class="button button-primary" target="_blank">Rate &amp; Review <i class="fas fa-arrow-right"></i></a>';
501
+ echo '</div>';
502
+
503
+ echo '</div>';
504
+
505
  }
506
 
507
  }
admin/buttons.php DELETED
@@ -1,161 +0,0 @@
1
- <?php
2
- /**
3
- * Buttons selection page
4
- *
5
- **/
6
-
7
- class wpsr_admin_buttons{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
12
-
13
- }
14
-
15
- function register( $pages ){
16
-
17
- $pages[ 'buttons' ] = array(
18
- 'name' => 'Share buttons (Deprecated)',
19
- 'banner' => WPSR_ADMIN_URL . '/images/banners/share-buttons.svg',
20
- 'page_callback' => array( $this, 'page' ),
21
- 'feature' => true,
22
- 'class' => 'old_ft',
23
- 'form' => array(
24
- 'id' => 'button_settings',
25
- 'name' => 'button_settings',
26
- 'callback' => array( $this, 'form_fields' ),
27
- 'validation' => array( $this, 'validation' ),
28
- )
29
- );
30
-
31
- return $pages;
32
-
33
- }
34
-
35
- function section_templates( $values, $i ){
36
-
37
- if( !isset( $values[ 'tmpl' ][ $i ] ) ){
38
- $values[ 'tmpl' ][ $i ] = WPSR_Lists::defaults( 'buttons_template' );
39
- }else{
40
- $values[ 'tmpl' ][ $i ] = WPSR_Lists::set_defaults( $values[ 'tmpl' ][ $i ], WPSR_Lists::defaults( 'buttons_template' ) );
41
- }
42
-
43
- echo '<div class="template_wrap" data-id="' . $i . '">';
44
-
45
- WPSR_Admin::box_wrap( 'open', __( 'Add buttons to the template', 'wpsr' ), __( 'Add buttons to the template using the add sharing button below. Click "+" to add a new row. Click and drag row to rearrange the order.', 'wpsr' ), '2' );
46
- WPSR_Admin::buttons_veditor( "tmpl[$i][content]", $values['tmpl'][$i]['content'], true, 'wpsr_preview_template_buttons' );
47
- WPSR_Admin::box_wrap( 'close' );
48
-
49
- $positions = array(
50
- 'above_posts' => __( 'Above posts', 'wpsr' ),
51
- 'below_posts' => __( 'Below posts', 'wpsr' ),
52
- 'above_below_posts' => __( 'Both above and below posts', 'wpsr' )
53
- );
54
-
55
- // Position rules
56
- WPSR_Admin::box_wrap( 'open', __( 'Position of template in the page', 'wpsr' ), __( 'Choose the below options to select the position the template in a page.', 'wpsr' ), '3' );
57
-
58
- echo WPSR_Admin::field( 'radio', array(
59
- 'name' => 'tmpl[' . $i . '][position]',
60
- 'list' => $positions,
61
- 'value' => $values[ 'tmpl' ][ $i ][ 'position' ],
62
- 'default' => 'above_below_post',
63
- ));
64
-
65
- echo '<hr/><p>' . __( 'Select whether to show this template in excerpts', 'wpsr' ) . '</p>';
66
-
67
- echo WPSR_Admin::field( 'radio', array(
68
- 'name' => 'tmpl[' . $i . '][in_excerpt]',
69
- 'list' => array( 'show' => __( 'Show in excerpt', 'wpsr' ), 'hide' => __( 'Hide in excerpt', 'wpsr' ) ),
70
- 'value' => $values[ 'tmpl' ][ $i ][ 'in_excerpt' ],
71
- 'default' => 'hide',
72
- ));
73
-
74
- echo '<hr/><p>' . __( 'Hide template when screen width is less than the width below', 'wpsr' ) . '</p>';
75
-
76
- echo WPSR_Admin::field( 'text', array(
77
- 'type' => 'number',
78
- 'name' => 'tmpl[' . $i . '][min_on_width]',
79
- 'value' => $values[ 'tmpl' ][ $i ][ 'min_on_width' ],
80
- 'class' => '',
81
- 'helper' => __( 'in pixels. 0 to disable.' )
82
- ));
83
-
84
- WPSR_Admin::box_wrap( 'close' );
85
-
86
- // Location rules
87
- WPSR_Admin::box_wrap( 'open', __( 'Conditions to display the template', 'wpsr' ), __( 'Choose the below options to select the pages which will display the template.', 'wpsr' ), '4' );
88
- WPSR_Location_Rules::display_rules( "tmpl[$i][loc_rules]", $values['tmpl'][$i]['loc_rules'] );
89
- WPSR_Admin::box_wrap( 'close' );
90
-
91
- echo '</div>'; // template_wrap
92
-
93
- }
94
-
95
- function form_fields( $values ){
96
-
97
- $values = WPSR_Lists::set_defaults( $values, array(
98
- 'ft_status' => 'enable',
99
- 'tmpl' => array()
100
- ));
101
-
102
- $feature = array(
103
- 'name' => 'buttons',
104
- 'hide_services' => array()
105
- );
106
-
107
- WPSR_Buttons_Picker::print_buttons_picker($feature);
108
-
109
- $section0 = array(
110
- array( __( 'Select to enable or disable share buttons feature', 'wpsr' ), WPSR_Admin::field( 'select', array(
111
- 'name' => 'ft_status',
112
- 'value' => $values[ 'ft_status' ],
113
- 'list' => array(
114
- 'enable' => __( 'Enable sharebar', 'wpsr' ),
115
- 'disable' => __( 'Disable sharebar', 'wpsr' )
116
- ),
117
- )), 'class="ft_table"' ),
118
- );
119
-
120
- WPSR_Admin::build_table( $section0, __( 'Enable/disable share buttons', 'wpsr' ), '', false, '1' );
121
-
122
- echo '<div class="feature_wrap">';
123
-
124
- $template_count = 3;
125
-
126
- echo '<ul class="template_tab">';
127
- for( $i = 1; $i <= $template_count; $i++ ){
128
- echo '<li>Template ' . $i . '</li>';
129
- }
130
- echo '</ul>';
131
-
132
- for( $i=1; $i<=$template_count; $i++ ){
133
- $this->section_templates( $values, $i );
134
- }
135
-
136
- echo '</div>';
137
-
138
- }
139
-
140
- function page(){
141
-
142
- echo '<div class="notice notice-error">
143
- <p>Classic share buttons feature is now deprecated and will be removed in the next version. It is replaced with a brand new "Social icons" feature.</p>
144
- <p>Please enable the new social icons in the settings page and migrate your old configuration.</p>
145
- <p><a href="' . admin_url( 'admin.php?page=wp_socializer&tab=social_icons') . '" class="button button-primary">Open new social icons settings</a></p>
146
- </div>';
147
-
148
- // Add settings form
149
- WPSR_Admin::settings_form( 'buttons' );
150
-
151
- }
152
-
153
- function validation( $input ){
154
- return $input;
155
- }
156
-
157
- }
158
-
159
- new wpsr_admin_buttons();
160
-
161
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/buttons_picker.php DELETED
@@ -1,291 +0,0 @@
1
- <?php
2
- /**
3
- * WP Socializer button picker
4
- *
5
- **/
6
-
7
- class WPSR_Buttons_Picker{
8
-
9
- public static function init(){
10
-
11
- // Register the action for admin ajax features
12
- add_action( 'wp_ajax_wpsr_buttons_picker', array( __CLASS__, 'list_buttons' ) );
13
-
14
- add_action( 'wp_ajax_wpsr_create_button', array( __CLASS__, 'create_button' ) );
15
-
16
- }
17
-
18
- public static function create_button(){
19
-
20
- check_ajax_referer('wpsr_create_button');
21
-
22
- if(!isset($_GET['btn_tmpl_id']) || !isset($_GET['feature']) || !isset($_GET['type']) || !isset($_GET['service'])){
23
- die(0);
24
- }
25
-
26
- $feature_id = wp_kses_post( $_GET[ 'feature' ] );
27
- $service_id = wp_kses_post( $_GET[ 'service' ] );
28
- $btn_tmpl_id = wp_kses_post( $_GET[ 'btn_tmpl_id' ] );
29
- $type = wp_kses_post( $_GET[ 'type' ] );
30
-
31
- $buttons = WPSR_Buttons::list_all();
32
- $services = WPSR_Services::list_all();
33
-
34
- if($type == 'new'){
35
- $buttons_tmpl = WPSR_Services::list_templates( $feature_id );
36
-
37
- if(!array_key_exists($btn_tmpl_id, $buttons_tmpl) && $btn_tmpl_id != 'default'){
38
- die(0);
39
- }
40
-
41
- $tmpl_props = $buttons_tmpl[$btn_tmpl_id];
42
- $btn_id = WPSR_Buttons::generate_button_id( $service_id );
43
- $btn_settings = ($btn_tmpl_id == 'default') ? array() : $tmpl_props['settings'];
44
- $btn_settings['title'] = isset($_GET['title']) ? wp_kses_post($_GET[ 'title' ]) : '';
45
-
46
- $buttons[$btn_id] = array(
47
- 'service' => $service_id,
48
- 'feature' => $feature_id,
49
- 'settings' => $btn_settings
50
- );
51
-
52
- update_option('wpsr_buttons', $buttons);
53
-
54
- $buttons = WPSR_Buttons::list_all();
55
- $btn_tmpl_id = $btn_id;
56
- }
57
-
58
- if(!array_key_exists($btn_tmpl_id, $buttons)){
59
- die(0);
60
- }
61
-
62
- $btn_props = $buttons[$btn_tmpl_id];
63
-
64
- echo self::tmpl_veditor_button($btn_tmpl_id, $btn_props, $services[$service_id]);
65
-
66
- die(0);
67
-
68
- }
69
-
70
- public static function get_feature_services( $feature = array() ){
71
-
72
- $services = WPSR_Services::list_all();
73
- $feature = self::validate_feature( $feature );
74
- $buttons_list = array();
75
- $services_filtered = array();
76
-
77
- foreach( $services as $id => $config ){
78
- if( !in_array( $feature[ 'name' ], $config[ 'hide_in_feature' ] ) && !in_array( $id, $feature[ 'hide_services' ] ) ){
79
- $services_filtered[$id] = $config;
80
- }
81
- }
82
-
83
- return $services_filtered;
84
-
85
- }
86
-
87
- public static function get_feature_created_buttons( $feature, $service ){
88
-
89
- $buttons = WPSR_Buttons::list_all();
90
- $buttons_list = array(); // Holds all the button ids
91
- $feature = self::validate_feature( $feature );
92
-
93
- foreach( $buttons as $id => $config ){
94
-
95
- if( !array_key_exists( 'feature', $config ) ){
96
- $config[ 'feature' ] = $feature[ 'name' ];
97
- }
98
-
99
- if( $config[ 'feature' ] == $feature[ 'name' ] && $config['service'] == $service ){
100
- $buttons_list[$id] = $config;
101
- }
102
-
103
- }
104
-
105
- return $buttons_list;
106
-
107
- }
108
-
109
- public static function print_buttons_picker( $feature ){
110
-
111
- $services = self::get_feature_services( $feature );
112
- $nonce = wp_create_nonce( 'wpsr_create_button' );
113
-
114
- echo '<div class="bp_wrap" data-feature="' . $feature['name'] . '" data-nonce="' . $nonce . '">';
115
- echo '<h1 class="bp_head">Select button to insert <span data-htip="You can customize the buttons after inserting them in the editor"><i class="fa fa-info-circle pointer"></i></span> <span class="bp_close"><i class="fa fa-times"></i></span></h1>';
116
-
117
- echo '<div class="bp_cnt">';
118
- echo '<ul class="bp_slist">';
119
- foreach($services as $id => $config){
120
- echo '<li data-sid="' . $id . '">';
121
- echo '<img src="' . $config['icons'] . '" class="bp_sicon" />';
122
- echo $config['name'] . '</li>';
123
- }
124
- echo '</ul>';
125
-
126
- echo '<div class="bp_blist">';
127
- foreach($services as $id => $config){
128
-
129
- $buttons = self::get_feature_created_buttons( $feature, $id );
130
- $service_name = $config['name'];
131
-
132
- echo '<div class="bp_sbox" data-sid="' . $id . '">';
133
- echo '</div>';
134
- }
135
- echo '</div>';
136
-
137
- echo '</div><!--bp_cnt-->';
138
- echo '</div><!--bp_wrap-->';
139
- }
140
-
141
- public static function print_veditor_buttons( $buttons_list ){
142
-
143
- $buttons = WPSR_Buttons::list_all();
144
- $services = WPSR_Services::list_all();
145
-
146
- echo '<ul class="btn_list clearfix" data-empty="No buttons created">';
147
- foreach($buttons_list as $id){
148
-
149
- if( !isset( $buttons[ $id ] ) )
150
- continue;
151
-
152
- $config = $buttons[ $id ];
153
-
154
- if( !isset( $services[ $config[ 'service' ] ] ) )
155
- continue;
156
-
157
- $service = $services[ $config[ 'service' ] ];
158
-
159
- echo self::tmpl_veditor_button($id, $config, $service);
160
-
161
- }
162
- echo '</ul>';
163
-
164
- }
165
-
166
- public static function list_buttons(){
167
-
168
- if(!isset($_GET['service']) || !isset($_GET['feature'])){
169
- die(0);
170
- }
171
-
172
- $service = wp_kses_post( $_GET[ 'service' ] );
173
- $feature = wp_kses_post( $_GET[ 'feature' ] );
174
-
175
- $buttons = WPSR_Buttons::list_all();
176
- $buttons_tmpl = WPSR_Services::list_templates( $feature );
177
- $buttons_feature = array();
178
-
179
- echo '<!doctype html><html lang="en"><head><meta charset="utf-8"><title></title>';
180
- echo '<link href="' . WPSR_ADMIN_URL . 'css/button_picker_preview.css" rel="stylesheet" type="text/css" media="all" />';
181
- echo '</head><body>';
182
-
183
- foreach($buttons as $id=>$config){
184
- if($config['service'] == $service && $config['feature'] == $feature){
185
- $buttons_feature[$id] = $config;
186
- }
187
- }
188
-
189
- if(count($buttons_feature) > 0){
190
- echo '<h3>Created buttons</h3>';
191
- echo '<div class="clearfix">';
192
-
193
- foreach($buttons_feature as $id=>$config){
194
- echo self::tmpl_list_button($id, $config, 'created', $service);
195
- }
196
-
197
- echo '</div>';
198
- }
199
-
200
- echo '<h3>Create new button</h3>';
201
- echo '<div class="clearfix">';
202
-
203
- echo self::tmpl_list_button('default', array(), 'new', $service);
204
-
205
- WPSR_Buttons::$temp_buttons = $buttons_tmpl;
206
- foreach($buttons_tmpl as $id=>$config){
207
- if($config['service'] == $service){
208
- echo self::tmpl_list_button($id, $config, 'new', $service);
209
- }
210
- }
211
- WPSR_Buttons::$temp_buttons = array();
212
-
213
- echo '</div>';
214
-
215
- WPSR_Includes::preview_print_includes();
216
-
217
- echo '</body></html>';
218
-
219
- die(0);
220
-
221
- }
222
-
223
- public static function tmpl_list_button($id, $config, $type, $service ){
224
-
225
- $page_info = array(
226
- 'title' => 'Google',
227
- 'url' => 'https://www.google.com',
228
- 'excerpt' => 'Dummy excerpt for WP Socializer preview',
229
- 'short_url' => 'https://goo.gl/lightsaber',
230
- 'comments_count' => '45',
231
- 'post_id' => 1
232
- );
233
-
234
- $html = '';
235
-
236
- if($id == 'default'){
237
- $title = 'Create button with default settings';
238
- $btn_html = '<i class="fa fa-plus default_icon"></i>';
239
- }else{
240
- $title = isset($config['settings']['title']) ? $config['settings']['title'] : '';
241
- $desc = isset($config['desc']) ? $config['desc'] : '';
242
- $btn_html = WPSR_Buttons::get_button($id, $page_info);
243
- }
244
-
245
- $html .= '<div class="bt_wrap" data-id="' . $id . '" data-type="' . $type . '" data-service="' . $service . '">';
246
-
247
- if($type == 'created'){
248
- $html .= '<span class="bt_delete" title="Delete"><i class="fa fa-trash-alt"></i></span>';
249
- }
250
-
251
- $html .= '<div class="bt_inner">';
252
- $html .= $btn_html;
253
- $html .= '</div>';
254
-
255
- if(!empty($title) || !empty($desc)){
256
- $html .= '<div class="tooltip">';
257
- if(!empty($title)) $html .= '<span>' . $title . '</span>';
258
- if(!empty($desc)) $html .= '<span>' . $desc . '</span>';
259
- $html .= '</div>';
260
- }
261
-
262
- $html .= '</div>';
263
-
264
- return $html;
265
- }
266
-
267
- public static function tmpl_veditor_button($id, $config, $service){
268
- $html = '';
269
- $html .= '<li data-service="' . $config[ 'service' ] . '" data-id="' . $id . '" class="ui_btn">';
270
- $html .= '<span class="btn_icon"><img src="' . $service['icons'] . '" /></span>';
271
- $html .= '<span class="btn_name"' . ( isset( $config[ 'settings' ][ 'title' ] ) ? 'data-title="' . $config[ 'settings' ][ 'title' ] . '"' : '' ) . '>' . $service['name'] . '</span>';
272
- $html .= '<i class="btn_action btn_delete fa fa-trash-alt" title="' . __( 'Delete button', 'wpsr' ) . '"></i>';
273
- $html .= '<i class="btn_action btn_edit fa fa-cog" title="' . __( 'Settings', 'wpsr' ) . '"></i>';
274
- $html .= '</li>';
275
- return $html;
276
- }
277
-
278
- public static function validate_feature( $feature ){
279
-
280
- return WPSR_Lists::set_defaults( $feature, array(
281
- 'name' => 'none',
282
- 'hide_services' => array()
283
- ));
284
-
285
- }
286
-
287
- }
288
-
289
- WPSR_Buttons_Picker::init();
290
-
291
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/css/button_picker_preview.css DELETED
@@ -1,117 +0,0 @@
1
- body{
2
- margin: 0;
3
- font-family: "Open Sans",sans-serif;
4
- font-size: 13px;
5
- }
6
- h3 {
7
- margin: 0 0 20px 0;
8
- text-transform: uppercase;
9
- font-size: 12px;
10
- }
11
- .bt_wrap {
12
- float: left;
13
- text-align: center;
14
- vertical-align: middle;
15
- border: 1px solid #dfdfdf;
16
- margin: 0 15px 15px 0;
17
- position: relative;
18
- cursor: pointer;
19
- }
20
- .bt_inner {
21
- padding: 15px;
22
- }
23
- .bt_wrap:hover:after{
24
- position: absolute;
25
- content: '';
26
- background: rgba(0, 0, 0, 0.4);
27
- left: 0;
28
- right: 0;
29
- top: 0;
30
- bottom: 0;
31
- }
32
- .bt_wrap.inserting:after{
33
- position: absolute;
34
- content: '';
35
- background: rgba(255, 255, 255, 0.9);
36
- left: 0;
37
- right: 0;
38
- top: 0;
39
- bottom: 0;
40
- background-image: url(../images/icons/loading.gif);
41
- background-position: center center;
42
- background-repeat: no-repeat;
43
- }
44
- .bt_wrap[data-id="default"]{
45
- min-width: 150px;
46
- }
47
-
48
- .bt_delete{
49
- display: none;
50
- position: absolute;
51
- top: 0;
52
- right: 0;
53
- background: #fff;
54
- width: 16px;
55
- height: 16px;
56
- z-index: 99;
57
- cursor: pointer;
58
- padding: 5px;
59
- border-radius: 0 0 0 5px;
60
- color: #333;
61
- }
62
- .bt_delete:hover{
63
- background-color: #f1f1f1;
64
- color: red;
65
- }
66
- .bt_wrap:hover .bt_delete{
67
- display: block;
68
- }
69
-
70
- .tooltip {
71
- display: none;
72
- background: #333;
73
- color: #fff;
74
- position: absolute;
75
- padding: 5px 10px;
76
- border-radius: 3px;
77
- max-width: 300px;
78
- min-width: auto;
79
- text-align: left;
80
- z-index: 999;
81
- top: 110%;
82
- white-space: pre;
83
- font-size: 11px;
84
- }
85
- .tooltip:after{
86
- position: absolute;
87
- content: '';
88
- border: 5px solid;
89
- border-color: transparent transparent #333 transparent;
90
- top: -10px;
91
- left: 5px;
92
- }
93
- .tooltip span{
94
- display: block;
95
- }
96
- .bt_wrap:hover .tooltip{
97
- display: block;
98
- }
99
-
100
- .default_icon {
101
- position: absolute;
102
- font-size: 20px !important;
103
- top: 50%;
104
- left: 50%;
105
- transform: translate(-50%, -50%);
106
- color: #888;
107
- }
108
-
109
- .clearfix{
110
- display: flex;
111
- flex-wrap: wrap;
112
- }
113
- .clearfix::after {
114
- content: "";
115
- clear: both;
116
- display: table;
117
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/css/sharebar_preview.css DELETED
@@ -1,49 +0,0 @@
1
- body{
2
- margin: 0;
3
- background: rgba(243, 243, 243, 0.90);
4
- color: #444;
5
- font-family: "Open Sans",sans-serif;
6
- font-size: 13px;
7
- }
8
- #main_content{
9
- border: 1px solid #ccc;
10
- margin: 30px auto;
11
- height: 2000px;
12
- width: 800px;
13
- background: #fff;
14
- }
15
- .adjust_bar {
16
- position: fixed;
17
- top: 50%;
18
- left: 50%;
19
- transform: translate(-50%, -50%);
20
- margin: 0;
21
- border: 1px solid #e5e5e5;
22
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
23
- background: #fff;
24
- padding: 0 15px 15px 15px;
25
- z-index: 9999;
26
- }
27
- .adjust_bar h3 {
28
- margin: 0 -15px 15px -15px;
29
- border-bottom: 1px solid #e5e5e5;
30
- padding: 10px 15px;
31
- background: #F3F3F3;
32
- font-size: 14px;
33
- }
34
- .adj_footer {
35
- margin: 15px -15px -15px -15px;
36
- padding: 15px;
37
- border-top: 1px solid #e5e5e5;
38
- background: #FFFDF0;
39
- }
40
- .offset_drag{
41
- width: 100%;
42
- }
43
- .offset_val {
44
- padding: 5px 0;
45
- margin: 0;
46
- border: 0;
47
- width: 100%;
48
- text-align: center;
49
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/css/style.css CHANGED
@@ -2,19 +2,19 @@
2
  margin: 0;
3
  }
4
  #wpsr_header{
5
- margin: 0 0 15px -20px;
6
  padding: 0;
7
  border-bottom: 1px solid #dfdfdf;
 
8
  }
9
  #wpsr_header hgroup{
10
- width: 75%;
11
  position: relative;
12
- padding-left: 20px;
13
  }
14
  h1.wpsr_title{
15
  background: url( '../images/icons/wp-socializer.png' ) no-repeat left;
16
  background-size: 32px 32px;
17
- padding: 25px 0 25px 40px;
18
  }
19
  h1.wpsr_title .title-count{
20
  font-size: 10px;
@@ -43,24 +43,28 @@ h1.wpsr_title a i{
43
  margin-right: 5px;
44
  }
45
 
 
 
 
 
 
46
  #content {
47
- width: 75%;
 
48
  }
49
  #content h1 {
50
  padding: 0;
51
- margin: 20px 0;
52
  }
53
  #content h1 i{
54
  font-size: 0.8em;
55
- margin: 0;
 
56
  }
57
 
58
  #sidebar{
59
- position: fixed;
60
- width: calc(25% - 90px);
61
- right: 20px;
62
- top: 50%;
63
- transform: translateY(-50%);
64
  }
65
  .side_card {
66
  padding: 20px;
@@ -68,15 +72,47 @@ h1.wpsr_title a i{
68
  margin-bottom: 15px;
69
  background-size: 95px;
70
  background-color: #fff;
71
- border: 1px solid #ccd0d4;
72
  }
73
  .side_card h2 {
74
  margin: -20px -20px 20px -20px;
75
- padding: 15px;
76
- border-bottom: 1px solid #ccd0d4;
 
77
  }
78
  .side_card h2 i {
79
- margin: 0 10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  }
81
 
82
 
@@ -85,23 +121,21 @@ h1.wpsr_title a i{
85
  flex-wrap: wrap;
86
  }
87
  .page_card {
88
- flex-basis: 22%;
89
- display: block;
90
- height: 300px;
91
  background-color: #fff;
92
- background-repeat: no-repeat;
93
- background-position: 50%;
94
- margin: 0 25px 25px 0;
95
  border: 1px solid #e6e6e6;
96
  position: relative;
97
  box-sizing: border-box;
98
  text-decoration: none;
99
- box-shadow: 0 1px 1px rgba(0,0,0,.04);
 
100
  }
101
  .page_card h3{
102
- margin: 0;
103
- padding: 15px;
104
- text-align: center;
 
105
  }
106
  .page_card:hover{
107
  border-color: #888 !important;
@@ -114,37 +148,28 @@ h1.wpsr_title a i{
114
  background: #4eb951;
115
  color: #fff;
116
  }
117
- .page_card.new_ft:before{
118
- content: 'New';
119
- position: absolute;
120
- top: -14px;
121
- right: -14px;
122
- background: red;
123
- padding: 3px 10px;
124
- color: #fff;
125
- border-radius: 5px;
126
- }
127
- .page_card.old_ft{
128
- opacity: 0.3;
129
  }
130
- .page_card.old_ft:hover{
131
- opacity: 1;
 
132
  }
133
-
134
-
135
- .page_icon{
136
- width: 80px;
137
- height: 80px;
138
- position: absolute;
139
- transform: translate(-50%,-50%);
140
- top: 50%;
141
- left: 50%;
142
  }
143
  .page_feat_status {
144
  display: block;
145
  text-align: center;
146
  background: #fbfbfb;
147
- padding: 15px;
148
  position: absolute;
149
  bottom: 0;
150
  left: 0;
@@ -155,14 +180,20 @@ h1.wpsr_title a i{
155
  margin-right: 5px;
156
  }
157
 
158
- .card_setup{
159
- border-color: #c296ca;
160
- }
161
  .card_others {
162
  border-color: #b4c0ff;
163
  }
164
 
165
 
 
 
 
 
 
 
 
 
 
166
  .postbox hr{
167
  margin: 15px 0;
168
  border-bottom: none;
@@ -184,324 +215,6 @@ h1.wpsr_title a i{
184
  width: 55%;
185
  }
186
 
187
- .sbox_wrap{
188
- position: relative;
189
- display: table;
190
- border-radius: 5px;
191
- border: 1px solid #ccc;
192
- margin: 0 0 15px 0;
193
- width: 100%;
194
- background: #fff;
195
- -webkit-user-select: none;
196
- -moz-user-select: none;
197
- user-select: none;
198
- }
199
- .sbox_inner {
200
- display: table-cell;
201
- padding: 0.75em;
202
- position: relative;
203
- font-size: 18px;
204
- background: #fff;
205
- width: 100%;
206
- line-height: 1em;
207
- border-radius: 5px 0 0 5px;
208
- box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
209
- cursor: pointer;
210
- }
211
- .sbox_inner:hover{
212
- background-color: lightyellow;
213
- }
214
- .sbox_inner.sbox_open ul{
215
- display: block !important;
216
- }
217
- .sbox_inner.sbox_open{
218
- border-radius: 5px 5px 0 0;
219
- }
220
- .sbox_inner:after{
221
- content: '\25bc';
222
- position: absolute;
223
- right: 1em;
224
- top: 50%;
225
- margin-top: -0.6em;
226
- color: #999;
227
- font-size: 0.75em;
228
- }
229
- .sbox_inner ul {
230
- display: none;
231
- position: absolute;
232
- background: #fff;
233
- top: 1.4em;
234
- left: -1px;
235
- right: 0;
236
- border: 1px solid #ccc;
237
- z-index: 999;
238
- max-height: 300px;
239
- overflow: auto;
240
- box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.18);
241
- border-radius: 0 0 5px 5px;
242
- }
243
- .sbox_inner ul li {
244
- border: 1px solid #ccc;
245
- position: relative;
246
- padding: 0.75em;
247
- margin: 0;
248
- cursor: pointer;
249
- float: left;
250
- border-width: 0 1px 1px 0;
251
- }
252
- .sbox_inner ul li:hover{
253
- background-color: #f7f7f7;
254
- }
255
- .sbox_inner ul li:last-child{
256
- border-bottom: none;
257
- }
258
- .sbox_action, .sbox_action:active{
259
- display: table-cell !important;
260
- vertical-align: middle !important;
261
- border: none !important;
262
- border-radius: 0 5px 5px 0 !important;
263
- }
264
- .sbox_loading .sbox_inner{
265
- opacity: 0;
266
- }
267
- .sbox_loading:before{
268
- content: '';
269
- width: 16px;
270
- height: 16px;
271
- position: absolute;
272
- background: url('../images/icons/loading.gif') no-repeat;
273
- top: 1em;
274
- left: 1em;
275
- }
276
-
277
-
278
- .btn_selector img{
279
- position: absolute;
280
- top: 50%;
281
- margin-top: -8px;
282
- }
283
- .btn_selector .btn_liname{
284
- margin-left: 30px;
285
- }
286
- .btn_selector em{
287
- font-size: 0.65em;
288
- font-style: italic;
289
- color: #999;
290
- display: none;
291
- }
292
- .btns_created:empty{
293
- border: 1px dashed #dfdfdf;
294
- min-height: 50px;
295
- }
296
- .btns_created:empty:after{
297
- content: attr(data-empty);
298
- display: block;
299
- text-align: center;
300
- margin: 15px 0 0 0;
301
- }
302
-
303
- .ui_btn{
304
- display: table;
305
- background: #333;
306
- color: #fff;
307
- margin: 7.5px 15px 7.5px 0;
308
- box-sizing: border-box;
309
- position: relative;
310
- float: left;
311
- line-height: 32px;
312
- height: 36px;
313
- box-shadow: 0 2px 2px rgba(0, 0, 0, 0.18);
314
- border-radius: 3px;
315
- cursor: move;
316
- width: auto !important;
317
- -webkit-user-select: none;
318
- -moz-user-select: none;
319
- user-select: none;
320
- }
321
- .ui_btn > * {
322
- display: table-cell;
323
- line-height: 1em;
324
- vertical-align: middle;
325
- padding: 0 7px;
326
- }
327
- .ui_btn_selected{
328
- background: #333 !important;
329
- color: #fff !important;
330
- }
331
- .ui_btn.ui-draggable{
332
- cursor: move;
333
- }
334
- .ui-state-placeholder{
335
- border: 1px dashed #ccc;
336
- height: 34px;
337
- margin: 7.5px 15px 7.5px 0;
338
- border-radius: 3px;
339
- }
340
- .ui-btn.ui-sortable-helper{
341
- transition: all 2s;
342
- box-shadow: 0 4px 4px rgba(0, 0, 0, 0.18);
343
- }
344
- .ui-sortable-helper, .ui-draggable-dragging{
345
- z-index: 9999 !important;
346
- }
347
-
348
- .btn_action{
349
- cursor: pointer;
350
- width: 16px;
351
- opacity: 0.5;
352
- }
353
- .btn_action:hover{
354
- opacity: 1;
355
- }
356
- .btn_action:active{
357
- opacity: 0.4;
358
- }
359
- .btn_icon, .btn_action{
360
- width: 16px;
361
- height: 16px;
362
- margin: 0;
363
- }
364
- .btn_name:after {
365
- content: attr(data-title);
366
- display: block;
367
- font-size: 9px;
368
- opacity: 0.6;
369
- max-width: 110px;
370
- overflow: hidden;
371
- white-space: nowrap;
372
- text-overflow: ellipsis;
373
- min-width: 90px;
374
- }
375
-
376
- .ui_btn i{
377
- font-size: 15px;
378
- }
379
-
380
-
381
- .bp_wrap{
382
- position: fixed;
383
- display: none;
384
- flex-direction: column;
385
- background: #fff;
386
- z-index: 9999;
387
- top: 15%;
388
- bottom: 15%;
389
- left: 15%;
390
- right: 15%;
391
- border: 1px solid #dfdfdf;
392
- box-shadow: 0 0 8px 1px;
393
- outline: 2000px solid #0000007d;
394
- overflow: auto;
395
- }
396
- .bp_wrap.open{
397
- display: flex !important;
398
- }
399
- .bp_head{
400
- border-bottom: 1px solid #dfdfdf;
401
- margin: 0 !important;
402
- padding: 20px !important;
403
- }
404
- .bp_close{
405
- font-size: 13px;
406
- position: absolute;
407
- top: 0;
408
- right: 0;
409
- width: 28px;
410
- height: 28px;
411
- background: #333;
412
- line-height: 28px;
413
- text-align: center;
414
- color: #fff;
415
- cursor: pointer;
416
- border-radius: 0 0 0 5px;
417
- }
418
- .bp_cnt{
419
- display: flex;
420
- }
421
- .bp_cnt h3{
422
- margin: 0 0 20px 0;
423
- font-size: 12px;
424
- text-transform: uppercase;
425
- border-bottom: 1px solid #dfdfdf;
426
- padding: 0 0 10px 0;
427
- }
428
- .bp_slist{
429
- flex: 25%;
430
- border-right: 1px solid #dfdfdf;
431
- margin: 0;
432
- overflow-y: scroll;
433
- overflow-x: hidden;
434
- }
435
- .bp_slist li {
436
- border-bottom: 1px solid #dfdfdf;
437
- padding: 15px 0;
438
- margin: 0;
439
- font-size: 18px;
440
- cursor: pointer;
441
- }
442
- .bp_slist li:hover{
443
- background-color: #f7f7f7;
444
- }
445
- .bp_slist li.active {
446
- background: #f0f0f0;
447
- position: relative;
448
- }
449
- .bp_slist li.active:after{
450
- position: absolute;
451
- display: block;
452
- content: '';
453
- border: 10px solid #fff;
454
- border-color: transparent transparent transparent #fff;
455
- left: -1px;
456
- top: 50%;
457
- margin-top: -10px;
458
- }
459
- .bp_slist::-webkit-scrollbar-track{
460
- background-color: #F5F5F5;
461
- }
462
-
463
- .bp_slist::-webkit-scrollbar{
464
- width: 10px;
465
- background-color: #F5F5F5;
466
- }
467
-
468
- .bp_slist::-webkit-scrollbar-thumb{
469
- border-radius: 10px;
470
- background-color: #ccc;
471
- }
472
-
473
- .bp_sicon {
474
- vertical-align: middle;
475
- margin: 0 15px;
476
- }
477
- .bp_blist{
478
- flex: 75%;
479
- padding: 20px 0 0 20px;
480
- }
481
- .bp_sbox{
482
- display: none;
483
- position: relative;
484
- height: 100%;
485
- }
486
- .bp_sbox.active{
487
- display: block;
488
- }
489
- .bp_sbox.loading{
490
- background-image: url(../images/icons/loading.gif);
491
- background-position: center 100px;
492
- background-repeat: no-repeat;
493
- }
494
- .bp_sel_box{
495
- width: 100%;
496
- height: 100% !important;
497
- position: absolute;
498
- top: 0;
499
- left: 0;
500
- right: 0;
501
- bottom: 0;
502
- }
503
-
504
-
505
  .tooltip_settings_dd{
506
  position: absolute;
507
  }
@@ -836,40 +549,23 @@ h1.wpsr_title a i{
836
  right: 10px;
837
  padding: 5px;
838
  }
839
- .btn_settings_status {
840
- background: #4CAF50;
841
- position: absolute;
842
- bottom: 0;
843
- left: 0;
844
- display: none;
845
- color: #fff;
846
- padding: 0.3em 0.5em;
847
- border-radius: 5px;
848
- }
849
- .btn_settings_form h4 {
850
- text-transform: uppercase;
851
  }
852
- .btn_settings_form h3 {
853
- text-transform: uppercase;
854
- font-size: 14px;
855
- margin: 20px 0
856
  }
857
- .btn_shortcode{
858
- background: url('../images/icons/shortcode.png') no-repeat 7px;
859
- padding-left: 28px;
860
- position: absolute;
861
- bottom: 0;
862
- left: 0;
863
  }
864
- .btn_shortcode:disabled{
865
- color: #333;
866
- }
867
- .btn_shortcode:hover{
868
- opacity: 1;
869
- transition: all 1s;
870
- cursor: text;
871
  }
872
-
873
  .main_form {
874
  position: relative;
875
  }
@@ -886,132 +582,6 @@ h1.wpsr_title a i{
886
  padding: 0 30px;
887
  }
888
 
889
- .mini_section{
890
- background: #F9F9F9;
891
- padding: 0 15px 15px 15px;
892
- margin: 0 0 15px 0;
893
- display: none;
894
- border: 1px solid #ccc;
895
- }
896
- .mini_section h4{
897
- margin: 0 0 15px 0;
898
- border-bottom: 1px solid #dfdfdf;
899
- padding: 0 0 15px 0;
900
- }
901
- .mini_btn_list{
902
- margin-bottom: 0;
903
- }
904
- .mini_btn_list li{
905
- float: left;
906
- margin: 0 10px 10px 0;
907
- border-radius: 3px;
908
- padding-right: 8px;
909
- background-color: #088049;
910
- color: #fff;
911
- cursor: move;
912
- }
913
- .mini_btn_list li > *{
914
- display: table-cell;
915
- padding: 8px 0 8px 10px;
916
- }
917
- .mini_btn_list li > *:last-child{
918
- padding-right: 0;
919
- }
920
- .mini_btn_list li:hover{
921
- box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.5);
922
- }
923
- .mini_btn_list.list_selected{
924
- margin: 0;
925
- border: 1px dashed #ccc;
926
- padding: 15px 15px 5px 15px;
927
- }
928
- .mini_btn_list.list_selected span{
929
- border-right: 1px solid rgba(255, 255, 255, 0.29);
930
- padding-right: 10px;
931
- }
932
- .mini_section_select{
933
- width: 100%;
934
- text-align: left;
935
- background: #F5F5F5;
936
- border: 1px solid #ccc;
937
- padding: 10px;
938
- margin: 0 0 15px 0;
939
- cursor: pointer;
940
- }
941
- .mini_section_select:hover{
942
- opacity: 0.6;
943
- }
944
- .mini_section_select i {
945
- margin: 3px 5px 0 0;
946
- }
947
-
948
- .mini_filters input, .mini_filters select{
949
- margin: 0 10px 0 0;
950
- font-size: 13px;
951
- width: 180px;
952
- height: 30px;
953
- line-height: 30px;
954
- vertical-align: bottom;
955
- }
956
-
957
- .list_available .item_action{
958
- display: none;
959
- }
960
- .list_selected .item_action{
961
- opacity: 0.7;
962
- cursor: pointer;
963
- }
964
- .list_selected .item_action:hover{
965
- opacity: 1;
966
- }
967
- .list_selected:empty{
968
- border: 1px dashed #dfdfdf;
969
- min-height: 50px;
970
- }
971
- .list_selected:empty:after{
972
- content: '+';
973
- font-size: 40px;
974
- display: block;
975
- text-align: center;
976
- margin: 15px 0 0 0;
977
- }
978
- .list_btn_placeholder{
979
- background: red;
980
- }
981
-
982
- .item_popup{
983
- position: fixed;
984
- top: 10%;
985
- bottom: 10%;
986
- left: 25%;
987
- right: 25%;
988
- background: #fff;
989
- box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.5);
990
- padding: 15px;
991
- overflow: auto;
992
- display: none;
993
- z-index: 99;
994
- }
995
- .item_popup h4{
996
- margin: 0;
997
- border-bottom: 1px solid #dfdfdf;
998
- padding-bottom: 15px;
999
- }
1000
- .item_popup_close {
1001
- position: absolute;
1002
- top: 15px;
1003
- right: 15px;
1004
- cursor: pointer;
1005
- padding: 5px;
1006
- }
1007
- .item_popup_save{
1008
- margin-top: 15px !important;
1009
- }
1010
- .item_popup td small {
1011
- display: inline-block;
1012
- margin: 5px 0 0 0;
1013
- color: #7d7d7d;
1014
- }
1015
 
1016
  .ft_table td{
1017
  width: 15%;
@@ -1064,14 +634,15 @@ select[name="ft_status"]{
1064
  }
1065
 
1066
  #wpsr_pp_editor{
1067
- padding: 0 15px 15px 15px;
1068
  }
1069
 
1070
  .fb_selected h4 {
1071
  color: #fff;
1072
  padding: 10px 5px;
1073
  margin: 0;
1074
- cursor: move;
 
1075
  }
1076
  .fb_selected h4:hover{
1077
  opacity: 0.7;
@@ -1079,16 +650,20 @@ select[name="ft_status"]{
1079
  .fb_selected label {
1080
  box-sizing: border-box;
1081
  margin-bottom: 10px;
1082
- display: block;
1083
  color: #000;
 
 
1084
  }
1085
- .fb_selected label input[type="text"] {
1086
- font-size:13px;
1087
- margin-top: 5px;
1088
- box-shadow: none;
 
1089
  }
1090
  .fb_selected h4 i {
1091
- margin: 0 5px;
 
 
1092
  }
1093
  .fb_item_control {
1094
  float: right;
@@ -1099,6 +674,7 @@ select[name="ft_status"]{
1099
  .fb_selected li {
1100
  border: 1px solid #ccc;
1101
  background: #fff;
 
1102
  }
1103
  .fb_selected li > div {
1104
  padding: 10px;
@@ -1143,7 +719,10 @@ select[name="ft_status"]{
1143
  margin: -10px;
1144
  }
1145
  .fb_list{
1146
- height: auto !important;
 
 
 
1147
  }
1148
  .wpsr_ppe_footer{
1149
  position: fixed;
@@ -1212,22 +791,90 @@ select[name="ft_status"]{
1212
  padding: 5px !important;
1213
  max-width: 100% !important;
1214
  }
1215
- .ssb_add{
1216
- height: 38px !important;
1217
- border-radius: 0 5px 5px 0 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1218
  }
1219
-
1220
- .form-table tr.sub_head {
1221
- border-bottom: 1px solid #dfdfdf;
1222
  }
1223
- .form-table tr.sub_head th {
1224
- font-weight: normal !important;
1225
- color: #666;
1226
  }
1227
- .form-table .inline_field{
1228
- margin-right: 10px;
1229
  }
1230
 
 
1231
  .img_select{
1232
  display: none;
1233
  }
@@ -1264,49 +911,46 @@ select[name="ft_status"]{
1264
  box-shadow: 0 3px 3px -1px rgba(0, 0, 0, 0.2);
1265
  border-radius: 3px;
1266
  }
 
 
 
 
1267
 
1268
- .widgets_page .top_btn{
1269
- width: 100%;
1270
- text-align: center;
1271
- margin-bottom: 20px;
 
 
1272
  }
1273
- .widget_info {
1274
- width: 31%;
1275
- float: left;
1276
- background: #fff;
1277
- border: 1px solid #dfdfdf;
1278
- padding: 0 15px 15px 15px;
1279
- box-sizing: border-box;
1280
- margin: 0 2% 2% 0;
 
1281
  }
1282
- .widget_info .button{
1283
- width: 100%;
1284
- text-align: center;
1285
  }
1286
- .widget_info p{
1287
- font-style: italic;
 
 
 
1288
  }
1289
 
1290
- .widget_image{
1291
- height: 250px;
1292
- overflow: hidden;
1293
- margin: 0 -15px 15px -15px;
1294
- position: relative;
1295
- text-align: center;
1296
- border: 1px solid #ccc;
1297
- border-width: 1px 0;
1298
  }
1299
- .widget_image:after {
1300
- content: ' ';
1301
- background: rgba(255, 152, 0, 0.2);
1302
- position: absolute;
1303
- left: 0;
1304
- top: 0;
1305
- right: 0;
1306
- bottom: 0;
1307
  }
1308
- .widget_image img{
1309
- height: 100%;
1310
  }
1311
 
1312
  .drop_target{
@@ -1314,31 +958,6 @@ select[name="ft_status"]{
1314
  background: #EAFFEA !important;
1315
  }
1316
 
1317
- .htip{
1318
- background: #000;
1319
- position: absolute;
1320
- z-index: 9999;
1321
- padding: 5px;
1322
- border-radius: 5px;
1323
- box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
1324
- color: #fff;
1325
- max-width: 500px;
1326
- }
1327
- .htip:after {
1328
- content: ' ';
1329
- position: absolute;
1330
- border: 10px solid #000;
1331
- left: 50%;
1332
- bottom: -20px;
1333
- margin-left: -10px;
1334
- border-color: #000 rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
1335
- z-index:9999;
1336
- }
1337
- .htip img{
1338
- width: 100%;
1339
- margin: 0;
1340
- }
1341
-
1342
  .qtip_icon{
1343
  color: #333;
1344
  text-decoration: none;
@@ -1369,56 +988,106 @@ select[name="ft_status"]{
1369
 
1370
  .admin_links{
1371
  position: absolute;
1372
- top: 40px;
1373
- right: 20px;
1374
  display: flex;
1375
  transform: translateY(-50%);
 
 
 
 
 
1376
  }
1377
- .admin_links a{
1378
- border-radius: 5px;
1379
- padding: 7px 10px;
 
 
 
 
 
 
 
 
1380
  margin: 0 0 0 10px;
 
 
1381
  text-decoration: none;
1382
- font-size: 14px;
1383
- box-shadow: 0 1px 2px -1px #00000085;
1384
- color: #fff;
1385
  }
1386
- .admin_links a:hover{
1387
- opacity: 0.5;
1388
  }
1389
- .admin_links a i{
1390
- margin-right: 10px;
 
 
 
 
 
 
1391
  }
1392
- .admin_links .feedback_btn{
1393
- background: #28c62e;
 
 
 
 
 
 
 
 
 
1394
  }
1395
- .admin_links .twitter_btn{
1396
- background: #4da7de;
1397
  }
1398
 
1399
  .intro_popup{
1400
  background: #fff;
1401
  position: fixed;
1402
- outline: 9999px solid rgba(0, 0, 0, 0.8);
1403
  top: 10%;
1404
  left: 25%;
1405
  bottom: 10%;
1406
  right: 25%;
1407
  box-shadow: 0 0 8px -1px #000;
1408
- border: 3px solid orange;
1409
  display: none;
1410
  z-index: 999;
1411
  }
1412
  .intro_popup h1 {
1413
  border-bottom: 1px solid #dfdfdf;
1414
- padding: 20px !important;
1415
- background: #f0f0f0;
1416
- margin: -15px -15px 20px -15px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1417
  }
1418
  .intro_popup p, .intro_popup li{
1419
  font-size: 20px;
1420
  line-height: 1.5;
1421
- color: #607D8B;
 
 
 
 
 
 
 
 
 
 
1422
  }
1423
  .intro_popup footer{
1424
  position: absolute;
@@ -1433,15 +1102,25 @@ select[name="ft_status"]{
1433
  .intro_popup section{
1434
  position: absolute;
1435
  top: 0;
1436
- bottom: 70px;
1437
  left: 0;
1438
  right: 0;
1439
- padding: 15px;
1440
  overflow: auto;
1441
  }
 
 
 
 
 
 
 
 
 
 
1442
 
1443
  .style_ele ul{
1444
- list-style: square;
1445
  padding-left: 30px;
1446
  }
1447
 
@@ -1449,18 +1128,6 @@ select[name="ft_status"]{
1449
  margin: 5px 2px 0 0;
1450
  }
1451
 
1452
- .collapse_head{
1453
- border: 1px solid #ccc;
1454
- padding: 0.7em;
1455
- background: #F5F5F5;
1456
- margin: 0 0 5px 0;
1457
- text-transform: uppercase;
1458
- font-size: 11px;
1459
- }
1460
- .collapse_head+.form-table{
1461
- margin-left: 10px;
1462
- }
1463
-
1464
  #footer-left{
1465
  font-size: 12px;
1466
  font-style: italic;
@@ -1492,30 +1159,23 @@ select[name="ft_status"]{
1492
  background: #7d7d7d;
1493
  }
1494
 
1495
- .intro_popup .setup_hint{
1496
- font-size: 100px;
1497
- margin: 30px 0;
1498
- text-align: center;
1499
- border: 1px solid #ffa500;
1500
- box-shadow: 0 2px 4px -2px red;
1501
- padding: 25px;
1502
- }
1503
- .setup_hint i{
1504
- margin: 0 20px;
1505
  }
1506
- .setup_hint .fa-caret-right{
1507
- opacity: 0.5;
 
 
 
1508
  }
1509
- .setup_hint .fa-check-circle{
1510
- color: #4CAF50;
1511
  }
1512
-
1513
- .page_home .back_btn{
1514
- display: none;
1515
  }
1516
- .page_home #content h1 i{
1517
- margin: 0 10px 0 0;
1518
- color: #ff9900;
1519
  }
1520
 
1521
  .custom_html_editor{
@@ -1549,69 +1209,12 @@ select[name="ft_status"]{
1549
  }
1550
 
1551
  /** Promo **/
1552
-
1553
- .ufw{
1554
- background: linear-gradient(180deg, #2196F3, #58a4e1);
1555
- color: #fff;
1556
- border-radius: 5px;
1557
- padding: 15px;
1558
- margin: 15px 0 0 0;
1559
- }
1560
- .ufw a{
1561
- color: #fff;
1562
- text-decoration: none;
1563
- }
1564
- .ufw a:hover{
1565
- text-decoration: underline;
1566
- }
1567
- .ufw p{
1568
- opacity: 0.8;
1569
- display: block;
1570
- font-style: italic;
1571
- margin: 5px 0 0 0;
1572
- }
1573
- .ufw h4{
1574
- margin: 0 0 10px 0;
1575
- font-size: 1.3em;
1576
- line-height: 1.3;
1577
- }
1578
- .ufw h4 i{
1579
- font-weight: normal;
1580
- }
1581
- .ufw .balloon{
1582
- float: right;
1583
- margin-left: 15px;
1584
- }
1585
-
1586
- /** Social share **/
1587
- .social_share {
1588
- display: flex;
1589
- }
1590
- .social_share > a{
1591
- width: 100%;
1592
- text-align: center;
1593
- padding: 10px 0;
1594
- font-weight: bold;
1595
- text-decoration: none;
1596
- }
1597
- .social_share >a:hover{
1598
- color: #000;
1599
- text-decoration: none;
1600
- background-color: #fcfcfc;
1601
- }
1602
- .social_share .dashicons {
1603
- font-size: 32px;
1604
- width: 32px;
1605
- height: 32px;
1606
- margin: 0 0 5px 0;
1607
- }
1608
-
1609
  .subscribe_form {
1610
  display: flex;
1611
  padding: 15px;
1612
  background: #f7f7f7;
1613
  border-radius: 5px;
1614
- margin-top: 10px;
1615
  flex-direction: column;
1616
  }
1617
  .subscribe_form .subscribe_email_box {
@@ -1623,45 +1226,24 @@ select[name="ft_status"]{
1623
  width: 16px;
1624
  margin: 7px 3px 0 0;
1625
  }
1626
- .ss_facebook{
1627
- color: #3578E5;
1628
- }
1629
- .ss_twitter{
1630
- color: #1DA1F2;
1631
- }
1632
 
1633
- /** Rate & review **/
1634
- .rate_review{
1635
- display: block;
1636
- padding: 15px;
1637
- background: #fff;
1638
- margin-top: 15px;
1639
- text-decoration: none;
1640
- color: #444;
1641
- border: 1px solid #ccd0d4;
1642
- }
1643
- .rate_review h4 {
1644
- margin: 0;
1645
- font-size: 15px;
1646
- }
1647
- .rate_review p {
1648
- margin: 15px 0 0 0;
1649
  }
1650
- .rate_review .dashicons {
1651
- float: right;
1652
- font-size: 32px;
1653
- margin: 10px;
1654
- color: #FFC107;
1655
  }
1656
- .rate_review:hover{
1657
- background-color: #fcfcfc;
1658
- text-decoration: none;
1659
  }
1660
 
1661
  /** Coffee - Box **/
1662
  .cfe_bottom{
1663
  background: #fff;
1664
- padding: 15px;
1665
  display: flex;
1666
  border: 1px solid #e3bbac;
1667
  align-items: center;
@@ -1674,9 +1256,6 @@ select[name="ft_status"]{
1674
  .cfe_bottom h3{
1675
  font-size: 15px;
1676
  }
1677
- .cfe_bottom img{
1678
- height: 32px;
1679
- }
1680
  .cfe_form{
1681
  display: flex;
1682
  }
@@ -1688,11 +1267,69 @@ select[name="ft_status"]{
1688
  text-align: center;
1689
  }
1690
 
1691
- /** Misc **/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1692
 
 
1693
  .page_footer{
1694
  padding: 10px;
1695
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1696
 
1697
  .hide_scrollbar{
1698
  overflow:hidden;
@@ -1788,6 +1425,8 @@ select[name="ft_status"]{
1788
  display: flex;
1789
  padding: 0 5px;
1790
  color: #fff;
 
 
1791
  }
1792
  .sic_list li > * {
1793
  padding: 10px 5px;
@@ -1801,6 +1440,9 @@ select[name="ft_status"]{
1801
  padding-right: 10px;
1802
  margin-right: 5px;
1803
  }
 
 
 
1804
  .sic_list .sic_action_btn{
1805
  opacity: 0.5;
1806
  cursor: pointer;
@@ -1861,20 +1503,25 @@ select[name="ft_status"]{
1861
  font-style: italic;
1862
  }
1863
 
1864
- @media screen and (max-width: 1300px) {
1865
  .admin_links{
1866
- position: static;
1867
- }
1868
- .admin_links a{
1869
- padding: 5px 10px;
1870
- margin: 15px 10px 0 0;
1871
- font-size: 12px;
1872
  }
1873
  }
1874
 
1875
  @media screen and (max-width: 950px) {
1876
- #content, #wpsr_header hgroup{
 
 
 
1877
  width: 100%;
 
 
 
 
 
 
 
1878
  }
1879
  .page_footer .fright{
1880
  float: none;
@@ -1885,13 +1532,10 @@ select[name="ft_status"]{
1885
  .main_form_footer{
1886
  position: static;
1887
  }
1888
- #sidebar{
1889
- position: static;
1890
- width: 100%;
1891
- transform: none;
1892
- display: flex;
1893
  }
1894
- #sidebar .side_card{
1895
- margin-right: 15px;
1896
  }
1897
  }
2
  margin: 0;
3
  }
4
  #wpsr_header{
5
+ margin: 0 0 20px -20px;
6
  padding: 0;
7
  border-bottom: 1px solid #dfdfdf;
8
+ background: #fff;
9
  }
10
  #wpsr_header hgroup{
 
11
  position: relative;
12
+ padding: 25px;
13
  }
14
  h1.wpsr_title{
15
  background: url( '../images/icons/wp-socializer.png' ) no-repeat left;
16
  background-size: 32px 32px;
17
+ padding: 0 0 0 45px;
18
  }
19
  h1.wpsr_title .title-count{
20
  font-size: 10px;
43
  margin-right: 5px;
44
  }
45
 
46
+ #main{
47
+ display: flex;
48
+ margin-bottom: 20px;
49
+ }
50
+
51
  #content {
52
+ width: calc(100% - 320px);
53
+ padding-right: 20px;
54
  }
55
  #content h1 {
56
  padding: 0;
57
+ margin: 0 0 20px 0;
58
  }
59
  #content h1 i{
60
  font-size: 0.8em;
61
+ margin: 0 10px 0 0;
62
+ color: #ff9900;
63
  }
64
 
65
  #sidebar{
66
+ flex: 1;
67
+ margin: 0 20px 20px 0;
 
 
 
68
  }
69
  .side_card {
70
  padding: 20px;
72
  margin-bottom: 15px;
73
  background-size: 95px;
74
  background-color: #fff;
75
+ border: 1px solid #dfdfdf;
76
  }
77
  .side_card h2 {
78
  margin: -20px -20px 20px -20px;
79
+ padding: 12.5px 15px;
80
+ border-bottom: 1px solid #dfdfdf;
81
+ font-size: 1.2em;
82
  }
83
  .side_card h2 i {
84
+ margin: 0 10px 0 0;
85
+ }
86
+ .side_card p {
87
+ font-size: 14px;
88
+ }
89
+ .side_card .cta_link {
90
+ display: block;
91
+ margin: 10px 0;
92
+ text-decoration: none;
93
+ font-size: 14px;
94
+ }
95
+ .side_card .cta_link:last-child {
96
+ margin-bottom: 0;
97
+ }
98
+ .side_card .cta_link i{
99
+ margin-left: 2.5px;
100
+ }
101
+ .side_card .cta_link:hover i{
102
+ margin-left: 5px;
103
+ }
104
+ .side_banner{
105
+ display: block;
106
+ margin: -20px -20px 20px -20px;
107
+ border-bottom: 1px solid #dfdfdf;
108
+ line-height: 0;
109
+ overflow: hidden;
110
+ }
111
+ .side_banner img{
112
+ width: 100%;
113
+ }
114
+ .side_banner:hover img{
115
+ opacity: 0.8;
116
  }
117
 
118
 
121
  flex-wrap: wrap;
122
  }
123
  .page_card {
124
+ flex-basis: calc(25% - 20px);
 
 
125
  background-color: #fff;
126
+ margin: 0 20px 20px 0;
 
 
127
  border: 1px solid #e6e6e6;
128
  position: relative;
129
  box-sizing: border-box;
130
  text-decoration: none;
131
+ box-shadow: 0 1px 1px rgba(0,0,0,.05);
132
+ padding-bottom: 40px;
133
  }
134
  .page_card h3{
135
+ margin: 20px 0;
136
+ font-size: 24px;
137
+ color: #000000;
138
+ line-height: 1.25;
139
  }
140
  .page_card:hover{
141
  border-color: #888 !important;
148
  background: #4eb951;
149
  color: #fff;
150
  }
151
+
152
+ .page_card .card_banner {
153
+ background-size: cover;
154
+ background-repeat: no-repeat;
155
+ height: 100px;
156
+ background-position: center;
157
+ border-bottom: 1px solid #dfdfdf;
 
 
 
 
 
158
  }
159
+ .page_card .card_info {
160
+ margin: 0 20px;
161
+ text-align: center;
162
  }
163
+ .page_card .card_info p {
164
+ color: #777;
165
+ line-height: 1.5;
166
+ font-size: 14px;
 
 
 
 
 
167
  }
168
  .page_feat_status {
169
  display: block;
170
  text-align: center;
171
  background: #fbfbfb;
172
+ padding: 10px 15px;
173
  position: absolute;
174
  bottom: 0;
175
  left: 0;
180
  margin-right: 5px;
181
  }
182
 
 
 
 
183
  .card_others {
184
  border-color: #b4c0ff;
185
  }
186
 
187
 
188
+ .page_icon{
189
+ width: 80px;
190
+ height: 80px;
191
+ position: absolute;
192
+ transform: translate(-50%,-50%);
193
+ top: 50%;
194
+ left: 50%;
195
+ }
196
+
197
  .postbox hr{
198
  margin: 15px 0;
199
  border-bottom: none;
215
  width: 55%;
216
  }
217
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  .tooltip_settings_dd{
219
  position: absolute;
220
  }
549
  right: 10px;
550
  padding: 5px;
551
  }
552
+
553
+
554
+ .page_head {
555
+ border-bottom: 1px solid #dfdfdf;
556
+ margin: 0 0 40px 0;
557
+ padding-bottom: 20px;
 
 
 
 
 
 
558
  }
559
+ .page_head *:last-child{
560
+ margin-bottom: 0 !important;
 
 
561
  }
562
+ .page_head h1{
563
+ margin: 0 0 10px 0 !important;
 
 
 
 
564
  }
565
+ .page_head p{
566
+ margin-left: 25px;
567
+ font-size: 15px;
 
 
 
 
568
  }
 
569
  .main_form {
570
  position: relative;
571
  }
582
  padding: 0 30px;
583
  }
584
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
585
 
586
  .ft_table td{
587
  width: 15%;
634
  }
635
 
636
  #wpsr_pp_editor{
637
+ padding: 0 15px 50px 15px;
638
  }
639
 
640
  .fb_selected h4 {
641
  color: #fff;
642
  padding: 10px 5px;
643
  margin: 0;
644
+ cursor: pointer;
645
+ font-size: 15px;
646
  }
647
  .fb_selected h4:hover{
648
  opacity: 0.7;
650
  .fb_selected label {
651
  box-sizing: border-box;
652
  margin-bottom: 10px;
 
653
  color: #000;
654
+ display: flex;
655
+ padding: 10px 0;
656
  }
657
+ .fb_selected label span {
658
+ flex-shrink: 0;
659
+ width: 20%;
660
+ vertical-align: middle;
661
+ font-size: 14px;
662
  }
663
  .fb_selected h4 i {
664
+ margin: 0 15px;
665
+ font-size: 20px;
666
+ vertical-align: middle;
667
  }
668
  .fb_item_control {
669
  float: right;
674
  .fb_selected li {
675
  border: 1px solid #ccc;
676
  background: #fff;
677
+ margin-bottom: 15px;
678
  }
679
  .fb_selected li > div {
680
  padding: 10px;
719
  margin: -10px;
720
  }
721
  .fb_list{
722
+ min-width: 100%;
723
+ }
724
+ .select2-hidden-accessible{
725
+ display: none;
726
  }
727
  .wpsr_ppe_footer{
728
  position: fixed;
791
  padding: 5px !important;
792
  max-width: 100% !important;
793
  }
794
+ .ssb_add{
795
+ height: 38px !important;
796
+ border-radius: 0 5px 5px 0 !important;
797
+ }
798
+
799
+ .form-table tr.sub_head {
800
+ border-bottom: 1px solid #dfdfdf;
801
+ }
802
+ .form-table tr.sub_head th {
803
+ font-weight: normal !important;
804
+ color: #666;
805
+ }
806
+ .form-table .inline_field{
807
+ margin-right: 10px;
808
+ }
809
+
810
+
811
+ /* Form & fields */
812
+ .form_section {
813
+ background: #fff;
814
+ padding: 20px;
815
+ border: 1px solid #dfdfdf;
816
+ margin-bottom: 40px;
817
+ }
818
+ .form_section > *:last-child{
819
+ margin-bottom: 0;
820
+ }
821
+ .form_section h4 {
822
+ text-transform: uppercase;
823
+ font-size: 15px;
824
+ border-bottom: 1px solid #dfdfdf;
825
+ padding: 15px 0;
826
+ }
827
+ .form_section p{
828
+ font-size: 15px;
829
+ }
830
+ .section_head{
831
+ font-size: 20px;
832
+ }
833
+ .section_desc{
834
+ margin: 0 0 20px 0;
835
+ }
836
+
837
+ .field_wrap {
838
+ display: flex;
839
+ margin: 0 0 20px 0;
840
+ padding: 0 0 20px 0;
841
+ }
842
+ .field_wrap:last-child {
843
+ margin-bottom: 0;
844
+ padding-bottom: 0;
845
+ }
846
+ .field_label {
847
+ font-size: 14px;
848
+ display: block;
849
+ font-weight: bold;
850
+ margin: 0 15px 0 0;
851
+ width: 30%;
852
+ flex-shrink: 0;
853
+ }
854
+ .field_val{
855
+ margin-right: 10px;
856
+ }
857
+ .field_val_wrap{
858
+ display: flex;
859
+ }
860
+ .field_wrap .ancr_desc {
861
+ margin: 10px 0;
862
+ font-style: italic;
863
+ color: #777;
864
  }
865
+ .field_wrap .field_before_text{
866
+ display: block;
867
+ margin: 0 0 5px 0;
868
  }
869
+ .field_wrap .field_after_text{
870
+ display: inline-block;
871
+ margin-left: 5px;
872
  }
873
+ .field_val_wrap+.ancr_desc {
874
+ margin-bottom: 0;
875
  }
876
 
877
+ /* Image select field */
878
  .img_select{
879
  display: none;
880
  }
911
  box-shadow: 0 3px 3px -1px rgba(0, 0, 0, 0.2);
912
  border-radius: 3px;
913
  }
914
+ /* Radio field */
915
+ .radios_wrap {
916
+ margin: 0 0 20px 0;
917
+ }
918
 
919
+ /* Tabs */
920
+ .tab_list {
921
+ display: flex;
922
+ margin: -20px -20px 20px -20px;
923
+ border-bottom: 1px solid #dfdfdf;
924
+ background: #f7f7f7;
925
  }
926
+ .tab_list a {
927
+ padding: 5px 25px 10px 25px;
928
+ background: #ffffff;
929
+ display: inline-block;
930
+ font-size: 15px;
931
+ text-decoration: none;
932
+ border-right: 1px solid #dfdfdf;
933
+ border-bottom: 5px solid #fff;
934
+ border-top: 10px solid #fff;
935
  }
936
+ .tab_list li {
937
+ margin: 0;
 
938
  }
939
+ .tab_list li.active a{
940
+ border-bottom: 5px solid;
941
+ }
942
+ .tab_list a i {
943
+ margin: 0 15px 0 0;
944
  }
945
 
946
+ .tab_wrap > div{
947
+ display: none;
 
 
 
 
 
 
948
  }
949
+ .tab_wrap > div.active{
950
+ display: block;
 
 
 
 
 
 
951
  }
952
+ .tab_wrap > div > *:last-child{
953
+ margin-bottom: 0;
954
  }
955
 
956
  .drop_target{
958
  background: #EAFFEA !important;
959
  }
960
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
961
  .qtip_icon{
962
  color: #333;
963
  text-decoration: none;
988
 
989
  .admin_links{
990
  position: absolute;
 
 
991
  display: flex;
992
  transform: translateY(-50%);
993
+ top: 50%;
994
+ right: 40px;
995
+ font-size: 15px;
996
+ margin: 0;
997
+ z-index: 99;
998
  }
999
+ .admin_links li{
1000
+ position: relative;
1001
+ }
1002
+ .admin_links li i{
1003
+ margin-right: 10px;
1004
+ }
1005
+ .admin_links .slogan{
1006
+ font-style: italic;
1007
+ }
1008
+ .admin_links > li {
1009
+ padding: 5px 10px;
1010
  margin: 0 0 0 10px;
1011
+ }
1012
+ .admin_links > li a {
1013
  text-decoration: none;
 
 
 
1014
  }
1015
+ .admin_links > li a:hover {
1016
+ text-decoration: underline;
1017
  }
1018
+ .admin_links li ul{
1019
+ position: absolute;
1020
+ background: #fff;
1021
+ top: 25px;
1022
+ right: 0;
1023
+ border: 1px solid #dfdfdf;
1024
+ box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.5);
1025
+ display: none;
1026
  }
1027
+ .admin_links li ul li{
1028
+ margin: 0;
1029
+ border-bottom: 1px solid #f7f7f7;
1030
+ }
1031
+ .admin_links li ul li a{
1032
+ background: #fff;
1033
+ margin: 0;
1034
+ padding: 10px 15px;
1035
+ display: block;
1036
+ width: 200px;
1037
+ text-decoration: none;
1038
  }
1039
+ .admin_links li:hover ul{
1040
+ display: block;
1041
  }
1042
 
1043
  .intro_popup{
1044
  background: #fff;
1045
  position: fixed;
1046
+ outline: 9999px solid rgba(0, 0, 0, 0.5);
1047
  top: 10%;
1048
  left: 25%;
1049
  bottom: 10%;
1050
  right: 25%;
1051
  box-shadow: 0 0 8px -1px #000;
 
1052
  display: none;
1053
  z-index: 999;
1054
  }
1055
  .intro_popup h1 {
1056
  border-bottom: 1px solid #dfdfdf;
1057
+ padding: 30px 20px !important;
1058
+ margin: -20px -20px 20px -20px !important;
1059
+ font-weight: 400;
1060
+ text-align: left !important;
1061
+ }
1062
+ .intro_popup h2 {
1063
+ font-size: 20px;
1064
+ border-bottom: 1px solid #dfdfdf;
1065
+ padding-bottom: 15px;
1066
+ display: inline-block;
1067
+ margin: 0 0 15px 0;
1068
+ color: #444;
1069
+ }
1070
+ .intro_popup h3 {
1071
+ text-transform: uppercase;
1072
+ font-size: 16px;
1073
+ font-weight: 400;
1074
+ letter-spacing: 1px;
1075
+ margin: 20px 0;
1076
  }
1077
  .intro_popup p, .intro_popup li{
1078
  font-size: 20px;
1079
  line-height: 1.5;
1080
+ color: #333;
1081
+ }
1082
+ .intro_popup li b:first-child {
1083
+ text-transform: uppercase;
1084
+ font-size: 14px;
1085
+ background: #4CAF50;
1086
+ padding: 2px 2px 2px 0.5em;
1087
+ margin: 0 0.5em 0 0;
1088
+ border-radius: 5px;
1089
+ color: #ffffff;
1090
+ font-weight: normal;
1091
  }
1092
  .intro_popup footer{
1093
  position: absolute;
1102
  .intro_popup section{
1103
  position: absolute;
1104
  top: 0;
1105
+ bottom: 60px;
1106
  left: 0;
1107
  right: 0;
1108
+ padding: 20px;
1109
  overflow: auto;
1110
  }
1111
+ .intro_popup figure {
1112
+ margin: 0 0 20px 0;
1113
+ line-height: 0;
1114
+ }
1115
+ .intro_popup figcaption {
1116
+ font-size: 15px;
1117
+ background: #f5f5f5;
1118
+ padding: 10px;
1119
+ line-height: 1.5;
1120
+ }
1121
 
1122
  .style_ele ul{
1123
+ list-style: disc;
1124
  padding-left: 30px;
1125
  }
1126
 
1128
  margin: 5px 2px 0 0;
1129
  }
1130
 
 
 
 
 
 
 
 
 
 
 
 
 
1131
  #footer-left{
1132
  font-size: 12px;
1133
  font-style: italic;
1159
  background: #7d7d7d;
1160
  }
1161
 
1162
+ .page_home .back_btn{
1163
+ display: none;
 
 
 
 
 
 
 
 
1164
  }
1165
+ .page_shortcodes pre{
1166
+ padding: 15px;
1167
+ font-size: 15px;
1168
+ background-color: #eaeaea;
1169
+ white-space: pre-wrap;
1170
  }
1171
+ .page_shortcodes table.widefat tr:nth-child(even){
1172
+ background-color: #f7f7f7;
1173
  }
1174
+ .page_shortcodes .form_section h3{
1175
+ margin-top: 40px;
 
1176
  }
1177
+ .page_shortcodes .form_section h3:first-child{
1178
+ margin-top: 0;
 
1179
  }
1180
 
1181
  .custom_html_editor{
1209
  }
1210
 
1211
  /** Promo **/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1212
  .subscribe_form {
1213
  display: flex;
1214
  padding: 15px;
1215
  background: #f7f7f7;
1216
  border-radius: 5px;
1217
+ margin: 20px 0;
1218
  flex-direction: column;
1219
  }
1220
  .subscribe_form .subscribe_email_box {
1226
  width: 16px;
1227
  margin: 7px 3px 0 0;
1228
  }
 
 
 
 
 
 
1229
 
1230
+
1231
+ /** Happy box **/
1232
+ .happy_box h2{
1233
+ font-size: 22px;
1234
+ font-weight: 400;
 
 
 
 
 
 
 
 
 
 
 
1235
  }
1236
+ .happy_box .icon{
1237
+ font-size: 20px;
 
 
 
1238
  }
1239
+ .happy_box p{
1240
+ font-size: 15px;
 
1241
  }
1242
 
1243
  /** Coffee - Box **/
1244
  .cfe_bottom{
1245
  background: #fff;
1246
+ padding: 20px 15px;
1247
  display: flex;
1248
  border: 1px solid #e3bbac;
1249
  align-items: center;
1256
  .cfe_bottom h3{
1257
  font-size: 15px;
1258
  }
 
 
 
1259
  .cfe_form{
1260
  display: flex;
1261
  }
1267
  text-align: center;
1268
  }
1269
 
1270
+ /** Rate & review **/
1271
+ .rate_review{
1272
+ background: #fff;
1273
+ padding: 20px 15px;
1274
+ display: flex;
1275
+ border: 1px solid #e3bbac;
1276
+ align-items: center;
1277
+ box-shadow: 0 1px 1px rgba(0,0,0,.04);
1278
+ margin-top: -1px;
1279
+ }
1280
+ .rate_review > * {
1281
+ margin: 0 15px 0 0;
1282
+ vertical-align: middle;
1283
+ }
1284
+ .rate_review h3 {
1285
+ font-size: 15px;
1286
+ }
1287
 
1288
+ /** Misc **/
1289
  .page_footer{
1290
  padding: 10px;
1291
  }
1292
+ .save_notice{
1293
+ margin-bottom: 40px !important;
1294
+ }
1295
+ .save_notice p{
1296
+ font-size: 15px;
1297
+ }
1298
+ .save_notice p a{
1299
+ text-decoration: none;
1300
+ }
1301
+ .save_notice p i {
1302
+ margin-left: 5px;
1303
+ }
1304
+ .note{
1305
+ background: #f7fdef;
1306
+ padding: 15px;
1307
+ border-left: 3px solid #4CAF50;
1308
+ box-shadow: 0 0 4px -2px rgba(0, 0, 0, 0.5);
1309
+ }
1310
+ .note p{
1311
+ margin: 0 0 15px 0;
1312
+ }
1313
+ .note h4 {
1314
+ margin: 0 0 15px 0;
1315
+ padding: 0 0 10px 0;
1316
+ border-color: #cfe2b6;
1317
+ }
1318
+ .note h4 i {
1319
+ margin-right: 10px;
1320
+ color: #4CAF50;
1321
+ }
1322
+ .note ul {
1323
+ margin: 0 0 15px 0;
1324
+ }
1325
+ .note li {
1326
+ list-style: disc;
1327
+ font-size: 15px;
1328
+ margin: 0 0 10px 20px;
1329
+ }
1330
+ .note > *:last-child{
1331
+ margin-bottom: 0;
1332
+ }
1333
 
1334
  .hide_scrollbar{
1335
  overflow:hidden;
1425
  display: flex;
1426
  padding: 0 5px;
1427
  color: #fff;
1428
+ border-radius: 5px;
1429
+ box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.5);
1430
  }
1431
  .sic_list li > * {
1432
  padding: 10px 5px;
1440
  padding-right: 10px;
1441
  margin-right: 5px;
1442
  }
1443
+ .sic_list li:hover {
1444
+ box-shadow: 0 2px 6px 0px rgba(0, 0, 0, 0.5);
1445
+ }
1446
  .sic_list .sic_action_btn{
1447
  opacity: 0.5;
1448
  cursor: pointer;
1503
  font-style: italic;
1504
  }
1505
 
1506
+ @media screen and (max-width: 1200px) {
1507
  .admin_links{
1508
+ display: none;
 
 
 
 
 
1509
  }
1510
  }
1511
 
1512
  @media screen and (max-width: 950px) {
1513
+ #main{
1514
+ display: block;
1515
+ }
1516
+ #content{
1517
  width: 100%;
1518
+ padding-right: 0;
1519
+ }
1520
+ #sidebar{
1521
+ margin-top: 20px;
1522
+ }
1523
+ .page_card{
1524
+ flex-basis: calc(50% - 20px);
1525
  }
1526
  .page_footer .fright{
1527
  float: none;
1532
  .main_form_footer{
1533
  position: static;
1534
  }
1535
+ .happy_box > div{
1536
+ display: block;
 
 
 
1537
  }
1538
+ .happy_box > div > *{
1539
+ margin: 0 0 10px 0;
1540
  }
1541
  }
admin/css/style_setup.css DELETED
@@ -1,475 +0,0 @@
1
- body{
2
- background: #fcfcfc;
3
- }
4
-
5
- .wrap{
6
- width: 800px;
7
- margin: 0 auto;
8
- }
9
- .wrap .button {
10
- font-size: 15px;
11
- height: 35px;
12
- padding: 0 30px;
13
- line-height: 2em;
14
- }
15
-
16
- .header{
17
- padding: 30px 0;
18
- text-align: center;
19
- }
20
- .header img{
21
- height: 32px;
22
- vertical-align: middle;
23
- margin: 0 10px 0 0;
24
- }
25
- .header h1{
26
- font-size: 32px;
27
- }
28
- .header h1 small{
29
- font-size: 15px;
30
- vertical-align: middle;
31
- border-left: 1px solid #ccc;
32
- padding: 0 0 0 10px;
33
- display: inline-block;
34
- margin: 0 0 0 5px;
35
- color: #566972;
36
- }
37
-
38
- .pages{
39
- margin: 0 auto;
40
- padding: 30px;
41
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
42
- border-radius: 2px;
43
- background: #fff;
44
- }
45
- .page h1{
46
- padding: 30px;
47
- border-bottom: 1px solid #e2e2e2;
48
- margin: -30px -30px 30px -30px;
49
- background: #fff;
50
- border-radius: 2px 2px 0 0;
51
- }
52
- .page p{
53
- font-size: 1.4em;
54
- color: #607D8B;
55
- }
56
- .page *:last-child{
57
- margin-bottom: 0;
58
- }
59
- .page{
60
- display: none;
61
- }
62
- .page.active{
63
- display: block;
64
- }
65
- .page h1 .fa{
66
- margin: 0 0.5em 0 0;
67
- }
68
-
69
-
70
- .progress li {
71
- float: left;
72
- padding: 0 10px;
73
- opacity: 1;
74
- transition: all 1s;
75
- color: #4CAF50;
76
- font-weight: bold;
77
- cursor: default;
78
- margin: 0;
79
- }
80
- .progress {
81
- margin: 30px 0 0 0;
82
- background: #fff;
83
- padding: 10px;
84
- border-radius: 20px;
85
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
86
- display: inline-block;
87
- }
88
- .progress li:after {
89
- content: '>';
90
- margin: 0 0 0 15px;
91
- }
92
- .progress li:last-child:after{
93
- display: none;
94
- }
95
- .progress .active ~ li {
96
- opacity: 0.2;
97
- color: #333;
98
- }
99
-
100
-
101
-
102
- .tmpl_sel{
103
- margin: 25px 0 0 0;
104
- cursor: pointer;
105
- position: relative;
106
- }
107
- .tmpl_sel.not_sel{
108
- border: 1px solid #f7f7f7;
109
- padding: 25px;
110
- text-align: center;
111
- border-radius: 2px;
112
- font-size: 18px;
113
- color: #333;
114
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
115
- background: #eeffda;
116
- }
117
- .tmpl_sel.not_sel:hover{
118
- background-color: #fffce0;
119
- }
120
- .tmpl_sel.preview_active:hover:after{
121
- position: absolute;
122
- content: attr(data-ctext);
123
- left: 0;
124
- right: 0;
125
- top: 0;
126
- bottom: 0;
127
- background: rgba(0, 0, 0, 0.5);
128
- text-align: center;
129
- color: #fff;
130
- }
131
- .tmpl_sel .picon{
132
- color: #FF9800;
133
- margin: 0 10px 0 0;
134
- }
135
-
136
- .dummy_p{
137
- margin: 25px 0 0 0;
138
- }
139
- .dummy_p span{
140
- display: inline-block;
141
- background: #eaeaea;
142
- width: 100%;
143
- height: 16px;
144
- margin: 5px 0;
145
- }
146
- .dummy_p span:last-child{
147
- width: 60%;
148
- }
149
- .dummy_head{
150
- display: inline-block;
151
- background: #eaeaea;
152
- width: 30%;
153
- height: 25px;
154
- margin: 25px 0 0 0;
155
- }
156
-
157
- .tmpl_popup{
158
- position: fixed;
159
- background: #fff;
160
- top: 30px;
161
- bottom: 0;
162
- z-index: 9999;
163
- left: 20%;
164
- right: 20%;
165
- box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
166
- padding: 15px;
167
- display: none;
168
- }
169
- .tmpl_pp_close {
170
- position: absolute;
171
- top: 0;
172
- right: 0;
173
- text-decoration: none;
174
- background: #23282d;
175
- color: #fff;
176
- padding: 5px;
177
- width: 20px;
178
- text-align: center;
179
- }
180
- .tmpl_pp_footer {
181
- position: absolute;
182
- bottom: 0;
183
- left: 0;
184
- right: 0;
185
- padding: 15px;
186
- text-align: center;
187
- border-top: 1px solid #dfdfdf;
188
- background: #fff;
189
- }
190
-
191
- .tmpl_cat_name{
192
- cursor: pointer;
193
- background: #4CAF50;
194
- padding: 10px;
195
- color: #fff;
196
- border-radius: 3px;
197
- margin-right: 10px;
198
- }
199
- .tmpl_cat_name:hover{
200
- opacity: 0.8;
201
- }
202
- .tmpl_cat_name .collapse{
203
- float: right;
204
- }
205
- .tmpl_list{
206
- margin: 15px 0 0 0;
207
- counter-reset: tmpl_list;
208
- display: none;
209
- }
210
- .tmpl_list li {
211
- border: 1px solid #ddd;
212
- position: relative;
213
- cursor: pointer;
214
- padding: 1.5em 15px 0 15px;
215
- border-radius: 3px;
216
- margin: 10px;
217
- }
218
- .tmpl_list li:after{
219
- position: absolute;
220
- content: ' ';
221
- top: 0;
222
- bottom: 0;
223
- left: 0;
224
- right: 0;
225
- }
226
- .tmpl_list li.selected{
227
- border-color: #333;
228
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
229
- background: #fff284;
230
- }
231
- .tmpl_list li.no_tmpl{
232
- text-align: center;
233
- height: 40px;
234
- }
235
- .tmpl_list li:hover{
236
- background-color: #fffce0;
237
- }
238
- .tmpl_list_wrap{
239
- height: calc(100% - 100px);
240
- overflow: auto;
241
- }
242
-
243
- /** Sharebar **/
244
-
245
- .sharebar_btns{
246
- margin: 30px 0 0 0;
247
- }
248
- .sharebar_btns li{
249
- float: left;
250
- padding: 8px 15px;
251
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
252
- margin: 0 10px 10px 0;
253
- border-radius: 20px;
254
- color: #fff;
255
- border: 2px solid transparent;
256
- cursor: pointer;
257
- transition: all 0.3s cubic-bezier(.25,.8,.25,1);
258
- background-color: #333;
259
- }
260
- .sharebar_btns li .fa{
261
- margin: 0 10px 0 0;
262
- }
263
- .sharebar_btns li.active{
264
- border-color: #fff;
265
- box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
266
- }
267
- .sharebar_btns:hover li:not(.active){
268
- opacity: 0.2;
269
- }
270
- .sharebar_btns li:hover{
271
- opacity: 1 !important;
272
- }
273
- .sharebar_btns.btns_selected li:not(.active){
274
- opacity: 0.2;
275
- }
276
- .sharebar_btn_opts{
277
- display: none;
278
- }
279
- .sharebar_btns li img {
280
- vertical-align: middle;
281
- margin: 0 1em 0 0;
282
- }
283
-
284
- .fb_preview{
285
- margin: 30px 0;
286
- }
287
- .fb_preview li {
288
- width: 48px;
289
- height: 48px;
290
- color: #fff;
291
- text-align: center;
292
- line-height: 48px;
293
- float: left;
294
- margin: 0 10px 0 0;
295
- cursor: no-drop;
296
- border-radius: 100%;
297
- }
298
- .fb_preview:after {content: ' ';display: block;clear: both;}
299
- .fb_preview span {
300
- text-align: center;
301
- display: block;
302
- border: 1px dashed #ccc;
303
- padding: 24px;
304
- }
305
-
306
- .ft_more{
307
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
308
- padding: 15px;
309
- border-radius: 3px;
310
- position: relative;
311
- }
312
- .ft_more .cb_wrap{
313
- float: right;
314
- margin: -15px 0 0 0;
315
- }
316
-
317
- .img_select{
318
- display: none;
319
- }
320
- .img_select_list {
321
- margin: 0;
322
- }
323
- .img_select_list li {
324
- float: left;
325
- width: 150px;
326
- padding: 10px;
327
- border: 3px solid transparent;
328
- margin: 0 10px 0 0;
329
- background: #fff;
330
- cursor: pointer;
331
- }
332
- .img_select_list li img{
333
- width: 100%;
334
- border: 1px solid #dfdfdf;
335
- }
336
- .img_select_list li:active{
337
- border-color: #ccc;
338
- }
339
- .img_select_list li span {
340
- margin-top: 5px;
341
- display: inline-block;
342
- font-size: 12px;
343
- }
344
- .img_select_list li.img_opt_selected{
345
- border-color: #009688;
346
- box-shadow: 0 3px 3px -1px rgba(0, 0, 0, 0.2);
347
- border-radius: 3px;
348
- }
349
-
350
- .whats_next_head{
351
- margin: 30px 0;
352
- font-size: 1.8em;
353
- }
354
- .whats_next{
355
- padding: 30px;
356
- border: 1px solid rgb(139, 195, 74);
357
- border-radius: 3px;
358
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
359
- background-image: linear-gradient(135deg,#f4ff86,#ccffce);
360
- line-height: 1em;
361
- }
362
- .whats_next > *{
363
- margin-right: 20px;
364
- vertical-align: middle !important;
365
- }
366
- .whats_next .button{
367
- height: 30px;
368
- }
369
- .share_text{
370
- color: #42a246;
371
- font-weight: bold;
372
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
373
- }
374
- .share_sec{
375
- margin: 30px 0 0 0;
376
- }
377
- .share_sec .socializer a{
378
- border-radius: 3px;
379
- box-shadow: 0 1px 0 #ccc;
380
- }
381
- .share_sec .socializer .text{
382
- font-size: 0.9em;
383
- }
384
-
385
- .timer_text{
386
- text-align: center;
387
- background: white;
388
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
389
- border-radius: 2em;
390
- padding: 15px 0;
391
- margin: 0 0 30px 0;
392
- border: 1px solid #FFC107;
393
- }
394
-
395
- .question_wait{
396
- text-align:center;
397
- }
398
- .question_wait img {
399
- border: 1px solid #e4e4e4;
400
- border-radius: 20px;
401
- padding: 10px;
402
- }
403
-
404
- .finish_footer{
405
- border-top: 1px solid #dfdfdf;
406
- padding: 20px;
407
- margin: 30px -30px -30px -30px !important;
408
- }
409
- .finish_footer a{
410
- font-size: 15px;
411
- text-decoration: none;
412
- }
413
- .finish_footer .fa{
414
- margin-right: 0.5em;
415
- }
416
-
417
- .footer{
418
- margin: 15px auto;
419
- padding: 15px 0;
420
- }
421
- .next_btn{
422
- float: right;
423
- }
424
-
425
- h1 .cb_wrap{
426
- float: right;
427
- }
428
-
429
- .notice-success{
430
- display: none;
431
- }
432
-
433
- .req_template{
434
- float: right;
435
- margin-top: 10px;
436
- }
437
-
438
- .button .fa{
439
- font-size: 1em;
440
- width: 1em;
441
- height: 1em;
442
- margin: 7px 5px 0 5px;
443
- }
444
- .hidden{
445
- display: none;
446
- }
447
- .clearfix{
448
- clear: both;
449
- }
450
- .clearfix:after{
451
- content: '';
452
- display: block;
453
- clear: both;
454
- }
455
- .fright{
456
- float: right;
457
- }
458
-
459
- .cb{
460
- display:none !important;
461
- }
462
- .cb + label:before {
463
- display: inline-block;
464
- font-size: 40px;
465
- }
466
- .cb + label:before {
467
- content: "\f204";
468
- letter-spacing: 10px;
469
- color: #FF9800;
470
- }
471
- .cb:checked + label:before {
472
- content: "\f205";
473
- letter-spacing: 5px;
474
- color: #4CAF50;
475
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/css/style_widgets.css CHANGED
@@ -1,79 +1,50 @@
1
- .wpsr_widget_wrap{
2
- padding: 0.3em 1.33em;
3
- background: #fdfdfd;
4
- border: 1px solid #e0e0e0;
5
- margin-bottom: 1.33em;
6
- border-radius: 3px;
7
- }
8
- .wpsr_widget_wrap p:after{
9
- content: '';
10
- display: block;
11
- clear: both;
12
  }
13
  .wpsr_widget_wrap label+.widefat{
14
  margin-top: 10px;
15
  }
16
- .wpsr_widget_wrap .wp-picker-container{
17
- float: right;
 
 
 
 
18
  }
19
- .wpsr_widget_wrap .smallfat{
20
- float: right;
21
- }
22
-
23
- .wpsr_widget_selector {
24
  display: block;
25
- min-width: 100%;
 
26
  }
27
-
28
- #available-widgets .wpsr_widget_highlight{
29
- box-shadow: 0 5px 20px 0px;
 
 
 
 
 
 
 
 
 
 
30
  }
 
 
 
 
31
  #available-widgets .wpsr_widget_highlight .widget-top{
32
  outline: 2px solid red;
 
33
  }
34
- #available-widgets [id*="wpsr_main_widget"] .widget-title h3{
35
  background-image: url( '../images/icons/wp-socializer-sm.png' );
36
- background-position: 94%;
37
  background-repeat: no-repeat;
38
  }
39
 
40
- .veditor_preview, .wpsr_wtmpl_wrap .vedit_menu{
41
- display: none !important;
42
- }
43
- .wpsr_wtmpl_wrap .btn_action{
44
- display: none;
45
- }
46
- .veditor .btn_list {
47
- margin-bottom: 15px;
48
- }
49
- .veditor li{
50
- display: table;
51
- background: #333;
52
- color: #fff;
53
- margin: 0 5px;
54
- box-sizing: border-box;
55
- position: relative;
56
- float: left;
57
- line-height: 25px;
58
- height: 25px;
59
- border-radius: 3px;
60
- cursor: default;
61
- width: auto !important;
62
- -webkit-user-select: none;
63
- -moz-user-select: none;
64
- user-select: none;
65
- font-size: 12px;
66
- }
67
- .veditor li span {
68
- display: table-cell;
69
- line-height: 1em;
70
- vertical-align: middle;
71
- padding: 0 5px;
72
- }
73
- .veditor li span img{
74
- width: 12px;
75
- }
76
-
77
  .fb_preview li {
78
  width: 48px;
79
  height: 48px;
@@ -85,7 +56,11 @@
85
  font-size: 20px;
86
  border-radius: 3px;
87
  }
88
- .fb_preview:after {content: ' ';display: block;clear: both;}
 
 
 
 
89
  .fb_preview span {
90
  text-align: center;
91
  display: block;
1
+ .wpsr_widget_wrap p label {
2
+ width: 50%;
3
+ display: inline-block;
 
 
 
 
 
 
 
 
4
  }
5
  .wpsr_widget_wrap label+.widefat{
6
  margin-top: 10px;
7
  }
8
+ .wpsr_widget_wrap h3 {
9
+ border-bottom: 1px solid #dfdfdf;
10
+ padding-bottom: 10px;
11
+ margin: 20px 0;
12
+ text-transform: uppercase;
13
+ font-size: 14px;
14
  }
15
+ .wpsr_widget_wrap p+span.description{
 
 
 
 
16
  display: block;
17
+ padding-left: 0 !important;
18
+ font-style: italic;
19
  }
20
+ .wpsr_widget_wrap .full_width label {
21
+ width: auto;
22
+ }
23
+ .wpsr_widget_wrap footer {
24
+ background: #fefefe;
25
+ margin: 20px -15px 15px -15px;
26
+ padding: 10px 15px;
27
+ border-top: 1px solid #eee;
28
+ border-bottom: 1px solid #eee;
29
+ color: #bfbfbf;
30
+ }
31
+ .wpsr_widget_wrap footer a{
32
+ text-decoration: none;
33
  }
34
+ .wpsr_widget_wrap footer .wpsr_version{
35
+ color: #444;
36
+ }
37
+
38
  #available-widgets .wpsr_widget_highlight .widget-top{
39
  outline: 2px solid red;
40
+ box-shadow: 0 5px 20px 0px;
41
  }
42
+ div[id*="wpsr"] .widget-title h3{
43
  background-image: url( '../images/icons/wp-socializer-sm.png' );
44
+ background-position: right;
45
  background-repeat: no-repeat;
46
  }
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  .fb_preview li {
49
  width: 48px;
50
  height: 48px;
56
  font-size: 20px;
57
  border-radius: 3px;
58
  }
59
+ .fb_preview:after {
60
+ content: ' ';
61
+ display: block;
62
+ clear: both;
63
+ }
64
  .fb_preview span {
65
  text-align: center;
66
  display: block;
admin/floating_sharebar.php DELETED
@@ -1,309 +0,0 @@
1
- <?php
2
- /**
3
- * Floating sharebar settings page
4
- *
5
- **/
6
-
7
- class wpsr_admin_floating_sharebar{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
12
-
13
- }
14
-
15
- function register( $pages ){
16
-
17
- $pages[ 'floating_sharebar' ] = array(
18
- 'name' => 'Floating sharebar',
19
- 'page_callback' => array( $this, 'page' ),
20
- 'banner' => WPSR_ADMIN_URL . '/images/banners/floating-sharebar-2.svg',
21
- 'feature' => true,
22
- 'class' => 'new_ft',
23
- 'form' => array(
24
- 'id' => 'floating_sharebar_settings',
25
- 'name' => 'floating_sharebar_settings',
26
- 'callback' => array( $this, 'form_fields' ),
27
- 'validation' => array( $this, 'validation' ),
28
- )
29
- );
30
-
31
- return $pages;
32
-
33
- }
34
-
35
- function form_fields( $values ){
36
-
37
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'floating_sharebar' ) );
38
-
39
- $section0 = array(
40
- array( __( 'Select to enable or disable floating sharebar feature', 'wpsr' ), WPSR_Admin::field( 'select', array(
41
- 'name' => 'ft_status',
42
- 'value' => $values[ 'ft_status' ],
43
- 'list' => array(
44
- 'enable' => __( 'Enable floating sharebar', 'wpsr' ),
45
- 'disable' => __( 'Disable floating sharebar', 'wpsr' )
46
- ),
47
- )), 'class="ft_table"' ),
48
- );
49
-
50
- WPSR_Admin::build_table( $section0, __( 'Enable/disable floating sharebar', 'wpsr' ), '', false, '1' );
51
-
52
- $icon_settings = array( 'icon', 'hover_text', 'html' );
53
- WPSR_Icons_Editor::commons( $icon_settings );
54
-
55
- echo '<div class="feature_wrap">';
56
-
57
- WPSR_Admin::box_wrap( 'open', __( 'Choose the social icons', 'wpsr' ), __( 'Add social icons to the template, re-arrange them and configure individual icon settings.', 'wpsr' ), '2' );
58
- WPSR_Icons_Editor::editor( $values[ 'selected_icons' ], 'selected_icons' );
59
- WPSR_Admin::box_wrap( 'close' );
60
-
61
- $customization = array(
62
-
63
- array(__( 'Icon size', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
64
- 'name' => 'icon_size',
65
- 'value' => $values['icon_size'],
66
- 'list' => array(
67
- '32px' => array( '32px', 'size.svg', '32px' ),
68
- '40px' => array( '40px', 'size.svg', '40px' ),
69
- '48px' => array( '48px', 'size.svg', '48px' ),
70
- '64px' => array( '64px', 'size.svg', '64px' ),
71
- ),
72
- ))),
73
-
74
- array( __( 'Icon shape', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
75
- 'name' => 'icon_shape',
76
- 'value' => $values['icon_shape'],
77
- 'class' => 'setting_shape',
78
- 'list' => array(
79
- '' => array( 'Sqaure', 'shape-square.svg', '32px' ),
80
- 'circle' => array( 'Circle', 'shape-circle.svg', '32px' ),
81
- 'squircle' => array( 'Squircle', 'shape-squircle.svg', '32px' ),
82
- 'squircle-2' => array( 'Squircle 2', 'shape-squircle-2.svg', '32px' ),
83
- 'diamond' => array( 'Diamond*', 'shape-diamond.svg', '32px' ),
84
- 'ribbon' => array( 'Ribbon*', 'shape-ribbon.svg', '32px' ),
85
- 'drop' => array( 'Drop*', 'shape-drop.svg', '32px' ),
86
- ),
87
- 'helper' => 'Note: Shapes marked * might not react well to certain hover effects and share counter styles.'
88
- ))),
89
-
90
- array( __( 'Hover effects', 'wpsr' ), WPSR_Admin::field( 'select', array(
91
- 'name' => 'hover_effect',
92
- 'value' => $values['hover_effect'],
93
- 'list' => array(
94
- '' => __( 'None', 'wpsr' ),
95
- 'opacity' => 'Opacity',
96
- 'rotate' => 'Rotate',
97
- 'zoom' => 'Zoom',
98
- 'shrink' => 'Shrink',
99
- 'float' => 'Float',
100
- 'sink' => 'Sink',
101
- 'fade-white' => 'Fade to white',
102
- 'fade-black' => 'Fade to black'
103
- ),
104
- ))),
105
-
106
- array( __( 'Icon color', 'wpsr' ), WPSR_Admin::field( 'text', array(
107
- 'name' => 'icon_color',
108
- 'value' => $values['icon_color'],
109
- 'class' => 'color_picker',
110
- 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
111
- ))),
112
-
113
- array( __( 'Icon background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
114
- 'name' => 'icon_bg_color',
115
- 'value' => $values['icon_bg_color'],
116
- 'class' => 'color_picker',
117
- 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
118
- ))),
119
-
120
- array( __( 'Space between the icons', 'wpsr' ), WPSR_Admin::field( 'select', array(
121
- 'name' => 'padding',
122
- 'value' => $values['padding'],
123
- 'list' => array(
124
- '' => 'No',
125
- 'pad' => 'Yes'
126
- ),
127
- 'helper' => __( 'Select to add padding between the icons', 'wpsr' ),
128
- )), 'data-conditioner data-condr-input=".setting_shape" data-condr-value="" data-condr-action="simple?show:hide" data-condr-events="change"'),
129
-
130
- array('STYLE', ''),
131
-
132
- array( __( 'Sharebar style', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
133
- 'name' => 'style',
134
- 'value' => $values['style'],
135
- 'class' => 'setting_sb_style',
136
- 'list' => array(
137
- '' => array( 'Simple', 'layout-vertical.svg', '64px' ),
138
- 'enclosed' => array( 'Enclosed', 'fsb-enclosed.svg', '64px' ),
139
- ),
140
- ))),
141
-
142
- array( __( 'Sharebar background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
143
- 'name' => 'sb_bg_color',
144
- 'value' => $values['sb_bg_color'],
145
- 'class' => 'color_picker',
146
- )), 'data-conditioner data-condr-input=".setting_sb_style" data-condr-value="enclosed" data-condr-action="simple?show:hide" data-condr-events="change"'),
147
-
148
- array('POSITION', ''),
149
-
150
- array( __( 'Position of the sharebar', 'wpsr' ), WPSR_Admin::field( 'select', array(
151
- 'name' => 'sb_position',
152
- 'value' => $values['sb_position'],
153
- 'class' => 'setting_sb_position',
154
- 'list' => array(
155
- 'wleft' => 'Left of the page',
156
- 'wright' => 'Right of the page',
157
- 'scontent' => 'Stick to the content'
158
- ),
159
- ))),
160
-
161
- array( __( 'ID or class name of the content to stick with', 'wpsr' ), WPSR_Admin::field( 'text', array(
162
- 'name' => 'stick_element',
163
- 'value' => $values['stick_element'],
164
- 'placeholder' => 'Ex: #content',
165
- 'qtip' => 'https://www.youtube.com/watch?v=GQ1YO0xZ7WA'
166
- )), 'data-conditioner data-condr-input=".setting_sb_position" data-condr-value="scontent" data-condr-action="simple?show:hide" data-condr-events="change"' ),
167
-
168
- array( __( 'Offset from the window', 'wpsr' ), WPSR_Admin::field( 'text', array(
169
- 'name' => 'offset',
170
- 'value' => $values[ 'offset' ],
171
- 'class' => '',
172
- 'helper' => __( 'Example: 20px (or) 10%' )
173
- ))),
174
-
175
- array( __( 'Sharebar movement', 'wpsr' ), WPSR_Admin::field( 'select', array(
176
- 'name' => 'movement',
177
- 'value' => $values['movement'],
178
- 'list' => array(
179
- 'move' => __( 'Move when page scrolls', 'wpsr' ),
180
- 'static' => __( 'Static, no movement', 'wpsr' )
181
- ),
182
- ))),
183
-
184
- array('SHARE COUNTER', ''),
185
-
186
- array( __( 'Share counter', 'wpsr' ), WPSR_Admin::field( 'select', array(
187
- 'name' => 'share_counter',
188
- 'value' => $values['share_counter'],
189
- 'class' => 'setting_share_counter',
190
- 'list' => array(
191
- '' => 'No share count',
192
- 'individual' => 'Individual count',
193
- 'total' => 'Total count only',
194
- 'total-individual' => 'Both individual and total counts',
195
- ),
196
- ))),
197
-
198
- array( __( 'Share counter style', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
199
- 'name' => 'sc_style',
200
- 'value' => $values['sc_style'],
201
- 'list' => array(
202
- 'count-1' => array( 'Style 1', 'counter-1.svg', '60px' ),
203
- 'count-2' => array( 'Style 2', 'counter-2.svg', '70px' ),
204
- 'count-3' => array( 'Style 3', 'counter-3.svg', '70px' ),
205
- ),
206
- 'helper' => __( 'To show count, in the same page under icons list, select an icon and enable gear icon &gt; show count', 'wpsr' )
207
- )), 'data-conditioner data-condr-input=".setting_share_counter" data-condr-value="individual" data-condr-action="pattern?show:hide" data-condr-events="change"'),
208
-
209
- array( __( 'Total share count position', 'wpsr' ), WPSR_Admin::field( 'select', array(
210
- 'name' => 'sc_total_position',
211
- 'value' => $values['sc_total_position'],
212
- 'list' => array(
213
- 'top' => 'Above the icons',
214
- 'bottom' => 'Below the icons'
215
- ),
216
- )), 'data-conditioner data-condr-input=".setting_share_counter" data-condr-value="total" data-condr-action="pattern?show:hide" data-condr-events="change"'),
217
-
218
- array( __( 'Total share count color', 'wpsr' ), WPSR_Admin::field( 'text', array(
219
- 'name' => 'sc_total_color',
220
- 'value' => $values['sc_total_color'],
221
- 'class' => 'color_picker',
222
- 'helper' => 'Leave blank to use default color'
223
- )), 'data-conditioner data-condr-input=".setting_share_counter" data-condr-value="total" data-condr-action="pattern?show:hide" data-condr-events="change"'),
224
-
225
- array('RESPONSIVENESS', ''),
226
-
227
- array( __( 'Responsive width', 'wpsr' ), WPSR_Admin::field( 'text', array(
228
- 'name' => 'responsive_width',
229
- 'value' => $values[ 'responsive_width' ],
230
- 'type' => 'number',
231
- 'class' => 'setting_responsive_width',
232
- 'helper' => __( 'The screen size below which the sharebar will switch the below responsive mode. Value should be in pixels. Set 0 to disable this.' )
233
- ))),
234
-
235
- array( __( 'Responsive action', 'wpsr' ), WPSR_Admin::field( 'select', array(
236
- 'name' => 'responsive_action',
237
- 'value' => $values['responsive_action'],
238
- 'list' => array(
239
- 'minimize' => 'Minimize the share bar',
240
- 'hide' => 'Hide the share bar'
241
- ),
242
- )), 'data-conditioner data-condr-input=".setting_responsive_width" data-condr-value="0" data-condr-action="simple?hide:show" data-condr-events="keyup change"'),
243
-
244
- array('MISC', ''),
245
-
246
- array( __( 'Initial state', 'wpsr' ), WPSR_Admin::field( 'select', array(
247
- 'name' => 'init_state',
248
- 'value' => $values['init_state'],
249
- 'list' => array(
250
- 'open' => __( 'Opened', 'wpsr' ),
251
- 'close' => __( 'Closed', 'wpsr' )
252
- ),
253
- ))),
254
-
255
- array( __( 'No of icons in the last to group', 'wpsr' ), WPSR_Admin::field( 'select', array(
256
- 'name' => 'more_icons',
257
- 'value' => $values['more_icons'],
258
- 'list' => array(
259
- '0' => 'No grouping',
260
- '1' => '1',
261
- '2' => '2',
262
- '3' => '3',
263
- '4' => '4',
264
- '5' => '5',
265
- '6' => '6',
266
- '7' => '7',
267
- '8' => '8',
268
- '9' => '9',
269
- '10' => '10',
270
- ),
271
- 'helper' => __( 'The last icons grouped will be displayed in a "More" icons menu', 'wpsr' )
272
- ))),
273
-
274
- );
275
-
276
- WPSR_Admin::build_table( $customization, __( 'Customization', 'wpsr' ), '', false, '3' );
277
-
278
- // Location rules
279
- WPSR_Admin::box_wrap( 'open', __( 'Conditions to display the sharebar', 'wpsr' ), __( 'Choose the below options to select the pages which will display the sharebar.', 'wpsr' ), '4' );
280
- WPSR_Location_Rules::display_rules( "loc_rules", $values['loc_rules'] );
281
- WPSR_Admin::box_wrap( 'close' );
282
-
283
- echo '</div>';
284
-
285
- }
286
-
287
-
288
- function page(){
289
-
290
- WPSR_Admin::settings_form( 'floating_sharebar' );
291
-
292
- }
293
-
294
- function validation( $input ){
295
-
296
- if( $input['ft_status'] == 'enable' ){
297
- $sb_settings = get_option( 'wpsr_sharebar_settings' );
298
- $sb_settings[ 'ft_status' ] = 'disable';
299
- update_option( 'wpsr_sharebar_settings', $sb_settings );
300
- }
301
-
302
- return $input;
303
- }
304
-
305
- }
306
-
307
- new wpsr_admin_floating_sharebar();
308
-
309
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/followbar.php DELETED
@@ -1,436 +0,0 @@
1
- <?php
2
- /**
3
- * Follow bar admin page helpers
4
- *
5
- **/
6
-
7
- class WPSR_Followbar{
8
-
9
- public static function init(){
10
-
11
- add_action( 'wp_ajax_wpsr_followbar_editor', array( __CLASS__, 'popup_editor' ) );
12
-
13
- }
14
-
15
- public static function popup_editor(){
16
-
17
- global $hook_suffix;
18
- $hook_suffix = WPSR_Admin::$pagehook;
19
- set_current_screen( $hook_suffix );
20
-
21
- iframe_header( 'WP Socializer follow bar editor' );
22
-
23
- if( !isset( $_GET[ 'template' ] ) || !isset( $_GET[ 'cnt_id' ] ) || !isset( $_GET[ 'prev_id' ] ) ){
24
- echo '<p align="center">Incomplete info to load editor !</p></body></html>';
25
- //die( 0 );
26
- }
27
-
28
- $sb_sites = WPSR_Lists::social_icons();
29
- echo '<script>window.social_icons = ' . json_encode( $sb_sites ) . ';</script>';
30
- echo '<script>window.li_template = \'' . self::li_template() . '\';</script>';
31
-
32
- echo '<div id="wpsr_pp_editor">';
33
- echo '<h3>WP Socializer - follow bar editor</h3>';
34
- WPSR_Admin::box_wrap( 'open', __( 'Add buttons to follow bar', 'wpsr' ), __( 'Select a social media button from the list and add it to the list', 'wpsr' ), '1' );
35
-
36
- echo '<table class="form-table"><tr><td width="90%">';
37
- echo '<select class="fb_list widefat">';
38
- foreach( $sb_sites as $id=>$prop ){
39
- echo '<option value="' . $id . '">' . $prop[ 'name' ] . '</option>';
40
- }
41
- echo '</select>';
42
- echo '</td><td>';
43
- echo '<button class="fb_add button button-primary widefat">Add button</button>';
44
- echo '</td></tr></table>';
45
-
46
- $template = self::read_template( esc_attr( $_GET[ 'template' ] ) );
47
- echo '<ul class="fb_selected">';
48
- echo $template[ 'editor' ];
49
- echo '</ul>';
50
-
51
- echo '<input type="hidden" class="fb_template" />';
52
-
53
- WPSR_Admin::box_wrap( 'close' );
54
-
55
- echo '<p class="wpsr_ppe_footer" align="center"><button class="button button-primary wpsr_ppe_save" data-mode="followbar" data-cnt-id="' . esc_attr( $_GET[ 'cnt_id' ] ) . '" data-prev-id="' . esc_attr( $_GET[ 'prev_id' ] ) . '">Apply settings</button> <button class="button wpsr_ppe_cancel">Cancel</button></p>';
56
-
57
- echo '</div>';
58
-
59
- iframe_footer();
60
- die( 0 );
61
-
62
- }
63
-
64
- public static function read_template( $template = '' ){
65
-
66
- $decoded = base64_decode( $template );
67
- $btns = json_decode( $decoded );
68
-
69
- if( !is_array( $btns ) ){
70
- return array(
71
- 'prev' => '',
72
- 'editor' => ''
73
- );
74
- }
75
-
76
- $sb_sites = WPSR_Lists::social_icons();
77
- $editor = '';
78
- $prev = '';
79
-
80
- foreach( $btns as $btn_obj ){
81
-
82
- $id = key( (array) $btn_obj );
83
-
84
- if(!array_key_exists($id, $sb_sites)){
85
- continue;
86
- }
87
-
88
- $prop = $sb_sites[ $id ];
89
-
90
- $editor .= self::li_template( $id, $prop[ 'name' ], $prop[ 'icon' ], $prop[ 'colors' ][0], $btn_obj->$id->url, $btn_obj->$id->icon, $btn_obj->$id->text );
91
- $prev .= '<li style="background-color:' . $prop[ 'colors' ][0] . '"><i class="' . $prop[ 'icon' ] . '"></i></li>';
92
- }
93
-
94
- if( $prev == '' )
95
- $prev = '<span>' . __( 'No buttons are added. Open the editor to add buttons.', 'wpsr' ) . '</span>';
96
-
97
- $prev = '<ul class="fb_preview">' . $prev . '</ul>';
98
-
99
- return array(
100
- 'editor' => $editor,
101
- 'prev' => $prev
102
- );
103
-
104
- }
105
-
106
- public static function li_template( $id = '%id%', $name = '%name%', $icon = '%icon%', $color = '%color%', $url = '%url%', $iurl = '%iurl%', $text = '%text%' ){
107
- $title = __( 'Leave blank to use default', 'wpsr' );
108
-
109
- return '<li data-id="' . $id . '"><h4 style="background-color: ' . $color . '"><i class="' . $icon . ' item_icon"></i>' . $name . '<a href="#" class="fb_item_control fb_item_remove">' . __( 'Delete', 'wpsr' ) . '</a><a href="#" class="fb_item_control fb_item_edit">' . __( 'Edit', 'wpsr' ) . '</a></h4><div><label>Your profile URL (start with https://) <input type="text" class="widefat fb_item_url" placeholder="Enter profile URL" value="' . $url . '" /></label><label>Button hover text: <input type="text" class="widefat fb_btn_text" title="' . $title . '" placeholder="Enter custom text to show for button" value="' . urldecode( $text ) . '"/></label><label>Icon image URL (optional): <input type="text" class="widefat fb_icon_url" placeholder="Enter custom Icon URL." title="' . $title . '" value="' . $iurl . '"/></label></div></li>';
110
- }
111
-
112
- }
113
-
114
- WPSR_Followbar::init();
115
-
116
- /**
117
- * Follow bar admin page
118
- */
119
-
120
- class wpsr_admin_followbar{
121
-
122
- function __construct(){
123
-
124
- add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
125
-
126
- }
127
-
128
- function register( $pages ){
129
-
130
- $pages[ 'followbar' ] = array(
131
- 'name' => 'Follow Bar',
132
- 'banner' => WPSR_ADMIN_URL . '/images/banners/follow-bar.svg',
133
- 'page_callback' => array( $this, 'page' ),
134
- 'form' => array(
135
- 'id' => 'followbar_settings',
136
- 'name' => 'followbar_settings',
137
- 'callback' => array( $this, 'form_fields' ),
138
- 'validation' => array( $this, 'validation' ),
139
- )
140
- );
141
-
142
- return $pages;
143
-
144
- }
145
-
146
- function form_fields( $values ){
147
-
148
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'followbar' ) );
149
-
150
- $section0 = array(
151
- array( __( 'Select to enable or disable follow bar feature', 'wpsr' ), WPSR_Admin::field( 'select', array(
152
- 'name' => 'ft_status',
153
- 'value' => $values[ 'ft_status' ],
154
- 'list' => array(
155
- 'enable' => __( 'Enable follow bar', 'wpsr' ),
156
- 'disable' => __( 'Disable follow bar', 'wpsr' )
157
- ),
158
- )), 'class="ft_table"' ),
159
- );
160
-
161
- WPSR_Admin::build_table( $section0, __( 'Enable/disable follow bar', 'wpsr' ), '', false, '1' );
162
-
163
- $template = WPSR_Followbar::read_template( $values[ 'template' ] );
164
-
165
- echo '<div class="feature_wrap">';
166
-
167
- // Section 1
168
- WPSR_Admin::box_wrap( 'open', __( 'Add and edit follow bar buttons', 'wpsr' ), __( 'Below are the buttons added to follow bar. Open editor to add and rearrange the buttons.', 'wpsr' ), '2' );
169
- echo '<h4>' . __( 'Selected buttons', 'wpsr' ) . '</h4>';
170
- echo '<div id="fb_prev_wrap">' . $template[ 'prev' ] . '</div>';
171
-
172
- echo '<input type="hidden" id="fb_template_val" name="template" value="' . $values[ 'template' ] . '" />';
173
- echo '<p align="center"><button class="button button-primary wpsr_ppe_fb_open" data-cnt-id="fb_template_val" data-prev-id="fb_prev_wrap"><i class="fa fa-pencil-alt"></i> ' . __( 'Open editor', 'wpsr' ) . '</button></p>';
174
- WPSR_Admin::box_wrap( 'close' );
175
-
176
- // Section 2
177
- $section2 = array(
178
- array( __( 'Button shape', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
179
- 'name' => 'shape',
180
- 'value' => $values['shape'],
181
- 'list' => array(
182
- '' => array( 'Sqaure', 'shape-square.svg', '32px' ),
183
- 'circle' => array( 'Circle', 'shape-circle.svg', '32px' ),
184
- 'squircle' => array( 'Squircle', 'shape-squircle.svg', '32px' ),
185
- 'squircle-2' => array( 'Squircle 2', 'shape-squircle-2.svg', '32px' ),
186
- 'diamond' => array( 'Diamond', 'shape-diamond.svg', '32px' ),
187
- 'ribbon' => array( 'Ribbon', 'shape-ribbon.svg', '32px' ),
188
- 'drop' => array( 'Drop', 'shape-drop.svg', '32px' ),
189
- ),
190
- ))),
191
-
192
- array( __( 'Button size', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
193
- 'name' => 'size',
194
- 'value' => $values['size'],
195
- 'list' => array(
196
- '32px' => array( '32px', 'size.svg', '32px' ),
197
- '40px' => array( '40px', 'size.svg', '40px' ),
198
- '48px' => array( '48px', 'size.svg', '48px' ),
199
- '64px' => array( '64px', 'size.svg', '64px' ),
200
- ),
201
- ))),
202
-
203
- array( __( 'Orientation', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
204
- 'name' => 'orientation',
205
- 'value' => $values['orientation'],
206
- 'list' => array(
207
- 'vertical' => array( 'Vertical', 'layout-vertical.svg', '75px' ),
208
- 'horizontal' => array( 'Horizontal', 'layout-horizontal.svg', '75px' ),
209
- ),
210
- ))),
211
-
212
- array( __( 'Position', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
213
- 'name' => 'position',
214
- 'value' => $values['position'],
215
- 'list' => array(
216
- 'tl' => array( 'Top left', 'pos-tl.svg', '60px' ),
217
- 'tm' => array( 'Top middle', 'pos-tm.svg', '60px' ),
218
- 'tr' => array( 'Top right', 'pos-tr.svg', '60px' ),
219
- 'rm' => array( 'Right middle', 'pos-rm.svg', '60px' ),
220
- 'br' => array( 'Bottom right', 'pos-br.svg', '60px' ),
221
- 'bm' => array( 'Bottom middle', 'pos-bm.svg', '60px' ),
222
- 'bl' => array( 'Bottom left', 'pos-bl.svg', '60px' ),
223
- 'lm' => array( 'Left middle', 'pos-lm.svg', '60px' ),
224
- ),
225
- ))),
226
-
227
- array( __( 'Button background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
228
- 'name' => 'bg_color',
229
- 'value' => $values['bg_color'],
230
- 'class' => 'color_picker',
231
- 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
232
- ))),
233
-
234
- array( __( 'Icon color', 'wpsr' ), WPSR_Admin::field( 'text', array(
235
- 'name' => 'icon_color',
236
- 'value' => $values['icon_color'],
237
- 'class' => 'color_picker'
238
- ))),
239
-
240
- array( __( 'Initial state', 'wpsr' ), WPSR_Admin::field( 'select', array(
241
- 'name' => 'init_state',
242
- 'value' => $values['init_state'],
243
- 'list' => array(
244
- 'open' => __( 'Opened', 'wpsr' ),
245
- 'close' => __( 'Closed', 'wpsr' )
246
- ),
247
- ))),
248
-
249
- array( __( 'Hover effect', 'wpsr' ), WPSR_Admin::field( 'select', array(
250
- 'name' => 'hover',
251
- 'value' => $values['hover'],
252
- 'list' => array(
253
- '' => __( 'None', 'wpsr' ),
254
- 'opacity' => 'Opacity',
255
- 'rotate' => 'Rotate',
256
- 'zoom' => 'Zoom',
257
- 'shrink' => 'Shrink',
258
- 'float' => 'Float',
259
- 'sink' => 'Sink'
260
- ),
261
- ))),
262
-
263
- array( __( 'Gutters', 'wpsr' ), WPSR_Admin::field( 'select', array(
264
- 'name' => 'pad',
265
- 'value' => $values['pad'],
266
- 'list' => array(
267
- '' => __( 'No', 'wpsr' ),
268
- 'pad' => __( 'Yes', 'wpsr' )
269
- ),
270
- 'helper' => __( 'Select to add space between buttons', 'wpsr' )
271
- ))),
272
-
273
- array( __( 'Title', 'wpsr' ), WPSR_Admin::field( 'text', array(
274
- 'name' => 'title',
275
- 'value' => $values['title'],
276
- 'helper' => __( 'Text to show above the follow bar', 'wpsr' ),
277
- ))),
278
-
279
- array( __( 'Open links in popup', 'wpsr' ), WPSR_Admin::field( 'select', array(
280
- 'name' => 'open_popup',
281
- 'value' => $values['open_popup'],
282
- 'list' => array(
283
- 'no' => 'No',
284
- '' => 'yes',
285
- ),
286
- ))),
287
-
288
- array( __( 'Minimize when screen width is less than', 'wpsr' ), WPSR_Admin::field( 'text', array(
289
- 'name' => 'min_on_width',
290
- 'value' => $values['min_on_width'],
291
- 'type' => 'number',
292
- 'helper' => __( 'in pixels. 0 to disable.' )
293
- ))),
294
-
295
- );
296
-
297
- WPSR_Admin::build_table( $section2, __( 'Settings', 'wpsr' ), '', false, '3' );
298
-
299
-
300
- // Location rules
301
- WPSR_Admin::box_wrap( 'open', __( 'Conditions to display the followbar', 'wpsr' ), __( 'Choose the below options to select the pages which will display the followbar.', 'wpsr' ), '4' );
302
- WPSR_Location_Rules::display_rules( "loc_rules", $values['loc_rules'] );
303
- WPSR_Admin::box_wrap( 'close' );
304
-
305
- echo '</div>';
306
- }
307
-
308
- function page(){
309
-
310
- WPSR_Admin::settings_form( 'followbar' );
311
-
312
- }
313
-
314
- function validation( $input ){
315
- return $input;
316
- }
317
-
318
- }
319
-
320
- new wpsr_admin_followbar();
321
-
322
- /**
323
- * Follow bar widget
324
- */
325
-
326
- class wpsr_widget_followbar{
327
-
328
- function __construct(){
329
-
330
- WPSR_Widgets::register( 'followbar_widget', array(
331
- 'name' => 'Follow me/us icons widget',
332
- 'banner' => WPSR_ADMIN_URL . '/images/widgets/follow-me.png',
333
- 'description' => __( 'A widget to insert follow me icons in the sidebar with a profile description.', 'wpsr' ),
334
- 'callbacks' => array(
335
- 'widget' => array( $this, 'widget' ),
336
- 'form' => array( $this, 'form' ),
337
- 'update' => array( $this, 'update' )
338
- )
339
- ));
340
-
341
- $this->defaults = array(
342
- 'template' => '',
343
- 'orientation' => 'horizontal',
344
- 'shape' => '',
345
- 'size' => '32px',
346
- 'bg_color' => '',
347
- 'icon_color' => '#ffffff',
348
- 'hover' => 'opacity',
349
- 'pad' => 'pad',
350
- 'profile_text' => ''
351
- );
352
-
353
- }
354
-
355
- function widget( $args, $instance ){
356
-
357
- $instance = WPSR_Lists::set_defaults( $instance, $this->defaults );
358
-
359
- $html = WPSR_Template_Followbar::html( $instance, False );
360
- echo $html;
361
-
362
- }
363
-
364
- function form( $obj, $instance ){
365
-
366
- echo '<h4>' . __( 'Follow bar widget', 'wpsr' ) . '</h4>';
367
-
368
- $instance = WPSR_Lists::set_defaults( $instance, $this->defaults );
369
- $fields = new WPSR_Widget_Form_Fields( $obj, $instance );
370
-
371
- $wtmpl_val = esc_attr( $instance[ 'template' ] );
372
- $wtmpl_cnt_id = $obj->get_field_id( 'template' );
373
- $wtmpl_prev_id = $obj->get_field_id( 'fbw_prev' );
374
-
375
- echo '<div class="hidden">';
376
- $fields->text( 'template', '' );
377
- $fields->text( 'orientation', '' );
378
- echo '</div>';
379
-
380
- echo '<h5>' . __( 'Selected buttons', 'wpsr' ) . '</h5>';
381
- echo '<div class="wpsr_wtmpl_wrap clearfix" id="' . $wtmpl_prev_id . '">';
382
- $tmpl = WPSR_Followbar::read_template( $wtmpl_val );
383
- echo $tmpl[ 'prev' ];
384
- echo '</div>';
385
-
386
- echo '<p align="center"><button class="button button-primary wpsr_ppe_fb_open" data-wtmpl-cnt-id="' . $wtmpl_cnt_id . '" data-wtmpl-prev-id="' . $wtmpl_prev_id . '"><i class="fa fa-pencil"></i> ' . __( 'Open editor', 'wpsr' ) . '</button></p>';
387
-
388
- echo '<h5>' . __( 'Settings', 'wpsr' ) . '</h5>';
389
- $fields->select( 'shape', 'Button shape', array(
390
- '' => 'Square',
391
- 'circle' => 'Circle',
392
- 'squircle' => 'Squircle',
393
- 'squircle-2' => 'Squircle 2',
394
- 'diamond' => 'Diamond',
395
- 'ribbon' => 'Ribbon',
396
- 'drop' => 'Drop',
397
- ), array( 'class' => 'smallfat' ));
398
-
399
- $fields->select( 'size', 'Button size', array(
400
- '32px' => '32px',
401
- '40px' => '40px',
402
- '48px' => '48px',
403
- '64px' => '64px',
404
- ), array( 'class' => 'smallfat' ));
405
-
406
- $fields->text( 'bg_color', 'Button background color', array( 'class' => 'smallfat wpsr-color-picker' ));
407
-
408
- $fields->text( 'icon_color', 'Icon color', array( 'class' => 'smallfat wpsr-color-picker' ));
409
-
410
- $fields->select( 'hover', 'Hover effect', array(
411
- '' => __( 'None', 'wpsr' ),
412
- 'opacity' => 'Opacity',
413
- 'rotate' => 'Rotate',
414
- 'zoom' => 'Zoom',
415
- 'shrink' => 'Shrink',
416
- 'float' => 'Float',
417
- 'sink' => 'Sink'
418
- ), array( 'class' => 'smallfat' ));
419
-
420
- $fields->select( 'pad', 'Gap between buttons', array(
421
- '' => 'No',
422
- 'pad' => 'yes'
423
- ), array( 'class' => 'smallfat' ));
424
-
425
- $fields->text( 'profile_text', 'Text above buttons' );
426
-
427
- }
428
-
429
- function update( $instance ){
430
- return $instance;
431
- }
432
-
433
- }
434
- new wpsr_widget_followbar();
435
-
436
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/form.php ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Form builder class
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Form{
10
+
11
+ public $fields = array();
12
+ public $current_field = array();
13
+ public $values = array();
14
+ public $options = array();
15
+
16
+ function __construct( $values = array(), $options = array() ){
17
+ $this->values = $values;
18
+ $this->options = $options;
19
+ }
20
+
21
+ function start( $class = '', $attr = '', $custom = '' ){
22
+ $this->current_field[ 'wrap_class' ] = $class;
23
+ $this->current_field[ 'wrap_attr' ] = $attr;
24
+ }
25
+
26
+ function label( $name ){
27
+ $this->current_field[ 'label' ] = $name;
28
+ }
29
+
30
+ function field( $type, $prop = array() ){
31
+ $new_field = [
32
+ 'field_type' => $type,
33
+ 'field_prop' => $prop
34
+ ];
35
+
36
+ if( !isset( $this->current_field[ 'fields' ] ) ){
37
+ $this->current_field[ 'fields' ] = [];
38
+ }
39
+
40
+ array_push( $this->current_field[ 'fields' ], $new_field );
41
+ }
42
+
43
+ function description( $desc ){
44
+ $this->current_field[ 'description' ] = $desc;
45
+ }
46
+
47
+ function end(){
48
+ if( !empty( $this->current_field ) ){
49
+ array_push( $this->fields, $this->current_field );
50
+ $this->current_field = [];
51
+ }
52
+ }
53
+
54
+ function build(){
55
+
56
+ $this->end();
57
+
58
+ foreach( $this->fields as $field_wrap ){
59
+ $class = !isset( $field_wrap[ 'wrap_class' ] ) ? 'class="field_wrap"' : ' class="field_wrap ' . $field_wrap[ 'wrap_class' ] . '" ';
60
+ $attr = !isset( $field_wrap[ 'wrap_attr' ] ) ? '' : $field_wrap[ 'wrap_attr' ];
61
+
62
+ echo '<div ' . $class . ' ' . $attr . '>';
63
+ echo '<label class="field_label">' . $field_wrap[ 'label' ] . '</label>';
64
+ echo '<div>';
65
+ echo '<div class="field_val_wrap">';
66
+ if( isset($field_wrap[ 'fields' ] ) ){
67
+ foreach( $field_wrap[ 'fields' ] as $field ){
68
+ echo '<div class="field_val">';
69
+ echo self::field_html( $field[ 'field_type' ], $field[ 'field_prop' ] );
70
+ echo '</div>';
71
+ }
72
+ }
73
+ echo '</div>';
74
+
75
+ if( isset( $field_wrap[ 'description' ] ) ){
76
+ echo '<p class="description">' . $field_wrap[ 'description' ] . '</p>';
77
+ }
78
+
79
+ echo '</div>';
80
+ echo '</div>';
81
+ }
82
+
83
+ $this->fields = [];
84
+ }
85
+
86
+ function section_start( $heading = false, $step = false ){
87
+
88
+ if( $heading ) echo '<h3 class="section_head" data-step="' . $step . '">' . $heading . '</h3>';
89
+ echo '<section class="form_section">';
90
+
91
+ }
92
+
93
+ function section_end(){
94
+ echo '</section>';
95
+ }
96
+
97
+ function section_description( $description = false ){
98
+ if( $description ){
99
+ echo '<p class="section_desc">' . $description . '</p>';
100
+ }
101
+ }
102
+
103
+ function tab_list( $tabs ){
104
+
105
+ echo '<ul class="tab_list">';
106
+ foreach( $tabs as $id => $label ){
107
+ echo '<li><a href="#' . $id . '">' . $label . '</a></li>';
108
+ }
109
+ echo '</ul>';
110
+
111
+ }
112
+
113
+ public static function field_html( $field_type, $field_props = array() ){
114
+
115
+ $fields = array( 'text', 'select', 'image_select', 'radio', 'textarea' );
116
+
117
+ $default_props = array(
118
+ 'id' => '',
119
+ 'name' => '',
120
+ 'class' => '',
121
+ 'value' => '',
122
+ 'list' => array(),
123
+ 'type' => '',
124
+ 'required' => '',
125
+ 'placeholder' => '',
126
+ 'rows' => '',
127
+ 'cols' => '',
128
+ 'helper' => '',
129
+ 'tooltip' => '',
130
+ 'before_text' => '',
131
+ 'after_text' => '',
132
+ 'custom' => ''
133
+ );
134
+
135
+ if( !in_array( $field_type, $fields ) ){
136
+ return '';
137
+ }
138
+
139
+ $props = WPSR_Lists::set_defaults( $field_props, $default_props );
140
+ $field_html = '';
141
+
142
+ $props = WPSR_Admin::clean_attr( $props );
143
+ extract( $props, EXTR_SKIP );
144
+
145
+ $id_attr = empty( $id ) ? '' : 'id="' . $id . '"';
146
+ $class_attr = empty( $class ) ? '' : 'class="' . $class . '"';
147
+
148
+ if( !empty( $before_text ) ){
149
+ $field_html .= "<span class='field_before_text'>$before_text</span>";
150
+ }
151
+
152
+ if( $field_type == 'text' ){
153
+ $type = empty( $type ) ? 'text' : $type;
154
+ $field_html .= "<input type='$type' $class_attr $id_attr name='$name' value='$value' placeholder='$placeholder' " . ( $required ? "required='$required'" : "" ) . " $custom />";
155
+ }
156
+
157
+ if( $field_type == 'select' ){
158
+ $field_html .= "<select name='$name' $class_attr $id_attr $custom>";
159
+ foreach( $list as $k => $v ){
160
+ $field_html .= "<option value='$k' " . selected( $value, $k, false ) . ">$v</option>";
161
+ }
162
+ $field_html .= "</select>";
163
+ }
164
+
165
+ if( $field_type == 'image_select' ){
166
+ $field_html .= "<select name='$name' class='$class img_select' $id_attr $custom>";
167
+ foreach( $list as $k => $v ){
168
+ $opt_name = ( count( $v ) >= 2 ) ? $v[0] : $v;
169
+ $field_html .= "<option value='$k' " . selected( $value, $k, false ) . ">$opt_name</option>";
170
+ }
171
+ $field_html .= "</select>";
172
+ $field_html .= "<ul class='img_select_list clearfix'>";
173
+ foreach( $list as $k => $v ){
174
+ $is_selected = ( $value == $k ) ? 'img_opt_selected' : '';
175
+ $img = 'default_image.png';
176
+ $opt_name = '';
177
+ if( count( $v ) >= 2 ){
178
+ $opt_name = $v[0];
179
+ $img = $v[1];
180
+ }else{
181
+ $opt_name = $v;
182
+ }
183
+ $img = ( substr( $img, 0, 4 ) !== 'http' ) ? ( WPSR_ADMIN_URL . 'images/select_images/' . $img ) : $img;
184
+ $width = ( is_array( $v ) && isset( $v[2] ) ) ? "style='width:" . $v[2] . "'" : "";
185
+ $field_html .= "<li data-value='$k' data-init='false' class='" . $is_selected . "' $width><img src='" . $img . "' /><span>" . $opt_name . "</span></li>";
186
+ }
187
+ $field_html .= "</ul>";
188
+ }
189
+
190
+ if( $field_type == 'radio' ){
191
+ $field_html .= '<div class="radios_wrap">';
192
+ foreach( $list as $k => $v ){
193
+ $field_html .= "<label class='lbl_margin' $custom><input type='radio' name='$name' $class_attr value='$k' $id_attr " . checked( $value, $k, false ) . " />&nbsp;$v </label>";
194
+ }
195
+ $field_html .= '</div>';
196
+ }
197
+
198
+ if( $field_type == 'textarea' ){
199
+ $field_html .= "<textarea $id_attr name='$name' $class_attr placeholder='$placeholder' rows='$rows' cols='$cols' $custom>$value</textarea>";
200
+ }
201
+
202
+ if( !empty( $after_text ) ){
203
+ $field_html .= "<span class='field_after_text'>$after_text</span>";
204
+ }
205
+
206
+ if( !empty( $helper ) )
207
+ $field_html .= "<p class='description'>$helper</p>";
208
+
209
+ return $field_html;
210
+
211
+ }
212
+
213
+ }
214
+
215
+ ?>
admin/general_settings.php DELETED
@@ -1,89 +0,0 @@
1
- <?php
2
- /**
3
- * General settings admin page
4
- *
5
- **/
6
-
7
- class wpsr_admin_settings{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
12
-
13
- add_action( 'wpsr_form_general_settings', array( $this, 'misc_general_settings' ), 10, 1 );
14
-
15
- }
16
-
17
- function register( $pages ){
18
-
19
- $pages[ 'general_settings' ] = array(
20
- 'name' => 'Settings',
21
- 'page_callback' => array( $this, 'page' ),
22
- 'banner' => WPSR_ADMIN_URL . '/images/banners/settings.png',
23
- 'feature' => false,
24
- 'form' => array(
25
- 'id' => 'general_settings',
26
- 'name' => 'general_settings',
27
- 'callback' => ''
28
- )
29
- );
30
-
31
- return $pages;
32
-
33
- }
34
-
35
- function page(){
36
-
37
- WPSR_Admin::settings_form( 'general_settings' );
38
- }
39
-
40
- function validation( $input ){
41
- return $input;
42
- }
43
-
44
- function misc_general_settings( $values ){
45
-
46
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'gsettings_misc' ) );
47
-
48
- $font_icons = WPSR_Lists::font_icons();
49
- $font_icons_list = array();
50
-
51
- foreach( $font_icons as $id => $prop ){
52
- $font_icons_list[$id] = $prop['name'];
53
- }
54
-
55
- $inc_list = WPSR_Includes::list_all();
56
- $inc_text = '<code>' . implode('</code>, <code>', array_keys($inc_list) ) . '</code>';
57
-
58
- $section1 = array(
59
-
60
- array( __( 'Font icon', 'wpsr' ), WPSR_Admin::field( 'select', array(
61
- 'name' => 'font_icon',
62
- 'value' => $values['font_icon'],
63
- 'list' => $font_icons_list
64
- ))),
65
-
66
- array( __( 'Additional CSS rules', 'wpsr' ), WPSR_Admin::field( 'textarea', array(
67
- 'name' => 'misc_additional_css',
68
- 'value' => $values['misc_additional_css'],
69
- 'helper' => __( 'Enter custom CSS rules to customize without the style tag', 'wpsr' ),
70
- 'rows' => '3',
71
- 'cols' => '100'
72
- ))),
73
-
74
- array( __( 'CSS/JS to not to load in any page', 'wpsr' ), WPSR_Admin::field( 'text', array(
75
- 'name' => 'skip_res_load',
76
- 'value' => $values['skip_res_load'],
77
- 'helper' => __( 'Enter the ID of the CSS/JS resources to not to load in any page. <a href="#" class="tblr_btn" data-id="res_info_box">Click here</a> to see the list of resources. <div class="hidden" data-tglr="res_info_box"><p>' . $inc_text . '</p> <p>Enter the IDs separated by comma. <b>Note: Many of the resources are intelligently loaded based on buttons used in the page. Please use this field only after discussion with the developer.</b></p></div>', 'wpsr' )
78
- )))
79
-
80
- );
81
-
82
- WPSR_Admin::build_table( $section1, __( 'Miscellaneous settings', 'wpsr' ) );
83
- }
84
-
85
- }
86
-
87
- new wpsr_admin_settings();
88
-
89
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/{icons_editor.php → icons-editor.php} RENAMED
@@ -1,5 +1,7 @@
1
  <?php
2
 
 
 
3
  class WPSR_Icons_Editor{
4
 
5
  public static function editor( $selected_icons, $form_name = 'selected_icons' ){
@@ -39,7 +41,7 @@ class WPSR_Icons_Editor{
39
  echo '<li ' . $datas . ' style="background-color: ' . $props[ 'colors' ][ 0 ] . '">';
40
  echo '<i class="' . $props[ 'icon' ] . ' item_icon" ></i> ';
41
  echo '<span>' . $props[ 'name' ] . '</span>';
42
- echo '<i class="fa fa-trash-alt sic_action_btn sie_delete_btn" title="' . __( 'Delete icon', 'wpsr' ) . '"></i> ';
43
  echo '<i class="fa fa-cog sic_action_btn sie_settings_btn" title="' . __( 'Icon settings', 'wpsr' ) . '"></i> ';
44
  echo '</li>';
45
 
@@ -114,7 +116,7 @@ class WPSR_Icons_Editor{
114
  echo '<i class="' . $props[ 'icon' ] . ' item_icon" ></i> ';
115
  echo '<span>' . $props[ 'name' ] . '</span>';
116
  echo '<i class="fas fa-plus sic_action_btn sip_add_btn" title="' . __( 'Add icon', 'wpsr' ) . '"></i>';
117
- echo '<i class="fa fa-trash-alt sic_action_btn sie_delete_btn" title="' . __( 'Delete icon', 'wpsr' ) . '"></i> ';
118
  echo '<i class="fa fa-cog sic_action_btn sie_settings_btn" title="' . __( 'Icon settings', 'wpsr' ) . '"></i> ';
119
  echo '</li>';
120
  }
1
  <?php
2
 
3
+ defined( 'ABSPATH' ) || exit;
4
+
5
  class WPSR_Icons_Editor{
6
 
7
  public static function editor( $selected_icons, $form_name = 'selected_icons' ){
41
  echo '<li ' . $datas . ' style="background-color: ' . $props[ 'colors' ][ 0 ] . '">';
42
  echo '<i class="' . $props[ 'icon' ] . ' item_icon" ></i> ';
43
  echo '<span>' . $props[ 'name' ] . '</span>';
44
+ echo '<i class="fa fa-times sic_action_btn sie_delete_btn" title="' . __( 'Delete icon', 'wpsr' ) . '"></i> ';
45
  echo '<i class="fa fa-cog sic_action_btn sie_settings_btn" title="' . __( 'Icon settings', 'wpsr' ) . '"></i> ';
46
  echo '</li>';
47
 
116
  echo '<i class="' . $props[ 'icon' ] . ' item_icon" ></i> ';
117
  echo '<span>' . $props[ 'name' ] . '</span>';
118
  echo '<i class="fas fa-plus sic_action_btn sip_add_btn" title="' . __( 'Add icon', 'wpsr' ) . '"></i>';
119
+ echo '<i class="fa fa-times sic_action_btn sie_delete_btn" title="' . __( 'Delete icon', 'wpsr' ) . '"></i> ';
120
  echo '<i class="fa fa-cog sic_action_btn sie_settings_btn" title="' . __( 'Icon settings', 'wpsr' ) . '"></i> ';
121
  echo '</li>';
122
  }
admin/images/banners/facebook-widget.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="250" height="100" viewBox="0 0 66.145832 26.458334"><g><rect width="66.145836" height="26.458334" fill="#e6f3ff" stroke-width="2.74788" stroke-linejoin="round"/></g><g/><g transform="translate(0,-249.37498)"><g transform="translate(-2.817172,-0.19034617)"><g transform="translate(-1.0768462)"><g transform="translate(0,-0.08334101)"><rect y="258.6445" x="17.328281" height="8.4666662" width="8.4666662" ry="4.2333331" fill="#1977f3" stroke-width=".23472" stroke-linecap="round" stroke-linejoin="round"/><path d="m 22.544718,262.13265 h -0.669621 v -0.43917 c 0,-0.16487 0.109312,-0.20334 0.186304,-0.20334 0.07682,0 0.472545,0 0.472545,0 v -0.72504 l -0.65079,-0.003 c -0.722437,0 -0.886842,0.5408 -0.886842,0.88685 v 0.48331 h -0.417802 v 0.74715 h 0.417802 c 0,0.95884 0,2.11414 0,2.11414 h 0.878783 c 0,0 0,-1.16669 0,-2.11414 h 0.59298 z" fill="#fff" stroke-width=".0875895"/></g><rect ry=".39289305" y="262.40161" x="28.66321" height=".78578609" width="2.7857862" fill="#e1e1e1" stroke-width=".214214" stroke-linejoin="round"/><g transform="matrix(1.1488646,0,0,1.1488646,-5.0162137,-43.035767)"><g transform="translate(18.804315,2.6647451)"><g transform="translate(-0.26070196,0.70067699)"><g transform="matrix(0.86102719,0,0,0.86102719,4.476847,32.057087)"><rect width="21.870955" height="14.5202" x="13.564557" y="260.76822" ry=".47837946" fill="#fff" stroke="#1977f3" stroke-width=".243329" stroke-linecap="round" stroke-linejoin="round"/><path d="m 13.441758,263.45172 h 21.782465 v 0.13364 -0.0668" fill="none" stroke="#3e5b98" stroke-width=".264583"/><path d="m 13.592096,261.1769 c 0.124351,-0.20316 0.293379,-0.29482 0.668174,-0.39788 h 10.30658 l 10.473626,0.0256 0.400903,0.40302 0.116931,3.06264 H 24.566851 13.575392 Z" fill="#1977f3" stroke-width=".0815901" stroke-linecap="round" stroke-linejoin="round"/><rect ry="0" y="266.58337" x="15.288326" height="1.3275393" width="12.289192" fill="#e1e1e1" stroke-width=".0747098" stroke-linecap="round" stroke-linejoin="round"/><rect ry="0" y="268.90109" x="15.290036" height=".713328" width="9.8323469" fill="#e1e1e1" stroke-width=".0489853" stroke-linecap="round" stroke-linejoin="round"/><rect ry="0" y="270.60788" x="15.307755" height=".713328" width="9.8323469" fill="#e1e1e1" stroke-width=".0489853" stroke-linecap="round" stroke-linejoin="round"/></g></g></g></g></g></g></g></svg>
admin/images/banners/floating-sharebar-2.svg DELETED
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" viewBox="0 0 52.916665 52.916668"><g><rect width="12.744334" height="51.404762" x="8.0937586" y="4.52425" ry="2.4332221" fill="#fff" stroke="#d9d9d9" stroke-width=".16471642" stroke-linecap="round" stroke-linejoin="round"/><text style="line-height:5.64885426px" x="11.072206" y="12.359738" font-size="3.88055563" font-family="sans-serif" letter-spacing="0" word-spacing="0" stroke-width=".26458332"><tspan x="11.072206" y="12.359738" style="-inkscape-font-specification:'Arial Bold'" font-weight="bold" font-size="5.99722242" font-family="Arial">52</tspan></text><text style="line-height:5.64885426px" x="9.9985113" y="15.266794" font-size="3.88055563" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#b8b8b8" stroke-width=".26458332"><tspan x="9.9985113" y="15.266794" font-size="2.46944451" letter-spacing="-.19050001">SHARES</tspan></text><g transform="translate(-0.75885444,-0.52916667)"><path d="m 11.358729,31.201099 v 1.887738 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.618051 c 0,0.883777 0.711474,1.595252 1.595251,1.595252 h 1.135848 c 0.111964,0 0.221259,-0.01185 0.326596,-0.03359 h 2.413288 0.626319 1.887223 v -1.887738 -0.45062 -3.608049 c 0,-1.045723 -0.841497,-1.887738 -1.887223,-1.887738 h -3.683496 -0.509529 z" fill="#09f" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="m 17.342651,34.16554 c -0.146882,0.06531 -0.304957,0.109328 -0.470818,0.129037 0.169349,-0.101379 0.299198,-0.261971 0.360433,-0.453539 -0.158399,0.094 -0.333749,0.162209 -0.520535,0.199031 -0.149478,-0.15929 -0.362542,-0.25889 -0.598315,-0.25889 -0.45265,0 -0.819652,0.367001 -0.819652,0.819732 0,0.06416 0.0072,0.126688 0.02125,0.186793 -0.681285,-0.03427 -1.285359,-0.360516 -1.68967,-0.856477 -0.07056,0.121004 -0.110952,0.261809 -0.110952,0.412172 0,0.284361 0.144692,0.535303 0.36465,0.682262 -0.134311,-0.0046 -0.260754,-0.04121 -0.371302,-0.102596 -8e-5,0.0031 -8e-5,0.0069 -8e-5,0.0104 0,0.397093 0.282572,0.728326 0.657604,0.803758 -0.06878,0.01872 -0.141206,0.02873 -0.215984,0.02873 -0.05288,0 -0.104221,-0.0054 -0.154263,-0.01479 0.104382,0.325642 0.407068,0.562713 0.765716,0.569291 -0.280543,0.219873 -0.63392,0.350935 -1.018036,0.350935 -0.0661,0 -0.131391,-0.0039 -0.195545,-0.01155 0.362866,0.232697 0.793698,0.368303 1.256568,0.368303 1.507832,0 2.332269,-1.249025 2.332269,-2.332269 0,-0.03551 -7.13e-4,-0.07093 -0.0023,-0.10617 0.160101,-0.115335 0.299116,-0.259776 0.408934,-0.42418 z" fill="#fff" stroke-width=".08110549"/></g><g transform="translate(-0.72557944)"><path d="m 11.325454,41.293426 v 1.887739 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.61805 c 0,0.883777 0.711474,1.595253 1.595251,1.595253 h 1.135848 c 0.111964,0 0.221258,-0.01185 0.326595,-0.03359 h 2.413289 0.626319 1.887223 v -1.887739 -0.45062 -3.608049 c 0,-1.045723 -0.841497,-1.887739 -1.887223,-1.887739 H 13.72272 13.21319 Z" fill="#cb2027" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="m 17.368577,45.144413 c 0,1.096206 -0.888167,1.984373 -1.984373,1.984373 -0.204838,0 -0.401676,-0.03121 -0.58731,-0.08882 0.08081,-0.132025 0.201637,-0.348065 0.246446,-0.520098 0.02401,-0.09282 0.123223,-0.472088 0.123223,-0.472088 0.06481,0.123222 0.253648,0.228043 0.454485,0.228043 0.598513,0 1.029794,-0.550504 1.029794,-1.234633 0,-0.655323 -0.5353,-1.145816 -1.22343,-1.145816 -0.856161,0 -1.311447,0.574509 -1.311447,1.201026 0,0.291255 0.155229,0.653724 0.402476,0.768945 0.0376,0.0176 0.05761,0.0096 0.06641,-0.02641 0.0064,-0.0272 0.04001,-0.162431 0.05521,-0.224843 0.0048,-0.02 0.0024,-0.0376 -0.0136,-0.05681 -0.08082,-0.100019 -0.146428,-0.282453 -0.146428,-0.452886 0,-0.437682 0.331262,-0.860961 0.896168,-0.860961 0.487292,0 0.828956,0.332062 0.828956,0.807351 0,0.536902 -0.271251,0.908971 -0.624117,0.908971 -0.194436,0 -0.340864,-0.16083 -0.293655,-0.358467 0.05601,-0.236045 0.164031,-0.490492 0.164031,-0.660924 0,-0.152029 -0.08162,-0.279253 -0.251248,-0.279253 -0.199237,0 -0.359268,0.205639 -0.359268,0.481691 0,0.176033 0.05921,0.294455 0.05921,0.294455 0,0 -0.196037,0.830557 -0.232044,0.985786 -0.04001,0.171232 -0.02401,0.412877 -0.0072,0.569707 -0.737738,-0.288854 -1.261037,-1.00739 -1.261037,-1.848348 0,-1.096206 0.888167,-1.984373 1.984373,-1.984373 1.096207,0 1.984374,0.888167 1.984374,1.984373 z" fill="#fff" stroke-width=".0080015"/></g><g transform="translate(-0.85921844)"><path d="m 11.459093,19.917237 v 1.887739 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.61805 c 0,0.883777 0.711474,1.595253 1.595251,1.595253 h 1.135848 c 0.111964,0 0.221258,-0.01185 0.326595,-0.03359 h 2.413289 0.626319 1.887223 v -1.887739 -0.45062 -3.608049 c 0,-1.045723 -0.841498,-1.887739 -1.887223,-1.887739 h -3.683496 -0.50953 z" fill="#3e5b98" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="M 16.330206,23.439423 H 15.72033 v -0.399992 c 0,-0.150216 0.09956,-0.18524 0.16968,-0.18524 0.06996,0 0.430385,0 0.430385,0 v -0.660376 l -0.592727,-0.0024 c -0.657983,0 -0.80772,0.492536 -0.80772,0.807728 v 0.440184 h -0.380525 v 0.680488 h 0.380525 c 0,0.873296 0,1.925519 0,1.925519 h 0.800382 c 0,0 0,-1.0626 0,-1.925519 h 0.540074 z" fill="#fff" stroke-width=".07977477"/></g><g transform="translate(0,-0.43296254)"><rect width="40.207054" height="3.8639438" x="25.866831" y="9.4476023" fill="#efefef" stroke-width=".33238029" stroke-linecap="round" stroke-linejoin="round"/><rect width="34.893513" height="2.1166666" x="25.866831" y="16.827724" fill="#efefef" stroke-width=".22917503" stroke-linecap="round" stroke-linejoin="round"/><rect width="23.743216" height="2.1166666" x="25.866831" y="22.239925" fill="#efefef" stroke-width=".18904479" stroke-linecap="round" stroke-linejoin="round"/><rect width="40.207054" height="3.8639438" x="26.401369" y="29.426001" fill="#efefef" stroke-width=".33238029" stroke-linecap="round" stroke-linejoin="round"/><rect width="34.893513" height="2.1166666" x="26.401369" y="36.806122" fill="#efefef" stroke-width=".22917503" stroke-linecap="round" stroke-linejoin="round"/><rect width="23.743216" height="2.1166666" x="26.401369" y="42.218323" fill="#efefef" stroke-width=".18904479" stroke-linecap="round" stroke-linejoin="round"/></g></g></svg>
 
admin/images/banners/floating-sharebar.svg CHANGED
@@ -1,168 +1 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4
- <svg
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:cc="http://creativecommons.org/ns#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
- xmlns:svg="http://www.w3.org/2000/svg"
9
- xmlns="http://www.w3.org/2000/svg"
10
- xmlns:xlink="http://www.w3.org/1999/xlink"
11
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
13
- width="200"
14
- height="200"
15
- viewBox="0 0 52.916665 52.916668"
16
- version="1.1"
17
- id="svg8"
18
- inkscape:version="0.92.0 r15299"
19
- sodipodi:docname="floating-sharebar.svg">
20
- <defs
21
- id="defs2" />
22
- <sodipodi:namedview
23
- id="base"
24
- pagecolor="#ffffff"
25
- bordercolor="#666666"
26
- borderopacity="1.0"
27
- inkscape:pageopacity="0.0"
28
- inkscape:pageshadow="2"
29
- inkscape:zoom="3.959798"
30
- inkscape:cx="-27.341989"
31
- inkscape:cy="81.333944"
32
- inkscape:document-units="px"
33
- inkscape:current-layer="layer2"
34
- showgrid="false"
35
- units="px"
36
- inkscape:window-width="1920"
37
- inkscape:window-height="1013"
38
- inkscape:window-x="-9"
39
- inkscape:window-y="-9"
40
- inkscape:window-maximized="1" />
41
- <metadata
42
- id="metadata5">
43
- <rdf:RDF>
44
- <cc:Work
45
- rdf:about="">
46
- <dc:format>image/svg+xml</dc:format>
47
- <dc:type
48
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
49
- <dc:title />
50
- </cc:Work>
51
- </rdf:RDF>
52
- </metadata>
53
- <g
54
- inkscape:label="Layer 1"
55
- inkscape:groupmode="layer"
56
- id="layer1"
57
- transform="translate(0,-244.08332)"
58
- sodipodi:insensitive="true"
59
- style="display:none">
60
- <image
61
- sodipodi:absref="E:\xampp\htdocs\wordpress\wp-content\plugins\wp-socializer\admin\images\banners\floating-sharebar.png"
62
- y="246.27258"
63
- x="3.0397146"
64
- id="image4493"
65
- xlink:href="file:///E:/xampp/htdocs/wordpress/wp-content/plugins/wp-socializer/admin/images/banners/floating-sharebar.png"
66
- preserveAspectRatio="none"
67
- height="47.782177"
68
- width="47.782177" />
69
- </g>
70
- <g
71
- inkscape:groupmode="layer"
72
- id="layer2"
73
- inkscape:label="Layer 2"
74
- style="display:inline">
75
- <rect
76
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#d9d9d9;stroke-width:0.207;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
77
- id="rect4499"
78
- width="20.127232"
79
- height="51.404762"
80
- x="17.008928"
81
- y="4.7247024"
82
- ry="2.4332221" />
83
- <path
84
- style="opacity:1;fill:#4267b2;fill-opacity:1;fill-rule:nonzero;stroke:#dcdcdc;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
85
- d="M 124.50195 91.408203 L 78.476562 91.408203 L 78.476562 107.65625 C 78.476562 108.90365 79.481113 109.90625 80.728516 109.90625 L 122.25 109.90625 C 123.4974 109.90625 124.50195 108.90365 124.50195 107.65625 L 124.50195 91.408203 z "
86
- id="path4545"
87
- transform="scale(0.26458333)" />
88
- <path
89
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#dcdcdc;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
90
- d="M 80.728516 72.341797 C 79.481113 72.341797 78.476562 73.346347 78.476562 74.59375 L 78.476562 91.408203 L 124.50195 91.408203 L 124.50195 74.59375 C 124.50195 73.346347 123.4974 72.341797 122.25 72.341797 L 80.728516 72.341797 z "
91
- id="rect4537"
92
- transform="scale(0.26458333)" />
93
- <text
94
- xml:space="preserve"
95
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#9b9b9b;fill-opacity:1;stroke:none;stroke-width:0.26458332;"
96
- x="24.989702"
97
- y="22.848845"
98
- id="text4549"><tspan
99
- sodipodi:role="line"
100
- id="tspan4547"
101
- x="24.989702"
102
- y="22.848845"
103
- style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;font-family:helvetica;-inkscape-font-specification:helvetica;stroke-width:0.26458332;fill:#9b9b9b;fill-opacity:1;">52</tspan></text>
104
- <g
105
- style="color:#ffffff;display:inline;opacity:1"
106
- id="g5349"
107
- transform="matrix(0.21914751,0,0,0.21914751,21.528004,24.75859)">
108
- <path
109
- id="path5338"
110
- d="M 4.55,7 C 4.7984,7 5,7.2340364 5,7.5224727 V 13.477527 C 5,13.765964 4.7984,14 4.55,14 H 2.45 C 2.2016,14 2,13.765964 2,13.477527 V 7.5224727 C 2,7.2340364 2.2016,7 2.45,7 Z m 1.9947023,6.2 C 6.2401688,13.164109 6.0173461,12.898279 6,12.573798 c 0.017346,0 0.013442,-2.9057413 0,-4.4298111 C 6.0134419,7.6190393 6.1084946,6.6862335 6.3980131,6.2738428 7.1055629,5.2660075 7.602817,4.6079584 7.8920681,4.2257008 8.1812634,3.8435016 8.5281305,3.4708734 8.5377796,3.1857268 c 0.012996,-0.3836583 -0.00123,-0.3910116 0,-0.8301701 C 8.5390067,1.9163981 8.7456544,1.5 9.2713931,1.5 9.52545,1.5 9.7301456,1.556901 9.9192241,1.8008455 10.222363,2.1559657 10.43431,2.7188473 10.43431,3.6097117 c 0,0.8908644 -0.9244102,2.5632186 -0.9261504,2.5702883 0,0 4.0375504,-9.105e-4 4.0382484,0 C 14.163554,6.175876 14.5,6.725432 14.5,7.2971843 c 0,0.5354524 -0.365886,0.9817892 -0.846057,1.0568984 0.291259,0.1387799 0.500529,0.4695641 0.500529,0.8514715 0,0.476042 -0.325171,0.8727148 -0.756091,0.9402958 0.232081,0.144907 0.375312,0.405835 0.375312,0.701661 0,0.398423 -0.259857,0.733351 -0.614254,0.813713 0.210719,0.137962 0.346923,0.393171 0.346923,0.68176 0,0.452231 -0.33482,0.8227 -0.762896,0.857016 z"
111
- inkscape:connector-curvature="0"
112
- style="fill:#ffffff;fill-rule:evenodd" />
113
- </g>
114
- <text
115
- xml:space="preserve"
116
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;display:inline;opacity:1;fill:#fff6f6;fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1"
117
- x="25.776787"
118
- y="27.689501"
119
- id="text5258"><tspan
120
- sodipodi:role="line"
121
- id="tspan5256"
122
- x="25.776787"
123
- y="27.689501"
124
- style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;font-family:helvetica;-inkscape-font-specification:helvetica;fill:#fff6f6;fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1">Like</tspan></text>
125
- <text
126
- xml:space="preserve"
127
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;display:inline;opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
128
- x="23.494865"
129
- y="11.964207"
130
- id="text5332"><tspan
131
- sodipodi:role="line"
132
- id="tspan5330"
133
- x="23.494865"
134
- y="11.964207"
135
- style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:5.99722242px;font-family:Arial;-inkscape-font-specification:'Arial Bold';stroke-width:0.26458332">52</tspan></text>
136
- <text
137
- xml:space="preserve"
138
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;display:inline;opacity:1;fill:#b8b8b8;fill-opacity:1;stroke:none;stroke-width:0.26458332"
139
- x="22.421171"
140
- y="14.871263"
141
- id="text5336"><tspan
142
- sodipodi:role="line"
143
- id="tspan5334"
144
- x="22.421171"
145
- y="14.871263"
146
- style="font-size:2.46944451px;letter-spacing:-0.19050001px;fill:#b8b8b8;fill-opacity:1;stroke-width:0.26458332">SHARES</tspan></text>
147
- <path
148
- style="opacity:1;fill:#0099ff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
149
- d="M 86.367188 123.98633 L 86.367188 131.12109 L 86.367188 132.38281 L 86.367188 144.5332 C 86.330555 144.803 86.304688 145.07726 86.304688 145.35742 L 86.304688 147.69336 C 86.304688 151.03362 88.993724 153.72266 92.333984 153.72266 L 96.626953 153.72266 C 97.050123 153.72266 97.463204 153.67788 97.861328 153.5957 L 106.98242 153.5957 L 109.34961 153.5957 L 116.48242 153.5957 L 116.48242 146.46094 L 116.48242 144.75781 L 116.48242 131.12109 C 116.48242 127.16875 113.30196 123.98633 109.34961 123.98633 L 95.427734 123.98633 L 93.501953 123.98633 L 86.367188 123.98633 z "
150
- id="rect5195"
151
- transform="scale(0.26458333)" />
152
- <path
153
- inkscape:connector-curvature="0"
154
- style="display:inline;opacity:1;fill:#cb2027;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
155
- d="m 22.818044,42.367876 v 1.887739 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.61805 c 0,0.883777 0.711474,1.595253 1.595251,1.595253 h 1.135848 c 0.111964,0 0.221258,-0.01185 0.326595,-0.03359 h 2.413289 0.626319 1.887223 v -1.887739 -0.45062 -3.608049 c 0,-1.045723 -0.841497,-1.887739 -1.887223,-1.887739 H 25.21531 24.70578 Z"
156
- id="rect5195-7" />
157
- <path
158
- id="path5290"
159
- d="m 28.835241,35.769157 c -0.146882,0.06531 -0.304957,0.109328 -0.470818,0.129037 0.169349,-0.101379 0.299198,-0.261971 0.360433,-0.453539 -0.158399,0.094 -0.333749,0.162209 -0.520535,0.199031 -0.149478,-0.15929 -0.362542,-0.25889 -0.598315,-0.25889 -0.45265,0 -0.819652,0.367001 -0.819652,0.819732 0,0.06416 0.0072,0.126688 0.02125,0.186793 -0.681285,-0.03427 -1.285359,-0.360516 -1.68967,-0.856477 -0.07056,0.121004 -0.110952,0.261809 -0.110952,0.412172 0,0.284361 0.144692,0.535303 0.36465,0.682262 -0.134311,-0.0046 -0.260754,-0.04121 -0.371302,-0.102596 -8e-5,0.0031 -8e-5,0.0069 -8e-5,0.0104 0,0.397093 0.282572,0.728326 0.657604,0.803758 -0.06878,0.01872 -0.141206,0.02873 -0.215984,0.02873 -0.05288,0 -0.104221,-0.0054 -0.154263,-0.01479 0.104382,0.325642 0.407068,0.562713 0.765716,0.569291 -0.280543,0.219873 -0.63392,0.350935 -1.018036,0.350935 -0.0661,0 -0.131391,-0.0039 -0.195545,-0.01155 0.362866,0.232697 0.793698,0.368303 1.256568,0.368303 1.507832,0 2.332269,-1.249025 2.332269,-2.332269 0,-0.03551 -7.13e-4,-0.07093 -0.0023,-0.10617 0.160101,-0.115335 0.299116,-0.259776 0.408934,-0.42418 z"
160
- inkscape:connector-curvature="0"
161
- style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.08110549" />
162
- <path
163
- id="path5074"
164
- d="m 28.861167,46.218863 c 0,1.096206 -0.888167,1.984373 -1.984373,1.984373 -0.204838,0 -0.401676,-0.03121 -0.58731,-0.08882 0.08081,-0.132025 0.201637,-0.348065 0.246446,-0.520098 0.02401,-0.09282 0.123223,-0.472088 0.123223,-0.472088 0.06481,0.123222 0.253648,0.228043 0.454485,0.228043 0.598513,0 1.029794,-0.550504 1.029794,-1.234633 0,-0.655323 -0.5353,-1.145816 -1.22343,-1.145816 -0.856161,0 -1.311447,0.574509 -1.311447,1.201026 0,0.291255 0.155229,0.653724 0.402476,0.768945 0.0376,0.0176 0.05761,0.0096 0.06641,-0.02641 0.0064,-0.0272 0.04001,-0.162431 0.05521,-0.224843 0.0048,-0.02 0.0024,-0.0376 -0.0136,-0.05681 -0.08082,-0.100019 -0.146428,-0.282453 -0.146428,-0.452886 0,-0.437682 0.331262,-0.860961 0.896168,-0.860961 0.487292,0 0.828956,0.332062 0.828956,0.807351 0,0.536902 -0.271251,0.908971 -0.624117,0.908971 -0.194436,0 -0.340864,-0.16083 -0.293655,-0.358467 0.05601,-0.236045 0.164031,-0.490492 0.164031,-0.660924 0,-0.152029 -0.08162,-0.279253 -0.251248,-0.279253 -0.199237,0 -0.359268,0.205639 -0.359268,0.481691 0,0.176033 0.05921,0.294455 0.05921,0.294455 0,0 -0.196037,0.830557 -0.232044,0.985786 -0.04001,0.171232 -0.02401,0.412877 -0.0072,0.569707 -0.737738,-0.288854 -1.261037,-1.00739 -1.261037,-1.848348 0,-1.096206 0.888167,-1.984373 1.984373,-1.984373 1.096207,0 1.984374,0.888167 1.984374,1.984373 z"
165
- inkscape:connector-curvature="0"
166
- style="display:inline;fill:#ffffff;fill-opacity:1;stroke-width:0.0080015" />
167
- </g>
168
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="250" height="100" viewBox="0 0 66.145831 26.458334"><g><rect width="7.302536" height="29.455061" x="9.6622086" y="2.2172925" ry="1.3942424" fill="#fff" stroke="#aaa" stroke-width=".0943827" stroke-linecap="round" stroke-linejoin="round"/><text style="line-height:3.23681px" x="11.368866" y="6.7070475" font-size="2.22357" font-family="sans-serif" letter-spacing="0" word-spacing="0" stroke-width=".151606"><tspan x="11.368866" y="6.7070475" style="-inkscape-font-specification:'Arial Bold'" font-weight="bold" font-size="3.43643" font-family="Arial">52</tspan></text><text style="line-height:2.20691px" x="10.450423" y="9.2824392" font-size="1.51606" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#b8b8b8" stroke-width=".151606"><tspan x="10.450423" y="9.2824392" letter-spacing="-.109157">SHARES</tspan></text><g transform="matrix(0.57300257,0,0,0.57300257,4.5896392,-0.67832826)"><path d="m 11.358729,31.201099 v 1.887738 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.618051 c 0,0.883777 0.711474,1.595252 1.595251,1.595252 h 1.135848 c 0.111964,0 0.221259,-0.01185 0.326596,-0.03359 h 2.413288 0.626319 1.887223 v -1.887738 -0.45062 -3.608049 c 0,-1.045723 -0.841497,-1.887738 -1.887223,-1.887738 h -3.683496 -0.509529 z" fill="#1da1f2" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><path d="m 17.342651,34.16554 c -0.146882,0.06531 -0.304957,0.109328 -0.470818,0.129037 0.169349,-0.101379 0.299198,-0.261971 0.360433,-0.453539 -0.158399,0.094 -0.333749,0.162209 -0.520535,0.199031 -0.149478,-0.15929 -0.362542,-0.25889 -0.598315,-0.25889 -0.45265,0 -0.819652,0.367001 -0.819652,0.819732 0,0.06416 0.0072,0.126688 0.02125,0.186793 -0.681285,-0.03427 -1.285359,-0.360516 -1.68967,-0.856477 -0.07056,0.121004 -0.110952,0.261809 -0.110952,0.412172 0,0.284361 0.144692,0.535303 0.36465,0.682262 -0.134311,-0.0046 -0.260754,-0.04121 -0.371302,-0.102596 -8e-5,0.0031 -8e-5,0.0069 -8e-5,0.0104 0,0.397093 0.282572,0.728326 0.657604,0.803758 -0.06878,0.01872 -0.141206,0.02873 -0.215984,0.02873 -0.05288,0 -0.104221,-0.0054 -0.154263,-0.01479 0.104382,0.325642 0.407068,0.562713 0.765716,0.569291 -0.280543,0.219873 -0.63392,0.350935 -1.018036,0.350935 -0.0661,0 -0.131391,-0.0039 -0.195545,-0.01155 0.362866,0.232697 0.793698,0.368303 1.256568,0.368303 1.507832,0 2.332269,-1.249025 2.332269,-2.332269 0,-0.03551 -7.13e-4,-0.07093 -0.0023,-0.10617 0.160101,-0.115335 0.299116,-0.259776 0.408934,-0.42418 z" fill="#fff" stroke-width=".0811055"/></g><g transform="matrix(0.57300257,0,0,0.57300257,4.6087059,-0.37511445)"><path d="m 11.325454,41.293426 v 1.887739 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.61805 c 0,0.883777 0.711474,1.595253 1.595251,1.595253 h 1.135848 c 0.111964,0 0.221258,-0.01185 0.326595,-0.03359 h 2.413289 0.626319 1.887223 v -1.887739 -0.45062 -3.608049 c 0,-1.045723 -0.841497,-1.887739 -1.887223,-1.887739 H 13.72272 13.21319 Z" fill="#cb2027" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><path d="m 17.368577,45.144413 c 0,1.096206 -0.888167,1.984373 -1.984373,1.984373 -0.204838,0 -0.401676,-0.03121 -0.58731,-0.08882 0.08081,-0.132025 0.201637,-0.348065 0.246446,-0.520098 0.02401,-0.09282 0.123223,-0.472088 0.123223,-0.472088 0.06481,0.123222 0.253648,0.228043 0.454485,0.228043 0.598513,0 1.029794,-0.550504 1.029794,-1.234633 0,-0.655323 -0.5353,-1.145816 -1.22343,-1.145816 -0.856161,0 -1.311447,0.574509 -1.311447,1.201026 0,0.291255 0.155229,0.653724 0.402476,0.768945 0.0376,0.0176 0.05761,0.0096 0.06641,-0.02641 0.0064,-0.0272 0.04001,-0.162431 0.05521,-0.224843 0.0048,-0.02 0.0024,-0.0376 -0.0136,-0.05681 -0.08082,-0.100019 -0.146428,-0.282453 -0.146428,-0.452886 0,-0.437682 0.331262,-0.860961 0.896168,-0.860961 0.487292,0 0.828956,0.332062 0.828956,0.807351 0,0.536902 -0.271251,0.908971 -0.624117,0.908971 -0.194436,0 -0.340864,-0.16083 -0.293655,-0.358467 0.05601,-0.236045 0.164031,-0.490492 0.164031,-0.660924 0,-0.152029 -0.08162,-0.279253 -0.251248,-0.279253 -0.199237,0 -0.359268,0.205639 -0.359268,0.481691 0,0.176033 0.05921,0.294455 0.05921,0.294455 0,0 -0.196037,0.830557 -0.232044,0.985786 -0.04001,0.171232 -0.02401,0.412877 -0.0072,0.569707 -0.737738,-0.288854 -1.261037,-1.00739 -1.261037,-1.848348 0,-1.096206 0.888167,-1.984373 1.984373,-1.984373 1.096207,0 1.984374,0.888167 1.984374,1.984373 z" fill="#fff" stroke-width=".0080015"/></g><g transform="matrix(0.57300257,0,0,0.57300257,4.5321303,-0.37511445)"><path d="m 11.459093,19.917237 v 1.887739 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.61805 c 0,0.883777 0.711474,1.595253 1.595251,1.595253 h 1.135848 c 0.111964,0 0.221258,-0.01185 0.326595,-0.03359 h 2.413289 0.626319 1.887223 v -1.887739 -0.45062 -3.608049 c 0,-1.045723 -0.841498,-1.887739 -1.887223,-1.887739 h -3.683496 -0.50953 z" fill="#1977f3" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><path d="M 16.330206,23.439423 H 15.72033 v -0.399992 c 0,-0.150216 0.09956,-0.18524 0.16968,-0.18524 0.06996,0 0.430385,0 0.430385,0 v -0.660376 l -0.592727,-0.0024 c -0.657983,0 -0.80772,0.492536 -0.80772,0.807728 v 0.440184 h -0.380525 v 0.680488 h 0.380525 c 0,0.873296 0,1.925519 0,1.925519 h 0.800382 c 0,0 0,-1.0626 0,-1.925519 h 0.540074 z" fill="#fff" stroke-width=".0797748"/></g><g transform="translate(0,-0.43296254)"><rect width="40.207054" height="3.8639438" x="20.78871" y="6.7749071" fill="#efefef" stroke-width=".33238" stroke-linecap="round" stroke-linejoin="round"/><rect width="34.893513" height="2.1166666" x="20.78871" y="14.155029" fill="#efefef" stroke-width=".229175" stroke-linecap="round" stroke-linejoin="round"/><rect width="23.743216" height="2.1166666" x="20.78871" y="19.56723" fill="#efefef" stroke-width=".189045" stroke-linecap="round" stroke-linejoin="round"/></g></g></svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/images/banners/follow-bar.svg DELETED
@@ -1,117 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4
- <svg
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:cc="http://creativecommons.org/ns#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
- xmlns:svg="http://www.w3.org/2000/svg"
9
- xmlns="http://www.w3.org/2000/svg"
10
- xmlns:xlink="http://www.w3.org/1999/xlink"
11
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
13
- width="200"
14
- height="200"
15
- viewBox="0 0 52.916665 52.916668"
16
- version="1.1"
17
- id="svg5325"
18
- inkscape:version="0.92.0 r15299"
19
- sodipodi:docname="follow-bar.svg">
20
- <defs
21
- id="defs5319">
22
- <inkscape:perspective
23
- sodipodi:type="inkscape:persp3d"
24
- inkscape:vp_x="0 : 26.458334 : 1"
25
- inkscape:vp_y="0 : 1000 : 0"
26
- inkscape:vp_z="52.916665 : 26.458334 : 1"
27
- inkscape:persp3d-origin="26.458333 : 17.638889 : 1"
28
- id="perspective5881" />
29
- </defs>
30
- <sodipodi:namedview
31
- id="base"
32
- pagecolor="#ffffff"
33
- bordercolor="#666666"
34
- borderopacity="1.0"
35
- inkscape:pageopacity="0.0"
36
- inkscape:pageshadow="2"
37
- inkscape:zoom="2.8"
38
- inkscape:cx="44.179213"
39
- inkscape:cy="117.17048"
40
- inkscape:document-units="px"
41
- inkscape:current-layer="layer3"
42
- showgrid="false"
43
- units="px"
44
- inkscape:window-width="1920"
45
- inkscape:window-height="1013"
46
- inkscape:window-x="-9"
47
- inkscape:window-y="-9"
48
- inkscape:window-maximized="1" />
49
- <metadata
50
- id="metadata5322">
51
- <rdf:RDF>
52
- <cc:Work
53
- rdf:about="">
54
- <dc:format>image/svg+xml</dc:format>
55
- <dc:type
56
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
57
- <dc:title />
58
- </cc:Work>
59
- </rdf:RDF>
60
- </metadata>
61
- <g
62
- inkscape:label="Layer 1"
63
- inkscape:groupmode="layer"
64
- id="layer1"
65
- transform="translate(0,-244.08332)"
66
- sodipodi:insensitive="true"
67
- style="display:none">
68
- <image
69
- sodipodi:absref="E:\xampp\htdocs\wordpress\wp-content\plugins\wp-socializer\admin\images\banners\follow-bar.png"
70
- y="247.48511"
71
- x="2.4568448"
72
- id="image5878"
73
- xlink:href="file:///E:/xampp/htdocs/wordpress/wp-content/plugins/wp-socializer/admin/images/banners/follow-bar.png"
74
- preserveAspectRatio="none"
75
- height="47.625"
76
- width="47.625" />
77
- </g>
78
- <g
79
- inkscape:groupmode="layer"
80
- id="layer3"
81
- inkscape:label="Layer 2"
82
- style="display:inline">
83
- <circle
84
- style="opacity:1;fill:#3e5b98;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
85
- id="path5900"
86
- cx="27.261532"
87
- cy="11.216444"
88
- r="6.283854" />
89
- <circle
90
- style="display:inline;opacity:1;fill:#4da7de;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
91
- id="path5900-5"
92
- cx="27.49777"
93
- cy="26.212648"
94
- r="6.283854" />
95
- <circle
96
- style="display:inline;opacity:1;fill:#cb2027;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
97
- id="path5900-5-0"
98
- cx="27.214287"
99
- cy="41.2561"
100
- r="6.283854" />
101
- <path
102
- id="path5280"
103
- d="M 28.281191,10.363098 H 27.518846 V 9.8631083 c 0,-0.18777 0.124447,-0.23155 0.2121,-0.23155 0.08745,0 0.537981,0 0.537981,0 V 8.8060889 l -0.740908,-0.003 c -0.822479,0 -1.00965,0.6156697 -1.00965,1.0096594 v 0.5502297 h -0.475657 v 0.85061 h 0.475657 c 0,1.09162 0,2.4069 0,2.4069 h 1.000477 c 0,0 0,-1.32825 0,-2.4069 h 0.675093 z"
104
- inkscape:connector-curvature="0"
105
- style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.09971847" />
106
- <path
107
- id="path5290"
108
- d="m 30.464729,24.742235 c -0.19071,0.0848 -0.395953,0.14195 -0.611304,0.16754 0.21988,-0.13163 0.388475,-0.34014 0.467981,-0.58887 -0.205663,0.12205 -0.433335,0.21061 -0.675856,0.25842 -0.19408,-0.20682 -0.47072,-0.33614 -0.776845,-0.33614 -0.587715,0 -1.064226,0.47651 -1.064226,1.06433 0,0.0833 0.0094,0.16449 0.02759,0.24253 -0.884573,-0.0445 -1.668895,-0.46809 -2.193847,-1.11204 -0.09162,0.15711 -0.144059,0.33993 -0.144059,0.53516 0,0.36921 0.187866,0.69503 0.473457,0.88584 -0.174388,-0.006 -0.33856,-0.0535 -0.482093,-0.13321 -1.05e-4,0.004 -1.05e-4,0.009 -1.05e-4,0.0135 0,0.51558 0.366888,0.94565 0.853825,1.04359 -0.0893,0.0243 -0.183339,0.0373 -0.280431,0.0373 -0.06866,0 -0.135319,-0.007 -0.200293,-0.0192 0.135529,0.42281 0.528533,0.73062 0.994197,0.73916 -0.364254,0.28548 -0.823074,0.45565 -1.321806,0.45565 -0.08582,0 -0.170596,-0.005 -0.253893,-0.015 0.471141,0.30213 1.030528,0.4782 1.631512,0.4782 1.957751,0 3.02819,-1.62172 3.02819,-3.02819 0,-0.0461 -9.26e-4,-0.0921 -0.003,-0.13785 0.207874,-0.14975 0.388369,-0.33729 0.530955,-0.55075 z"
109
- inkscape:connector-curvature="0"
110
- style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.10530637" />
111
- <path
112
- id="path5074"
113
- d="m 29.916819,41.615178 c 0,1.461609 -1.184224,2.645833 -2.645833,2.645833 -0.273118,0 -0.535568,-0.04161 -0.783081,-0.118423 0.107753,-0.176033 0.26885,-0.464087 0.328595,-0.693464 0.03201,-0.123757 0.164298,-0.629452 0.164298,-0.629452 0.08642,0.164297 0.338197,0.304058 0.605981,0.304058 0.798017,0 1.373059,-0.734006 1.373059,-1.646178 0,-0.873765 -0.713734,-1.527756 -1.631241,-1.527756 -1.141549,0 -1.748597,0.766012 -1.748597,1.601369 0,0.38834 0.206972,0.871632 0.536634,1.025261 0.05014,0.02347 0.07681,0.0128 0.08855,-0.03521 0.0085,-0.03627 0.05334,-0.216574 0.07361,-0.29979 0.0064,-0.02667 0.0032,-0.05014 -0.01814,-0.07575 -0.107754,-0.133359 -0.195237,-0.376605 -0.195237,-0.603848 0,-0.583577 0.441683,-1.14795 1.194892,-1.14795 0.649723,0 1.105276,0.44275 1.105276,1.07647 0,0.715869 -0.361669,1.211962 -0.832157,1.211962 -0.259249,0 -0.454486,-0.21444 -0.391541,-0.477957 0.07468,-0.314726 0.218708,-0.65399 0.218708,-0.881233 0,-0.202705 -0.108821,-0.372337 -0.334997,-0.372337 -0.26565,0 -0.479024,0.274185 -0.479024,0.642255 0,0.234711 0.07895,0.392607 0.07895,0.392607 0,0 -0.261383,1.10741 -0.309392,1.314382 -0.05334,0.22831 -0.03201,0.550504 -0.0096,0.75961 -0.983652,-0.385139 -1.681384,-1.343187 -1.681384,-2.464465 0,-1.46161 1.184224,-2.645834 2.645833,-2.645834 1.46161,0 2.645834,1.184224 2.645834,2.645834 z"
114
- inkscape:connector-curvature="0"
115
- style="fill:#ffffff;fill-opacity:1;stroke-width:0.01066868" />
116
- </g>
117
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/images/banners/follow-icons-widget.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.145832 26.458334" height="100" width="250"><g><rect height="26.458334" width="66.145836" fill="#f5ffe3" stroke-width="2.74788" stroke-linejoin="round"/></g><g><rect ry="2.6458333" y="3.8742559" x="11.43378" height="18.709822" width="43.278275" fill="#fff" stroke="#d3f693" stroke-width=".26458333" stroke-linejoin="round"/><path d="M 7.6166032,9.864467 7.1603774,10.127869 6.8969754,9.6716435 C 6.8607554,9.6089086 6.7797999,9.5872195 6.7170679,9.6234378 L 6.4889554,9.7551387 c -0.062731,0.036218 -0.084426,0.1171711 -0.048206,0.1799068 l 0.263402,0.4562255 -0.4562257,0.263402 c -0.062731,0.03622 -0.084426,0.117171 -0.048206,0.179907 l 0.1317005,0.228112 c 0.03622,0.06273 0.117176,0.08442 0.1799073,0.04821 l 0.4562257,-0.263402 0.2634015,0.456225 c 0.03622,0.06273 0.117176,0.08442 0.1799073,0.04821 l 0.2281125,-0.1317 c 0.062731,-0.03622 0.084427,-0.117172 0.048206,-0.179908 L 7.4237794,10.584095 7.8800052,10.320693 c 0.062731,-0.03622 0.084426,-0.117171 0.048205,-0.179908 L 7.7965099,9.912673 C 7.7602899,9.8499381 7.6793344,9.8282491 7.6166032,9.864467 Z M 4.9627433,11.852898 C 5.4667302,11.561921 5.6393678,10.91763 5.3483913,10.413644 5.0574144,9.9096569 4.4131227,9.7370194 3.9091357,10.027996 c -0.5039869,0.290977 -0.6766244,0.935269 -0.3856475,1.439256 0.2909765,0.503986 0.9352681,0.676623 1.4392551,0.385646 z m 0.7704176,-0.140649 -0.1190466,0.06873 C 5.4978409,11.94506 5.345637,12.088061 5.1602953,12.195068 4.9749535,12.302075 4.775722,12.361976 4.5747752,12.381043 l -0.1190467,0.06873 c -0.5289361,0.305381 -0.7103116,0.98228 -0.4049296,1.511217 l 0.1712115,0.296547 c 0.109065,0.188907 0.3508146,0.253683 0.539721,0.144618 l 2.5092407,-1.448711 c 0.1889065,-0.109065 0.253683,-0.350814 0.144618,-0.539721 L 7.2443786,12.117178 C 6.9389966,11.588241 6.2620978,11.406867 5.7331609,11.712249 Z" fill="#d2f593" stroke-width=".00823133"/><path fill="#d2f593" d="m 63.417162,18.308187 -0.456226,-0.263402 0.263402,-0.456226 c 0.03622,-0.06273 0.01452,-0.143687 -0.04821,-0.179904 l -0.228113,-0.131701 c -0.06273,-0.03622 -0.143688,-0.01453 -0.179908,0.0482 l -0.263402,0.456225 -0.456226,-0.263402 c -0.06273,-0.03622 -0.143688,-0.01453 -0.179909,0.0482 l -0.1317,0.228112 c -0.03622,0.06273 -0.01452,0.143687 0.0482,0.179909 l 0.456226,0.263402 -0.263402,0.456225 c -0.03622,0.06273 -0.01452,0.143687 0.0482,0.17991 l 0.228112,0.1317 c 0.06273,0.03622 0.143688,0.01453 0.179909,-0.0482 l 0.263408,-0.456228 0.456226,0.263402 c 0.06273,0.03622 0.143688,0.01453 0.179905,-0.04821 l 0.131701,-0.228111 c 0.03622,-0.06273 0.01452,-0.143688 -0.0482,-0.179909 z M 60.3682,17.004092 c 0.503987,0.290977 1.148278,0.118341 1.439255,-0.385646 0.290977,-0.503987 0.11834,-1.148279 -0.385647,-1.439256 -0.503987,-0.290976 -1.148279,-0.118339 -1.439256,0.385648 -0.290977,0.503986 -0.118339,1.148277 0.385648,1.439254 z m 0.507015,0.596877 -0.119046,-0.06873 c -0.200234,-0.01865 -0.400179,-0.07897 -0.585521,-0.185975 -0.185342,-0.107007 -0.336833,-0.249596 -0.453819,-0.414087 l -0.119045,-0.06873 c -0.528936,-0.305382 -1.205835,-0.124007 -1.511217,0.40493 l -0.171212,0.296546 c -0.109066,0.188907 -0.04429,0.430656 0.144618,0.539721 l 2.509241,1.448711 c 0.188906,0.109065 0.430655,0.04429 0.539721,-0.144617 l 0.171209,-0.296547 c 0.305382,-0.528937 0.124008,-1.205835 -0.404929,-1.511217 z" stroke-width=".00823132"/></g><g transform="translate(0,-249.37498)"><g transform="translate(0.13363476,-3.4076865)"><g transform="translate(18.804315,2.6647451)"><g transform="translate(-0.26070196,0.70067699)"><rect y="261.29364" x="-.76233125" height="6.9610958" width="6.9610958" fill="#1977f3" stroke-width=".192981" stroke-linecap="round" stroke-linejoin="round"/><rect y="261.29364" x="7.0226383" height="6.9610958" width="6.9610958" fill="#1da1f2" stroke-width=".192981" stroke-linecap="round" stroke-linejoin="round"/><rect y="261.29364" x="14.807609" height="6.9610958" width="6.9610958" fill="#cb2027" stroke-width=".192981" stroke-linecap="round" stroke-linejoin="round"/><rect y="261.29364" x="22.592573" height="6.9610958" width="6.9610958" stroke-width=".192981" stroke-linecap="round" stroke-linejoin="round"/><path d="m 3.4978759,264.49262 h -0.505132 v -0.33129 c 0,-0.12437 0.08246,-0.15339 0.140539,-0.15339 0.05795,0 0.356467,0 0.356467,0 V 263.461 l -0.490927,-0.002 c -0.544974,0 -0.668994,0.40796 -0.668994,0.669 v 0.36459 h -0.315171 v 0.56362 h 0.315171 c 0,0.7233 0,1.59481 0,1.59481 h 0.662915 c 0,0 0,-0.8801 0,-1.59481 h 0.447317 z" fill="#fff" stroke-width=".0660735"/><path d="m 12.110213,264.12525 c -0.113986,0.0505 -0.236647,0.0849 -0.365357,0.10009 0.131427,-0.0786 0.232179,-0.2033 0.279699,-0.35195 -0.122919,0.073 -0.258991,0.12583 -0.403941,0.15452 -0.115991,-0.12355 -0.281335,-0.2009 -0.464298,-0.2009 -0.351259,0 -0.636057,0.2848 -0.636057,0.63611 0,0.0499 0.0055,0.0983 0.01648,0.14491 -0.528685,-0.0266 -0.9974508,-0.27977 -1.3112008,-0.66463 -0.05475,0.0939 -0.0861,0.20316 -0.0861,0.31985 0,0.22065 0.112291,0.41539 0.282972,0.52944 -0.104238,-0.005 -0.202347,-0.0319 -0.288135,-0.0795 -6.2e-5,0.002 -6.2e-5,0.005 -6.2e-5,0.008 0,0.30813 0.219279,0.56517 0.510308,0.62372 -0.05337,0.0147 -0.109569,0.0223 -0.167605,0.0223 -0.04103,0 -0.08088,-0.003 -0.119708,-0.0114 0.08101,0.2527 0.31589,0.43668 0.594203,0.44176 -0.217704,0.17065 -0.491926,0.27234 -0.790005,0.27234 -0.0513,0 -0.101957,-0.003 -0.151737,-0.01 0.281588,0.18058 0.615918,0.28581 0.975109,0.28581 1.1700908,0 1.8098618,-0.96925 1.8098618,-1.80988 0,-0.0275 -5.41e-4,-0.0551 -0.0016,-0.0823 0.124239,-0.0895 0.232119,-0.20158 0.317337,-0.32916 z" fill="#fff" stroke-width=".0629387"/><path d="m 26.400268,265.29584 c -0.255664,0 -1.57286,-0.98062 -1.57286,-0.98062 v -0.10775 c 0,-0.13333 0.117295,-0.24184 0.262078,-0.24184 h 2.621565 c 0.144924,0 0.262206,0.10839 0.262206,0.24184 l -0.002,0.12095 c 0,0 -1.302929,0.96745 -1.570898,0.96745 z m 0,0.33257 c 0.280274,0 1.570897,-0.93722 1.570897,-0.93722 l 0.002,1.45119 c 0,0.13334 -0.117295,0.24186 -0.262208,0.24186 h -2.621578 c -0.144647,0 -0.262077,-0.10839 -0.262077,-0.24186 l 0.002,-1.45119 c -1.3e-4,0 1.315101,0.93722 1.570765,0.93722 z" clip-rule="evenodd" fill="#fff" fill-rule="evenodd" stroke-width=".125821"/><path d="m 20.0955,265.00612 c 0,0.85453 -0.692367,1.54691 -1.546909,1.54691 -0.159675,0 -0.313125,-0.0243 -0.457835,-0.0693 0.063,-0.10285 0.157181,-0.27134 0.192115,-0.40544 0.01871,-0.0724 0.09606,-0.36801 0.09606,-0.36801 0.05053,0.096 0.197731,0.17775 0.354291,0.17775 0.466569,0 0.802772,-0.42913 0.802772,-0.96245 0,-0.51086 -0.417291,-0.89321 -0.95372,-0.89321 -0.667416,0 -1.022331,0.44786 -1.022331,0.93626 0,0.22704 0.120995,0.5096 0.313748,0.59942 0.02932,0.0147 0.04492,0.008 0.05177,-0.0205 0.0051,-0.0212 0.03118,-0.12665 0.04303,-0.17527 0.0037,-0.0163 0.0018,-0.0292 -0.01059,-0.0443 -0.06302,-0.0779 -0.114149,-0.22018 -0.114149,-0.35304 0,-0.34119 0.258233,-0.67117 0.698603,-0.67117 0.379865,0 0.646209,0.25887 0.646209,0.62937 0,0.41854 -0.211452,0.7086 -0.486528,0.7086 -0.151574,0 -0.265718,-0.12535 -0.228916,-0.27947 0.04365,-0.18399 0.127874,-0.38234 0.127874,-0.51519 0,-0.1185 -0.06364,-0.2177 -0.19586,-0.2177 -0.155323,0 -0.280067,0.16023 -0.280067,0.3755 0,0.13725 0.04616,0.22954 0.04616,0.22954 0,0 -0.152813,0.64745 -0.180888,0.76848 -0.03118,0.1335 -0.01871,0.32184 -0.0055,0.44409 -0.575101,-0.22517 -0.983035,-0.7853 -0.983035,-1.44085 0,-0.85455 0.692366,-1.54693 1.546908,-1.54693 0.854544,0 1.546911,0.69238 1.546911,1.54693 z" fill="#fff" stroke-width=".00623753"/><text y="259.18231" x="-.99702764" style="line-height:5.64885px" font-size="2.82222" font-family="sans-serif" letter-spacing="0" word-spacing="0" stroke-width=".264583"><tspan y="259.18231" x="-.99702764">Follow me</tspan></text></g></g></g></g></svg>
admin/images/banners/follow-icons.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="250" height="100" viewBox="0 0 66.145831 26.458334"><defs><linearGradient gradientTransform="matrix(0.40787959,0,0,0.40787959,222.89883,60.054912)" gradientUnits="userSpaceOnUse" y2="136.7173" x2="103.37641" y1="202.65385" x1="103.37641" id="b" xlink:href="#a"/><linearGradient id="a"><stop offset="0" stop-color="#fea"/><stop offset="1" stop-color="#fff"/><stop offset="1" stop-color="#fff"/></linearGradient></defs><g><g transform="matrix(0.52889495,0,0,0.52889495,20.111462,-537.22485)"><g transform="matrix(1.8907346,0,0,1.8907346,-72.523505,515.64983)"><g transform="matrix(0.17124911,0,0,0.17124911,-1.8015174,256.22838)"><g transform="translate(1.5332369,1.2635392e-4)"><g transform="matrix(3.0884537,0,0,3.0884537,238.504,-3087.4737)"><g transform="matrix(1.0014274,0,0,1.0014274,8.9638086,1015.6704)"/><g transform="translate(-98.086079,-6.0745477)"/></g><g transform="translate(-3.0900424)"><circle transform="matrix(3.0928621,0,0,3.0928621,266.18831,49.377305)" cx="29.826674" cy="9.6100454" r="6.283854" fill="#1977f3" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><circle transform="matrix(3.0928621,0,0,3.0928621,266.18831,49.377305)" cx="30.062912" cy="24.606249" r="6.283854" fill="#1da1f2" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><circle transform="matrix(3.0928621,0,0,3.0928621,266.18831,49.377305)" cx="29.779428" cy="39.6497" r="6.283854" fill="#cb2027" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><path transform="matrix(3.0928621,0,0,3.0928621,266.18831,49.377305)" d="M 31.177932,8.987794 H 30.302656 V 8.4137374 c 0,-0.2155857 0.142882,-0.2658511 0.24352,-0.2658511 0.100404,0 0.617675,0 0.617675,0 V 7.2001345 l -0.850663,-0.00344 c -0.944319,0 -1.159217,0.706873 -1.159217,1.1592271 v 0.631739 h -0.546119 v 0.9766166 h 0.546119 c 0,1.2533288 0,2.7634498 0,2.7634498 h 1.148685 c 0,0 0,-1.525013 0,-2.7634498 h 0.775099 z" fill="#fff" stroke-width=".11449"/><path transform="matrix(3.0928621,0,0,3.0928621,266.18831,49.377305)" d="m 33.029869,23.135836 c -0.19071,0.0848 -0.395953,0.14195 -0.611304,0.16754 0.21988,-0.13163 0.388475,-0.34014 0.467981,-0.58887 -0.205663,0.12205 -0.433335,0.21061 -0.675856,0.25842 -0.19408,-0.20682 -0.47072,-0.33614 -0.776845,-0.33614 -0.587715,0 -1.064226,0.47651 -1.064226,1.06433 0,0.0833 0.0094,0.16449 0.02759,0.24253 -0.884573,-0.0445 -1.668895,-0.46809 -2.193847,-1.11204 -0.09162,0.15711 -0.144059,0.33993 -0.144059,0.53516 0,0.36921 0.187866,0.69503 0.473457,0.88584 -0.174388,-0.006 -0.33856,-0.0535 -0.482093,-0.13321 -1.05e-4,0.004 -1.05e-4,0.009 -1.05e-4,0.0135 0,0.51558 0.366888,0.94565 0.853825,1.04359 -0.0893,0.0243 -0.183339,0.0373 -0.280431,0.0373 -0.06866,0 -0.135319,-0.007 -0.200293,-0.0192 0.135529,0.42281 0.528533,0.73062 0.994197,0.73916 -0.364254,0.28548 -0.823074,0.45565 -1.321806,0.45565 -0.08582,0 -0.170596,-0.005 -0.253893,-0.015 0.471141,0.30213 1.030528,0.4782 1.631512,0.4782 1.957751,0 3.02819,-1.62172 3.02819,-3.02819 0,-0.0461 -9.26e-4,-0.0921 -0.003,-0.13785 0.207874,-0.14975 0.388369,-0.33729 0.530955,-0.55075 z" fill="#fff" stroke-width=".105306"/><path transform="matrix(3.0928621,0,0,3.0928621,266.18831,49.377305)" d="m 32.481959,40.008779 c 0,1.461609 -1.184224,2.645833 -2.645833,2.645833 -0.273118,0 -0.535568,-0.04161 -0.783081,-0.118423 0.107753,-0.176033 0.26885,-0.464087 0.328595,-0.693464 0.03201,-0.123757 0.164298,-0.629452 0.164298,-0.629452 0.08642,0.164297 0.338197,0.304058 0.605981,0.304058 0.798017,0 1.373059,-0.734006 1.373059,-1.646178 0,-0.873765 -0.713734,-1.527756 -1.631241,-1.527756 -1.141549,0 -1.748597,0.766012 -1.748597,1.601369 0,0.38834 0.206972,0.871632 0.536634,1.025261 0.05014,0.02347 0.07681,0.0128 0.08855,-0.03521 0.0085,-0.03627 0.05334,-0.216574 0.07361,-0.29979 0.0064,-0.02667 0.0032,-0.05014 -0.01814,-0.07575 -0.107754,-0.133359 -0.195237,-0.376605 -0.195237,-0.603848 0,-0.583577 0.441683,-1.14795 1.194892,-1.14795 0.649723,0 1.105276,0.44275 1.105276,1.07647 0,0.715869 -0.361669,1.211962 -0.832157,1.211962 -0.259249,0 -0.454486,-0.21444 -0.391541,-0.477957 0.07468,-0.314726 0.218708,-0.65399 0.218708,-0.881233 0,-0.202705 -0.108821,-0.372337 -0.334997,-0.372337 -0.26565,0 -0.479024,0.274185 -0.479024,0.642255 0,0.234711 0.07895,0.392607 0.07895,0.392607 0,0 -0.261383,1.10741 -0.309392,1.314382 -0.05334,0.22831 -0.03201,0.550504 -0.0096,0.75961 -0.983652,-0.385139 -1.681384,-1.343187 -1.681384,-2.464465 0,-1.46161 1.184224,-2.645834 2.645833,-2.645834 1.46161,0 2.645834,1.184224 2.645834,2.645834 z" fill="#fff" stroke-width=".0106687"/><g transform="matrix(3.0884537,0,0,3.0884537,238.504,-3087.4736)"><rect width=".35240957" height="3.8542066" x="24.022905" y="1037.0552" ry=".34485009" fill="#d8d9d9" stroke="#d8d9d9" stroke-width="1.14836" stroke-linejoin="round"/><rect width="3.7135348" height=".21173811" x="22.38773" y="1039.0204" ry=".10586905" fill="#d8d9d9" stroke="#d8d9d9" stroke-width="1.28903" stroke-linejoin="round"/></g><path d="m 265.06397,99.794091 a 10.02097,10.175139 0 0 0 -10.02101,10.175079 10.02097,10.175139 0 0 0 1.80363,5.80292 c -12.83373,6.15447 -10.74544,28.34559 -10.74544,28.34559 l 39.23604,-0.15429 c 0,0 1.57538,-21.56084 -12.20698,-27.97567 a 10.02097,10.175139 0 0 0 1.95476,-6.01855 10.02097,10.175139 0 0 0 -10.021,-10.175079 z" fill="url(#b)" stroke="#ffb200" stroke-width="2.15836" stroke-linecap="round" stroke-linejoin="round"/></g></g></g></g></g></g></svg>
admin/images/banners/followbar.png DELETED
Binary file
admin/images/banners/import-export.png DELETED
Binary file
admin/images/banners/import-export.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 66.145832 26.458334" height="100" width="250"><defs><linearGradient id="a"><stop offset="0" stop-color="#ff7b00"/><stop offset="1" stop-color="#ffbf00" stop-opacity="0"/></linearGradient><linearGradient gradientTransform="matrix(1.3016428,0,0,1.3016428,-11.538954,-4.7165963)" gradientUnits="userSpaceOnUse" y2="8.8477116" x2="35.979694" y1="28" x1="16" id="b" xlink:href="#a"/></defs><g><rect width="66.145836" height="26.458334" fill="#fff0e0" stroke-width="2.25865" stroke-linejoin="round"/><g transform="matrix(0.26458333,0,0,0.26458333,27.8605,6.2116679)"><path d="M 11.890616,3.0932604 1.477474,13.480369 H 9.2873311 V 31.729401 H 14.493902 V 13.480369 h 7.809856 z M 30.113615,39.565291 V 21.316259 H 24.907044 V 39.565291 H 17.097187 L 27.51033,49.9524 37.923472,39.565291 Z" fill="url(#b)" stroke-width="1.30164"/><path d="M 0,0 H 48 V 48 H 0 Z" fill="none"/></g></g><g/></svg>
admin/images/banners/mobile-sharebar-big.png DELETED
Binary file
admin/images/banners/mobile-sharebar.svg DELETED
@@ -1,227 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4
- <svg
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:cc="http://creativecommons.org/ns#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
- xmlns:svg="http://www.w3.org/2000/svg"
9
- xmlns="http://www.w3.org/2000/svg"
10
- xmlns:xlink="http://www.w3.org/1999/xlink"
11
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
13
- width="200"
14
- height="200"
15
- viewBox="0 0 52.916665 52.916668"
16
- version="1.1"
17
- id="svg6975"
18
- inkscape:version="0.92.0 r15299"
19
- sodipodi:docname="mobile-sharebar.svg">
20
- <defs
21
- id="defs6969" />
22
- <sodipodi:namedview
23
- id="base"
24
- pagecolor="#ffffff"
25
- bordercolor="#666666"
26
- borderopacity="1.0"
27
- inkscape:pageopacity="0.0"
28
- inkscape:pageshadow="2"
29
- inkscape:zoom="2.8"
30
- inkscape:cx="16.691864"
31
- inkscape:cy="68.113673"
32
- inkscape:document-units="px"
33
- inkscape:current-layer="layer6"
34
- showgrid="false"
35
- units="px"
36
- inkscape:window-width="1920"
37
- inkscape:window-height="1013"
38
- inkscape:window-x="-9"
39
- inkscape:window-y="-9"
40
- inkscape:window-maximized="1" />
41
- <metadata
42
- id="metadata6972">
43
- <rdf:RDF>
44
- <cc:Work
45
- rdf:about="">
46
- <dc:format>image/svg+xml</dc:format>
47
- <dc:type
48
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
49
- <dc:title />
50
- </cc:Work>
51
- </rdf:RDF>
52
- </metadata>
53
- <g
54
- inkscape:label="Layer 1"
55
- inkscape:groupmode="layer"
56
- id="layer1"
57
- transform="translate(0,-244.08332)"
58
- style="display:none"
59
- sodipodi:insensitive="true">
60
- <image
61
- sodipodi:absref="E:\xampp\htdocs\wordpress\wp-content\plugins\wp-socializer\admin\images\banners\mobile-sharebar.PNG"
62
- y="249.49594"
63
- x="7.8997016"
64
- id="image7528"
65
- xlink:href="file:///E:/xampp/htdocs/wordpress/wp-content/plugins/wp-socializer/admin/images/banners/mobile-sharebar.PNG"
66
- preserveAspectRatio="none"
67
- height="41.618958"
68
- width="38.124237" />
69
- </g>
70
- <g
71
- inkscape:groupmode="layer"
72
- id="layer6"
73
- inkscape:label="Layer 3">
74
- <rect
75
- style="opacity:1;fill:#3d5b98;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.19804454;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
76
- id="rect7559"
77
- width="7.1437502"
78
- height="7.1437502"
79
- x="9.260416"
80
- y="45.867416" />
81
- <rect
82
- style="opacity:1;fill:#4da7de;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.19804454;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
83
- id="rect7559-7"
84
- width="7.1437507"
85
- height="7.1437507"
86
- x="16.404167"
87
- y="45.867416" />
88
- <rect
89
- style="opacity:1;fill:#cb2027;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.19804454;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
90
- id="rect7559-7-8"
91
- width="7.1437507"
92
- height="7.1437507"
93
- x="23.547918"
94
- y="45.867416" />
95
- <rect
96
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.19804454;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
97
- id="rect7559-7-8-8"
98
- width="7.1437507"
99
- height="7.1437507"
100
- x="30.691669"
101
- y="45.867416" />
102
- <rect
103
- style="opacity:1;fill:#60b82d;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.19804454;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
104
- id="rect7559-7-8-1"
105
- width="7.1437507"
106
- height="7.1437507"
107
- x="37.835419"
108
- y="45.867416" />
109
- <path
110
- id="path5280"
111
- d="m 13.632407,49.150375 h -0.518385 v -0.339986 c 0,-0.127682 0.08462,-0.157451 0.144226,-0.157451 0.05947,0 0.36582,0 0.36582,0 v -0.561309 l -0.503808,-0.002 c -0.559275,0 -0.686549,0.418648 -0.686549,0.686556 v 0.374149 h -0.32344 v 0.578404 h 0.32344 c 0,0.742286 0,1.636659 0,1.636659 h 0.680311 c 0,0 0,-0.903192 0,-1.636659 h 0.459054 z"
112
- inkscape:connector-curvature="0"
113
- style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.06780721" />
114
- <path
115
- id="path5290"
116
- d="m 21.625239,48.773367 c -0.116973,0.05201 -0.242859,0.08707 -0.374945,0.102762 0.134864,-0.08074 0.238272,-0.208627 0.287037,-0.361187 -0.126144,0.07486 -0.265787,0.129178 -0.414539,0.158503 -0.119039,-0.126854 -0.288717,-0.206173 -0.476481,-0.206173 -0.360477,0 -0.652747,0.29227 -0.652747,0.652812 0,0.05109 0.0058,0.10089 0.01692,0.148756 -0.542556,-0.02729 -1.023623,-0.287104 -1.345605,-0.682074 -0.05619,0.09636 -0.08836,0.208497 -0.08836,0.328243 0,0.226456 0.115228,0.426299 0.290397,0.543333 -0.106962,-0.0037 -0.207657,-0.03282 -0.295694,-0.0817 -6.5e-5,0.0024 -6.5e-5,0.0055 -6.5e-5,0.0083 0,0.316233 0.225033,0.580019 0.523698,0.64009 -0.05478,0.0149 -0.112452,0.02288 -0.172004,0.02288 -0.04211,0 -0.083,-0.0043 -0.122851,-0.01178 0.08313,0.259333 0.324178,0.44813 0.609795,0.453367 -0.223416,0.175101 -0.504835,0.279475 -0.810735,0.279475 -0.05264,0 -0.104636,-0.0031 -0.155726,-0.0092 0.288976,0.185314 0.632078,0.293306 1.000695,0.293306 1.200794,0 1.857352,-0.994688 1.857352,-1.857353 0,-0.02828 -5.65e-4,-0.05649 -0.0018,-0.08455 0.127501,-0.09185 0.238209,-0.206878 0.325664,-0.337804 z"
117
- inkscape:connector-curvature="0"
118
- style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.0645901" />
119
- <path
120
- id="path6891"
121
- d="m 34.599273,49.97468 c -0.262373,0 -1.61413,-1.006368 -1.61413,-1.006368 v -0.110577 c 0,-0.137013 0.120371,-0.248211 0.268955,-0.248211 h 2.69035 c 0.148717,0 0.269089,0.111198 0.269089,0.248211 l -0.0021,0.124105 c 0,0 -1.337114,0.99284 -1.612114,0.99284 z m 0,0.341289 c 0.287628,0 1.612114,-0.961814 1.612114,-0.961814 l 0.0021,1.489261 c 0,0.137012 -0.120372,0.248211 -0.269089,0.248211 h -2.690349 c -0.148449,0 -0.268954,-0.111199 -0.268954,-0.248211 l 0.0021,-1.489261 c -1.34e-4,0 1.349607,0.961814 1.61198,0.961814 z"
122
- inkscape:connector-curvature="0"
123
- style="clip-rule:evenodd;display:inline;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke-width:0.12912254" />
124
- <g
125
- id="g8255"
126
- transform="matrix(0.03517278,0,0,0.03517278,40.077487,48.030546)"
127
- style="fill:#fffdfd;fill-opacity:1">
128
- <g
129
- id="g8253"
130
- style="fill:#fffdfd;fill-opacity:1">
131
- <path
132
- id="WhatsApp"
133
- d="M 90,43.8 C 90,68 70.2,87.6 45.8,87.6 c -7.7,0 -15,-2 -21.4,-5.5 L 0,90 8,66.5 C 4,59.9 1.7,52.1 1.7,43.9 1.6,19.6 21.4,0 45.8,0 70.2,0 90,19.6 90,43.8 Z M 45.8,7 C 25.3,7 8.7,23.5 8.7,43.8 c 0,8.1 2.6,15.5 7.1,21.6 l -4.6,13.7 14.3,-4.5 c 5.9,3.9 12.9,6.1 20.4,6.1 C 66.3,80.7 83,64.2 83,43.8 83,23.4 66.3,7 45.8,7 Z m 22.3,46.9 c -0.3,-0.4 -1,-0.7 -2.1,-1.3 -1.1,-0.5 -6.4,-3.1 -7.4,-3.5 -1,-0.4 -1.7,-0.5 -2.4,0.5 -0.7,1.1 -2.8,3.5 -3.4,4.2 -0.6,0.7 -1.3,0.8 -2.3,0.3 -1.1,-0.5 -4.6,-1.7 -8.7,-5.3 -3.2,-2.8 -5.4,-6.4 -6,-7.4 -0.6,-1.1 -0.1,-1.7 0.5,-2.2 0.5,-0.5 1.1,-1.3 1.6,-1.9 0.5,-0.6 0.7,-1.1 1.1,-1.8 0.4,-0.7 0.2,-1.3 -0.1,-1.9 -0.3,-0.5 -2.4,-5.8 -3.3,-8 -0.9,-2.1 -1.8,-1.8 -2.4,-1.8 -0.6,0 -1.4,-0.1 -2.1,-0.1 -0.7,0 -1.9,0.3 -2.9,1.3 -1,1.1 -3.8,3.7 -3.8,9 0,5.3 3.9,10.4 4.4,11.1 0.5,0.7 7.5,11.9 18.5,16.2 11,4.3 11,2.9 13,2.7 2,-0.2 6.4,-2.6 7.3,-5.1 0.8,-2.4 0.8,-4.5 0.5,-5 z"
134
- inkscape:connector-curvature="0"
135
- style="fill:#fffdfd;fill-opacity:1" />
136
- </g>
137
- </g>
138
- <path
139
- style="fill:none;stroke:#cfcfcf;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
140
- d="M 9.260416,45.867415 H 44.979169 Z"
141
- id="path8269"
142
- inkscape:connector-curvature="0" />
143
- <rect
144
- y="20.362677"
145
- x="11.90625"
146
- height="3.8639438"
147
- width="30.568663"
148
- id="rect6825-0"
149
- style="display:inline;opacity:1;fill:#d6d6d6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.28981599;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
150
- <rect
151
- y="27.742798"
152
- x="11.90625"
153
- height="2.1166666"
154
- width="23.743216"
155
- id="rect6825-0-1"
156
- style="display:inline;opacity:1;fill:#d6d6d6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.18904479;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
157
- <rect
158
- y="33.155003"
159
- x="11.90625"
160
- height="2.1166666"
161
- width="23.743216"
162
- id="rect6825-0-1-6"
163
- style="display:inline;opacity:1;fill:#d6d6d6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.18904479;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
164
- <rect
165
- y="38.59053"
166
- x="11.90625"
167
- height="2.1166666"
168
- width="24.077303"
169
- id="rect6825-0-1-6-5"
170
- style="display:inline;opacity:1;fill:#d6d6d6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.19037014;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
171
- <path
172
- id="path5074"
173
- d="m 28.974562,49.677346 c 0,0.876964 -0.710534,1.587497 -1.587499,1.587497 -0.163871,0 -0.321341,-0.02497 -0.469848,-0.07106 0.06465,-0.10562 0.161309,-0.278452 0.197156,-0.416078 0.01921,-0.07426 0.09858,-0.37767 0.09858,-0.37767 0.05185,0.09858 0.202918,0.182434 0.363588,0.182434 0.478811,0 0.823836,-0.440402 0.823836,-0.987705 0,-0.524258 -0.428241,-0.916652 -0.978745,-0.916652 -0.684929,0 -1.049158,0.459607 -1.049158,0.96082 0,0.233004 0.124183,0.522979 0.321981,0.615155 0.03008,0.01408 0.04609,0.0077 0.05313,-0.02113 0.0051,-0.02176 0.03201,-0.129944 0.04417,-0.179873 0.0038,-0.016 0.0019,-0.03008 -0.01088,-0.04545 -0.06466,-0.08001 -0.117142,-0.225962 -0.117142,-0.362309 0,-0.350145 0.265009,-0.688768 0.716934,-0.688768 0.389834,0 0.663166,0.26565 0.663166,0.64588 0,0.429522 -0.217001,0.727177 -0.499294,0.727177 -0.155549,0 -0.272692,-0.128664 -0.234924,-0.286774 0.04481,-0.188836 0.131224,-0.392393 0.131224,-0.528738 0,-0.121624 -0.0653,-0.223403 -0.200998,-0.223403 -0.15939,0 -0.287415,0.164511 -0.287415,0.385353 0,0.140826 0.04737,0.235564 0.04737,0.235564 0,0 -0.156829,0.664444 -0.185635,0.788628 -0.03201,0.136985 -0.01921,0.330301 -0.0058,0.455765 -0.590191,-0.231083 -1.00883,-0.805911 -1.00883,-1.478677 0,-0.876964 0.710534,-1.587497 1.587499,-1.587497 0.876966,0 1.5875,0.710533 1.5875,1.587497 z"
174
- inkscape:connector-curvature="0"
175
- style="display:inline;fill:#ffffff;fill-opacity:1;stroke-width:0.0064012" />
176
- </g>
177
- <g
178
- inkscape:groupmode="layer"
179
- id="layer5"
180
- inkscape:label="Layer 2">
181
- <g
182
- transform="matrix(0.18718821,0,0,0.18718821,-20.705895,-102.30492)"
183
- id="layer1-3"
184
- style="fill:#f2f2f2;fill-opacity:1">
185
- <g
186
- id="g4305"
187
- style="fill:#f2f2f2;fill-opacity:1">
188
- <g
189
- transform="translate(28,-40.00001)"
190
- id="g4345"
191
- style="fill:#f2f2f2;fill-opacity:1">
192
- <g
193
- style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:550px;line-height:125%;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#f2f2f2;fill-opacity:1;stroke:none"
194
- id="text2994">
195
- <g
196
- transform="translate(0,15.24359)"
197
- id="g3830"
198
- style="fill:#f2f2f2;fill-opacity:1">
199
- <g
200
- id="g3838"
201
- style="fill:#f2f2f2;fill-opacity:1">
202
- <g
203
- id="g3785"
204
- style="fill:#f2f2f2;fill-opacity:1">
205
- <path
206
- style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:125%;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:0;word-spacing:0;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#f2f2f2;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:60;marker:none;enable-background:accumulate"
207
- id="rect3010"
208
- d="m 153,606.1186 c -7.85377,7.9e-4 -15.6653,3.22779 -21.21875,8.78125 -5.55346,5.55345 -8.78046,13.36498 -8.78125,21.21875 v 370 c 7.9e-4,7.8538 3.22779,15.6653 8.78125,21.2188 5.55345,5.5535 13.36498,8.7804 21.21875,8.7812 h 150 c 7.85377,-8e-4 15.6653,-3.2277 21.21875,-8.7812 5.55346,-5.5535 8.78046,-13.365 8.78125,-21.2188 v -370 c -7.9e-4,-7.85377 -3.22779,-15.6653 -8.78125,-21.21875 C 318.6653,609.34639 310.85377,606.11939 303,606.1186 Z m 59.28125,20 a 5.0062461,5.0062461 0 0 1 0.21875,0 5.0005,5.0005 0 0 1 0.5,0 h 30 a 5.0005,5.0005 0 1 1 0,10 h -30 a 5.0128984,5.0128984 0 0 1 -0.71875,-10 z m -79.28125,30 h 190 v 325 H 133 Z m 95,335 c 8.28427,0 15,6.71573 15,15 0,8.2843 -6.71573,15 -15,15 -8.28427,0 -15,-6.7157 -15,-15 0,-8.28427 6.71573,-15 15,-15 z"
209
- inkscape:connector-curvature="0" />
210
- </g>
211
- </g>
212
- </g>
213
- <g
214
- transform="translate(539.77941,-13.359245)"
215
- id="layer1-4"
216
- style="fill:#f2f2f2;fill-opacity:1">
217
- <g
218
- transform="translate(-573.14286,170.28574)"
219
- id="layer1-5"
220
- style="fill:#f2f2f2;fill-opacity:1" />
221
- </g>
222
- </g>
223
- </g>
224
- </g>
225
- </g>
226
- </g>
227
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/images/banners/settings.png DELETED
Binary file
admin/images/banners/settings.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="250" height="100" viewBox="0 0 66.145832 26.458334"><defs><linearGradient id="a"><stop offset="0" stop-color="#ff9a00"/><stop offset="1" stop-color="#ffde00" stop-opacity="0"/></linearGradient><linearGradient gradientUnits="userSpaceOnUse" y2="12.594259" x2="40.057613" y1="23.996321" x1="21.299368" id="b" xlink:href="#a"/></defs><g><rect height="26.458334" width="66.145836" fill="#fff0e0" stroke-width="2.25865" stroke-linejoin="round"/><g transform="matrix(0.26458333,0,0,0.26458333,27.8605,6.2116679)"><path fill="none" d="M 0,0 H 48 V 48 H 0 Z"/><path fill="url(#b)" d="m 39.189559,31.329263 -3.588722,-1.983862 c 0.362242,-1.870961 0.362242,-3.790309 0,-5.66127 l 3.588722,-1.983865 c 0.412787,-0.225804 0.59812,-0.693544 0.463333,-1.129028 -0.93509,-2.870955 -2.527269,-5.467721 -4.608054,-7.629002 -0.32012,-0.330645 -0.842423,-0.41129 -1.246786,-0.185483 l -3.588721,1.983863 c -1.507937,-1.24193 -3.243328,-2.201605 -5.121932,-2.830634 V 7.9503199 c 0,-0.451612 -0.328544,-0.846772 -0.791877,-0.943545 -3.091692,-0.661288 -6.259204,-0.629029 -9.199254,0 -0.46334,0.09677 -0.79188,0.491933 -0.79188,0.943545 v 3.9677271 c -1.87018,0.637093 -3.60557,1.596767 -5.1219297,2.830634 l -3.5803,-1.983865 c -0.41279,-0.225805 -0.92667,-0.153225 -1.24679,0.185484 -2.0807801,2.153217 -3.67296007,4.749983 -4.60805007,7.629004 -0.14321,0.435483 0.0506,0.903223 0.46333,1.129027 l 3.58872007,1.983865 c -0.36224,1.870959 -0.36224,3.790307 0,5.661268 l -3.58872007,1.983864 c -0.41278,0.225805 -0.59812,0.693547 -0.46333,1.129028 0.93509,2.870957 2.52726997,5.467721 4.60805007,7.629004 0.32012,0.330643 0.84243,0.411288 1.24679,0.185483 l 3.58872,-1.983864 c 1.5079397,1.241931 3.2433297,2.201606 5.1219297,2.830636 v 3.967727 c 0,0.451611 0.32855,0.846771 0.79188,0.943544 3.09169,0.661288 6.259202,0.62903 9.199258,0 0.463333,-0.09677 0.791878,-0.491933 0.791878,-0.943544 v -3.967727 c 1.870179,-0.637095 3.60557,-1.596768 5.121931,-2.830636 l 3.588721,1.983864 c 0.412788,0.225805 0.926666,0.153225 1.246786,-0.185483 2.080785,-2.153217 3.672964,-4.749981 4.608054,-7.629004 0.126363,-0.443546 -0.05897,-0.911286 -0.471757,-1.137093 z m -19.493671,1.637091 c -3.71508,0 -6.73938,-2.89515 -6.73938,-6.451589 0,-3.556437 3.0243,-6.451588 6.73938,-6.451588 3.71509,0 6.739388,2.895151 6.739388,6.451588 0,3.556439 -3.024298,6.451589 -6.739388,6.451589 z" stroke-width=".0824237"/></g></g><g/></svg>
admin/images/banners/setup.png DELETED
Binary file
admin/images/banners/share-buttons-big.png DELETED
Binary file
admin/images/banners/share-buttons.svg DELETED
@@ -1,251 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4
- <svg
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:cc="http://creativecommons.org/ns#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
- xmlns:svg="http://www.w3.org/2000/svg"
9
- xmlns="http://www.w3.org/2000/svg"
10
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
- width="200"
13
- height="200"
14
- viewBox="0 0 52.916665 52.916668"
15
- version="1.1"
16
- id="svg4644"
17
- inkscape:version="0.92.0 r15299"
18
- sodipodi:docname="share-buttons.svg">
19
- <defs
20
- id="defs4638" />
21
- <sodipodi:namedview
22
- id="base"
23
- pagecolor="#ffffff"
24
- bordercolor="#666666"
25
- borderopacity="1.0"
26
- inkscape:pageopacity="0.0"
27
- inkscape:pageshadow="2"
28
- inkscape:zoom="1.4"
29
- inkscape:cx="-241.16987"
30
- inkscape:cy="186.07398"
31
- inkscape:document-units="px"
32
- inkscape:current-layer="g5403"
33
- showgrid="false"
34
- units="px"
35
- inkscape:window-width="1920"
36
- inkscape:window-height="1013"
37
- inkscape:window-x="-9"
38
- inkscape:window-y="-9"
39
- inkscape:window-maximized="1" />
40
- <metadata
41
- id="metadata4641">
42
- <rdf:RDF>
43
- <cc:Work
44
- rdf:about="">
45
- <dc:format>image/svg+xml</dc:format>
46
- <dc:type
47
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
48
- <dc:title />
49
- </cc:Work>
50
- </rdf:RDF>
51
- </metadata>
52
- <g
53
- inkscape:groupmode="layer"
54
- id="layer2"
55
- inkscape:label="Layer 2"
56
- style="display:inline;opacity:1" />
57
- <g
58
- inkscape:label="Layer 1"
59
- inkscape:groupmode="layer"
60
- id="layer1"
61
- transform="translate(0,-244.08332)"
62
- style="display:inline;opacity:1">
63
- <flowRoot
64
- xml:space="preserve"
65
- id="flowRoot5244"
66
- style="font-style:normal;font-weight:normal;font-size:14.66666698px;line-height:21.35000038px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
67
- transform="matrix(0.26458333,0,0,0.26458333,0,244.08332)"><flowRegion
68
- id="flowRegion5246"><rect
69
- id="rect5248"
70
- width="61.871838"
71
- height="15.909895"
72
- x="39.017143"
73
- y="102.20461" /></flowRegion><flowPara
74
- id="flowPara5250">Like</flowPara></flowRoot> <text
75
- xml:space="preserve"
76
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
77
- x="10.356693"
78
- y="273.2464"
79
- id="text5254"><tspan
80
- sodipodi:role="line"
81
- id="tspan5252"
82
- x="10.356693"
83
- y="277.18582"
84
- style="stroke-width:0.26458332" /></text>
85
- <text
86
- xml:space="preserve"
87
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
88
- x="20.980658"
89
- y="269.67166"
90
- id="text5328"><tspan
91
- sodipodi:role="line"
92
- id="tspan5326"
93
- x="20.980658"
94
- y="273.61108"
95
- style="stroke-width:0.26458332" /></text>
96
- <g
97
- id="g5376"
98
- transform="translate(-0.75595269,0.66145836)">
99
- <g
100
- id="g5403"
101
- transform="translate(-0.06681738,1.7372519)">
102
- <path
103
- style="fill:#4267b2;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
104
- d="m 27.328309,257.57773 v 11.82668 l 4.987081,-2.8793 4.930942,2.84688 v -11.86108 z"
105
- id="path5202"
106
- inkscape:connector-curvature="0" />
107
- <path
108
- style="fill:#4da7de;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
109
- d="m 39.255213,257.31046 v 12.22758 l 4.857922,-2.80472 5.045633,2.9131 v -12.46959 z"
110
- id="path5204"
111
- inkscape:connector-curvature="0" />
112
- <path
113
- style="fill:#4267b2;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
114
- d="m 5.5515253,274.34504 v 4.4176 c 0,0 0.1889881,0.80319 0.7323288,0.89769 0.5433406,0.0945 22.6077009,0 22.6077009,0 0,0 0.54334,-0.11812 0.637834,-0.66146 0.0945,-0.54334 0,-4.8192 0,-4.8192 0,0 -0.04725,-0.75595 -0.685081,-0.77957 -0.637836,-0.0236 -0.637836,-0.0236 -0.637836,-0.0236 H 6.2602305 c 0,0 -0.7795757,-0.0236 -0.7087052,0.96856 z"
115
- id="path5206"
116
- inkscape:connector-curvature="0" />
117
- <rect
118
- ry="0.73499119"
119
- y="273.43015"
120
- x="32.088459"
121
- height="6.0302687"
122
- width="9.6718159"
123
- id="rect5210"
124
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#dedede;stroke-width:0.207;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
125
- <rect
126
- ry="0.73499119"
127
- y="273.43015"
128
- x="32.088459"
129
- height="6.0302687"
130
- width="9.6718159"
131
- id="rect5212"
132
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#dedede;stroke-width:0.207;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
133
- <rect
134
- ry="0.73499119"
135
- y="273.43015"
136
- x="32.088459"
137
- height="6.0302687"
138
- width="9.6718159"
139
- id="rect5214"
140
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#dedede;stroke-width:0.207;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
141
- <rect
142
- style="opacity:1;fill:#cb2027;fill-opacity:1;fill-rule:nonzero;stroke:#b50006;stroke-width:0.26721638;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
143
- id="rect5208"
144
- width="16.293238"
145
- height="5.9699526"
146
- x="32.118618"
147
- y="273.46033"
148
- ry="0.72763962" />
149
- <text
150
- xml:space="preserve"
151
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#fff6f6;fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1"
152
- x="12.294398"
153
- y="277.75656"
154
- id="text5258"><tspan
155
- sodipodi:role="line"
156
- id="tspan5256"
157
- x="12.294398"
158
- y="277.75656"
159
- style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:helvetica;-inkscape-font-specification:helvetica;fill:#fff6f6;fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1">Like</tspan></text>
160
- <text
161
- xml:space="preserve"
162
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#fff6f6;fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1"
163
- x="20.236574"
164
- y="277.72571"
165
- id="text5262"><tspan
166
- sodipodi:role="line"
167
- id="tspan5260"
168
- x="20.236574"
169
- y="277.72571"
170
- style="font-size:3.17499995px;letter-spacing:-0.10847915px;fill:#fff6f6;fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1">5.3M</tspan></text>
171
- <path
172
- id="path5280"
173
- d="m 33.404769,262.43039 h -0.762345 v -0.49999 c 0,-0.18777 0.124447,-0.23155 0.2121,-0.23155 0.08745,0 0.537981,0 0.537981,0 v -0.82547 l -0.740908,-0.003 c -0.822479,0 -1.00965,0.61567 -1.00965,1.00966 v 0.55023 H 31.16629 v 0.85061 h 0.475657 c 0,1.09162 0,2.4069 0,2.4069 h 1.000477 c 0,0 0,-1.32825 0,-2.4069 h 0.675093 z"
174
- inkscape:connector-curvature="0"
175
- style="fill:#ffffff;fill-opacity:1;stroke-width:0.09971847" />
176
- <path
177
- id="path5290"
178
- d="m 47.116581,261.19911 c -0.19071,0.0848 -0.395953,0.14195 -0.611304,0.16754 0.21988,-0.13163 0.388475,-0.34014 0.467981,-0.58887 -0.205663,0.12205 -0.433335,0.21061 -0.675856,0.25842 -0.19408,-0.20682 -0.47072,-0.33614 -0.776845,-0.33614 -0.587715,0 -1.064226,0.47651 -1.064226,1.06433 0,0.0833 0.0094,0.16449 0.02759,0.24253 -0.884573,-0.0445 -1.668895,-0.46809 -2.193847,-1.11204 -0.09162,0.15711 -0.144059,0.33993 -0.144059,0.53516 0,0.36921 0.187866,0.69503 0.473457,0.88584 -0.174388,-0.006 -0.33856,-0.0535 -0.482093,-0.13321 -1.05e-4,0.004 -1.05e-4,0.009 -1.05e-4,0.0135 0,0.51558 0.366888,0.94565 0.853825,1.04359 -0.0893,0.0243 -0.183339,0.0373 -0.280431,0.0373 -0.06866,0 -0.135319,-0.007 -0.200293,-0.0192 0.135529,0.42281 0.528533,0.73062 0.994197,0.73916 -0.364254,0.28548 -0.823074,0.45565 -1.321806,0.45565 -0.08582,0 -0.170596,-0.005 -0.253893,-0.015 0.471141,0.30213 1.030528,0.4782 1.631512,0.4782 1.957751,0 3.02819,-1.62172 3.02819,-3.02819 0,-0.0461 -9.37e-4,-0.0921 -0.003,-0.13785 0.207874,-0.14975 0.388369,-0.33729 0.530955,-0.55075 z"
179
- inkscape:connector-curvature="0"
180
- style="fill:#ffffff;fill-opacity:1;stroke-width:0.10530637" />
181
- <rect
182
- style="opacity:1;fill:#fe5722;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.19741666;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
183
- id="rect5300"
184
- width="10.926967"
185
- height="4.8664436"
186
- x="28.088354"
187
- y="255.49347"
188
- ry="2.4332218" />
189
- <text
190
- xml:space="preserve"
191
- style="font-style:normal;font-weight:normal;font-size:2.82222223px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332"
192
- x="29.364025"
193
- y="259.06064"
194
- id="text5304"><tspan
195
- sodipodi:role="line"
196
- id="tspan5302"
197
- x="29.364025"
198
- y="259.06064"
199
- style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;font-family:arial;-inkscape-font-specification:arial;fill:#ffffff;fill-opacity:1;stroke-width:0.26458332">5.32 M</tspan></text>
200
- <text
201
- xml:space="preserve"
202
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
203
- x="5.3453903"
204
- y="262.72266"
205
- id="text5332"><tspan
206
- sodipodi:role="line"
207
- id="tspan5330"
208
- x="5.3453903"
209
- y="262.72266"
210
- style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:5.99722242px;font-family:Arial;-inkscape-font-specification:'Arial Bold';stroke-width:0.26458332">5.34m</tspan></text>
211
- <text
212
- xml:space="preserve"
213
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#b8b8b8;fill-opacity:1;stroke:none;stroke-width:0.26458332"
214
- x="8.2640352"
215
- y="266.88254"
216
- id="text5336"><tspan
217
- sodipodi:role="line"
218
- id="tspan5334"
219
- x="8.2640352"
220
- y="266.88254"
221
- style="font-size:2.82222223px;letter-spacing:-0.19050001px;fill:#b8b8b8;fill-opacity:1;stroke-width:0.26458332">SHARES</tspan></text>
222
- <g
223
- style="color:#ffffff"
224
- id="g5349"
225
- transform="matrix(0.26458333,0,0,0.26458333,7.172098,274.39702)">
226
- <path
227
- id="path5338"
228
- d="M 4.55,7 C 4.7984,7 5,7.2340364 5,7.5224727 V 13.477527 C 5,13.765964 4.7984,14 4.55,14 H 2.45 C 2.2016,14 2,13.765964 2,13.477527 V 7.5224727 C 2,7.2340364 2.2016,7 2.45,7 Z m 1.9947023,6.2 C 6.2401688,13.164109 6.0173461,12.898279 6,12.573798 c 0.017346,0 0.013442,-2.9057413 0,-4.4298111 C 6.0134419,7.6190393 6.1084946,6.6862335 6.3980131,6.2738428 7.1055629,5.2660075 7.602817,4.6079584 7.8920681,4.2257008 8.1812634,3.8435016 8.5281305,3.4708734 8.5377796,3.1857268 c 0.012996,-0.3836583 -0.00123,-0.3910116 0,-0.8301701 C 8.5390067,1.9163981 8.7456544,1.5 9.2713931,1.5 9.52545,1.5 9.7301456,1.556901 9.9192241,1.8008455 10.222363,2.1559657 10.43431,2.7188473 10.43431,3.6097117 c 0,0.8908644 -0.9244102,2.5632186 -0.9261504,2.5702883 0,0 4.0375504,-9.105e-4 4.0382484,0 C 14.163554,6.175876 14.5,6.725432 14.5,7.2971843 c 0,0.5354524 -0.365886,0.9817892 -0.846057,1.0568984 0.291259,0.1387799 0.500529,0.4695641 0.500529,0.8514715 0,0.476042 -0.325171,0.8727148 -0.756091,0.9402958 0.232081,0.144907 0.375312,0.405835 0.375312,0.701661 0,0.398423 -0.259857,0.733351 -0.614254,0.813713 0.210719,0.137962 0.346923,0.393171 0.346923,0.68176 0,0.452231 -0.33482,0.8227 -0.762896,0.857016 z"
229
- inkscape:connector-curvature="0"
230
- style="fill:#ffffff;fill-rule:evenodd" />
231
- </g>
232
- <path
233
- id="path5074"
234
- d="m 36.829273,276.39492 c 0,0.87696 -0.710534,1.5875 -1.587499,1.5875 -0.163871,0 -0.321341,-0.025 -0.469848,-0.0711 0.06465,-0.10562 0.161309,-0.27845 0.197156,-0.41608 0.01921,-0.0743 0.09858,-0.37767 0.09858,-0.37767 0.05185,0.0986 0.202918,0.18243 0.363588,0.18243 0.478811,0 0.823836,-0.4404 0.823836,-0.9877 0,-0.52426 -0.428241,-0.91665 -0.978745,-0.91665 -0.684929,0 -1.049158,0.4596 -1.049158,0.96082 0,0.233 0.124183,0.52298 0.321981,0.61515 0.03008,0.0141 0.04609,0.008 0.05313,-0.0211 0.0051,-0.0218 0.03201,-0.12994 0.04417,-0.17987 0.0038,-0.016 0.0019,-0.0301 -0.01088,-0.0455 -0.06466,-0.08 -0.117142,-0.22596 -0.117142,-0.36231 0,-0.35015 0.265009,-0.68877 0.716934,-0.68877 0.389834,0 0.663166,0.26565 0.663166,0.64588 0,0.42952 -0.217001,0.72718 -0.499294,0.72718 -0.155549,0 -0.272692,-0.12867 -0.234924,-0.28678 0.04481,-0.18883 0.131224,-0.39239 0.131224,-0.52873 0,-0.12163 -0.0653,-0.22341 -0.200998,-0.22341 -0.15939,0 -0.287415,0.16451 -0.287415,0.38536 0,0.14082 0.04737,0.23556 0.04737,0.23556 0,0 -0.156829,0.66444 -0.185635,0.78863 -0.03201,0.13698 -0.01921,0.3303 -0.0058,0.45576 -0.590191,-0.23108 -1.00883,-0.80591 -1.00883,-1.47867 0,-0.87697 0.710534,-1.5875 1.587499,-1.5875 0.876966,0 1.5875,0.71053 1.5875,1.5875 z"
235
- inkscape:connector-curvature="0"
236
- style="display:inline;fill:#ffffff;fill-opacity:1;stroke-width:0.0064012" />
237
- <text
238
- xml:space="preserve"
239
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;display:inline;opacity:1;fill:#fff6f6;fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1"
240
- x="37.901569"
241
- y="277.75656"
242
- id="text5258-4"><tspan
243
- sodipodi:role="line"
244
- id="tspan5256-0"
245
- x="37.901569"
246
- y="277.75656"
247
- style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:helvetica;-inkscape-font-specification:helvetica;fill:#fff6f6;fill-opacity:1;stroke:none;stroke-width:0.26458332;stroke-opacity:1">Save</tspan></text>
248
- </g>
249
- </g>
250
- </g>
251
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/images/banners/share-icons.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="250" height="100" viewBox="0 0 66.145831 26.458334"><g><g><g transform="translate(0,-1.0583333)"><g transform="matrix(0.75954056,0,0,0.75954056,7.4789999,3.3810534)"><g transform="translate(7.2949405,-27.403276)"><g transform="matrix(0.80000002,0,0,0.80000002,-12.794494,28.068511)"><circle r="6.283854" cy="11.216444" cx="27.261532" fill="#1977f3" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><path d="m 28.714757,10.665253 h -0.910002 v -0.596832 c 0,-0.2241387 0.148551,-0.2763983 0.253181,-0.2763983 0.104388,0 0.642182,0 0.642182,0 V 8.80667 L 27.815705,8.80309 c -0.981783,0 -1.205207,0.7349174 -1.205207,1.205218 v 0.656802 h -0.567786 v 1.015363 h 0.567786 c 0,1.303053 0,2.873087 0,2.873087 h 1.194257 c 0,0 0,-1.585516 0,-2.873087 h 0.80585 z" fill="#fff" stroke-width=".119033"/></g><g transform="matrix(0.80000002,0,0,0.80000002,-1.2945684,16.071547)"><circle r="6.283854" cy="26.212648" cx="27.49777" fill="#1da1f2" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><path d="m 30.464729,24.742235 c -0.19071,0.0848 -0.395953,0.14195 -0.611304,0.16754 0.21988,-0.13163 0.388475,-0.34014 0.467981,-0.58887 -0.205663,0.12205 -0.433335,0.21061 -0.675856,0.25842 -0.19408,-0.20682 -0.47072,-0.33614 -0.776845,-0.33614 -0.587715,0 -1.064226,0.47651 -1.064226,1.06433 0,0.0833 0.0094,0.16449 0.02759,0.24253 -0.884573,-0.0445 -1.668895,-0.46809 -2.193847,-1.11204 -0.09162,0.15711 -0.144059,0.33993 -0.144059,0.53516 0,0.36921 0.187866,0.69503 0.473457,0.88584 -0.174388,-0.006 -0.33856,-0.0535 -0.482093,-0.13321 -1.05e-4,0.004 -1.05e-4,0.009 -1.05e-4,0.0135 0,0.51558 0.366888,0.94565 0.853825,1.04359 -0.0893,0.0243 -0.183339,0.0373 -0.280431,0.0373 -0.06866,0 -0.135319,-0.007 -0.200293,-0.0192 0.135529,0.42281 0.528533,0.73062 0.994197,0.73916 -0.364254,0.28548 -0.823074,0.45565 -1.321806,0.45565 -0.08582,0 -0.170596,-0.005 -0.253893,-0.015 0.471141,0.30213 1.030528,0.4782 1.631512,0.4782 1.957751,0 3.02819,-1.62172 3.02819,-3.02819 0,-0.0461 -9.26e-4,-0.0921 -0.003,-0.13785 0.207874,-0.14975 0.388369,-0.33729 0.530955,-0.55075 z" fill="#fff" stroke-width=".105306"/></g><g transform="matrix(0.80000002,0,0,0.80000002,10.479387,4.0367859)"><circle r="6.283854" cy="41.2561" cx="27.214287" fill="#cb2027" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><path d="m 29.916819,41.615178 c 0,1.461609 -1.184224,2.645833 -2.645833,2.645833 -0.273118,0 -0.535568,-0.04161 -0.783081,-0.118423 0.107753,-0.176033 0.26885,-0.464087 0.328595,-0.693464 0.03201,-0.123757 0.164298,-0.629452 0.164298,-0.629452 0.08642,0.164297 0.338197,0.304058 0.605981,0.304058 0.798017,0 1.373059,-0.734006 1.373059,-1.646178 0,-0.873765 -0.713734,-1.527756 -1.631241,-1.527756 -1.141549,0 -1.748597,0.766012 -1.748597,1.601369 0,0.38834 0.206972,0.871632 0.536634,1.025261 0.05014,0.02347 0.07681,0.0128 0.08855,-0.03521 0.0085,-0.03627 0.05334,-0.216574 0.07361,-0.29979 0.0064,-0.02667 0.0032,-0.05014 -0.01814,-0.07575 -0.107754,-0.133359 -0.195237,-0.376605 -0.195237,-0.603848 0,-0.583577 0.441683,-1.14795 1.194892,-1.14795 0.649723,0 1.105276,0.44275 1.105276,1.07647 0,0.715869 -0.361669,1.211962 -0.832157,1.211962 -0.259249,0 -0.454486,-0.21444 -0.391541,-0.477957 0.07468,-0.314726 0.218708,-0.65399 0.218708,-0.881233 0,-0.202705 -0.108821,-0.372337 -0.334997,-0.372337 -0.26565,0 -0.479024,0.274185 -0.479024,0.642255 0,0.234711 0.07895,0.392607 0.07895,0.392607 0,0 -0.261383,1.10741 -0.309392,1.314382 -0.05334,0.22831 -0.03201,0.550504 -0.0096,0.75961 -0.983652,-0.385139 -1.681384,-1.343187 -1.681384,-2.464465 0,-1.46161 1.184224,-2.645834 2.645833,-2.645834 1.46161,0 2.645834,1.184224 2.645834,2.645834 z" fill="#fff" stroke-width=".0106687"/></g><g transform="translate(-1.5875,7.1059523)"><g transform="matrix(0.80000002,0,0,0.80000002,23.60461,-3.0691664)"><circle cx="27.214287" cy="41.2561" r="6.283854" fill="#60b82d" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.05879629,0,0,0.05879629,24.975961,38.557113)" fill="#fffdfd"><g><path d="M 90,43.8 C 90,68 70.2,87.6 45.8,87.6 c -7.7,0 -15,-2 -21.4,-5.5 L 0,90 8,66.5 C 4,59.9 1.7,52.1 1.7,43.9 1.6,19.6 21.4,0 45.8,0 70.2,0 90,19.6 90,43.8 Z M 45.8,7 C 25.3,7 8.7,23.5 8.7,43.8 c 0,8.1 2.6,15.5 7.1,21.6 l -4.6,13.7 14.3,-4.5 c 5.9,3.9 12.9,6.1 20.4,6.1 C 66.3,80.7 83,64.2 83,43.8 83,23.4 66.3,7 45.8,7 Z m 22.3,46.9 c -0.3,-0.4 -1,-0.7 -2.1,-1.3 -1.1,-0.5 -6.4,-3.1 -7.4,-3.5 -1,-0.4 -1.7,-0.5 -2.4,0.5 -0.7,1.1 -2.8,3.5 -3.4,4.2 -0.6,0.7 -1.3,0.8 -2.3,0.3 -1.1,-0.5 -4.6,-1.7 -8.7,-5.3 -3.2,-2.8 -5.4,-6.4 -6,-7.4 -0.6,-1.1 -0.1,-1.7 0.5,-2.2 0.5,-0.5 1.1,-1.3 1.6,-1.9 0.5,-0.6 0.7,-1.1 1.1,-1.8 0.4,-0.7 0.2,-1.3 -0.1,-1.9 -0.3,-0.5 -2.4,-5.8 -3.3,-8 -0.9,-2.1 -1.8,-1.8 -2.4,-1.8 -0.6,0 -1.4,-0.1 -2.1,-0.1 -0.7,0 -1.9,0.3 -2.9,1.3 -1,1.1 -3.8,3.7 -3.8,9 0,5.3 3.9,10.4 4.4,11.1 0.5,0.7 7.5,11.9 18.5,16.2 11,4.3 11,2.9 13,2.7 2,-0.2 6.4,-2.6 7.3,-5.1 0.8,-2.4 0.8,-4.5 0.5,-5 z"/></g></g></g></g></g><circle r="2.5557649" cy="4.929359" cx="19.205139" fill="#ff0e00" stroke-width=".264583" stroke-linejoin="round"/><text y="6.1821856" x="18.119358" style="line-height:1.25" font-size="7.76111" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#fff" stroke-width=".264583"><tspan y="6.1821856" x="18.119358" font-size="3.52778">5</tspan></text><g transform="matrix(1.1851851,0,0,1.1851851,7.1514505,-19.796147)"><rect width="7.1437507" height="7.1437507" x="4.3467236" y="31.787796" fill="#0274b3" stroke-width=".198045" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.19020233,0,0,0.19020233,5.7092139,33.137945)" fill="#fff"><g><path d="m 5.366,2.973 c 0,1.376 -1.035,2.479 -2.699,2.479 H 2.636 C 1.034,5.453 0,4.348 0,2.973 0,1.564 1.067,0.491 2.698,0.491 4.331,0.49 5.336,1.564 5.366,2.973 Z M 0.28,21.766 H 5.052 V 7.413 H 0.28 Z M 16.764,7.077 c -2.531,0 -3.664,1.39 -4.301,2.37 v 0.046 h -0.031 c 0.012,-0.014 0.023,-0.03 0.031,-0.046 V 7.414 H 7.692 c 0.062,1.345 0,14.353 0,14.353 h 4.771 v -8.016 c 0,-0.432 0.029,-0.855 0.157,-1.164 0.346,-0.854 1.132,-1.747 2.446,-1.747 1.729,0 2.42,1.319 2.42,3.247 v 7.68 h 4.771 V 13.538 C 22.258,9.126 19.902,7.077 16.764,7.077 Z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></g></g><g transform="matrix(1.1851851,0,0,1.1851851,10.326448,-19.796147)"><rect width="7.1437507" height="7.1437507" x="11.490477" y="31.787796" fill="#ef4056" stroke-width=".198045" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.00826823,0,0,0.00826823,12.897852,33.520265)" fill="#fffbfb"><g><g><path d="M 480,32 H 32 C 14.368,32 0,46.368 0,64 v 176 c 0,132.352 107.648,240 240,240 h 32 C 404.352,480 512,372.352 512,240 V 64 C 512,46.368 497.664,32 480,32 Z m -73.376,182.624 -128,128 C 272.384,348.864 264.192,352 256,352 c -8.192,0 -16.384,-3.136 -22.624,-9.376 l -128,-128 c -12.512,-12.512 -12.512,-32.736 0,-45.248 12.512,-12.512 32.736,-12.512 45.248,0 L 256,274.752 361.376,169.376 c 12.512,-12.512 32.736,-12.512 45.248,0 12.512,12.512 12.512,32.736 0,45.248 z"/></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></g></g><path d="m 47.384593,18.181847 v 1.887739 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.61805 c 0,0.883777 0.711474,1.595253 1.595251,1.595253 h 1.135848 c 0.111964,0 0.221258,-0.01185 0.326595,-0.03359 h 2.413289 0.626319 1.887223 v -1.887739 -0.45062 -3.608049 c 0,-1.045723 -0.841498,-1.887739 -1.887223,-1.887739 h -3.683496 -0.50953 z" fill="#e61b2e" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.00803905,0,0,0.00803905,36.785334,20.198548)" fill="#f9ffed"><g><g><path d="M 329.956,399.834 H 182.044 c -9.425,0 -17.067,7.641 -17.067,17.067 0,9.426 7.641,17.067 17.067,17.067 h 147.911 c 9.425,0 17.067,-7.641 17.067,-17.067 0,-9.426 -7.641,-17.067 -17.066,-17.067 z"/></g></g><g><g><path d="M 329.956,346.006 H 182.044 c -9.425,0 -17.067,7.641 -17.067,17.067 0,9.426 7.641,17.067 17.067,17.067 h 147.911 c 9.425,0 17.067,-7.641 17.067,-17.067 0,-9.426 -7.641,-17.067 -17.066,-17.067 z"/></g></g><g><g><g transform="translate(131.64905)"><path transform="matrix(124.39281,0,0,124.39281,-3670.7438,-4759.9914)" d="m 27.257814,35.832563 v 2.001728 0.353988 3.408914 c -0.01029,0.07569 -0.01754,0.152642 -0.01754,0.231244 v 0.655371 c 0,0.937144 0.754436,1.691581 1.691581,1.691581 h 1.204435 c 0.118724,0 0.234619,-0.01257 0.346316,-0.03562 h 2.559014 0.66414 2.001181 v -2.00173 -0.47783 -3.825919 c 0,-1.108869 -0.892311,-2.001728 -2.001181,-2.001728 h -3.90592 -0.540297 z" fill="#6d9f00" stroke-width=".28056" stroke-linecap="round" stroke-linejoin="round"/><path d="M 472.178,133.907 H 417.875 V 35.132 c 0,-9.425 -7.641,-17.067 -17.067,-17.067 H 111.192 c -9.425,0 -17.067,7.641 -17.067,17.067 v 98.775 H 39.822 C 17.864,133.907 0,151.772 0,173.73 v 171.702 c 0,21.958 17.864,39.822 39.822,39.822 h 54.306 v 91.614 c 0,9.425 7.641,17.067 17.067,17.067 h 289.61 c 9.425,0 17.067,-7.641 17.067,-17.067 v -91.614 h 54.306 C 494.136,385.254 512,367.39 512,345.432 V 173.73 c 0,-21.957 -17.864,-39.823 -39.822,-39.823 z M 128.258,52.199 h 255.483 v 81.708 H 128.258 Z m 255.48,407.602 H 128.262 c 0,-3.335 0,-135.503 0,-139.628 h 255.477 c -10e-4,4.229 -10e-4,136.421 -10e-4,139.628 z m 17.07,-225.679 h -43.443 c -9.425,0 -17.067,-7.641 -17.067,-17.067 0,-9.426 7.641,-17.067 17.067,-17.067 h 43.443 c 9.425,0 17.067,7.641 17.067,17.067 0,9.426 -7.641,17.067 -17.067,17.067 z"/></g></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></g><path d="m 51.606158,22.08464 c -0.0397,-0.127033 -0.03891,-0.372365 -0.01588,-0.372365 0.0667,0 0.06035,0.292969 0.01588,0.372365 z m -0.01349,0.374746 c -0.06114,0.160378 -0.137354,0.343782 -0.225483,0.497808 0.145293,-0.05557 0.309641,-0.136559 0.499396,-0.173875 -0.100832,-0.07622 -0.197694,-0.185786 -0.273913,-0.323933 z m -0.747111,0.990852 c 0,0.0064 0.104798,-0.04287 0.277091,-0.319166 -0.0532,0.05003 -0.231041,0.194517 -0.277091,0.319166 z m 1.285411,-2.128588 h 1.079777 v 2.604169 c 0,0.105595 -0.08495,0.190548 -0.190548,0.190548 h -2.667691 c -0.105595,0 -0.190548,-0.08495 -0.190548,-0.190548 v -3.683946 c 0,-0.105595 0.08495,-0.190548 0.190548,-0.190548 h 1.587909 v 1.079776 c 0,0.104798 0.08575,0.190549 0.190548,0.190549 z m -0.06352,1.364012 c -0.158792,-0.09687 -0.264387,-0.230247 -0.339019,-0.427147 0.03573,-0.146881 0.0921,-0.369982 0.04923,-0.509718 -0.03732,-0.233422 -0.336637,-0.210398 -0.37951,-0.05399 -0.0397,0.145293 -0.0032,0.350132 0.06431,0.611343 -0.0921,0.219133 -0.227864,0.512894 -0.323934,0.681213 -7.91e-4,0 -7.91e-4,6.89e-4 -0.0016,6.89e-4 -0.215162,0.110362 -0.58435,0.353313 -0.432705,0.539889 0.04446,0.05478 0.127032,0.07939 0.1707,0.07939 0.142118,0 0.283442,-0.142913 0.485106,-0.490663 0.204839,-0.06749 0.429528,-0.151647 0.627223,-0.184197 0.172288,0.09368 0.373952,0.154819 0.508131,0.154819 0.231834,0 0.247713,-0.254064 0.156408,-0.344574 -0.11036,-0.107979 -0.431117,-0.07702 -0.58435,-0.05717 z M 53.155163,20.884975 52.377089,20.1069 c -0.03573,-0.03572 -0.08416,-0.05557 -0.134972,-0.05557 h -0.04764 v 1.01626 h 1.016261 v -0.04843 c 0,-0.05002 -0.01985,-0.09846 -0.05557,-0.134177 z m -0.58832,2.026965 c 0.03256,-0.02144 -0.01985,-0.09448 -0.339811,-0.07145 0.294557,0.125445 0.339811,0.07145 0.339811,0.07145 z" fill="#fff" stroke-width=".00793954"/></g></g></g></g></svg>
admin/images/banners/sharebar.png DELETED
Binary file
admin/images/banners/shortcodes.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="250" height="100" viewBox="0 0 66.145832 26.458334"><defs><linearGradient xlink:href="#a" id="b" gradientUnits="userSpaceOnUse" x1="31.456219" y1="279.36444" x2="42.209198" y2="265.73569"/><linearGradient id="a"><stop offset="0" stop-color="#00bfff"/><stop offset="1" stop-color="#70f7f9"/></linearGradient><linearGradient xlink:href="#a" id="f" gradientUnits="userSpaceOnUse" x1="31.456219" y1="279.36444" x2="42.209198" y2="265.73569"/><linearGradient xlink:href="#a" id="e" gradientUnits="userSpaceOnUse" x1="31.456219" y1="279.36444" x2="42.209198" y2="265.73569"/><linearGradient xlink:href="#a" id="d" gradientUnits="userSpaceOnUse" x1="31.456219" y1="279.36444" x2="42.209198" y2="265.73569"/><linearGradient xlink:href="#a" id="c" gradientUnits="userSpaceOnUse" x1="31.456219" y1="279.36444" x2="42.209198" y2="265.73569"/><linearGradient xlink:href="#a" id="g" gradientUnits="userSpaceOnUse" x1="31.456219" y1="279.36444" x2="42.209198" y2="265.73569"/><linearGradient xlink:href="#a" id="m" gradientUnits="userSpaceOnUse" x1="31.456219" y1="279.36444" x2="42.209198" y2="265.73569"/><linearGradient xlink:href="#a" id="l" gradientUnits="userSpaceOnUse" x1="31.456219" y1="279.36444" x2="42.209198" y2="265.73569"/><linearGradient xlink:href="#a" id="k" gradientUnits="userSpaceOnUse" x1="31.456219" y1="279.36444" x2="42.209198" y2="265.73569"/><linearGradient xlink:href="#a" id="n" gradientUnits="userSpaceOnUse" x1="31.456219" y1="279.36444" x2="42.209198" y2="265.73569"/><linearGradient y2="265.73569" x2="42.209198" y1="279.36444" x1="31.456219" gradientUnits="userSpaceOnUse" id="j" xlink:href="#a"/><linearGradient y2="265.73569" x2="42.209198" y1="279.36444" x1="31.456219" gradientUnits="userSpaceOnUse" id="i" xlink:href="#a"/><linearGradient y2="265.73569" x2="42.209198" y1="279.36444" x1="31.456219" gradientUnits="userSpaceOnUse" id="h" xlink:href="#a"/><linearGradient y2="265.73569" x2="42.209198" y1="279.36444" x1="31.456219" gradientUnits="userSpaceOnUse" id="o" xlink:href="#a"/></defs><g><rect height="26.458334" width="66.145836" fill="#e0f9ff" stroke-width="2.25865" stroke-linejoin="round"/><path fill="#99ebff" d="m 9.0378478,8.3263469 c -0.2569985,0 -0.4932063,0.08888 -0.6796691,0.237526 L 7.1931586,7.8357319 a 1.0975531,1.0975531 0 0 0 0,-0.473835 l 1.1650201,-0.72814 c 0.1864628,0.148654 0.4226706,0.237537 0.6796691,0.237537 0.6026989,0 1.0912902,-0.488591 1.0912902,-1.09129 0,-0.602698 -0.4885913,-1.091289 -1.0912902,-1.091289 -0.6026988,0 -1.0912899,0.488591 -1.0912899,1.091289 0,0.08137 0.00898,0.160625 0.025875,0.236913 l -1.1650223,0.72814 c -0.186463,-0.148643 -0.4226703,-0.237526 -0.6796691,-0.237526 -0.6026986,0 -1.0912895,0.488591 -1.0912895,1.091289 0,0.602699 0.4885909,1.09129 1.0912895,1.09129 0.2569988,0 0.4932061,-0.08888 0.6796687,-0.237526 l 1.1650203,0.72814 a 1.0947112,1.0947112 0 0 0 -0.025875,0.236913 c 0,0.6026981 0.4885911,1.0912891 1.0912899,1.0912891 0.6026993,0 1.0912906,-0.488591 1.0912906,-1.0912891 0,-0.6027 -0.4885913,-1.09129 -1.0912906,-1.09129 z" stroke-width=".0113676"/><path d="m 59.643106,20.822489 c -0.256998,0 -0.493206,0.08888 -0.679669,0.237526 l -1.16502,-0.728141 a 1.0975531,1.0975531 0 0 0 0,-0.473835 l 1.16502,-0.72814 c 0.186463,0.148654 0.422671,0.237537 0.679669,0.237537 0.602699,0 1.09129,-0.488591 1.09129,-1.09129 0,-0.602698 -0.488591,-1.091289 -1.09129,-1.091289 -0.602698,0 -1.09129,0.488591 -1.09129,1.091289 0,0.08137 0.009,0.160625 0.02588,0.236913 l -1.165023,0.72814 c -0.186463,-0.148643 -0.42267,-0.237526 -0.679669,-0.237526 -0.602699,0 -1.091289,0.488591 -1.091289,1.091289 0,0.602699 0.48859,1.09129 1.091289,1.09129 0.256999,0 0.493206,-0.08888 0.679669,-0.237526 l 1.16502,0.72814 a 1.0947112,1.0947112 0 0 0 -0.02587,0.236913 c 0,0.602698 0.488592,1.091289 1.09129,1.091289 0.6027,0 1.09129,-0.488591 1.09129,-1.091289 0,-0.6027 -0.48859,-1.09129 -1.09129,-1.09129 z" fill="#99ebff" stroke-width=".0113676"/><path fill="#99ebff" d="m 17.395054,19.593734 h -0.680357 v -0.680357 c 0,-0.09355 -0.07654,-0.170089 -0.17009,-0.170089 h -0.340178 c -0.09355,0 -0.170089,0.07654 -0.170089,0.170089 v 0.680357 h -0.680357 c -0.09355,0 -0.170089,0.07654 -0.170089,0.170089 v 0.340178 c 0,0.09355 0.07654,0.17009 0.170089,0.17009 h 0.680357 v 0.680356 c 0,0.09355 0.07654,0.17009 0.170089,0.17009 h 0.340178 c 0.09355,0 0.17009,-0.07654 0.17009,-0.17009 v -0.680356 h 0.680357 c 0.09355,0 0.170089,-0.07654 0.170089,-0.17009 v -0.340178 c 0,-0.09355 -0.07654,-0.170089 -0.170089,-0.170089 z m -4.252231,0.510267 c 0.751582,0 1.360714,-0.609132 1.360714,-1.360713 0,-0.751582 -0.609132,-1.360714 -1.360714,-1.360714 -0.751582,0 -1.360714,0.609132 -1.360714,1.360714 0,0.751581 0.609132,1.360713 1.360714,1.360713 z m 0.9525,0.340179 h -0.177531 c -0.235999,0.108432 -0.498574,0.170089 -0.774969,0.170089 -0.276395,0 -0.537907,-0.06166 -0.774969,-0.170089 h -0.177531 c -0.788788,0 -1.428749,0.63996 -1.428749,1.428749 v 0.442232 c 0,0.281711 0.228557,0.510268 0.510268,0.510268 h 3.741962 c 0.281711,0 0.510268,-0.228557 0.510268,-0.510268 v -0.442232 c 0,-0.788789 -0.63996,-1.428749 -1.428749,-1.428749 z" stroke-width=".0106306"/><path fill="#99ebff" d="m 51.47464,5.7542239 c 0.759573,0.7603618 0.749148,1.9794135 0.0046,2.7281171 -0.0014,0.00155 -0.003,0.00318 -0.0046,0.00473 l -0.854324,0.8543241 c -0.753509,0.7535099 -1.979426,0.7534079 -2.732821,0 -0.753508,-0.7533821 -0.753508,-1.9794389 0,-2.7328209 L 48.35923,6.1368415 c 0.125097,-0.1250979 0.340534,-0.041955 0.346993,0.1348357 0.0082,0.2253025 0.04864,0.4516605 0.123191,0.6702508 0.02525,0.074015 0.0072,0.1558884 -0.0481,0.2111904 l -0.166378,0.1663775 c -0.356299,0.3562992 -0.367474,0.9364512 -0.01468,1.2962337 0.356274,0.3633295 0.941867,0.3654904 1.300875,0.00644 l 0.854324,-0.8541968 c 0.358396,-0.3583965 0.356896,-0.9376846 0,-1.2945809 -0.04705,-0.046964 -0.09445,-0.08345 -0.131467,-0.1089399 a 0.20388094,0.20388094 0 0 1 -0.08832,-0.1602625 c -0.0051,-0.1343398 0.04257,-0.2727731 0.148719,-0.3789279 L 50.95205,5.5575855 c 0.07019,-0.070189 0.180298,-0.078812 0.261688,-0.022009 a 1.938528,1.938528 0 0 1 0.260899,0.2186278 z m 1.79173,-1.7918186 c -0.753395,-0.7534068 -1.979312,-0.7535086 -2.732821,0 l -0.854324,0.8543249 c -0.0016,0.00155 -0.0032,0.00318 -0.0046,0.00473 -0.744558,0.7487027 -0.754996,1.9677553 0.0046,2.7281163 a 1.938172,1.938172 0 0 0 0.260886,0.2186156 c 0.08139,0.056802 0.191511,0.048171 0.261688,-0.02201 l 0.267663,-0.267675 C 50.575617,7.3723523 50.623214,7.2339182 50.61818,7.0995784 A 0.20388094,0.20388094 0 0 0 50.52986,6.9393167 c -0.03702,-0.025493 -0.08442,-0.061974 -0.131467,-0.1089391 -0.356896,-0.3568971 -0.358397,-0.9361843 0,-1.2945817 L 51.25272,4.6815991 c 0.359007,-0.3590067 0.944587,-0.3568457 1.300874,0.00644 0.35279,0.3597825 0.341628,0.9399345 -0.01468,1.2962337 l -0.166378,0.1663767 c -0.0553,0.055301 -0.07335,0.1371754 -0.0481,0.2111912 0.07455,0.2185903 0.114952,0.4449475 0.123191,0.6702508 0.0064,0.1767893 0.221896,0.2599328 0.346993,0.1348357 l 0.471735,-0.471735 c 0.753521,-0.7533681 0.753521,-1.9794258 1.2e-5,-2.7328078 z" stroke-width=".0127132"/></g><g><g transform="matrix(0.635169,0,0,0.635169,12.219301,-154.84314)" fill="url(#b)"><g transform="translate(0.28314298)" fill="url(#c)"><g transform="translate(8.1655862e-7,0.23004952)" fill="url(#d)"><g transform="translate(0,-0.26543832)" fill="url(#e)"><g transform="translate(0,-0.28314209)" fill="url(#f)"/></g></g></g><g transform="translate(-1.1783727e-6,0.04044381)" fill="url(#g)"/><g transform="matrix(-1,0,0,1,65.380059,8.5831701e-6)" fill="url(#h)"><g transform="translate(8.1655862e-7,0.23004952)" fill="url(#i)"><g transform="translate(0,-0.26543832)" fill="url(#j)"/></g></g><g transform="matrix(-1,0,0,1,65.380059,8.5831701e-6)" fill="url(#k)"><g transform="translate(8.1655862e-7,0.23004952)" fill="url(#l)"><g transform="translate(0,-0.26543832)" fill="url(#m)"><g transform="translate(0,-0.28314209)" fill="url(#n)"><path d="m -271.22993,23.771025 h 0.99325 c 0.27388,0 0.49438,0.220492 0.49438,0.494376 v 3.541535 c 0,0.273884 -0.2205,0.494376 -0.49438,0.494376 h -0.99325 c -0.27388,0 -0.49437,-0.220492 -0.49437,-0.494376 v -3.541535 c 0,-0.273884 0.22049,-0.494376 0.49437,-0.494376 z m 11.60886,0 h 0.99325 c 0.27388,0 0.49437,0.220492 0.49437,0.494376 v 3.541535 c 0,0.273884 -0.22049,0.494376 -0.49437,0.494376 h -0.99325 c -0.27389,0 -0.49438,-0.220492 -0.49438,-0.494376 v -3.541535 c 0,-0.273884 0.22049,-0.494376 0.49438,-0.494376 z m 1.48762,0.74855 v 0.4849 c 0,0.414697 -0.33386,0.748551 -0.74855,0.748551 h -12.09377 c -0.41469,0 -0.74855,-0.333854 -0.74855,-0.748551 v -0.4849 c 0,-0.414697 0.33386,-0.74855 0.74855,-0.74855 h 12.09377 c 0.41469,0 0.74855,0.333853 0.74855,0.74855 z m 1.98199,6.502596 v -1.43294 c 0,-0.28558 -0.22156,-0.454082 -0.49677,-0.377802 l -16.56132,4.590223 c -0.27522,0.07628 -0.49678,0.367598 -0.49678,0.653178 v 1.43294 c 0,0.28558 0.22156,0.454082 0.49678,0.377802 l 16.56132,-4.590223 c 0.27521,-0.07628 0.49677,-0.367598 0.49677,-0.653178 z m -15.07846,10.303718 h 0.99325 c 0.27388,0 0.49438,-0.220492 0.49438,-0.494376 v -3.541535 c 0,-0.273884 -0.2205,-0.494376 -0.49438,-0.494376 h -0.99325 c -0.27388,0 -0.49437,0.220492 -0.49437,0.494376 v 3.541535 c 0,0.273884 0.22049,0.494376 0.49437,0.494376 z m 11.60886,0 h 0.99325 c 0.27388,0 0.49437,-0.220492 0.49437,-0.494376 v -3.541535 c 0,-0.273884 -0.22049,-0.494376 -0.49437,-0.494376 h -0.99325 c -0.27389,0 -0.49438,0.220492 -0.49438,0.494376 v 3.541535 c 0,0.273884 0.22049,0.494376 0.49438,0.494376 z m 1.48762,-0.74855 v -0.4849 c 0,-0.414697 -0.33386,-0.748551 -0.74855,-0.748551 h -12.09377 c -0.41469,0 -0.74855,0.333854 -0.74855,0.748551 v 0.4849 c 0,0.414697 0.33386,0.74855 0.74855,0.74855 h 12.09377 c 0.41469,0 0.74855,-0.333853 0.74855,-0.74855 z" transform="rotate(-90)" fill="url(#o)" stroke-width=".764145"/></g></g></g></g></g></g></svg>
admin/images/banners/social-icons.svg DELETED
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" viewBox="0 0 52.916665 52.916668"><g><rect y="4.1115742" x="5.1593728" height="3.8639438" width="40.207054" fill="#efefef" stroke-width=".33238029" stroke-linecap="round" stroke-linejoin="round"/><rect y="11.491697" x="5.1593728" height="2.1166666" width="34.893513" fill="#efefef" stroke-width=".22917503" stroke-linecap="round" stroke-linejoin="round"/><rect y="16.9039" x="5.1593728" height="2.1166666" width="23.743216" fill="#efefef" stroke-width=".18904479" stroke-linecap="round" stroke-linejoin="round"/><g><g transform="translate(0,-1.0583333)"><g transform="translate(-0.37797619,-6.6901821)"><g transform="matrix(0.80000002,0,0,0.80000002,-12.794494,28.068511)"><circle cx="27.261532" cy="11.216444" r="6.283854" fill="#3e5b98" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="M 28.281191,10.363098 H 27.518846 V 9.8631083 c 0,-0.18777 0.124447,-0.23155 0.2121,-0.23155 0.08745,0 0.537981,0 0.537981,0 V 8.8060889 l -0.740908,-0.003 c -0.822479,0 -1.00965,0.6156697 -1.00965,1.0096594 v 0.5502297 h -0.475657 v 0.85061 h 0.475657 c 0,1.09162 0,2.4069 0,2.4069 h 1.000477 c 0,0 0,-1.32825 0,-2.4069 h 0.675093 z" fill="#fff" stroke-width=".09971847"/></g><g transform="matrix(0.80000002,0,0,0.80000002,-1.2945684,16.071547)"><circle cx="27.49777" cy="26.212648" r="6.283854" fill="#4da7de" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="m 30.464729,24.742235 c -0.19071,0.0848 -0.395953,0.14195 -0.611304,0.16754 0.21988,-0.13163 0.388475,-0.34014 0.467981,-0.58887 -0.205663,0.12205 -0.433335,0.21061 -0.675856,0.25842 -0.19408,-0.20682 -0.47072,-0.33614 -0.776845,-0.33614 -0.587715,0 -1.064226,0.47651 -1.064226,1.06433 0,0.0833 0.0094,0.16449 0.02759,0.24253 -0.884573,-0.0445 -1.668895,-0.46809 -2.193847,-1.11204 -0.09162,0.15711 -0.144059,0.33993 -0.144059,0.53516 0,0.36921 0.187866,0.69503 0.473457,0.88584 -0.174388,-0.006 -0.33856,-0.0535 -0.482093,-0.13321 -1.05e-4,0.004 -1.05e-4,0.009 -1.05e-4,0.0135 0,0.51558 0.366888,0.94565 0.853825,1.04359 -0.0893,0.0243 -0.183339,0.0373 -0.280431,0.0373 -0.06866,0 -0.135319,-0.007 -0.200293,-0.0192 0.135529,0.42281 0.528533,0.73062 0.994197,0.73916 -0.364254,0.28548 -0.823074,0.45565 -1.321806,0.45565 -0.08582,0 -0.170596,-0.005 -0.253893,-0.015 0.471141,0.30213 1.030528,0.4782 1.631512,0.4782 1.957751,0 3.02819,-1.62172 3.02819,-3.02819 0,-0.0461 -9.26e-4,-0.0921 -0.003,-0.13785 0.207874,-0.14975 0.388369,-0.33729 0.530955,-0.55075 z" fill="#fff" stroke-width=".10530637"/></g><g transform="matrix(0.80000002,0,0,0.80000002,10.479387,4.0367859)"><circle cx="27.214287" cy="41.2561" r="6.283854" fill="#cb2027" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="m 29.916819,41.615178 c 0,1.461609 -1.184224,2.645833 -2.645833,2.645833 -0.273118,0 -0.535568,-0.04161 -0.783081,-0.118423 0.107753,-0.176033 0.26885,-0.464087 0.328595,-0.693464 0.03201,-0.123757 0.164298,-0.629452 0.164298,-0.629452 0.08642,0.164297 0.338197,0.304058 0.605981,0.304058 0.798017,0 1.373059,-0.734006 1.373059,-1.646178 0,-0.873765 -0.713734,-1.527756 -1.631241,-1.527756 -1.141549,0 -1.748597,0.766012 -1.748597,1.601369 0,0.38834 0.206972,0.871632 0.536634,1.025261 0.05014,0.02347 0.07681,0.0128 0.08855,-0.03521 0.0085,-0.03627 0.05334,-0.216574 0.07361,-0.29979 0.0064,-0.02667 0.0032,-0.05014 -0.01814,-0.07575 -0.107754,-0.133359 -0.195237,-0.376605 -0.195237,-0.603848 0,-0.583577 0.441683,-1.14795 1.194892,-1.14795 0.649723,0 1.105276,0.44275 1.105276,1.07647 0,0.715869 -0.361669,1.211962 -0.832157,1.211962 -0.259249,0 -0.454486,-0.21444 -0.391541,-0.477957 0.07468,-0.314726 0.218708,-0.65399 0.218708,-0.881233 0,-0.202705 -0.108821,-0.372337 -0.334997,-0.372337 -0.26565,0 -0.479024,0.274185 -0.479024,0.642255 0,0.234711 0.07895,0.392607 0.07895,0.392607 0,0 -0.261383,1.10741 -0.309392,1.314382 -0.05334,0.22831 -0.03201,0.550504 -0.0096,0.75961 -0.983652,-0.385139 -1.681384,-1.343187 -1.681384,-2.464465 0,-1.46161 1.184224,-2.645834 2.645833,-2.645834 1.46161,0 2.645834,1.184224 2.645834,2.645834 z" fill="#fff" stroke-width=".01066868"/></g><g transform="translate(-1.5875,7.1059523)"><g transform="matrix(0.80000002,0,0,0.80000002,23.60461,-3.0691664)"><circle r="6.283854" cy="41.2561" cx="27.214287" fill="#60b82d" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.05879629,0,0,0.05879629,24.975961,38.557113)" fill="#fffdfd"><g><path d="M 90,43.8 C 90,68 70.2,87.6 45.8,87.6 c -7.7,0 -15,-2 -21.4,-5.5 L 0,90 8,66.5 C 4,59.9 1.7,52.1 1.7,43.9 1.6,19.6 21.4,0 45.8,0 70.2,0 90,19.6 90,43.8 Z M 45.8,7 C 25.3,7 8.7,23.5 8.7,43.8 c 0,8.1 2.6,15.5 7.1,21.6 l -4.6,13.7 14.3,-4.5 c 5.9,3.9 12.9,6.1 20.4,6.1 C 66.3,80.7 83,64.2 83,43.8 83,23.4 66.3,7 45.8,7 Z m 22.3,46.9 c -0.3,-0.4 -1,-0.7 -2.1,-1.3 -1.1,-0.5 -6.4,-3.1 -7.4,-3.5 -1,-0.4 -1.7,-0.5 -2.4,0.5 -0.7,1.1 -2.8,3.5 -3.4,4.2 -0.6,0.7 -1.3,0.8 -2.3,0.3 -1.1,-0.5 -4.6,-1.7 -8.7,-5.3 -3.2,-2.8 -5.4,-6.4 -6,-7.4 -0.6,-1.1 -0.1,-1.7 0.5,-2.2 0.5,-0.5 1.1,-1.3 1.6,-1.9 0.5,-0.6 0.7,-1.1 1.1,-1.8 0.4,-0.7 0.2,-1.3 -0.1,-1.9 -0.3,-0.5 -2.4,-5.8 -3.3,-8 -0.9,-2.1 -1.8,-1.8 -2.4,-1.8 -0.6,0 -1.4,-0.1 -2.1,-0.1 -0.7,0 -1.9,0.3 -2.9,1.3 -1,1.1 -3.8,3.7 -3.8,9 0,5.3 3.9,10.4 4.4,11.1 0.5,0.7 7.5,11.9 18.5,16.2 11,4.3 11,2.9 13,2.7 2,-0.2 6.4,-2.6 7.3,-5.1 0.8,-2.4 0.8,-4.5 0.5,-5 z"/></g></g></g></g></g><circle cx="11.532222" cy="25.642454" r="2.5557649" fill="#ff0e00" stroke-width=".26458332" stroke-linejoin="round"/><text style="line-height:1.25" x="10.44644" y="26.895281" font-size="7.76111126" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#fff" stroke-width=".26458332"><tspan x="10.44644" y="26.895281" font-size="3.52777767">5</tspan></text><g transform="matrix(1.1851851,0,0,1.1851851,-0.52146617,0.91694683)"><rect y="31.787796" x="4.3467236" height="7.1437507" width="7.1437507" fill="#0274b3" stroke-width=".19804454" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.19020233,0,0,0.19020233,5.7092139,33.137945)" fill="#fff"><g><path d="m 5.366,2.973 c 0,1.376 -1.035,2.479 -2.699,2.479 H 2.636 C 1.034,5.453 0,4.348 0,2.973 0,1.564 1.067,0.491 2.698,0.491 4.331,0.49 5.336,1.564 5.366,2.973 Z M 0.28,21.766 H 5.052 V 7.413 H 0.28 Z M 16.764,7.077 c -2.531,0 -3.664,1.39 -4.301,2.37 v 0.046 h -0.031 c 0.012,-0.014 0.023,-0.03 0.031,-0.046 V 7.414 H 7.692 c 0.062,1.345 0,14.353 0,14.353 h 4.771 v -8.016 c 0,-0.432 0.029,-0.855 0.157,-1.164 0.346,-0.854 1.132,-1.747 2.446,-1.747 1.729,0 2.42,1.319 2.42,3.247 v 7.68 h 4.771 V 13.538 C 22.258,9.126 19.902,7.077 16.764,7.077 Z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></g></g><g transform="matrix(1.1851851,0,0,1.1851851,2.6535316,0.91694683)"><rect y="31.787796" x="11.490477" height="7.1437507" width="7.1437507" fill="#ef4056" stroke-width=".19804454" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.00826823,0,0,0.00826823,12.897852,33.520265)" fill="#fffbfb"><g><g><path d="M 480,32 H 32 C 14.368,32 0,46.368 0,64 v 176 c 0,132.352 107.648,240 240,240 h 32 C 404.352,480 512,372.352 512,240 V 64 C 512,46.368 497.664,32 480,32 Z m -73.376,182.624 -128,128 C 272.384,348.864 264.192,352 256,352 c -8.192,0 -16.384,-3.136 -22.624,-9.376 l -128,-128 c -12.512,-12.512 -12.512,-32.736 0,-45.248 12.512,-12.512 32.736,-12.512 45.248,0 L 256,274.752 361.376,169.376 c 12.512,-12.512 32.736,-12.512 45.248,0 12.512,12.512 12.512,32.736 0,45.248 z"/></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></g></g><path d="m 39.711676,38.894941 v 1.887739 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.61805 c 0,0.883777 0.711474,1.595253 1.595251,1.595253 h 1.135848 c 0.111964,0 0.221258,-0.01185 0.326595,-0.03359 h 2.413289 0.626319 1.887223 V 44.84135 44.39073 40.782681 c 0,-1.045723 -0.841498,-1.887739 -1.887223,-1.887739 h -3.683496 -0.50953 z" fill="#e61b2e" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.00803905,0,0,0.00803905,29.112417,40.911642)" fill="#f9ffed"><g><g><path d="M 329.956,399.834 H 182.044 c -9.425,0 -17.067,7.641 -17.067,17.067 0,9.426 7.641,17.067 17.067,17.067 h 147.911 c 9.425,0 17.067,-7.641 17.067,-17.067 0,-9.426 -7.641,-17.067 -17.066,-17.067 z"/></g></g><g><g><path d="M 329.956,346.006 H 182.044 c -9.425,0 -17.067,7.641 -17.067,17.067 0,9.426 7.641,17.067 17.067,17.067 h 147.911 c 9.425,0 17.067,-7.641 17.067,-17.067 0,-9.426 -7.641,-17.067 -17.066,-17.067 z"/></g></g><g><g><g transform="translate(131.64905)"><path d="m 27.257814,35.832563 v 2.001728 0.353988 3.408914 c -0.01029,0.07569 -0.01754,0.152642 -0.01754,0.231244 v 0.655371 c 0,0.937144 0.754436,1.691581 1.691581,1.691581 h 1.204435 c 0.118724,0 0.234619,-0.01257 0.346316,-0.03562 h 2.559014 0.66414 2.001181 v -2.00173 -0.47783 -3.825919 c 0,-1.108869 -0.892311,-2.001728 -2.001181,-2.001728 h -3.90592 -0.540297 z" transform="matrix(124.39281,0,0,124.39281,-3670.7438,-4759.9914)" fill="#6d9f00" stroke-width=".28056005" stroke-linecap="round" stroke-linejoin="round"/><path d="M 472.178,133.907 H 417.875 V 35.132 c 0,-9.425 -7.641,-17.067 -17.067,-17.067 H 111.192 c -9.425,0 -17.067,7.641 -17.067,17.067 v 98.775 H 39.822 C 17.864,133.907 0,151.772 0,173.73 v 171.702 c 0,21.958 17.864,39.822 39.822,39.822 h 54.306 v 91.614 c 0,9.425 7.641,17.067 17.067,17.067 h 289.61 c 9.425,0 17.067,-7.641 17.067,-17.067 v -91.614 h 54.306 C 494.136,385.254 512,367.39 512,345.432 V 173.73 c 0,-21.957 -17.864,-39.823 -39.822,-39.823 z M 128.258,52.199 h 255.483 v 81.708 H 128.258 Z m 255.48,407.602 H 128.262 c 0,-3.335 0,-135.503 0,-139.628 h 255.477 c -10e-4,4.229 -10e-4,136.421 -10e-4,139.628 z m 17.07,-225.679 h -43.443 c -9.425,0 -17.067,-7.641 -17.067,-17.067 0,-9.426 7.641,-17.067 17.067,-17.067 h 43.443 c 9.425,0 17.067,7.641 17.067,17.067 0,9.426 -7.641,17.067 -17.067,17.067 z"/></g></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></g><path d="m 43.933241,42.797734 c -0.0397,-0.127033 -0.03891,-0.372365 -0.01588,-0.372365 0.0667,0 0.06035,0.292969 0.01588,0.372365 z m -0.01349,0.374746 c -0.06114,0.160378 -0.137354,0.343782 -0.225483,0.497808 0.145293,-0.05557 0.309641,-0.136559 0.499396,-0.173875 -0.100832,-0.07622 -0.197694,-0.185786 -0.273913,-0.323933 z m -0.747111,0.990852 c 0,0.0064 0.104798,-0.04287 0.277091,-0.319166 -0.0532,0.05003 -0.231041,0.194517 -0.277091,0.319166 z m 1.285411,-2.128588 h 1.079777 v 2.604169 c 0,0.105595 -0.08495,0.190548 -0.190548,0.190548 h -2.667691 c -0.105595,0 -0.190548,-0.08495 -0.190548,-0.190548 v -3.683946 c 0,-0.105595 0.08495,-0.190548 0.190548,-0.190548 h 1.587909 v 1.079776 c 0,0.104798 0.08575,0.190549 0.190548,0.190549 z m -0.06352,1.364012 c -0.158792,-0.09687 -0.264387,-0.230247 -0.339019,-0.427147 0.03573,-0.146881 0.0921,-0.369982 0.04923,-0.509718 -0.03732,-0.233422 -0.336637,-0.210398 -0.37951,-0.05399 -0.0397,0.145293 -0.0032,0.350132 0.06431,0.611343 -0.0921,0.219133 -0.227864,0.512894 -0.323934,0.681213 -7.91e-4,0 -7.91e-4,6.89e-4 -0.0016,6.89e-4 -0.215162,0.110362 -0.58435,0.353313 -0.432705,0.539889 0.04446,0.05478 0.127032,0.07939 0.1707,0.07939 0.142118,0 0.283442,-0.142913 0.485106,-0.490663 0.204839,-0.06749 0.429528,-0.151647 0.627223,-0.184197 0.172288,0.09368 0.373952,0.154819 0.508131,0.154819 0.231834,0 0.247713,-0.254064 0.156408,-0.344574 -0.11036,-0.107979 -0.431117,-0.07702 -0.58435,-0.05717 z m 1.087715,-1.800687 -0.778074,-0.778075 c -0.03573,-0.03572 -0.08416,-0.05557 -0.134972,-0.05557 h -0.04764 v 1.01626 h 1.016261 v -0.04843 c 0,-0.05002 -0.01985,-0.09846 -0.05557,-0.134177 z m -0.58832,2.026965 c 0.03256,-0.02144 -0.01985,-0.09448 -0.339811,-0.07145 0.294557,0.125445 0.339811,0.07145 0.339811,0.07145 z" fill="#fff" stroke-width=".00793954"/></g></g></g></svg>
 
admin/images/banners/test.png DELETED
Binary file
admin/images/banners/text-sharebar.svg CHANGED
@@ -1,164 +1 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4
- <svg
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:cc="http://creativecommons.org/ns#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
- xmlns:svg="http://www.w3.org/2000/svg"
9
- xmlns="http://www.w3.org/2000/svg"
10
- xmlns:xlink="http://www.w3.org/1999/xlink"
11
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
13
- width="200"
14
- height="200"
15
- viewBox="0 0 52.916665 52.916668"
16
- version="1.1"
17
- id="svg5965"
18
- inkscape:version="0.92.0 r15299"
19
- sodipodi:docname="text-sharebar.svg">
20
- <defs
21
- id="defs5959" />
22
- <sodipodi:namedview
23
- id="base"
24
- pagecolor="#ffffff"
25
- bordercolor="#666666"
26
- borderopacity="1.0"
27
- inkscape:pageopacity="0.0"
28
- inkscape:pageshadow="2"
29
- inkscape:zoom="2.8"
30
- inkscape:cx="49.250323"
31
- inkscape:cy="171.3467"
32
- inkscape:document-units="px"
33
- inkscape:current-layer="g6913"
34
- showgrid="false"
35
- units="px"
36
- inkscape:window-width="1920"
37
- inkscape:window-height="1013"
38
- inkscape:window-x="-9"
39
- inkscape:window-y="-9"
40
- inkscape:window-maximized="1" />
41
- <metadata
42
- id="metadata5962">
43
- <rdf:RDF>
44
- <cc:Work
45
- rdf:about="">
46
- <dc:format>image/svg+xml</dc:format>
47
- <dc:type
48
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
49
- <dc:title />
50
- </cc:Work>
51
- </rdf:RDF>
52
- </metadata>
53
- <g
54
- inkscape:label="Layer 1"
55
- inkscape:groupmode="layer"
56
- id="layer1"
57
- transform="translate(0,-244.08332)"
58
- sodipodi:insensitive="true"
59
- style="display:none;opacity:1">
60
- <image
61
- sodipodi:absref="E:\xampp\htdocs\wordpress\wp-content\plugins\wp-socializer\admin\images\banners\text-sharebar.png"
62
- y="261.8671"
63
- x="1.6063993"
64
- id="image6791"
65
- xlink:href="file:///E:/xampp/htdocs/wordpress/wp-content/plugins/wp-socializer/admin/images/banners/text-sharebar.png"
66
- preserveAspectRatio="none"
67
- height="19.049999"
68
- width="50.270832" />
69
- </g>
70
- <g
71
- inkscape:groupmode="layer"
72
- id="layer4"
73
- inkscape:label="Layer 2"
74
- style="display:inline">
75
- <g
76
- id="g6937"
77
- transform="translate(-0.93544334)">
78
- <text
79
- id="text6807"
80
- y="30.661106"
81
- x="1.6704345"
82
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#d6d6d6;fill-opacity:1;stroke:none;stroke-width:0.26458332"
83
- xml:space="preserve"><tspan
84
- style="fill:#d6d6d6;fill-opacity:1;stroke-width:0.26458332"
85
- y="30.661106"
86
- x="1.6704345"
87
- id="tspan6805"
88
- sodipodi:role="line" /></text>
89
- <text
90
- id="text6813"
91
- y="42.354149"
92
- x="28.063299"
93
- style="font-style:normal;font-weight:normal;font-size:3.88055563px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#d6d6d6;fill-opacity:1;stroke:none;stroke-width:0.26458332"
94
- xml:space="preserve"><tspan
95
- style="fill:#d6d6d6;fill-opacity:1;stroke-width:0.26458332"
96
- y="42.354149"
97
- x="28.063299"
98
- id="tspan6811"
99
- sodipodi:role="line" /></text>
100
- <rect
101
- y="25.76899"
102
- x="6.1641383"
103
- height="3.8639438"
104
- width="36.104431"
105
- id="rect6825-0"
106
- style="opacity:1;fill:#d6d6d6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.3149665;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
107
- <g
108
- transform="translate(-0.23402956,4.4174774)"
109
- id="g6913">
110
- <rect
111
- style="opacity:1;fill:#4f0000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
112
- id="rect6862"
113
- width="36.415474"
114
- height="7.416729"
115
- x="9.1539812"
116
- y="10.019907"
117
- ry="1.2027129" />
118
- <path
119
- id="path5280"
120
- d="m 14.455341,13.170646 h -0.615583 v -0.403734 c 0,-0.151622 0.100485,-0.186973 0.171268,-0.186973 0.07062,0 0.434412,0 0.434412,0 v -0.666555 l -0.598273,-0.0024 c -0.664139,0 -0.815277,0.497145 -0.815277,0.815286 v 0.444302 h -0.384086 v 0.686856 h 0.384086 c 0,0.881466 0,1.943535 0,1.943535 h 0.80787 c 0,0 0,-1.072542 0,-1.943535 h 0.545127 z"
121
- inkscape:connector-curvature="0"
122
- style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.08052117" />
123
- <path
124
- id="path5290"
125
- d="m 23.529116,12.548081 c -0.153307,0.06817 -0.318297,0.11411 -0.491412,0.134681 0.176756,-0.105814 0.312285,-0.27343 0.376198,-0.473378 -0.165327,0.09811 -0.348347,0.169304 -0.543304,0.207738 -0.156016,-0.166258 -0.3784,-0.270215 -0.624487,-0.270215 -0.472449,0 -0.855505,0.383055 -0.855505,0.855589 0,0.06696 0.0076,0.132229 0.02218,0.194964 -0.711087,-0.03577 -1.341584,-0.376286 -1.76358,-0.893942 -0.07365,0.126297 -0.115806,0.273261 -0.115806,0.430202 0,0.296799 0.151021,0.558718 0.380601,0.712105 -0.140187,-0.0048 -0.27216,-0.04301 -0.387543,-0.107084 -8.5e-5,0.0032 -8.5e-5,0.0072 -8.5e-5,0.01085 0,0.414463 0.294933,0.760185 0.68637,0.838917 -0.07179,0.01953 -0.147382,0.02998 -0.225432,0.02998 -0.05519,0 -0.10878,-0.0056 -0.161011,-0.01544 0.108949,0.339887 0.424875,0.587328 0.799211,0.594193 -0.292815,0.22949 -0.661649,0.366286 -1.062568,0.366286 -0.06899,0 -0.137138,-0.004 -0.204098,-0.01206 0.378739,0.242875 0.828416,0.384413 1.311533,0.384413 1.573788,0 2.434288,-1.303661 2.434288,-2.434288 0,-0.03706 -7.44e-4,-0.07404 -0.0024,-0.110815 0.167105,-0.12038 0.312201,-0.271139 0.426822,-0.442734 z"
126
- inkscape:connector-curvature="0"
127
- style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.08465323" />
128
- <path
129
- id="path6891"
130
- d="m 39.015992,13.876376 c -0.332293,0 -2.044282,-1.274556 -2.044282,-1.274556 v -0.140045 c 0,-0.173526 0.152449,-0.314357 0.340629,-0.314357 h 3.407305 c 0.188349,0 0.340798,0.140831 0.340798,0.314357 l -0.0027,0.157177 c 0,0 -1.693445,1.257424 -2.041729,1.257424 z m 0,0.432239 c 0.364277,0 2.041729,-1.218129 2.041729,-1.218129 l 0.0027,1.886136 c 0,0.173524 -0.152449,0.314356 -0.340798,0.314356 h -3.407306 c -0.188009,0 -0.340628,-0.140832 -0.340628,-0.314356 l 0.0027,-1.886136 c -1.7e-4,0 1.709266,1.218129 2.041559,1.218129 z"
131
- inkscape:connector-curvature="0"
132
- style="clip-rule:evenodd;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke-width:0.16353256" />
133
- <rect
134
- style="opacity:1;fill:#4f0000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
135
- id="rect6903"
136
- width="2.1497395"
137
- height="2.1497395"
138
- x="30.359369"
139
- y="-7.8367906"
140
- ry="0"
141
- transform="rotate(45)" />
142
- <path
143
- id="path7484"
144
- d="m 28.949075,15.329296 h -0.8228 v -2.649672 h 0.8228 z m -0.411843,-3.011112 c -0.263048,0 -0.476498,-0.217927 -0.476498,-0.481034 0,-0.263107 0.21345,-0.476604 0.476498,-0.476604 0.263049,0 0.476499,0.213497 0.476499,0.476604 0,0.263107 -0.21345,0.481034 -0.476499,0.481034 z m 3.491369,3.011112 h -0.82103 v -1.289844 c 0,-0.307401 -0.0062,-0.701618 -0.427785,-0.701618 -0.427786,0 -0.493327,0.333977 -0.493327,0.679471 v 1.311991 h -0.821915 v -2.649672 h 0.789145 v 0.361439 h 0.01151 c 0.109825,-0.208182 0.378188,-0.42788 0.778517,-0.42788 0.832544,0 0.985767,0.54836 0.985767,1.260609 v 1.455504 z"
145
- inkscape:connector-curvature="0"
146
- style="fill:#ffffff;fill-opacity:1;stroke-width:0.00885783" />
147
- </g>
148
- <rect
149
- y="31.869553"
150
- x="6.0688591"
151
- height="2.7948656"
152
- width="27.885893"
153
- id="rect6825-0-1"
154
- style="display:inline;opacity:1;fill:#d6d6d6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.23541898;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
155
- <rect
156
- y="37.348576"
157
- x="6.0688891"
158
- height="2.7948658"
159
- width="27.885893"
160
- id="rect6825-0-1-6"
161
- style="display:inline;opacity:1;fill:#d6d6d6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.23541898;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
162
- </g>
163
- </g>
164
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="250" height="100" viewBox="0 0 66.145831 26.458334"><g><g transform="translate(-0.93544334)"><text y="30.661106" x="1.6704345" style="line-height:5.64885px" font-size="3.88056" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#d6d6d6" stroke-width=".264583"/><text y="42.354149" x="28.063299" style="line-height:5.64885px" font-size="3.88056" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#d6d6d6" stroke-width=".264583"/><g transform="translate(-0.8597052,0.11204452)"><g transform="translate(1.6509641,0.85044609)"><rect y="13.382335" x="15.322048" height="3.5390246" width="33.068405" fill="#e7e7e7" stroke-width=".28848" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.91590993,0,0,0.91590993,-0.23147659,3.3465564)"><rect width="36.415474" height="7.416729" x="19.737314" y="-.3744382" ry="1.2027129" fill="#4f0000" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><path d="m 25.038674,2.7763008 h -0.615583 v -0.403734 c 0,-0.151622 0.100485,-0.186973 0.171268,-0.186973 0.07062,0 0.434412,0 0.434412,0 v -0.666555 l -0.598273,-0.0024 c -0.664139,0 -0.815277,0.497145 -0.815277,0.815286 v 0.444302 h -0.384086 v 0.686856 h 0.384086 c 0,0.881466 0,1.943535 0,1.943535 h 0.80787 c 0,0 0,-1.072542 0,-1.943535 h 0.545127 z" fill="#fff" stroke-width=".0805212"/><path d="m 34.112449,2.1537358 c -0.153307,0.06817 -0.318297,0.11411 -0.491412,0.134681 0.176756,-0.105814 0.312285,-0.27343 0.376198,-0.473378 -0.165327,0.09811 -0.348347,0.169304 -0.543304,0.207738 -0.156016,-0.166258 -0.3784,-0.270215 -0.624487,-0.270215 -0.472449,0 -0.855505,0.383055 -0.855505,0.855589 0,0.06696 0.0076,0.132229 0.02218,0.194964 -0.711087,-0.03577 -1.341584,-0.376286 -1.76358,-0.893942 -0.07365,0.126297 -0.115806,0.273261 -0.115806,0.430202 0,0.296799 0.151021,0.558718 0.380601,0.712105 -0.140187,-0.0048 -0.27216,-0.04301 -0.387543,-0.107084 -8.5e-5,0.0032 -8.5e-5,0.0072 -8.5e-5,0.01085 0,0.414463 0.294933,0.760185 0.68637,0.838917 -0.07179,0.01953 -0.147382,0.02998 -0.225432,0.02998 -0.05519,0 -0.10878,-0.0056 -0.161011,-0.01544 0.108949,0.339887 0.424875,0.587328 0.799211,0.594193 -0.292815,0.22949 -0.661649,0.366286 -1.062568,0.366286 -0.06899,0 -0.137138,-0.004 -0.204098,-0.01206 0.378739,0.242875 0.828416,0.384413 1.311533,0.384413 1.573788,0 2.434288,-1.303661 2.434288,-2.434288 0,-0.03706 -7.44e-4,-0.07404 -0.0024,-0.110815 0.167105,-0.12038 0.312201,-0.271139 0.426822,-0.442734 z" fill="#fff" stroke-width=".0846532"/><path d="m 49.599325,3.4820308 c -0.332293,0 -2.044282,-1.274556 -2.044282,-1.274556 v -0.140045 c 0,-0.173526 0.152449,-0.314357 0.340629,-0.314357 h 3.407305 c 0.188349,0 0.340798,0.140831 0.340798,0.314357 l -0.0027,0.157177 c 0,0 -1.693445,1.257424 -2.041729,1.257424 z m 0,0.432239 c 0.364277,0 2.041729,-1.218129 2.041729,-1.218129 l 0.0027,1.886136 c 0,0.173524 -0.152449,0.314356 -0.340798,0.314356 H 47.89565 c -0.188009,0 -0.340628,-0.140832 -0.340628,-0.314356 l 0.0027,-1.886136 c -1.7e-4,0 1.709266,1.218129 2.041559,1.218129 z" clip-rule="evenodd" fill="#fff" fill-rule="evenodd" stroke-width=".163533"/><rect width="2.1497395" height="2.1497395" x="30.493004" y="-22.67025" ry="0" transform="rotate(45)" fill="#4f0000" stroke-width=".264583" stroke-linecap="round" stroke-linejoin="round"/><path d="m 39.532408,4.9349508 h -0.8228 v -2.649672 h 0.8228 z m -0.411843,-3.011112 c -0.263048,0 -0.476498,-0.217927 -0.476498,-0.481034 0,-0.263107 0.21345,-0.47660399 0.476498,-0.47660399 0.263049,0 0.476499,0.21349699 0.476499,0.47660399 0,0.263107 -0.21345,0.481034 -0.476499,0.481034 z m 3.491369,3.011112 h -0.82103 v -1.289844 c 0,-0.307401 -0.0062,-0.701618 -0.427785,-0.701618 -0.427786,0 -0.493327,0.333977 -0.493327,0.679471 v 1.311991 h -0.821915 v -2.649672 h 0.789145 v 0.361439 h 0.01151 c 0.109825,-0.208182 0.378188,-0.42788 0.778517,-0.42788 0.832544,0 0.985767,0.54836 0.985767,1.260609 v 1.455504 z" fill="#fff" stroke-width=".00885783"/></g><rect y="18.969902" x="15.234782" height="2.5598452" width="25.540966" fill="#e7e7e7" stroke-width=".215623" stroke-linecap="round" stroke-linejoin="round"/><rect width="13.724923" height="3.5390248" x="27.629179" y="13.382335" fill="#bcbcbc" stroke-width=".28848" stroke-linecap="round" stroke-linejoin="round"/></g></g></g></g></svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/images/banners/twitter-widget.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.145832 26.458334" height="100" width="250"><g><rect height="26.458334" width="66.145836" fill="#e5f7ff" stroke-width="2.74788" stroke-linejoin="round"/></g><g/><g transform="translate(0,-249.37498)"><g transform="translate(-2.817172,-0.19034617)"><g transform="translate(-1.0768462)"><g transform="translate(-0.10161051)"><g transform="translate(0,-0.08334101)"><rect y="258.6445" x="17.328281" height="8.4666662" width="8.4666662" ry="4.2333331" fill="#1da1f2" stroke-width=".23472" stroke-linecap="round" stroke-linejoin="round"/><path d="m 23.585,261.78445 c -0.134067,0.0594 -0.278337,0.0999 -0.429722,0.11772 0.154581,-0.0924 0.273083,-0.23911 0.328974,-0.41396 -0.144574,0.0859 -0.304618,0.14801 -0.475104,0.18175 -0.136425,-0.14532 -0.330898,-0.23629 -0.546094,-0.23629 -0.413141,0 -0.748112,0.33497 -0.748112,0.74817 0,0.0587 0.0065,0.11561 0.01938,0.17044 -0.621824,-0.0312 -1.173173,-0.32906 -1.542196,-0.78172 -0.0644,0.11042 -0.101265,0.23895 -0.101265,0.3762 0,0.25953 0.132073,0.48857 0.332823,0.62271 -0.122602,-0.006 -0.237994,-0.0376 -0.338896,-0.0935 -7.3e-5,0.002 -7.3e-5,0.006 -7.3e-5,0.01 0,0.36242 0.25791,0.66474 0.60021,0.7336 -0.06277,0.0173 -0.128872,0.0263 -0.197133,0.0263 -0.04826,0 -0.09513,-0.004 -0.140796,-0.0134 0.09528,0.29722 0.37154,0.51361 0.698884,0.51959 -0.256058,0.20071 -0.57859,0.32032 -0.929181,0.32032 -0.06033,0 -0.119919,-0.004 -0.178469,-0.0115 0.331196,0.21238 0.724425,0.33615 1.146895,0.33615 1.376227,0 2.128708,-1.14 2.128708,-2.12872 0,-0.0324 -6.35e-4,-0.0648 -0.0019,-0.0968 0.146126,-0.10525 0.273011,-0.23709 0.373242,-0.38715 z" fill="#fff" stroke-width=".0740264"/></g><rect ry=".39289305" y="262.40161" x="28.66321" height=".78578609" width="2.7857862" fill="#e1e1e1" stroke-width=".214214" stroke-linejoin="round"/><g transform="matrix(0.99162562,0,0,0.99162562,21.33184,-20.442387)"><rect ry=".47837946" y="278.36874" x="13.782822" height="14.520201" width="21.870955" fill="#fff" stroke="#1da1f2" stroke-width=".243344" stroke-linecap="round" stroke-linejoin="round"/><path d="m 13.660023,281.05225 h 21.782466 v 0.13364 -0.0668" fill="none" stroke="#3e5b98" stroke-width=".264583"/><path d="m 13.810361,278.77743 c 0.124351,-0.20316 0.293379,-0.29482 0.668174,-0.39788 h 10.30658 l 10.473627,0.0256 0.400903,0.40302 0.116931,3.06264 H 24.785116 13.793657 c -0.304578,-0.90133 -0.0061,-2.05506 0.0167,-3.09338 z" fill="#1da1f2" stroke-width=".0815901" stroke-linecap="round" stroke-linejoin="round"/><rect width="12.289192" height=".81697166" x="19.80607" y="283.41849" ry="0" fill="#e1e1e1" stroke-width=".0586081" stroke-linecap="round" stroke-linejoin="round"/><rect width="7.6428947" height=".36531568" x="19.830486" y="284.76871" ry="0" fill="#e1e1e1" stroke-width=".0309069" stroke-linecap="round" stroke-linejoin="round"/><rect width="7.6428947" height=".36531568" x="19.816807" y="285.7211" ry="0" fill="#e1e1e1" stroke-width=".0309069" stroke-linecap="round" stroke-linejoin="round"/><circle r="1.5111734" cy="284.79425" cx="16.951778" fill="#e1e1e1" stroke-width=".0999239" stroke-linecap="round" stroke-linejoin="round"/><rect width="12.289192" height=".81697166" x="19.794212" y="287.90561" ry="0" fill="#e1e1e1" stroke-width=".0586081" stroke-linecap="round" stroke-linejoin="round"/><rect width="7.6428947" height=".36531568" x="19.818628" y="289.25583" ry="0" fill="#e1e1e1" stroke-width=".0309069" stroke-linecap="round" stroke-linejoin="round"/><rect width="7.6428947" height=".36531568" x="19.804949" y="290.20822" ry="0" fill="#e1e1e1" stroke-width=".0309069" stroke-linecap="round" stroke-linejoin="round"/><circle r="1.5111734" cy="289.28137" cx="16.93992" fill="#e1e1e1" stroke-width=".0999239" stroke-linecap="round" stroke-linejoin="round"/></g></g></g></g></g></svg>
admin/images/banners/ufw.png DELETED
Binary file
admin/images/banners/ultimate-floating-widgets.png ADDED
Binary file
admin/images/banners/widgets-big.png DELETED
Binary file
admin/images/banners/widgets.svg DELETED
@@ -1,258 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4
- <svg
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:cc="http://creativecommons.org/ns#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
- xmlns:svg="http://www.w3.org/2000/svg"
9
- xmlns="http://www.w3.org/2000/svg"
10
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
- width="180"
13
- height="180"
14
- viewBox="0 0 47.624999 47.625001"
15
- version="1.1"
16
- id="svg5682"
17
- inkscape:version="0.92.0 r15299"
18
- sodipodi:docname="widgets.svg"
19
- inkscape:export-filename="E:\Skyey\WordPress\Wordpress Plugins\WP Socializer\banners\widgets.png"
20
- inkscape:export-xdpi="96"
21
- inkscape:export-ydpi="96">
22
- <defs
23
- id="defs5676" />
24
- <sodipodi:namedview
25
- id="base"
26
- pagecolor="#ffffff"
27
- bordercolor="#666666"
28
- borderopacity="1.0"
29
- inkscape:pageopacity="0.0"
30
- inkscape:pageshadow="2"
31
- inkscape:zoom="2.8"
32
- inkscape:cx="65.690567"
33
- inkscape:cy="43.43634"
34
- inkscape:document-units="mm"
35
- inkscape:current-layer="g6252"
36
- showgrid="false"
37
- units="px"
38
- inkscape:window-width="1920"
39
- inkscape:window-height="1013"
40
- inkscape:window-x="-9"
41
- inkscape:window-y="-9"
42
- inkscape:window-maximized="1" />
43
- <metadata
44
- id="metadata5679">
45
- <rdf:RDF>
46
- <cc:Work
47
- rdf:about="">
48
- <dc:format>image/svg+xml</dc:format>
49
- <dc:type
50
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
51
- <dc:title />
52
- </cc:Work>
53
- </rdf:RDF>
54
- </metadata>
55
- <g
56
- inkscape:label="Layer 1"
57
- inkscape:groupmode="layer"
58
- id="layer1"
59
- transform="translate(0,-249.37498)">
60
- <g
61
- id="g6252"
62
- transform="translate(0.13363476,-3.4076865)">
63
- <g
64
- id="g6429"
65
- transform="matrix(0.86102718,0,0,0.86102718,3.271204,32.871173)">
66
- <rect
67
- style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#3e5b98;stroke-width:0.24332862;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
68
- id="rect6229"
69
- width="21.870955"
70
- height="14.5202"
71
- x="13.564557"
72
- y="260.76822"
73
- ry="0.47837946" />
74
- <path
75
- style="fill:none;stroke:#3e5b98;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
76
- d="m 13.441758,263.45172 h 21.782465 v 0.13364 -0.0668"
77
- id="path6233"
78
- inkscape:connector-curvature="0" />
79
- <path
80
- style="opacity:1;fill:#3e5b98;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.08159009;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
81
- d="m 13.592096,261.1769 c 0.124351,-0.20316 0.293379,-0.29482 0.668174,-0.39788 h 10.30658 l 10.473626,0.0256 0.400903,0.40302 0.116931,3.06264 H 24.566851 13.575392 Z"
82
- id="path6247"
83
- inkscape:connector-curvature="0"
84
- sodipodi:nodetypes="ccccccccc" />
85
- <rect
86
- ry="0"
87
- y="266.58337"
88
- x="15.288326"
89
- height="1.3275393"
90
- width="12.289192"
91
- id="rect6254"
92
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.07470983;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
93
- <rect
94
- ry="0"
95
- y="268.90109"
96
- x="15.290036"
97
- height="0.713328"
98
- width="9.8323469"
99
- id="rect6254-2"
100
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.04898528;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
101
- <rect
102
- ry="0"
103
- y="270.60788"
104
- x="15.307755"
105
- height="0.713328"
106
- width="9.8323469"
107
- id="rect6254-2-7"
108
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.04898528;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
109
- </g>
110
- <g
111
- id="g6438-7"
112
- transform="matrix(0.85064727,0,0,0.85064727,3.354606,35.907624)">
113
- <rect
114
- style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#4da7de;stroke-width:0.24334411;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
115
- id="rect6229-3-9"
116
- width="21.870955"
117
- height="14.520201"
118
- x="13.782822"
119
- y="278.36874"
120
- ry="0.47837946" />
121
- <path
122
- style="fill:none;stroke:#3e5b98;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
123
- d="m 13.660023,281.05225 h 21.782466 v 0.13364 -0.0668"
124
- id="path6233-6-9"
125
- inkscape:connector-curvature="0" />
126
- <path
127
- style="opacity:1;fill:#4da7de;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.08159009;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
128
- d="m 13.810361,278.77743 c 0.124351,-0.20316 0.293379,-0.29482 0.668174,-0.39788 h 10.30658 l 10.473627,0.0256 0.400903,0.40302 0.116931,3.06264 H 24.785116 13.793657 c -0.304578,-0.90133 -0.0061,-2.05506 0.0167,-3.09338 z"
129
- id="path6247-2-0"
130
- inkscape:connector-curvature="0"
131
- sodipodi:nodetypes="ccccccccc" />
132
- <rect
133
- ry="0"
134
- y="283.41849"
135
- x="19.80607"
136
- height="0.81697166"
137
- width="12.289192"
138
- id="rect6254-1-80"
139
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.05860809;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
140
- <rect
141
- ry="0"
142
- y="284.76871"
143
- x="19.830486"
144
- height="0.36531568"
145
- width="7.6428947"
146
- id="rect6254-1-80-3"
147
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.0309069;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
148
- <rect
149
- ry="0"
150
- y="285.7211"
151
- x="19.816807"
152
- height="0.36531568"
153
- width="7.6428947"
154
- id="rect6254-1-80-3-9"
155
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.0309069;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
156
- <circle
157
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.09992391;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
158
- id="path6506"
159
- cx="16.951778"
160
- cy="284.79425"
161
- r="1.5111734" />
162
- <rect
163
- ry="0"
164
- y="287.90561"
165
- x="19.794212"
166
- height="0.81697166"
167
- width="12.289192"
168
- id="rect6254-1-80-0"
169
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.05860809;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
170
- <rect
171
- ry="0"
172
- y="289.25583"
173
- x="19.818628"
174
- height="0.36531568"
175
- width="7.6428947"
176
- id="rect6254-1-80-3-4"
177
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.0309069;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
178
- <rect
179
- ry="0"
180
- y="290.20822"
181
- x="19.804949"
182
- height="0.36531568"
183
- width="7.6428947"
184
- id="rect6254-1-80-3-9-1"
185
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.0309069;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
186
- <circle
187
- style="opacity:1;fill:#e1e1e1;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.09992392;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
188
- id="path6506-0"
189
- cx="16.93992"
190
- cy="289.28137"
191
- r="1.5111734" />
192
- </g>
193
- <g
194
- id="g8220"
195
- transform="translate(0,30.162513)">
196
- <rect
197
- y="261.86063"
198
- x="15.207163"
199
- height="4.2706032"
200
- width="4.2706032"
201
- id="rect7559"
202
- style="opacity:1;fill:#3d5b98;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.11839294;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
203
- <rect
204
- y="261.86063"
205
- x="19.98321"
206
- height="4.2706032"
207
- width="4.2706032"
208
- id="rect7559-7"
209
- style="opacity:1;fill:#4da7de;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.11839294;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
210
- <rect
211
- y="261.86063"
212
- x="24.759256"
213
- height="4.2706032"
214
- width="4.2706032"
215
- id="rect7559-7-8"
216
- style="opacity:1;fill:#cb2027;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.11839294;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
217
- <rect
218
- y="261.86063"
219
- x="29.535301"
220
- height="4.2706032"
221
- width="4.2706032"
222
- id="rect7559-7-8-8"
223
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.11839294;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
224
- <path
225
- style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.0405358"
226
- inkscape:connector-curvature="0"
227
- d="m 17.820782,263.82318 h -0.309896 v -0.20325 c 0,-0.0763 0.05059,-0.0941 0.08622,-0.0941 0.03555,0 0.218691,0 0.218691,0 v -0.33555 l -0.301182,-9.6e-4 c -0.334339,0 -0.410425,0.25028 -0.410425,0.41043 v 0.22367 h -0.193356 v 0.34578 h 0.193356 c 0,0.44374 0,0.97841 0,0.97841 h 0.406696 c 0,0 0,-0.53994 0,-0.97841 h 0.274427 z"
228
- id="path5280" />
229
- <path
230
- style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.03861259"
231
- inkscape:connector-curvature="0"
232
- d="m 23.104415,263.5978 c -0.06993,0.031 -0.145182,0.0521 -0.224145,0.0614 0.08063,-0.0482 0.142441,-0.12472 0.171594,-0.21592 -0.07541,0.0448 -0.15889,0.0772 -0.247816,0.0948 -0.07116,-0.0758 -0.172598,-0.12325 -0.284845,-0.12325 -0.215496,0 -0.390218,0.17472 -0.390218,0.39025 0,0.0306 0.0034,0.0603 0.01011,0.0889 -0.324346,-0.0163 -0.611932,-0.17164 -0.804416,-0.40775 -0.03359,0.0576 -0.05282,0.12464 -0.05282,0.19623 0,0.13537 0.06889,0.25484 0.173602,0.32481 -0.06395,-0.003 -0.124139,-0.0196 -0.17677,-0.0488 -3.8e-5,9.6e-4 -3.8e-5,0.003 -3.8e-5,0.005 0,0.18904 0.134527,0.34673 0.313072,0.38265 -0.03274,0.009 -0.06722,0.0137 -0.102825,0.0137 -0.02517,0 -0.04962,-0.002 -0.07344,-0.007 0.0497,0.15503 0.193797,0.2679 0.364541,0.27102 -0.133561,0.10469 -0.301795,0.16708 -0.484665,0.16708 -0.03147,0 -0.06255,-0.002 -0.09309,-0.006 0.172753,0.11078 0.377863,0.17534 0.598225,0.17534 0.717846,0 1.110343,-0.59463 1.110343,-1.11035 0,-0.0169 -3.32e-4,-0.0338 -10e-4,-0.0505 0.07622,-0.0549 0.142404,-0.12367 0.194685,-0.20194 z"
233
- id="path5290" />
234
- <path
235
- style="clip-rule:evenodd;display:inline;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke-width:0.0771907"
236
- inkscape:connector-curvature="0"
237
- d="m 31.871304,264.31595 c -0.156849,0 -0.964943,-0.60161 -0.964943,-0.60161 v -0.0661 c 0,-0.0818 0.07196,-0.14837 0.160784,-0.14837 h 1.608319 c 0.08891,0 0.160862,0.0665 0.160862,0.14837 l -0.0012,0.0742 c 0,0 -0.799341,0.59353 -0.963739,0.59353 z m 0,0.20403 c 0.171947,0 0.963739,-0.57498 0.963739,-0.57498 l 0.0012,0.8903 c 0,0.0818 -0.07196,0.14838 -0.160864,0.14838 h -1.608327 c -0.08874,0 -0.160783,-0.0665 -0.160783,-0.14838 l 0.0012,-0.8903 c -8e-5,0 0.806809,0.57498 0.963658,0.57498 z"
238
- id="path6891" />
239
- <path
240
- style="display:inline;fill:#ffffff;fill-opacity:1;stroke-width:0.0038267"
241
- inkscape:connector-curvature="0"
242
- d="m 28.003355,264.13821 c 0,0.52425 -0.424764,0.94902 -0.949022,0.94902 -0.09796,0 -0.192101,-0.0149 -0.28088,-0.0425 0.03865,-0.0631 0.09643,-0.16647 0.117862,-0.24874 0.01148,-0.0444 0.05893,-0.22577 0.05893,-0.22577 0.031,0.0589 0.121307,0.10905 0.217356,0.10905 0.286238,0 0.492497,-0.26327 0.492497,-0.59046 0,-0.31341 -0.256006,-0.54798 -0.585103,-0.54798 -0.409457,0 -0.627196,0.27476 -0.627196,0.57439 0,0.13929 0.07423,0.31264 0.192483,0.36774 0.01799,0.009 0.02756,0.005 0.03176,-0.0126 0.0031,-0.013 0.01913,-0.0777 0.0264,-0.10753 0.0023,-0.01 0.0011,-0.0179 -0.0065,-0.0272 -0.03866,-0.0478 -0.07003,-0.13508 -0.07003,-0.21659 0,-0.20932 0.158425,-0.41176 0.42859,-0.41176 0.233046,0 0.396447,0.15882 0.396447,0.38612 0,0.25677 -0.129725,0.43472 -0.298483,0.43472 -0.09299,0 -0.163017,-0.0769 -0.140439,-0.17145 0.02678,-0.11288 0.07845,-0.23457 0.07845,-0.31607 0,-0.0727 -0.03904,-0.13356 -0.120159,-0.13356 -0.09529,0 -0.17182,0.0983 -0.17182,0.23037 0,0.0842 0.02832,0.14082 0.02832,0.14082 0,0 -0.09375,0.39721 -0.110974,0.47146 -0.01913,0.0819 -0.01148,0.19745 -0.0034,0.27245 -0.352822,-0.13814 -0.603088,-0.48178 -0.603088,-0.88396 0,-0.52426 0.424764,-0.94903 0.949022,-0.94903 0.524259,0 0.949023,0.42477 0.949023,0.94903 z"
243
- id="path5074" />
244
- <text
245
- id="text8208"
246
- y="259.7493"
247
- x="14.972466"
248
- style="font-style:normal;font-weight:normal;font-size:2.82222223px;line-height:5.64885426px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
249
- xml:space="preserve"><tspan
250
- style="stroke-width:0.26458332"
251
- y="259.7493"
252
- x="14.972466"
253
- id="tspan8206"
254
- sodipodi:role="line">Follow me</tspan></text>
255
- </g>
256
- </g>
257
- </g>
258
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/images/icons/add.png DELETED
Binary file
admin/images/icons/anpn-thumb.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 21.166666 21.166667"><g transform="translate(0 -275.833)"><rect width="20.484" height="20.484" x=".341" y="276.175" rx="1.21" ry="0" fill="#e60042" stroke="#000" stroke-width=".682" stroke-miterlimit="13.7"/><path d="M4.91 280.864l4.31-2.272.034 4.21-4.076-1.805zM15.89 280.804l-4.308-2.272-.034 4.21 4.076-1.804z" fill="#fff" stroke="#fff" stroke-width=".265"/><text style="line-height:6.61458254px" x="10.513" y="288.447" font-size="10.583" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#fff" stroke-width=".265"><tspan x="10.513" y="288.447" style="text-align:center" font-size="3.881" text-anchor="middle">POST</tspan></text><text style="line-height:6.61458302px" x="10.904" y="293.266" font-size="10.583" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#fff" stroke-width=".265"><tspan x="10.904" y="293.266" style="-inkscape-font-specification:'Roboto Condensed, Bold Condensed';text-align:center" font-weight="bold" font-stretch="condensed" font-size="3.528" font-family="Roboto Condensed" text-anchor="middle">NAVIGATOR</tspan></text></g></svg>
 
admin/images/icons/coffee.svg DELETED
@@ -1,99 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- xmlns:dc="http://purl.org/dc/elements/1.1/"
4
- xmlns:cc="http://creativecommons.org/ns#"
5
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
- xmlns:svg="http://www.w3.org/2000/svg"
7
- xmlns="http://www.w3.org/2000/svg"
8
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
- height="128"
11
- version="1.1"
12
- viewBox="0 0 128 128"
13
- width="128"
14
- id="svg4495"
15
- sodipodi:docname="1494109658_food-drink-cup-coffee-tea-drink-outline-stroke.svg"
16
- inkscape:version="0.92.0 r15299">
17
- <metadata
18
- id="metadata4499">
19
- <rdf:RDF>
20
- <cc:Work
21
- rdf:about="">
22
- <dc:format>image/svg+xml</dc:format>
23
- <dc:type
24
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
25
- <dc:title></dc:title>
26
- </cc:Work>
27
- </rdf:RDF>
28
- </metadata>
29
- <sodipodi:namedview
30
- pagecolor="#ffffff"
31
- bordercolor="#666666"
32
- borderopacity="1"
33
- objecttolerance="10"
34
- gridtolerance="10"
35
- guidetolerance="10"
36
- inkscape:pageopacity="0"
37
- inkscape:pageshadow="2"
38
- inkscape:window-width="1920"
39
- inkscape:window-height="1013"
40
- id="namedview4497"
41
- showgrid="false"
42
- inkscape:zoom="2.2265625"
43
- inkscape:cx="60.701019"
44
- inkscape:cy="100.20618"
45
- inkscape:window-x="-9"
46
- inkscape:window-y="-9"
47
- inkscape:window-maximized="1"
48
- inkscape:current-layer="Layer_2" />
49
- <desc
50
- id="desc4487" />
51
- <defs
52
- id="defs4489" />
53
- <g
54
- id="miu"
55
- style="fill:none;fill-rule:evenodd;stroke:none;stroke-width:1"
56
- transform="matrix(5.5327011,0,0,5.5327011,-1.3569238,10.877533)">
57
- <g
58
- id="Artboard-1"
59
- transform="translate(-503,-515)">
60
- <g
61
- id="slice"
62
- transform="translate(215,119)" />
63
- <path
64
- d="m 521.02703,523.35506 c 0.009,-0.39125 0.004,-0.77169 -0.0131,-1.1361 C 521.00824,522.09555 521,521.50003 521,521.5 v 0 c 0,-1.28644 -2.85422,-2 -6.5,-2 -3.64578,0 -6.5,0.71356 -6.5,2 0,10e-6 -0.008,0.59555 -0.014,0.71896 -0.0659,1.41455 0.0458,3.07056 0.4816,4.66302 0.86614,3.1649 2.79873,5.11802 6.03238,5.11802 2.27915,0 3.91196,-0.97026 4.98059,-2.65121 2.90061,-0.0524 6.22639,-2.61697 5.22565,-4.88902 -0.40287,-0.91465 -1.1392,-1.36254 -2.05478,-1.39971 -0.50445,-0.0205 -1.02662,0.0826 -1.542,0.26513 -0.0281,0.01 -0.0556,0.0199 -0.0824,0.0299 z m -0.0645,1.11607 c -0.0739,0.79385 -0.21104,1.61037 -0.4301,2.41085 -0.138,0.50424 -0.30306,0.97772 -0.49615,1.41744 2.14097,-0.32376 4.32372,-2.145 3.75485,-3.43656 -0.24026,-0.54547 -0.62779,-0.7812 -1.18019,-0.80363 -0.35902,-0.0146 -0.76224,0.065 -1.16757,0.20859 -0.21942,0.0777 -0.38848,0.1545 -0.48084,0.20331 z m -0.9347,-1.83112 c 0.0265,1.23414 -0.094,2.64091 -0.45994,3.97801 C 518.80907,529.39062 517.21661,531 514.5,531 c -2.71661,0 -4.30907,-1.60938 -5.06784,-4.38198 -0.36593,-1.3371 -0.48646,-2.74387 -0.45994,-3.97801 1.13669,0.56058 3.16617,0.85999 5.52778,0.85999 2.36161,0 4.39109,-0.29941 5.52778,-0.85999 v 0 z M 509,521.5 c 0,-0.37041 2.51836,-1 5.5,-1 2.98164,0 5.5,0.62959 5.5,1 0,0.37041 -2.51836,1 -5.5,1 -2.98164,0 -5.5,-0.62959 -5.5,-1 z m -4.5,11.5 c 0,0 -0.5,0 -0.5,0.5 0,0.5 0.5,0.5 0.5,0.5 h 21 c 0,0 0.5,0 0.5,-0.5 0,-0.5 -0.5,-0.5 -0.5,-0.5 z"
65
- id="food-drink-cup-coffee-tea-drink-outline-stroke"
66
- inkscape:connector-curvature="0"
67
- style="fill:#000000" />
68
- </g>
69
- </g>
70
- <g
71
- id="g4561"
72
- transform="translate(180.23158,1.9807019)">
73
- <g
74
- id="Layer_2"
75
- transform="translate(10.329825,-94.315789)">
76
- <g
77
- id="g4534"
78
- transform="matrix(2.4713604,0,0,2.4713604,-210.98683,57.600819)">
79
- <path
80
- id="path4532"
81
- d="m 33.114,51.204 v -1.315 c -0.927,-0.041 -1.827,-0.29 -2.353,-0.595 l 0.415,-1.619 c 0.582,0.318 1.398,0.608 2.297,0.608 0.789,0 1.329,-0.304 1.329,-0.857 0,-0.525 -0.443,-0.857 -1.467,-1.204 -1.481,-0.498 -2.491,-1.19 -2.491,-2.532 0,-1.219 0.858,-2.174 2.339,-2.464 V 39.91 h 1.356 v 1.219 c 0.927,0.041 1.55,0.235 2.007,0.457 l -0.401,1.563 c -0.36,-0.152 -0.997,-0.471 -1.993,-0.471 -0.899,0 -1.19,0.388 -1.19,0.774 0,0.457 0.484,0.748 1.661,1.191 1.647,0.58 2.311,1.342 2.311,2.588 0,1.231 -0.872,2.283 -2.463,2.561 v 1.411 h -1.357 z"
82
- inkscape:connector-curvature="0"
83
- style="fill:#92278f" />
84
- </g>
85
- <path
86
- id="path4528-3"
87
- d="m -133.27695,122.08016 c 4.05154,0 8.24277,-3.06272 8.24277,-8.18852 0,-2.81586 -1.89351,-4.22515 -3.41673,-5.35909 -1.48389,-1.10275 -2.32214,-1.7945 -2.32214,-3.18209 0,-1.45269 0.95218,-2.16073 2.50389,-3.19294 1.44184,-0.96032 3.23498,-2.15259 3.23498,-4.492359 0,-0.750083 -0.60765,-1.356389 -1.35638,-1.356389 -0.74873,0 -1.35639,0.606306 -1.35639,1.356389 0,0.802982 -0.61716,1.296708 -2.02508,2.232616 -1.56664,1.044423 -3.7138,2.471343 -3.7138,5.452683 0,2.81586 1.89351,4.22515 3.41674,5.35909 1.48389,1.10275 2.32214,1.79451 2.32214,3.18209 0,3.55645 -2.84841,5.47574 -5.53,5.47574 -0.74872,0 -1.35638,0.60631 -1.35638,1.35639 0,0.75009 0.60766,1.35639 1.35638,1.35639 z"
88
- inkscape:connector-curvature="0"
89
- style="fill:#ffcf06;fill-opacity:1;stroke-width:1.35638893" />
90
- <path
91
- id="path4530-4"
92
- d="m -125.24305,122.08016 c 4.05153,0 8.24277,-3.06272 8.24277,-8.18852 0,-2.81586 -1.89352,-4.22515 -3.41675,-5.35909 -1.48389,-1.10275 -2.32214,-1.7945 -2.32214,-3.18209 0,-1.45269 0.95219,-2.16073 2.5039,-3.19294 1.44184,-0.96032 3.23499,-2.15259 3.23499,-4.492359 0,-0.750083 -0.60766,-1.356389 -1.35638,-1.356389 -0.74873,0 -1.3564,0.606306 -1.3564,1.356389 0,0.802982 -0.61716,1.296708 -2.02509,2.232616 -1.56662,1.044423 -3.71379,2.471343 -3.71379,5.452683 0,2.81586 1.89352,4.22515 3.41674,5.35909 1.48254,1.1041 2.32214,1.79451 2.32214,3.18209 0,3.55645 -2.84977,5.47574 -5.52999,5.47574 -0.74873,0 -1.3564,0.60631 -1.3564,1.35639 0,0.75009 0.60767,1.35639 1.3564,1.35639 z"
93
- inkscape:connector-curvature="0"
94
- style="fill:#ffcf06;fill-opacity:1;stroke-width:1.35638893" />
95
- </g>
96
- <g
97
- id="Layer_3" />
98
- </g>
99
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/images/icons/donate.svg DELETED
@@ -1 +0,0 @@
1
- <?xml version="1.0" ?><svg id="Layer_1" style="enable-background:new 0 0 24 24;" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><g id="Present_Box_1"><g><rect height="4" style="fill:#F8F8F8;" width="21" x="1.5" y="3.5"/><rect height="4" style="fill:#F8F8F8;" width="21" x="1.5" y="3.5"/><rect height="1.5" style="fill:#FFFFFF;" width="21" x="1.5" y="3.5"/><rect height="15" style="fill:#F8F8F8;" width="19" x="2.5" y="7.5"/><rect height="1.5" style="opacity:0.1;enable-background:new ;" width="19" x="2.5" y="7.5"/><rect height="1.5" style="opacity:0.1;enable-background:new ;" width="19" x="2.5" y="21"/><g><path d="M18,1.5c-1.22,0-3.3,1.18-4.77,2.65c-0.466-0.678-1.394-0.85-2.072-0.384 C11.025,3.858,10.907,3.97,10.81,4.1l0,0C9.34,2.61,7.22,1.5,6,1.5s-0.5,2.16-0.5,3s-0.19,3,1,3c1.114-0.171,2.196-0.508,3.21-1 l-1.21,3L10,9l0.5,1.5v12h3v-12L14,9l1.5,0.5l-1.1-3c0.974,0.495,2.02,0.833,3.1,1c1.19,0,1-2.16,1-3S19.22,1.5,18,1.5z" style="fill:#D51C29;"/><path d="M6,2.5c1.22,0,3.34,1.11,4.81,2.58l0,0 c0.494-0.658,1.428-0.792,2.086-0.298c0.13,0.097,0.242,0.215,0.334,0.348C14.7,3.68,16.78,2.5,18,2.5c0.42,0,0.6,0.26,0.67,0.63 C18.77,2.31,18.75,1.5,18,1.5c-1.22,0-3.3,1.18-4.77,2.65c-0.466-0.678-1.394-0.85-2.072-0.384 C11.025,3.858,10.907,3.97,10.81,4.1l0,0C9.34,2.61,7.22,1.5,6,1.5c-0.75,0-0.76,0.81-0.67,1.63C5.4,2.76,5.58,2.5,6,2.5z" style="opacity:0.2;fill:#FFFFFF;enable-background:new ;"/></g><path d="M22.5,3h-3.32c0.115-0.56,0.004-1.142-0.31-1.62C18.652,1.129,18.332,0.99,18,1 c-1.578,0.23-3.051,0.927-4.23,2h-3.42C9.134,1.911,7.618,1.214,6,1C5.664,0.987,5.341,1.127,5.12,1.38 C4.81,1.859,4.702,2.442,4.82,3H1.5C1.224,3,1,3.224,1,3.5v4C1,7.776,1.224,8,1.5,8H2v14.5C2,22.776,2.224,23,2.5,23h19 c0.276,0,0.5-0.224,0.5-0.5V8h0.5C22.776,8,23,7.776,23,7.5v-4C23,3.224,22.776,3,22.5,3z M13,5c0,0.552-0.448,1-1,1s-1-0.448-1-1 s0.448-1,1-1S13,4.448,13,5z M10.06,6.87l0.69-0.32c0.171,0.137,0.364,0.245,0.57,0.32l-0.17,0.45l0,0L10.53,9l-0.05-0.16 c-0.086-0.262-0.368-0.405-0.63-0.32L9.36,8.68L10.06,6.87z M11,10.59L12,8l0,0l1,2.59V22h-2V10.59z M13.53,8.84L13.47,9 l-0.63-1.68l0,0l-0.17-0.45c0.231-0.084,0.444-0.209,0.63-0.37l0.67,0.33l0.3,0.8c-0.003,0.033-0.003,0.067,0,0.1l0.36,1 l-0.51-0.17C13.881,8.494,13.63,8.613,13.53,8.84z M18.12,2c0.19,0.22,0,1.11,0,1.59c-0.053,0.291-0.086,0.585-0.1,0.88v0.32 c0,0.57,0,1.75-0.31,2.1S15.9,6.59,14.59,6l0,0l-0.7-0.33c0.181-0.456,0.181-0.964,0-1.42C15.21,3,17,2,18,2 C18.038,1.984,18.082,1.984,18.12,2z M5.88,2C5.918,1.984,5.962,1.984,6,2c1.585,0.278,3.045,1.04,4.18,2.18 c-0.211,0.499-0.211,1.061,0,1.56C8.72,6.39,6.59,7.21,6.3,6.92S6,5.39,6,4.82V4.5C5.986,4.205,5.953,3.911,5.9,3.62 C5.83,3.14,5.7,2.24,5.88,2z M2,4h2.95C4.978,4.165,4.994,4.332,5,4.5v0.3C4.942,5.54,5.013,6.284,5.21,7H2V4z M3,8h5.55L8,9.32 C7.898,9.577,8.023,9.867,8.28,9.969c0.109,0.043,0.229,0.047,0.34,0.011l1-0.34l0.32,0.95V22H3V8z M21,22h-7V10.58l0.32-0.95 l1,0.34c0.249,0.12,0.548,0.016,0.668-0.233C16.049,9.609,16.054,9.461,16,9.33L15.48,8H21V22z M22,7h-3.21 c0.197-0.716,0.268-1.46,0.21-2.2V4.5c0.006-0.168,0.022-0.335,0.05-0.5H22V7z" style="fill:#303C42;"/><linearGradient gradientTransform="matrix(1 0 0 -1 0 24)" gradientUnits="userSpaceOnUse" id="SVGID_1_" x1="-0.627" x2="23.9844" y1="17.1234" y2="5.6428"><stop offset="0" style="stop-color:#FFFFFF;stop-opacity:0.2"/><stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0"/></linearGradient><path d="M22.5,3h-3.32c0.115-0.56,0.004-1.142-0.31-1.62C18.652,1.129,18.332,0.99,18,1 c-1.578,0.23-3.051,0.927-4.23,2h-3.42C9.134,1.911,7.618,1.214,6,1C5.664,0.987,5.341,1.127,5.12,1.38 C4.81,1.859,4.702,2.442,4.82,3H1.5C1.224,3,1,3.224,1,3.5v4C1,7.776,1.224,8,1.5,8H2v14.5C2,22.776,2.224,23,2.5,23h19 c0.276,0,0.5-0.224,0.5-0.5V8h0.5C22.776,8,23,7.776,23,7.5v-4C23,3.224,22.776,3,22.5,3z" style="fill:url(#SVGID_1_);"/></g></g></svg>
 
admin/images/icons/facebook.png DELETED
Binary file
admin/images/icons/google-plus.png DELETED
Binary file
admin/images/icons/html.png DELETED
Binary file
admin/images/icons/linkedin.png DELETED
Binary file
admin/images/icons/pinterest.png DELETED
Binary file
admin/images/icons/pocket.png DELETED
Binary file
admin/images/icons/rate-wpsr.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="69.263" height="13.468" viewBox="0 0 18.32591 3.5633998"><g fill="#ffb610"><path d="M1.4 1.308L1.842 0l.423 1.315 1.4.013-1.138.803.42 1.317-1.126-.82-1.14.802.442-1.31L0 1.298z"/><path d="M5.064 1.337L5.51.03l.42 1.314 1.4.013-1.137.803.42 1.316-1.126-.82-1.14.802.442-1.31-1.125-.82zM8.73 1.367l.444-1.31.423 1.316 1.4.013-1.14.803.42 1.315-1.125-.82-1.14.802.443-1.31-1.125-.82z"/><path d="M12.394 1.396L12.84.088l.422 1.315 1.4.012-1.14.803.42 1.316-1.125-.82-1.14.802.443-1.31-1.124-.82z"/><path d="M16.06 1.425l.444-1.308.423 1.315 1.4.012-1.14.803.422 1.316-1.127-.818-1.14.8.442-1.31-1.124-.82z"/></g></svg>
 
admin/images/icons/reddit.png DELETED
Binary file
admin/images/icons/share_counter.png DELETED
Binary file
admin/images/icons/sharethis.png DELETED
Binary file
admin/images/icons/shortcode.png DELETED
Binary file
admin/images/icons/social_icons.png DELETED
Binary file
admin/images/icons/stumbleupon.png DELETED
Binary file
admin/images/icons/twitter.png DELETED
Binary file
admin/images/select_images/desktop-mobile.png DELETED
Binary file
admin/images/select_images/desktop.png DELETED
Binary file
admin/images/select_images/mobile.png DELETED
Binary file
admin/images/select_images/native-buttons-sb.png DELETED
Binary file
admin/images/select_images/sb-horizontal.png DELETED
Binary file
admin/images/select_images/sb-vertical.png DELETED
Binary file
admin/images/select_images/shape-drop.svg CHANGED
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 8.467 8.467"><path d="M4.217 8.408l-3.119-3.19S.448 4.356.508 3.4C.555 2.645 1.335.293 3.733.128 6.13-.038 7.31 1.675 7.31 1.675s.792 1.17.544 2.256c-.248 1.087-.213 1.063-1.937 2.776-1.725 1.712-1.619 1.842-1.701 1.7z" fill="#333"/><path d="M5.59 5.742L4.263 4.88l-1.322.867.409-1.528-1.233-.99 1.579-.083.56-1.479.567 1.477 1.58.076-1.23.995z" fill="#fff"/></svg>
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 8.4666665 8.4666669" height="32" width="32"><g><path transform="scale(0.26458333)" d="M 16 0 C 7.1359995 2.3684758e-15 9.90319e-17 7.1359995 0 16 C 2.3684758e-15 24.864 7.1359995 32 16 32 L 32 32 L 32 16 C 32 7.1359995 24.864 9.90319e-17 16 0 z" fill="#333" stroke-width="1.29691" stroke-linejoin="round"/></g><g><path transform="matrix(0.98799756,0.15431154,-0.15430768,0.98802224,45.137637,-285.59056)" d="m 5.9356119,294.46893 -1.4433164,-0.64607 -1.1730275,1.06046 0.1684441,-1.57233 -1.3710454,-0.78791 1.5474207,-0.32567 0.3256748,-1.54743 0.7879144,1.37105 1.5723235,-0.16844 -1.0604627,1.17302 z" fill="#fff" stroke-width=".16403" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
admin/images/select_images/social-icons-counter-sb.png DELETED
Binary file
admin/images/select_images/social-icons-sb.png DELETED
Binary file
admin/images/tips/btn-text-types.png DELETED
Binary file
admin/images/tips/fb-types.png DELETED
Binary file
admin/images/tips/googleplus-sizes.png DELETED
Binary file
admin/images/tips/reddit-types.png DELETED
Binary file
admin/images/tips/sb-types.png DELETED
Binary file
admin/images/tips/stumbleupon-types.png DELETED
Binary file
admin/images/tips/tsb-sizes.png DELETED
Binary file
admin/images/widgets/facebook.png DELETED
Binary file
admin/images/widgets/follow-me.png DELETED
Binary file
admin/images/widgets/google-plus.png DELETED
Binary file
admin/images/widgets/share-buttons.png DELETED
Binary file
admin/images/widgets/twitter.png DELETED
Binary file
admin/import_export.php DELETED
@@ -1,80 +0,0 @@
1
- <?php
2
- /**
3
- * Import/export admin page
4
- *
5
- **/
6
-
7
- class wpsr_admin_import_export{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
12
-
13
- }
14
-
15
- function register( $pages ){
16
-
17
- $pages[ 'import_export' ] = array(
18
- 'name' => __( 'Import/Export', 'wpsr' ),
19
- 'page_callback' => array( $this, 'page' ),
20
- 'banner' => WPSR_ADMIN_URL . '/images/banners/import-export.png',
21
- 'feature' => false,
22
- 'form' => array(
23
- 'id' => 'import_export',
24
- 'name' => 'import_export',
25
- 'callback' => ''
26
- )
27
- );
28
-
29
- return $pages;
30
-
31
- }
32
-
33
- function page(){
34
-
35
- echo '<div class="notice notice-success inline hidden"><p>' . __( 'Successfull imported data !', 'wpsr' ) . '</p></div>';
36
- echo '<div class="notice notice-error inline hidden"><p>' . __( 'Failed to import data, please re-import the data !', 'wpsr' ) . '</p></div>';
37
-
38
- echo '<form id="import_form">';
39
-
40
- $section1 = array(
41
- array( __( 'Import data', 'wpsr' ), WPSR_Admin::field( 'textarea', array(
42
- 'name' => 'import_data',
43
- 'value' => '',
44
- 'helper' => __( 'Paste the exported data into the text box above.', 'wpsr' ),
45
- 'rows' => '3',
46
- 'cols' => '100'
47
- )))
48
- );
49
-
50
- WPSR_Admin::build_table( $section1, __( 'Import data', 'wpsr' ), __( 'Import the already exported WP Socializer data using the field below. Please note that importing will <b>overwrite</b> all the existing buttons created and the settings.', 'wpsr' ) );
51
-
52
- wp_nonce_field( 'wpsr_import_nonce' );
53
-
54
- echo '<p align="right"><input type="submit" class="import_form_submit button button-primary" value="' . __( 'Import', 'wpsr' ) . '" /></p>';
55
- echo '</form>';
56
-
57
- $section2 = array(
58
- array( __( 'Export data', 'wpsr' ), WPSR_Admin::field( 'textarea', array(
59
- 'name' => 'export_data',
60
- 'value' => WPSR_Import_Export::export(),
61
- 'helper' => __( 'Copy the data above, save it and import it later', 'wpsr' ),
62
- 'rows' => '3',
63
- 'cols' => '100',
64
- 'custom' => 'onClick="this.select();"'
65
- )))
66
- );
67
-
68
- WPSR_Admin::build_table( $section2, __( 'Export', 'wpsr' ) );
69
-
70
- }
71
-
72
- function validation( $input ){
73
- return $input;
74
- }
75
-
76
- }
77
-
78
- new wpsr_admin_import_export();
79
-
80
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/script.js CHANGED
@@ -2,22 +2,9 @@
2
  jQuery(document).ready(function(){
3
 
4
  var init = function(){
5
-
6
- if( $.fn.draggable ){
7
- $( ".btns_created li" ).draggable( draggable_opts );
8
- }
9
-
10
  if( $.fn.sortable ){
11
- $( ".veditor ul" ).sortable( vedit_sortable_btns );
12
-
13
- $( ".veditor" ).sortable({
14
- axis: 'y',
15
- start: function( e, ui ){
16
- ui.placeholder.height( ui.item.height() );
17
- wpsr_admin_tooltip_close();
18
- }
19
- });
20
-
21
  $( '.fb_selected' ).sortable({
22
  axis: 'y',
23
  handle: 'h4',
@@ -57,14 +44,11 @@ jQuery(document).ready(function(){
57
  if( wpsr_show[ 'changelog' ] != 'false' ){
58
  changelog_show( window.wpsr_show[ 'changelog' ] );
59
  }
60
- if( wpsr_show[ 'setup' ] != 'false' ){
61
- setup_show();
62
- }
63
  }
64
-
 
 
65
  wpsr_init_image_selects();
66
-
67
- set_sharebar_preview();
68
 
69
  }
70
 
@@ -185,65 +169,7 @@ jQuery(document).ready(function(){
185
  }
186
 
187
  }
188
-
189
- var process_vedit = function(){
190
- $( '.vedit_wrap' ).each(function(){
191
-
192
- $cnt_box = $(this).find( '.veditor_content' );
193
- $vedit_rows = $(this).find( '.veditor ul' );
194
- cnt = {};
195
- row = 1;
196
-
197
- if( $vedit_rows.length > 0 ){
198
- $vedit_rows.each(function(){
199
- cnt[row] = {
200
- 'properties' : {},
201
- 'buttons': []
202
- }
203
-
204
- $(this).children('li').each(function(){
205
- temp = {};
206
- bid = $(this).attr( 'data-id' );
207
- temp[ bid ] = {};
208
- cnt[row]['buttons'].push( temp );
209
- });
210
-
211
- row++;
212
- });
213
-
214
- $cnt_box.val( btoa( JSON.stringify( cnt ) ) );
215
- }
216
-
217
- });
218
- }
219
-
220
- var draggable_opts = {
221
- revert: 'invalid',
222
- helper: 'clone',
223
- cursor: 'move',
224
- connectToSortable: '.veditor ul',
225
- containment: 'document',
226
- start: function( e, ui ){
227
- $( '.veditor ul' ).addClass( 'drop_target' );
228
- wpsr_admin_tooltip_close();
229
- },
230
- stop: function(){
231
- $( '.veditor ul' ).removeClass( 'drop_target' );
232
- }
233
- };
234
-
235
- var vedit_sortable_btns = {
236
- connectWith: ".veditor ul",
237
- placeholder: 'ui-state-placeholder',
238
- items: '> li',
239
- containment: 'document',
240
- start: function( e, ui ){
241
- ui.placeholder.width( ui.item.width() );
242
- ui.item.width( parseInt( ui.item.width() ) + 1 );
243
- wpsr_admin_tooltip_close();
244
- }
245
- }
246
-
247
  var feature_toggle = function(){
248
  var $ft_wrap = $( '.feature_wrap' );
249
 
@@ -266,6 +192,31 @@ jQuery(document).ready(function(){
266
  });
267
  }
268
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  var changelog_show = function( version ){
270
  vFile = wpsr.ext_res[ 'wp-socializer-cl' ] + version + '.html';
271
  $wcPopup = $( '.welcome_wrap' );
@@ -278,317 +229,28 @@ jQuery(document).ready(function(){
278
 
279
  var changelog_hide = function(){
280
  var url = wpsr.ajaxurl + '?action=wpsr_admin_ajax&do=close_changelog';
 
 
 
281
  $.get( url, function( data ){
282
  if( data.search( /done/g ) == -1 ){
283
  $( '.welcome_wrap section' ).html( 'Failed to close window. <a href="' + url + '" target="_blank">Please click here to close</a>' );
284
  }else{
285
  $( '.welcome_wrap' ).fadeOut();
 
286
  }
287
  });
288
 
289
  window.changelog_on = false;
290
- if( window.wpsr_show && window.wpsr_show[ 'setup' ] != 'false' ){
291
- setup_show();
292
- }
293
-
294
- }
295
-
296
- var setup_show = function(){
297
- if( !window.changelog_on ){
298
- $setupWin = $( '.setup_intro' );
299
- $setupWin.fadeIn( 'fast' );
300
- }
301
- }
302
-
303
- var setup_hide = function(){
304
- var url = wpsr.ajaxurl + '?action=wpsr_admin_ajax&do=close_setup';
305
- $.get( url, function( data ){
306
- if( data.search( /done/g ) == -1 ){
307
- $( '.setup_intro' ).html( 'Failed to close window. <a href="' + url + '" target="_blank">Please click here to close</a>' );
308
- }else{
309
- $( '.setup_intro' ).fadeOut();
310
- }
311
- });
312
- }
313
-
314
- var bp_change_tab = function(service){
315
- $('.bp_slist li').removeClass('active');
316
- $('.bp_slist li[data-sid="' + service + '"]').addClass('active');
317
- $('.bp_sbox').removeClass('active');
318
-
319
- var $bp_wrap = $('.bp_wrap');
320
- var $sbox = $('.bp_sbox[data-sid="' + service + '"]');
321
- var feature = $bp_wrap.data('feature');
322
- var nonce = $bp_wrap.data('nonce');
323
-
324
- window.wpsr_bp_hit = true;
325
- $sbox.addClass('active');
326
-
327
- if(!$sbox.hasClass('init_done')){
328
- var url = wpsr.ajaxurl + '?action=wpsr_buttons_picker&service=' + service + '&feature=' + feature;
329
- $sbox.append('<iframe src="' + url + '" class="bp_sel_box" frameborder="0" scrolling="yes"></iframe>');
330
- $sbox.addClass('loading');
331
- $sbox.addClass('init_done');
332
- }
333
-
334
- $iframe = $sbox.find('iframe');
335
- $iframe.load(function(){
336
-
337
- var $iframe_cnts = $iframe.contents();
338
-
339
- $iframe_cnts.find('.bt_wrap').click(function(){
340
- bp_btn_insert($(this), $iframe, feature, nonce);
341
- });
342
-
343
- $iframe_cnts.find('.bt_delete').click(function(e){
344
- e.stopPropagation();
345
- bp_btn_delete($(this).parent(), service);
346
- });
347
-
348
- $sbox.removeClass('loading');
349
- });
350
-
351
- }
352
-
353
- var bp_btn_insert = function($btn, $iframe, feature, nonce){
354
-
355
- var id = $btn.data('id');
356
- var type = $btn.data('type');
357
- var service = $btn.data('service');
358
- var title = '';
359
-
360
- if(type == 'new'){
361
- var title = prompt('Name of the button for identification');
362
- }
363
-
364
- $btn.addClass('inserting');
365
-
366
- $.get( wpsr.ajaxurl, {
367
-
368
- action: 'wpsr_create_button',
369
- btn_tmpl_id: id,
370
- feature: feature,
371
- type: type,
372
- service: service,
373
- title: (title == null ? '' : title),
374
- _wpnonce: nonce
375
-
376
- }).done(function(data){
377
-
378
- if(data == ''){
379
- return false;
380
- }
381
-
382
- if(window.wpsr_bp){
383
- $vedit_wrap = window.wpsr_bp;
384
- $vedit_row = $vedit_wrap.find('.veditor ul:last-child');
385
-
386
- $li = $(data);
387
- if($li.data('id') !== undefined){
388
- $vedit_row.append(data);
389
- }
390
- }
391
-
392
- $btn.removeClass('inserting');
393
- bp_close();
394
-
395
- if(type == 'new'){
396
- $iframe.attr('src', function(i, val){return val;});
397
- }
398
-
399
- }).fail(function(data){
400
- console.log('WPSR create button failed: ' + data);
401
- return false;
402
- });
403
-
404
- }
405
-
406
- var bp_btn_delete = function($btn, service){
407
- reply = confirm( wpsr.js_texts.del_btn );
408
- if( reply ){
409
- btn_id = $btn.data('id');
410
-
411
- $btn.addClass('inserting');
412
-
413
- $.ajax({
414
- url: wpsr.ajaxurl,
415
- data: {
416
- action: 'wpsr_service',
417
- do: 'delete',
418
- service_id: service,
419
- button_id: btn_id
420
- }
421
- }).done(function(d){
422
- if(d == '1'){
423
- $btn.fadeOut('slow', function(){
424
- $btn.remove();
425
- $('.veditor .ui_btn[data-id="' + btn_id + '"]').remove();
426
- });
427
- }else{
428
- console.info( 'Delete button failed: ' + d );
429
- }
430
- });
431
- }
432
- }
433
-
434
- var bp_open = function($veditor){
435
- $('.bp_wrap').fadeIn();
436
- $('.bp_wrap').addClass('open');
437
- $('body').addClass('hide_scrollbar');
438
-
439
- window.wpsr_bp = $veditor;
440
-
441
- if(!window.wpsr_bp_hit){
442
- var first_svc = $('.bp_slist li:first-child').data('sid');
443
- bp_change_tab(first_svc);
444
- }
445
-
446
- }
447
-
448
- var bp_close = function(){
449
- $('.bp_wrap').fadeOut();
450
- $('.bp_wrap').removeClass('open');
451
- $('body').removeClass('hide_scrollbar');
452
- window.wpsr_bp = false;
453
- }
454
-
455
- var set_sharebar_preview = function(){
456
- var $type = $('#sharebar_settings select[name="type"]');
457
- var $vedit = $('.vedit_wrap');
458
- if( $type.length == 0 ){
459
- return false;
460
- }
461
- if( $type.val() == 'vertical' ){
462
- $vedit.addClass('vertical');
463
- }else{
464
- $vedit.removeClass('vertical');
465
- }
466
  }
467
 
468
  // Attach the events
469
 
470
- $(document).on( 'click', '.btn_selector .sbox_action', function(){
471
- $parent = $(this).closest( '.sbox_wrap' ).addClass( 'sbox_loading' );
472
- $sel = $parent.find( '.sbox_val .btn_liname' );
473
-
474
- if( $sel.length == 0 || $('.btns_created').length == 0 )
475
- alert( wpsr.js_texts.sel_btn );
476
-
477
- $.get( wpsr.ajaxurl, {
478
-
479
- action: 'wpsr_service',
480
- do: 'new',
481
- service_id: $sel.attr( 'data-service' ),
482
- feature: $sel.attr( 'data-feature' )
483
-
484
- }).done(function( data ){
485
-
486
- $parent.removeClass( 'sbox_loading' );
487
- $( data['html'] ).hide().appendTo( '.btns_created' ).fadeTo( 'slow', 1 ).draggable( draggable_opts );
488
-
489
- });
490
-
491
- });
492
-
493
- // Button edit
494
- $(document).on( 'click', '.btn_edit', function(){
495
-
496
- $parent = $(this).parent();
497
- service = $parent.attr( 'data-service' );
498
- wpsr_service = wpsr.services[ service ];
499
-
500
- // Tooltip properties
501
- tt_props = {
502
- parent: $parent,
503
- content: {
504
- url: wpsr.ajaxurl,
505
- data: {
506
- action: 'wpsr_service',
507
- do: 'edit',
508
- service_id: service,
509
- button_id: $parent.attr( 'data-id' )
510
- }
511
- }
512
- };
513
-
514
- if( typeof wpsr_service[ 'settings' ] !== 'undefined' && typeof wpsr_service[ 'settings' ][ 'size' ] !== 'undefined' ){
515
- ss = wpsr.services[ service ][ 'settings' ][ 'size' ];
516
- if ( ss.match( /x/i ) != null ){
517
- tt_props[ 'width' ] = ss.split( 'x' )[0];
518
- tt_props[ 'height' ] = ss.split( 'x' )[1];
519
- }else{
520
- tt_props[ 'class' ] = 'wpsr_tooltip_popup';
521
- tt_props[ 'name' ] = wpsr_service[ 'name' ];
522
- }
523
- }
524
-
525
- // Show the tooltip
526
- wpsr_admin_tooltip(tt_props);
527
- });
528
-
529
- $(document).on( 'submit', '.wpsr_tooltip_wrap form', function(e){
530
- e.preventDefault();
531
-
532
- $tt = $(this).parent().parent().addClass( 'loading' );
533
- post_url = $(this).attr( 'action' );
534
- button_title = $(this).find( 'input[name="o[title]"]' ).val()
535
- button_id = $(this).find( 'input[name=button_id]' ).val()
536
-
537
- $callbacks = $( this ).find( '[data-callback]' );
538
- if( $callbacks.length > 0 ){
539
- $callbacks.each(function(){
540
-
541
- $ele = $( this );
542
- cb = $ele.data( 'callback' );
543
-
544
- if( typeof window[ cb ] !== 'undefined' ){
545
- window[ cb ]( $ele );
546
- }
547
-
548
- });
549
- }
550
-
551
- $.post( post_url, $(this).serialize() ).done(function( data ){
552
-
553
- $( '.ui_btn[data-id="' + button_id + '"] .btn_name' ).attr( 'data-title', button_title );
554
- $tt.removeClass( 'loading' );
555
- $( '.btn_settings_status' ).fadeIn().delay( 5000 ).fadeOut();
556
-
557
- });
558
-
559
- });
560
-
561
  $(document).on('submit', function(e){
562
- process_vedit();
563
  loc_generate_rules();
564
  });
565
-
566
- $(document).on('click', '.vedit_add_button', function(e){
567
- e.preventDefault();
568
- var $veditor = $(this).closest('.vedit_wrap');
569
- bp_open($veditor);
570
- });
571
-
572
- $(document).on( 'click', '.vedit_preview_btn', function(e){
573
- e.preventDefault();
574
-
575
- $vedit = $(this).closest( '.vedit_wrap' );
576
- $vedit_preview = $('.veditor_preview');
577
- $iframe = $vedit.find( '.vedit_preview_iframe' );
578
- $iframe.fadeTo( 'slow', 0.5 );
579
- $(this).text( $(this).data('refresh') );
580
- action = $(this).data( 'action' );
581
-
582
- process_vedit()
583
-
584
- template = $vedit.find( '.veditor_content' ).val();
585
- $iframe.attr( 'src', wpsr.ajaxurl + '?action=' + action + '&template=' + template );
586
- $iframe.load(function(){
587
- $(this).fadeTo( 'slow', 1 );
588
- });
589
- $vedit_preview.show();
590
- });
591
-
592
  $(document).on( 'change', '.loc_rule_select', function(e){
593
 
594
  $parent = $(this).parent();
@@ -624,36 +286,6 @@ jQuery(document).ready(function(){
624
 
625
  });
626
 
627
- $( document ).on( 'click', '.btn_settings_save', function(){
628
- $( '.wpsr_tooltip_cnt form' ).submit();
629
- });
630
-
631
- $( document ).on( 'click', '.vedit_add_row', function(e){
632
- e.preventDefault();
633
- $('<ul></ul>').sortable( vedit_sortable_btns ).appendTo( $(this).closest( '.vedit_wrap' ).find( '.veditor' ) );
634
- });
635
-
636
- $(document).on( 'click', '.vedit_delete_row', function(e){
637
- $(this).closest( 'ul' ).remove();
638
- });
639
-
640
- $( document ).on( 'click', '.veditor .btn_delete', function(){
641
- $(this).parent().remove();
642
- });
643
-
644
- $( document ).on( 'mouseenter', '.veditor > ul', function(){
645
-
646
- $vedit_row_menu = $('.vedit_row_menu').clone().show();
647
- if( $(this).parent().children().length == 1 ){
648
- $vedit_row_menu.find( '.vedit_delete_row' ).remove();
649
- }
650
- $vedit_row_menu.appendTo($(this));
651
- });
652
-
653
- $( document ).on( 'mouseleave', '.veditor > ul', function(){
654
- $(this).find( '.vedit_row_menu' ).remove();
655
- });
656
-
657
  $(document).on( 'click', '.loc_group_add', function(e){
658
  e.preventDefault();
659
  loc_add_rule( true, $(this) );
@@ -711,188 +343,7 @@ jQuery(document).ready(function(){
711
  }
712
 
713
  });
714
-
715
- $(document).on('click', '.bp_slist li', function(){
716
- var sid = $(this).data('sid');
717
- bp_change_tab(sid);
718
- });
719
-
720
- $(document).on('click', '.bp_close', function(){
721
- bp_close();
722
- });
723
-
724
- $(document).on( 'click', '.sbox_inner', function(){
725
- $(this).toggleClass( 'sbox_open' );
726
- });
727
-
728
- $(document).on( 'change', '[name="ft_status"]', function(){
729
- feature_toggle();
730
- });
731
-
732
- $(document).on( 'click', '.sharebar_preview_btn', function(e){
733
- e.preventDefault();
734
-
735
- process_vedit();
736
-
737
- $iwrap = $( '.sharebar_preview_iwrap' );
738
- $iframe = $( '.sharebar_preview_iwrap > iframe' );
739
- form_data = $( '#sharebar_settings' ).serialize();
740
-
741
- $( 'body' ).addClass( 'hide_scrollbar' );
742
- $iwrap.show();
743
- $iframe.attr( 'src', wpsr.ajaxurl + '?action=wpsr_preview_template_sharebar&' + form_data );
744
-
745
- });
746
-
747
- $(document).on( 'click', '.sharebar_preview_close', function(){
748
- wpsr_sharebar_preview_close();
749
- });
750
-
751
- $(document).on('change', '#sharebar_settings select[name="type"]', function(){
752
- set_sharebar_preview();
753
- });
754
 
755
- //social icons item properties
756
- $current_item = '';
757
-
758
- $( document ).on( 'click', '.item_delete', function(){
759
- $(this).parent().remove();
760
- });
761
-
762
- $( document ).on( 'click', '.item_popup_close', function(){
763
- $(this).parent().fadeOut();
764
- });
765
-
766
- $( document ).on( 'click', '.item_settings', function(){
767
-
768
- $item = $(this).parent();
769
- $data = $item.data();
770
- $current_item = $item;
771
- //console.log( $data );
772
-
773
- $popup = $( '.item_popup' ).show();
774
- $popup.find( 'h4' ).text( sb_sites[ $item.data( 'id' ) ][ 'name' ] + ' icon (Advanced settings)' );
775
- $cnt = $( '.item_popup_cnt' ).empty().append( '<table class="form-table"></table>' );
776
- $tbl = $cnt.find( 'table' );
777
-
778
- for( opt in $data ){
779
-
780
- if( opt.search( 'opt' ) != -1 ){
781
-
782
- opt_val = $data[ opt ];
783
- the_opt = opt.replace( 'opt_', '' );
784
-
785
- if( typeof sb_site_options[ the_opt ] === 'undefined' )
786
- continue;
787
-
788
- $wrap = $( '<tr><th></th><td></td></tr>' );
789
- $checkbox = $( '<input type="checkbox" value="1" />' );
790
- $text = $( '<input type="text" class="widefat" />' );
791
-
792
- helper = sb_site_options[ the_opt ][ 'helper' ];
793
- type = sb_site_options[ the_opt ][ 'type' ];
794
- placeholder = ( 'placeholder' in sb_site_options[ the_opt ] ) ? sb_site_options[ the_opt ][ 'placeholder' ] : '';
795
-
796
- $the_input = $( '<i/>' );
797
-
798
- if( type == 'checkbox' ){
799
- if( opt_val == '1' || opt_val == 'true' )
800
- $checkbox.attr('checked', 'checked');
801
-
802
- $the_input = $checkbox.attr( 'data-id', the_opt );
803
- }
804
-
805
- if( type == 'text' ){
806
- $the_input = $text.val( opt_val ).attr( 'data-id', the_opt );
807
- }
808
-
809
- $wrap.find( 'th' ).append( helper );
810
- $wrap.find( 'td' ).append( $the_input );
811
-
812
- if( placeholder != '' )
813
- $wrap.find( 'td' ).append( '<small>' + placeholder + '</small>' );
814
-
815
- $tbl.append( $wrap );
816
-
817
- }
818
- }
819
-
820
- });
821
-
822
- $( document ).on( 'click', '.item_popup_save', function( e ){
823
- e.preventDefault();
824
- if( $( $current_item ).length ){
825
- $item = $( $current_item );
826
- $popup = $( this ).closest( '.item_popup' );
827
- $inputs = $popup.find( 'tr input' );
828
-
829
- $inputs.each( function(){
830
-
831
- $i = $( this );
832
- id = $i.data( 'id' );
833
- type = $i.attr( 'type' );
834
- value = '';
835
-
836
- if( type == 'checkbox' && $i.is( ':checked' ) )
837
- value = '1';
838
-
839
- if( type == 'text' )
840
- value = $i.val();
841
-
842
- $item.data( 'opt_' + id, value );
843
- });
844
-
845
- $popup.fadeOut();
846
-
847
- }
848
- });
849
-
850
- $( document ).on( 'keyup', '.list_search', function( e ){
851
- $list = $( $( this ).data( 'list' ) );
852
- if( $list.length > 0 ){
853
- val = $( this ).val();
854
-
855
- $list.children().each(function(){
856
- $item = $(this);
857
- text = $item.text().toLowerCase();
858
- if( text.search( val.toLowerCase() ) == -1 ){
859
- $item.hide();
860
- }else{
861
- $item.show();
862
- }
863
- });
864
- }
865
- });
866
-
867
- $( document ).on( 'change', '.sb_features_list', function( e ){
868
- $list = $( $( this ).data( 'list' ) );
869
-
870
- if( $list.length > 0 ){
871
- val = $( this ).val();
872
-
873
- $list.children().each(function(){
874
- $item = $(this);
875
- features_split = $item.data( 'features' ).split( ',' );
876
-
877
- if( $.inArray( val, features_split ) > -1 || val == 'all' ){
878
- $item.show();
879
- }else{
880
- $item.hide();
881
- }
882
- });
883
- }
884
- });
885
-
886
- $( document ).on( 'click', '.mini_section_select', function( e ){
887
- $parent = $(this).parent();
888
- $parent.find( '.mini_section' ).slideToggle();
889
- e.preventDefault();
890
- });
891
-
892
- $( document ).on( 'click', '.btn_shortcode', function(){
893
- this.select();
894
- });
895
-
896
  $( document ).on( 'click', '.fb_add', function(){
897
  $sel_list = $( '.fb_selected' );
898
  sel_val = $( '.fb_list' ).val();
@@ -906,12 +357,16 @@ jQuery(document).ready(function(){
906
  li_tmpl = li_tmpl.replace( /%url%/g, '' );
907
  li_tmpl = li_tmpl.replace( /%iurl%/g, '' );
908
  li_tmpl = li_tmpl.replace( /%text%/g, '' );
 
 
 
909
 
910
- $sel_list.append( li_tmpl );
911
-
 
912
  });
913
 
914
- $( document ).on( 'click', '.fb_item_edit', function(e){
915
  e.preventDefault();
916
  var $to_open = $(this).closest( 'li' ).find( 'div' );
917
  $( '.fb_selected li > div' ).not($to_open).hide();
@@ -996,45 +451,6 @@ jQuery(document).ready(function(){
996
  alert( 'Please click "open editor" to rearrange the buttons' );
997
  });
998
 
999
- // Htip
1000
- $( document ).on( 'mouseover', '[data-htip]', function(){
1001
- $parent = $(this);
1002
- $htip = $( '<div class="htip"></div>' );
1003
- html = $parent.data( 'htip' );
1004
-
1005
- if( html.search( '://' ) != -1 ){
1006
- $htip.html( '<img src="' + $parent.data( 'htip' ) + '"/>' );
1007
- }else{
1008
- $htip.html( $parent.data( 'htip' ) );
1009
- }
1010
-
1011
- $htip.appendTo( 'body' ).hide();
1012
-
1013
- var set_position = function( $parent, $htip ){
1014
- offset = $parent.offset();
1015
- calc_left = offset.left - ( $htip.outerWidth()/2 ) + ($parent.outerWidth()/2);
1016
- calc_top = offset.top - $htip.outerHeight() - ($parent.outerHeight()/2);
1017
-
1018
- $htip.css({
1019
- 'left': calc_left,
1020
- 'top': calc_top
1021
- }).show();
1022
- };
1023
-
1024
- if( $htip.find( 'img' ).length > 0 ){
1025
- $htip.find( 'img' ).load(function(){
1026
- set_position( $parent, $htip );
1027
- });
1028
- }else{
1029
- set_position( $parent, $htip );
1030
- }
1031
-
1032
- });
1033
-
1034
- $( document ).on( 'mouseleave', '[data-htip]', function(){
1035
- $( '.htip' ).remove();
1036
- });
1037
-
1038
  // Import data
1039
  $( document ).on( 'submit', '#import_form', function( e ){
1040
  e.preventDefault();
@@ -1060,14 +476,6 @@ jQuery(document).ready(function(){
1060
  });
1061
  });
1062
 
1063
- //Button selector events
1064
- $(document).on( 'click', '.sbox_inner li', function(){
1065
- $wrap = $(this).closest( '.sbox_wrap' );
1066
- $wrap.find('.sbox_val').html( $(this).html() );
1067
- $wrap.find('.sbox_field').val( $(this).attr( 'data-val' ) );
1068
- $(this).parent().hide();
1069
- });
1070
-
1071
  $( document ).on( 'click', '.template_tab li', function(){
1072
  id = $(this).index() + 1;
1073
  $('.template_tab li').removeClass( 'templ_tab_active' );
@@ -1075,7 +483,7 @@ jQuery(document).ready(function(){
1075
  $('.template_wrap[data-id="' + id + '"]').fadeIn( 'slow' );
1076
  $(this).addClass( 'templ_tab_active' );
1077
  });
1078
-
1079
  // Popup editor on click events
1080
  $( document ).on( 'click', '.wpsr_ppe_save', function(){
1081
  mode = $(this).data( 'mode' );
@@ -1125,7 +533,7 @@ jQuery(document).ready(function(){
1125
 
1126
  }
1127
  });
1128
-
1129
  $( document ).on( 'click', '.wpsr_ppe_cancel', function(){
1130
  if( window.parent.wpsr_ipopup_close ){
1131
  window.parent.wpsr_ipopup_close();
@@ -1140,9 +548,9 @@ jQuery(document).ready(function(){
1140
  cnt_id = $( this ).attr( 'data-cnt-id' );
1141
  cnt = $( '#' + cnt_id ).val();
1142
  prev_id = $( this ).attr( 'data-prev-id' );
1143
- qstring = 'action=wpsr_followbar_editor&template=' + cnt + '&cnt_id=' + cnt_id + '&prev_id=' + prev_id;
1144
 
1145
- wpsr_ipopup_show( wpsr.ajaxurl + '?' + qstring, '500px', '80%' );
1146
 
1147
  }
1148
  });
@@ -1152,12 +560,8 @@ jQuery(document).ready(function(){
1152
  changelog_hide();
1153
  });
1154
 
1155
- $( document ).on( 'click', '.close_setup_intro_btn', function(e){
1156
  e.preventDefault();
1157
- setup_hide();
1158
- });
1159
-
1160
- $( document ).on( 'click', '.tblr_btn', function(){
1161
  var id = $(this).data('id');
1162
  $('[data-tglr="' + id + '"]').toggle();
1163
  });
@@ -1445,100 +849,6 @@ function wpsr_admin_tooltip_close(){
1445
  document.wpsr_tt_parent = false;
1446
  }
1447
 
1448
- function wpsr_list_selector_init(){
1449
-
1450
- item_width = jQuery( '.list_available li' ).first().width();
1451
-
1452
- jQuery( '.list_available li' ).draggable({
1453
- revert: 'invalid',
1454
- helper: 'clone',
1455
- connectToSortable: '.list_selected',
1456
- start: function(){
1457
- jQuery( '.list_selected' ).addClass( 'drop_target' );
1458
- },
1459
- stop: function( e, ui ){
1460
- jQuery( '.list_selected' ).removeClass( 'drop_target' );
1461
- ui.helper.width( 'auto' );
1462
- }
1463
- });
1464
- jQuery( '.list_selected' ).sortable().disableSelection();
1465
-
1466
- }
1467
-
1468
- function wpsr_sb_process_list( $list ){
1469
- $input = jQuery( $list.data( 'input' ) );
1470
- temp = [];
1471
-
1472
- $list.children().each(function(){
1473
- $item = jQuery( this );
1474
- id = $item.data( 'id' );
1475
- data = $item.data();
1476
- temp_item = {};
1477
- temp_item[ id ] = {};
1478
-
1479
- for( d in data ){
1480
- if( d.search( 'opt_' ) != -1 ){
1481
- opt = d.replace( 'opt_', '' );
1482
- val = encodeURIComponent(data[ d ]);
1483
-
1484
- temp_item[ id ][ opt ] = val;
1485
- }
1486
- }
1487
- temp.push( temp_item );
1488
- });
1489
-
1490
- //console.log( temp );
1491
- $input.val( btoa( JSON.stringify( temp ) ) );
1492
-
1493
- }
1494
-
1495
- function wpsr_st_process_list( $list ){
1496
- $input = jQuery( $list.data( 'input' ) );
1497
- temp = [];
1498
-
1499
- $list.children().each(function(){
1500
- temp.push( jQuery( this ).data( 'id' ) );
1501
- });
1502
-
1503
- console.log( temp );
1504
- $input.val( btoa( JSON.stringify( temp ) ) );
1505
- }
1506
-
1507
- function wpsr_load_css( id, css ){
1508
- if( !document.getElementById( id ) ){
1509
- var head = document.getElementsByTagName('head')[0];
1510
- var link = document.createElement('link');
1511
- link.id = id;
1512
- link.rel = 'stylesheet';
1513
- link.type = 'text/css';
1514
- link.href = css;
1515
- link.media = 'all';
1516
- head.appendChild(link);
1517
- }
1518
- }
1519
-
1520
- function wpsr_load_js( id, js, callback ){
1521
- if( !jQuery.fn.trumbowyg ){
1522
- jQuery.getScript( js, function(){
1523
- callback();
1524
- });
1525
- }else{
1526
- callback();
1527
- }
1528
- }
1529
-
1530
- function wpsr_sharebar_preview_close(){
1531
- jQuery( '.sharebar_preview_iwrap' ).hide();
1532
- jQuery( 'body' ).removeClass( 'hide_scrollbar' );
1533
- }
1534
-
1535
- function wpsr_open_popup( url, title, w, h ){
1536
- var left = ( screen.width/2 )-( w/2 ),
1537
- top = ( screen.height/2 )-( h/2 );
1538
-
1539
- return window.open( url, title, 'toolbar=no,location=no,menubar=no,scrollbars=no,width='+w+',height='+h+',top='+top+',left='+left );
1540
- }
1541
-
1542
  function wpsr_init_image_selects(){
1543
  jQuery( '.img_select_list li' ).each(function(){
1544
  $li = jQuery(this);
2
  jQuery(document).ready(function(){
3
 
4
  var init = function(){
5
+
 
 
 
 
6
  if( $.fn.sortable ){
7
+
 
 
 
 
 
 
 
 
 
8
  $( '.fb_selected' ).sortable({
9
  axis: 'y',
10
  handle: 'h4',
44
  if( wpsr_show[ 'changelog' ] != 'false' ){
45
  changelog_show( window.wpsr_show[ 'changelog' ] );
46
  }
 
 
 
47
  }
48
+
49
+ tabs();
50
+
51
  wpsr_init_image_selects();
 
 
52
 
53
  }
54
 
169
  }
170
 
171
  }
172
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  var feature_toggle = function(){
174
  var $ft_wrap = $( '.feature_wrap' );
175
 
192
  });
193
  }
194
 
195
+ var tabs = function(){
196
+
197
+ $('.tab_list li:first-child').addClass('active');
198
+ $('.tab_wrap > div:first-child').addClass('active');
199
+
200
+ $('.tab_list a').click(function(e){
201
+
202
+ e.preventDefault();
203
+
204
+ var id = $(this).attr('href').substr(1);
205
+
206
+ var $tab_list = $(this).closest('.tab_list');
207
+ var $tab_wrap = $tab_list.next('.tab_wrap');
208
+
209
+ $tab_wrap.children('div').removeClass('active');
210
+ $tab = $tab_wrap.find('[data-tab="' + id + '"]');
211
+ $tab.addClass('active');
212
+
213
+ $tab_list.find('li').removeClass('active');
214
+ $(this).parent().addClass('active');
215
+
216
+ });
217
+
218
+ }
219
+
220
  var changelog_show = function( version ){
221
  vFile = wpsr.ext_res[ 'wp-socializer-cl' ] + version + '.html';
222
  $wcPopup = $( '.welcome_wrap' );
229
 
230
  var changelog_hide = function(){
231
  var url = wpsr.ajaxurl + '?action=wpsr_admin_ajax&do=close_changelog';
232
+
233
+ $('.close_changelog_btn').append( '<i class="fas fa-spinner fa-spin changelog_icon"></i>' );
234
+
235
  $.get( url, function( data ){
236
  if( data.search( /done/g ) == -1 ){
237
  $( '.welcome_wrap section' ).html( 'Failed to close window. <a href="' + url + '" target="_blank">Please click here to close</a>' );
238
  }else{
239
  $( '.welcome_wrap' ).fadeOut();
240
+ $(' .changelog_icon' ).remove();
241
  }
242
  });
243
 
244
  window.changelog_on = false;
245
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  }
247
 
248
  // Attach the events
249
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  $(document).on('submit', function(e){
 
251
  loc_generate_rules();
252
  });
253
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  $(document).on( 'change', '.loc_rule_select', function(e){
255
 
256
  $parent = $(this).parent();
286
 
287
  });
288
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
  $(document).on( 'click', '.loc_group_add', function(e){
290
  e.preventDefault();
291
  loc_add_rule( true, $(this) );
343
  }
344
 
345
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
346
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
347
  $( document ).on( 'click', '.fb_add', function(){
348
  $sel_list = $( '.fb_selected' );
349
  sel_val = $( '.fb_list' ).val();
357
  li_tmpl = li_tmpl.replace( /%url%/g, '' );
358
  li_tmpl = li_tmpl.replace( /%iurl%/g, '' );
359
  li_tmpl = li_tmpl.replace( /%text%/g, '' );
360
+ $li_tmpl = $( li_tmpl );
361
+
362
+ $sel_list.append( $li_tmpl );
363
 
364
+ $sel_list.find( 'div' ).slideUp();
365
+ $li_tmpl.find( 'div' ).slideDown();
366
+
367
  });
368
 
369
+ $( document ).on( 'click', '.fb_selected h4', function(e){
370
  e.preventDefault();
371
  var $to_open = $(this).closest( 'li' ).find( 'div' );
372
  $( '.fb_selected li > div' ).not($to_open).hide();
451
  alert( 'Please click "open editor" to rearrange the buttons' );
452
  });
453
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454
  // Import data
455
  $( document ).on( 'submit', '#import_form', function( e ){
456
  e.preventDefault();
476
  });
477
  });
478
 
 
 
 
 
 
 
 
 
479
  $( document ).on( 'click', '.template_tab li', function(){
480
  id = $(this).index() + 1;
481
  $('.template_tab li').removeClass( 'templ_tab_active' );
483
  $('.template_wrap[data-id="' + id + '"]').fadeIn( 'slow' );
484
  $(this).addClass( 'templ_tab_active' );
485
  });
486
+
487
  // Popup editor on click events
488
  $( document ).on( 'click', '.wpsr_ppe_save', function(){
489
  mode = $(this).data( 'mode' );
533
 
534
  }
535
  });
536
+
537
  $( document ).on( 'click', '.wpsr_ppe_cancel', function(){
538
  if( window.parent.wpsr_ipopup_close ){
539
  window.parent.wpsr_ipopup_close();
548
  cnt_id = $( this ).attr( 'data-cnt-id' );
549
  cnt = $( '#' + cnt_id ).val();
550
  prev_id = $( this ).attr( 'data-prev-id' );
551
+ qstring = 'action=wpsr_follow_icons_editor&template=' + cnt + '&cnt_id=' + cnt_id + '&prev_id=' + prev_id;
552
 
553
+ wpsr_ipopup_show( wpsr.ajaxurl + '?' + qstring, '80%', '80%' );
554
 
555
  }
556
  });
560
  changelog_hide();
561
  });
562
 
563
+ $( document ).on( 'click', '.tblr_btn', function(e){
564
  e.preventDefault();
 
 
 
 
565
  var id = $(this).data('id');
566
  $('[data-tglr="' + id + '"]').toggle();
567
  });
849
  document.wpsr_tt_parent = false;
850
  }
851
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
852
  function wpsr_init_image_selects(){
853
  jQuery( '.img_select_list li' ).each(function(){
854
  $li = jQuery(this);
admin/js/script_setup.js DELETED
@@ -1,367 +0,0 @@
1
- (function($){
2
- jQuery(document).ready(function(){
3
-
4
- var currentPage = 1;
5
- var setupTime = 0;
6
- var $tmplTarget = false;
7
-
8
- var setupData = {
9
- 'share_buttons': {
10
- 'above_post': 0,
11
- 'below_post': 0
12
- },
13
- 'sharebar': 0,
14
- 'followbar': 0,
15
- 'text_sharebar': 0,
16
- 'mobile_sharebar': 0
17
- };
18
-
19
- var init = function(){
20
-
21
- afterPageChange();
22
- tmplPreviewCheck();
23
- startTimer();
24
- init_image_selects();
25
-
26
- $( '#sb_btn_option' ).trigger( 'change' );
27
-
28
- }
29
-
30
- var afterPageChange = function(){
31
-
32
- $activePage = $( '.page.active' );
33
- $nextBtn = $( '.next_btn' );
34
- $prevBtn = $( '.prev_btn' );
35
- $skipBtn = $( '.skip_btn' );
36
-
37
- currentPage = $activePage.data( 'page' );
38
- totalPages = $( '.pages .page' ).length;
39
-
40
- if( currentPage == totalPages - 1 ){
41
- $nextBtn.find( '.text' ).text( $nextBtn.data( 'finish' ) );
42
- }else{
43
- $nextBtn.find( '.text' ).text( $nextBtn.data( 'next' ) );
44
- }
45
-
46
- if( $activePage.prev().length == 0 ){
47
- $prevBtn.hide();
48
- }else{
49
- $prevBtn.show();
50
- $skipBtn.hide();
51
- }
52
-
53
- if( $activePage.next().length == 0 ){
54
- $nextBtn.hide();
55
- }else{
56
- $nextBtn.show();
57
- }
58
-
59
- $( '.progress li' ).removeClass( 'active' );
60
- $( '.progress li[data-id="' + currentPage + '"]' ).addClass( 'active' );
61
-
62
- // Last page
63
- if( currentPage == totalPages ){
64
- saveSetup();
65
- }
66
-
67
- }
68
-
69
- var goNextPage = function(){
70
-
71
- var $activePage = $( '.page.active' );
72
- var $nextPage = $activePage.next();
73
-
74
- $activePage.removeClass( 'active' );
75
- $nextPage.addClass( 'active' ).fadeTo( 'fast', 0 ).fadeTo( 'slow', 1 );
76
-
77
- afterPageChange();
78
- }
79
-
80
- var goPrevPage = function(){
81
-
82
- var $activePage = $( '.page.active' );
83
- var $prevPage = $activePage.prev();
84
-
85
- $activePage.removeClass( 'active' );
86
- $prevPage.addClass( 'active' ).fadeTo( 'fast', 0 ).fadeTo( 'slow', 1 );
87
-
88
- afterPageChange();
89
- }
90
-
91
- var saveSetup = function(){
92
-
93
- $smsg = $( '.saving_msg' );
94
- $sdone = $( '.saving_done' );
95
-
96
- $smsg.show();
97
- $sdone.hide();
98
-
99
- // Sharebar
100
- if( $( '#ft_sharebar' ).is( ':checked' ) ){
101
- var sharebar_list = [];
102
- $( '.sharebar_btns li.active' ).each(function(){
103
- sharebar_list.push( $(this).data( 'id' ) );
104
- });
105
- setupData[ 'sharebar' ] = {
106
- 'orientation': $( '#sb_orientation' ).val(),
107
- 'buttons': sharebar_list
108
- };
109
- }
110
-
111
- // Followbar
112
- if( $( '#ft_followbar' ).is( ':checked' ) ){
113
- var fb_template = $( '#fb_template_val' ).val();
114
- if( fb_template != '' ){
115
- setupData[ 'followbar' ] = fb_template;
116
- }
117
- }
118
-
119
- // Text sharebar
120
- if( $( '#ft_textsharebar' ).is( ':checked' ) ){
121
- setupData[ 'text_sharebar' ] = 1;
122
- }
123
-
124
- // Mobile sharebar
125
- if( $( '#ft_mobilesharebar' ).is( ':checked' ) ){
126
- setupData[ 'mobile_sharebar' ] = 1;
127
- }
128
-
129
- setupData[ '_wpnonce' ] = $smsg.data( 'nonce' );
130
-
131
- if( wpsr.ajaxurl ){
132
- var queryString = '?action=wpsr_setup';
133
- var postLocation = wpsr.ajaxurl + queryString;
134
-
135
- var failed = function( d ){
136
- alert( 'Failed to save the data, please try again !' );
137
- goPrevPage();
138
- console.log( d );
139
- };
140
-
141
- var ajax = $.post( postLocation, setupData );
142
-
143
- ajax.done(function( res ){
144
- if( res.search( 'SETUP_SAVED' ) != -1 ){
145
- $smsg.hide();
146
- $sdone.slideDown();
147
- displayTime();
148
- }else{
149
- failed( res );
150
- }
151
- });
152
-
153
- ajax.fail(function( d ){
154
- failed( d );
155
- });
156
- }
157
-
158
- console.log( setupData );
159
-
160
- }
161
-
162
- var tmplPreviewCheck = function(){
163
-
164
- var $tmplPreview = $( '.tmpl_preview' );
165
-
166
- $tmplPreview.each(function(){
167
- if( $(this).is( ':empty' ) ){
168
- $(this).html( '<span>' + $(this).data( 'etext' ) + '</span>' );
169
- }
170
- });
171
- }
172
-
173
- var tmplPreviewClose = function(){
174
- $( '.tmpl_popup' ).hide();
175
- $( '.tmpl_list li' ).removeClass( 'selected' );
176
- tmplPreviewCheck();
177
- }
178
-
179
- var startTimer = function(){
180
- window.setupTimerID = setInterval(function(){
181
- setupTime += 1;
182
- }, 1000 );
183
- }
184
-
185
- var displayTime = function(){
186
- clearInterval( window.setupTimerID );
187
- var timeTook = Math.floor( setupTime/60 );
188
- var the_time = 0;
189
-
190
- if( setupTime < 60 ){
191
- the_time = setupTime + ' seconds';
192
- }else if( timeTook == 1 ){
193
- the_time = '1 minute';
194
- }else if ( timeTook > 1 ){
195
- the_time = timeTook + ' minutes';
196
- }
197
-
198
- if ( timeTook < 8 ){
199
- $( '.timer_text' ).html( 'You took only <b>' + the_time + '</b> to setup social sharing buttons using WP Socializer !' );
200
- }else{
201
- $( '.timer_text' ).hide();
202
- }
203
- }
204
-
205
- var init_image_selects = function(){
206
- jQuery( '.img_select_list li' ).each(function(){
207
- $li = jQuery(this);
208
- if( $li.attr( 'data-init' ) == 'false' ){
209
- $li.on( 'click', function(){
210
- $the_li = jQuery(this);
211
- $parent = $the_li.parent();
212
- $org = $parent.prev();
213
- $parent.find( 'li' ).removeClass( 'img_opt_selected' );
214
- $the_li.addClass( 'img_opt_selected' );
215
- $org.val( $the_li.attr( 'data-value' ) );
216
- $org.trigger( 'change' );
217
- });
218
- $li.attr( 'data-init', 'true' );
219
- }
220
- });
221
- }
222
-
223
- $( document ).on( 'click', '.next_btn', function(){
224
- goNextPage();
225
- });
226
-
227
- $( document ).on( 'click', '.prev_btn', function(){
228
- goPrevPage();
229
- });
230
-
231
- $( document ).on( 'click', '.tmpl_sel', function(){
232
- $( '.tmpl_popup' ).fadeIn();
233
- $tmplTarget = $(this);
234
- });
235
-
236
- $( document ).on( 'click', '.tmpl_list li', function(){
237
- if( $(this).hasClass( 'selected' ) ){
238
- $(this).removeClass( 'selected' );
239
- }else{
240
- $( '.tmpl_list li' ).removeClass( 'selected' );
241
- $(this).addClass( 'selected' );
242
- }
243
- });
244
-
245
- $( document ).on( 'click', '.tmpl_pp_close', function(e){
246
- e.preventDefault();
247
- tmplPreviewClose();
248
- });
249
-
250
- $( document ).on( 'click', '.tmpl_apply_btn', function(){
251
-
252
- if( $tmplTarget ){
253
-
254
- var tmplHTML = '';
255
- var tmplFor = $tmplTarget.data( 'for' );
256
- var $tmplSelected = $( '.tmpl_list li.selected' );
257
- var tmplSelID = $tmplSelected.data( 'id' );
258
-
259
- if( $tmplSelected.length > 0 && $tmplSelected.data( 'id' ) != '0' ){
260
- tmplHTML = $tmplSelected.html();
261
- setupData[ 'share_buttons' ][ tmplFor ] = tmplSelID;
262
- }else{
263
- setupData[ 'share_buttons' ][ tmplFor ] = 0;
264
- }
265
-
266
- $tmplTarget.find( '.tmpl_preview' ).html( tmplHTML );
267
-
268
- if( tmplHTML != '' ){
269
- $tmplTarget.removeClass( 'not_sel' ).addClass( 'preview_active' );
270
- }else{
271
- $tmplTarget.addClass( 'not_sel' ).removeClass( 'preview_active' );
272
- }
273
-
274
- }
275
-
276
- tmplPreviewClose();
277
-
278
- });
279
-
280
- $( document ).on( 'click', '.tmpl_clear_btn', function(){
281
- if( $tmplTarget ){
282
- var tmplFor = $tmplTarget.data( 'for' );
283
- setupData[ 'share_buttons' ][ tmplFor ] = 0;
284
- $tmplTarget.find( '.tmpl_preview' ).html( '' );
285
- $tmplTarget.addClass( 'not_sel' ).removeClass( 'preview_active' );
286
- }
287
- tmplPreviewClose();
288
- });
289
-
290
- $( document ).on( 'click', '.cb[data-toggle]', function(){
291
- var targetClass = $(this).data( 'toggle' );
292
- $( '.' + targetClass ).slideToggle();
293
- $( '[data-qwait="' + targetClass + '"]' ).slideToggle();
294
- });
295
-
296
- $( document ).on( 'click', '.sharebar_btns li', function(){
297
- $(this).toggleClass( 'active' );
298
-
299
- var selCount = $( '.sharebar_btns li.active' ).length;
300
- if( selCount > 0 ){
301
- $(this).parent().addClass( 'btns_selected' );
302
- }else{
303
- $(this).parent().removeClass( 'btns_selected' );
304
- }
305
-
306
- });
307
-
308
- $( document ).on( 'click', '.wpsr_ppe_fb_open', function(e){
309
- e.preventDefault();
310
-
311
- if( wpsr.ajaxurl ){
312
-
313
- cnt_id = $( this ).attr( 'data-cnt-id' );
314
- cnt = $( '#' + cnt_id ).val();
315
- prev_id = $( this ).attr( 'data-prev-id' );
316
- qstring = 'action=wpsr_followbar_editor&template=' + cnt + '&cnt_id=' + cnt_id + '&prev_id=' + prev_id;
317
-
318
- wpsr_ipopup_show( wpsr.ajaxurl + '?' + qstring, '500px', '80%' );
319
-
320
- }
321
- });
322
-
323
- $( document ).on( 'change', '#sb_btn_option', function(){
324
-
325
- var sb_btns = $(this).val();
326
- $( '.sharebar_btns li' ).removeClass( 'active' );
327
-
328
- if( sb_btns == 'native_buttons' ){
329
- $( '.sharebar_btn_opts' ).slideDown();
330
- }else if( sb_btns == 'icons' ){
331
- $( '.sharebar_btn_opts' ).slideUp();
332
- $( '.sharebar_btns li[data-id="social_icons"]' ).addClass( 'active' );
333
- }else if( sb_btns = 'icons_counter' ){
334
- $( '.sharebar_btn_opts' ).slideUp();
335
- $( '.sharebar_btns li[data-id="social_icons"]' ).addClass( 'active' );
336
- $( '.sharebar_btns li[data-id="share_counter"]' ).addClass( 'active' );
337
- }
338
- });
339
-
340
- $( document ).on( 'click', '.skip_btn', function(){
341
- var $btn = $(this);
342
- if( wpsr.ajaxurl ){
343
- var url = wpsr.ajaxurl + '?action=wpsr_admin_ajax&do=close_setup';
344
- $.get( url, function( data ){
345
- if( data.search( /done/g ) == -1 ){
346
- $( '[data-page="1"]' ).html( 'Failed to close window. <a href="' + url + '" target="_blank">Please click here to close</a>' );
347
- }else{
348
- window.location = $btn.data( 'return' );
349
- }
350
- });
351
- }
352
- });
353
-
354
- $( document ).on( 'click', '.tmpl_cat_name', function(){
355
- $( '.tmpl_list' ).slideUp();
356
- $list = $(this).next();
357
- if( $list.is( ':visible' ) ){
358
- $list.slideUp();
359
- }else{
360
- $list.slideDown();
361
- }
362
- });
363
-
364
- init();
365
-
366
- });
367
- })( jQuery );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/script_widgets.js CHANGED
@@ -6,8 +6,9 @@ jQuery(document).ready(function(){
6
 
7
  if(window.location.hash) {
8
  var hash = window.location.hash.substring(1);
9
- if( hash == 'wp-socializer' ){
10
- $widget = $( '#available-widgets [id*="wpsr_main_widget"]' );
 
11
  $(window).scrollTop( $widget.offset().top - 300 );
12
  $widget.addClass( 'wpsr_widget_highlight' );
13
  }
@@ -25,28 +26,6 @@ jQuery(document).ready(function(){
25
  loadColorPicker();
26
  });
27
 
28
- $( document ).on( 'change', '.wpsr_widget_selector', function(){
29
- $form = $(this).closest( 'form' );
30
- $form.find( '.wpsr_widget_wrap' ).fadeTo( 'fast', 0.3, function(){
31
- $form.find( '.widget-control-save' ).trigger( 'click' );
32
- });
33
- });
34
-
35
- $( document ).on( 'click', '.wpsr_ppe_widget_open', function(e){
36
- e.preventDefault();
37
-
38
- if( wpsr_ppe_ajax != '' ){
39
-
40
- wtmpl_cnt_id = $( this ).attr( 'data-wtmpl-cnt-id' );
41
- wtmpl_cnt = $( '#' + wtmpl_cnt_id ).val();
42
- wtmpl_prev_id = $( this ).attr( 'data-wtmpl-prev-id' );
43
- qstring = 'action=wpsr_widget_buttons&template=' + wtmpl_cnt + '&cnt_id=' + wtmpl_cnt_id + '&prev_id=' + wtmpl_prev_id;
44
-
45
- wpsr_ipopup_show( wpsr_ppe_ajax + '?' + qstring, '1200px', '80%' );
46
-
47
- }
48
- });
49
-
50
  $( document ).on( 'click', '.wpsr_ppe_fb_open', function(e){
51
  e.preventDefault();
52
 
@@ -55,14 +34,14 @@ jQuery(document).ready(function(){
55
  wtmpl_cnt_id = $( this ).attr( 'data-wtmpl-cnt-id' );
56
  wtmpl_cnt = $( '#' + wtmpl_cnt_id ).val();
57
  wtmpl_prev_id = $( this ).attr( 'data-wtmpl-prev-id' );
58
- qstring = 'action=wpsr_followbar_editor&template=' + wtmpl_cnt + '&cnt_id=' + wtmpl_cnt_id + '&prev_id=' + wtmpl_prev_id;
59
 
60
- wpsr_ipopup_show( wpsr_ppe_ajax + '?' + qstring, '500px', '80%' );
61
 
62
  }
63
  });
64
 
65
- // Initinitinitinitinit
66
  init();
67
 
68
  });
6
 
7
  if(window.location.hash) {
8
  var hash = window.location.hash.substring(1);
9
+ if( hash.startsWith( 'wp-socializer' ) ){
10
+ var widget_name = hash.split(':')[1];
11
+ $widget = $( '#available-widgets [id*="wpsr_' + widget_name + '_widget"]' );
12
  $(window).scrollTop( $widget.offset().top - 300 );
13
  $widget.addClass( 'wpsr_widget_highlight' );
14
  }
26
  loadColorPicker();
27
  });
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  $( document ).on( 'click', '.wpsr_ppe_fb_open', function(e){
30
  e.preventDefault();
31
 
34
  wtmpl_cnt_id = $( this ).attr( 'data-wtmpl-cnt-id' );
35
  wtmpl_cnt = $( '#' + wtmpl_cnt_id ).val();
36
  wtmpl_prev_id = $( this ).attr( 'data-wtmpl-prev-id' );
37
+ qstring = 'action=wpsr_follow_icons_editor&template=' + wtmpl_cnt + '&cnt_id=' + wtmpl_cnt_id + '&prev_id=' + wtmpl_prev_id;
38
 
39
+ wpsr_ipopup_show( wpsr_ppe_ajax + '?' + qstring, '80%', '80%' );
40
 
41
  }
42
  });
43
 
44
+ // Init
45
  init();
46
 
47
  });
admin/js/setup/buttons.json DELETED
@@ -1,108 +0,0 @@
1
- {
2
- "sb-1":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOmZhbHNlLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6ZmFsc2V9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOmZhbHNlfX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjpmYWxzZSwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOmZhbHNlfX0seyJwaW50ZXJlc3QiOnsiY291bnQiOmZhbHNlLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6ZmFsc2V9fSx7InByaW50Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjpmYWxzZX19LHsiZW1haWwiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOmZhbHNlfX0seyJzaG9ydGxpbmsiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOmZhbHNlfX1d","sr-sizes":"32px","sr-shapes":"","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
3
-
4
- "sb-2":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsidHdpdHRlciI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7Imdvb2dsZXBsdXMiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsicGludGVyZXN0Ijp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOjF9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImVtYWlsIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"ribbon","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
5
-
6
- "sb-3":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJjb3VudCI6MSwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsibGlua2VkaW4iOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"circle","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-3","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
7
-
8
- "sb-4":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsiZ29vZ2xlcGx1cyI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoxfX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsibGlua2VkaW4iOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsidHdpdHRlciI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImVtYWlsIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-2","sr-shadow":"sw-icon-1","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
9
-
10
- "sb-5":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsiZ29vZ2xlcGx1cyI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoxfX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsibGlua2VkaW4iOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsidHdpdHRlciI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImVtYWlsIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"circle","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"","sr-border-color":"","sr-background-color":"bg-white","sr-count-style":"count-3","sr-shadow":"sw-1","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
11
-
12
- "sb-6":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJjb3VudCI6MSwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsibGlua2VkaW4iOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-3","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
13
-
14
- "sb-7":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJjb3VudCI6MSwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsibGlua2VkaW4iOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsicG9ja2V0Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjpmYWxzZX19LHsicmVkZGl0Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjpmYWxzZX19LHsiaGFja2VybmV3cyI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6ZmFsc2V9fSx7InN0dW1ibGV1cG9uIjp7ImNvdW50IjpmYWxzZSwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOmZhbHNlfX0seyJ0dW1ibHIiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOmZhbHNlfX0seyJwZGYiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOmZhbHNlfX0seyJwcmludCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6ZmFsc2V9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-3","sr-shadow":"","sr-pad":"","text-styles":"in","more_sites":"7","open_popup":""}},
15
-
16
- "sb-9":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsiZ29vZ2xlcGx1cyI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoxfX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsibGlua2VkaW4iOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsidHdpdHRlciI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImVtYWlsIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicG9ja2V0Ijp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsicmVkZGl0Ijp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsiaGFja2VybmV3cyI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InN0dW1ibGV1cG9uIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJ0dW1ibHIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJwZGYiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJwcmludCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"48px","sr-shapes":"circle","sr-hover":"shrink","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"7","open_popup":""}},
17
-
18
- "sb-10":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBvY2tldCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImhhY2tlcm5ld3MiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJzdHVtYmxldXBvbiI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsidHVtYmxyIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsicGRmIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsicHJpbnQiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX1d","sr-sizes":"32px","sr-shapes":"drop","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"7","open_popup":""}},
19
-
20
- "sb-11":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBvY2tldCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImhhY2tlcm5ld3MiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJzdHVtYmxldXBvbiI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsidHVtYmxyIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsicGRmIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsicHJpbnQiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX1d","sr-sizes":"32px","sr-shapes":"diamond","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"7","open_popup":""}},
21
-
22
- "sb-12":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBvY2tldCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImhhY2tlcm5ld3MiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJzdHVtYmxldXBvbiI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsicHJpbnQiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX1d","sr-sizes":"48px","sr-shapes":"","sr-hover":"float","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"sw-2","sr-pad":"","text-styles":"in","more_sites":"7","open_popup":""}},
23
-
24
- "sb-a-1":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IjEiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiU2hhcmUgb24gRmFjZWJvb2siLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"squircle-2","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"sw-icon-1","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
25
-
26
- "sb-a-2":{"features":["buttons"],"settings":{"selected_sites":"W3sidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IlR3ZWV0ICEiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIxIn19LHsiZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7Imdvb2dsZXBsdXMiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBpbnRlcmVzdCI6eyJjb3VudCI6IiIsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsibGlua2VkaW4iOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"circle","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
27
-
28
- "sb-a-3":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IlNoYXJlIG9uIEZhY2Vib29rIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiMSJ9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiJUd2VldCAhIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJjb3VudCI6IiIsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicGludGVyZXN0Ijp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJsaW5rZWRpbiI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsiZW1haWwiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX1d","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
29
-
30
- "sb-a-4":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IlNoYXJlIG9uIEZhY2Vib29rIiwiY291bnQiOiIifX0seyJ0d2l0dGVyIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiVHdlZXQgISJ9fSx7Imdvb2dsZXBsdXMiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InBpbnRlcmVzdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsibGlua2VkaW4iOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImVtYWlsIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
31
-
32
- "sb-a-5":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IlNoYXJlIG9uIEZhY2Vib29rIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoxfX0seyJ0d2l0dGVyIjp7ImN1c3RvbV90ZXh0IjoiVHdlZXQgISIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7Imdvb2dsZXBsdXMiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBpbnRlcmVzdCI6eyJjb3VudCI6IiIsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsibGlua2VkaW4iOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"circle","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"","sr-border-color":"","sr-background-color":"bg-white","sr-count-style":"count-1","sr-shadow":"sw-1","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
33
-
34
- "sb-13":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJlbWFpbCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InBvY2tldCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImhhY2tlcm5ld3MiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJzdHVtYmxldXBvbiI6eyJjb3VudCI6IiIsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicHJpbnQiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX1d","sr-sizes":"48px","sr-shapes":"","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"7","open_popup":""}},
35
-
36
- "sb-14":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBvY2tldCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImhhY2tlcm5ld3MiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJzdHVtYmxldXBvbiI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsicHJpbnQiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX1d","sr-sizes":"48px","sr-shapes":"ribbon","sr-hover":"sink","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"","text-styles":"in","more_sites":"7","open_popup":""}},
37
-
38
- "sb-16":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBvY2tldCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImhhY2tlcm5ld3MiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJzdHVtYmxldXBvbiI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsicHJpbnQiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX1d","sr-sizes":"32px","sr-shapes":"circle","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"7","open_popup":""}},
39
-
40
- "sb-17":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBvY2tldCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImhhY2tlcm5ld3MiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJzdHVtYmxldXBvbiI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsicHJpbnQiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX1d","sr-sizes":"32px","sr-shapes":"","sr-hover":"float","sr-layout":"fluid","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"sw-2","sr-pad":"","text-styles":"in","more_sites":"7","open_popup":""}},
41
-
42
- "sb-18":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJlbWFpbCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InBvY2tldCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImhhY2tlcm5ld3MiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJzdHVtYmxldXBvbiI6eyJjb3VudCI6IiIsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicHJpbnQiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX1d","sr-sizes":"32px","sr-shapes":"","sr-hover":"zoom","sr-layout":"fluid","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-white","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"7","open_popup":""}},
43
-
44
- "sb-19":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBvY2tldCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImhhY2tlcm5ld3MiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJzdHVtYmxldXBvbiI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsicHJpbnQiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX1d","sr-sizes":"32px","sr-shapes":"squircle-2","sr-hover":"fade-white","sr-layout":"fluid","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"7","open_popup":""}},
45
-
46
- "sb-20":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBvY2tldCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImhhY2tlcm5ld3MiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJzdHVtYmxldXBvbiI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsicHJpbnQiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX1d","sr-sizes":"32px","sr-shapes":"circle","sr-hover":"float","sr-layout":"fluid","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"7","open_popup":""}},
47
-
48
- "sb-22":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJlbWFpbCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InBvY2tldCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InN0dW1ibGV1cG9uIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwcmludCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"6","open_popup":""}},
49
-
50
- "sb-24":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJlbWFpbCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InBvY2tldCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InN0dW1ibGV1cG9uIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwcmludCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"bdr-md","sr-border-color":"bdr-dark","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"sw-icon-1","sr-pad":"pad","text-styles":"in","more_sites":"6","open_popup":""}},
51
-
52
- "sb-26":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJlbWFpbCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InBvY2tldCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InN0dW1ibGV1cG9uIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwcmludCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fV0=","sr-sizes":"48px","sr-shapes":"squircle","sr-hover":"sink","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"6","open_popup":""}},
53
-
54
- "sb-27":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBvY2tldCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InN0dW1ibGV1cG9uIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwcmludCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"drop","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"6","open_popup":""}},
55
-
56
- "sb-29":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7InR3aXR0ZXIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJnb29nbGVwbHVzIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBvY2tldCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InN0dW1ibGV1cG9uIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwcmludCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"ribbon","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"6","open_popup":""}},
57
-
58
- "sb-30":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJlbWFpbCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InBvY2tldCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InN0dW1ibGV1cG9uIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwcmludCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"circle","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-2","sr-shadow":"sw-1","sr-pad":"pad","text-styles":"in","more_sites":"6","open_popup":""}},
59
-
60
- "sb-text-1":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsidHdpdHRlciI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsiZW1haWwiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
61
-
62
- "sb-text-2":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsidHdpdHRlciI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsiZW1haWwiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
63
-
64
- "sb-text-3":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZ29vZ2xlcGx1cyI6eyJjb3VudCI6IiIsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoxfX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZW1haWwiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOjF9fV0=","sr-sizes":"32px","sr-shapes":"squircle-2","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
65
-
66
- "sb-text-4":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZ29vZ2xlcGx1cyI6eyJjb3VudCI6IiIsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoxfX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZW1haWwiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOjF9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"float","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"sw-2","sr-pad":"","text-styles":"in","more_sites":"0","open_popup":""}},
67
-
68
- "sb-text-7":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsidHdpdHRlciI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsiZW1haWwiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"circle","sr-hover":"float","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"","sr-border-color":"","sr-background-color":"bg-white","sr-count-style":"count-1","sr-shadow":"sw-1","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
69
-
70
- "sb-text-9":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsidHdpdHRlciI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsiZW1haWwiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"sink","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"","text-styles":"in","more_sites":"0","open_popup":""}},
71
-
72
- "sb-count-text-1":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoxfX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsicGludGVyZXN0Ijp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZW1haWwiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOjF9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6ZmFsc2V9fSx7InJlZGRpdCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6ZmFsc2V9fSx7ImxpbmtlZGluIjp7ImNvdW50IjpmYWxzZSwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOmZhbHNlfX0seyJwcmludCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6ZmFsc2V9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"float","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-3","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"4","open_popup":""}},
73
-
74
- "sb-count-text-2":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoxfX0seyJnb29nbGVwbHVzIjp7InRleHQiOjEsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsicGludGVyZXN0Ijp7InRleHQiOjEsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsidHdpdHRlciI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsiZW1haWwiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InNob3J0bGluayI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwcmludCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"zoom","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-3","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"4","open_popup":""}},
75
-
76
- "sb-count-text-5":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoxfX0seyJ0d2l0dGVyIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoxfX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsicGludGVyZXN0Ijp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZW1haWwiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOjF9fSx7InNob3J0bGluayI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InJlZGRpdCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwcmludCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"sink","sr-layout":"fluid","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-3","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"4","open_popup":""}},
77
-
78
- "sb-count-bbl-2":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoxfX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsicGludGVyZXN0Ijp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicmVkZGl0Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsibGlua2VkaW4iOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InByaW50Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"squircle-2","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"bb-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"4","open_popup":""}},
79
-
80
- "sb-count-bbl-5":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoxfX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsicGludGVyZXN0Ijp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicmVkZGl0Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsibGlua2VkaW4iOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InByaW50Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"squircle","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"bb-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"4","open_popup":""}},
81
-
82
- "sb-only-text-1":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZ29vZ2xlcGx1cyI6eyJjb3VudCI6IiIsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoxfX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsibGlua2VkaW4iOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsiZW1haWwiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOjF9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"no-icon","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
83
-
84
- "sb-only-text-2":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsidHdpdHRlciI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsibGlua2VkaW4iOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZW1haWwiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"no-icon","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
85
-
86
- "sb-only-text-4":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsidHdpdHRlciI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsibGlua2VkaW4iOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZW1haWwiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"no-icon","icon_color":"#fff","sr-border-width":"bdr-md","sr-border-color":"bdr-dark","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"sw-icon-1","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
87
-
88
- "sb-only-text-5":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsidHdpdHRlciI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsiZ29vZ2xlcGx1cyI6eyJ0ZXh0IjoxLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJwaW50ZXJlc3QiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiIsImNvdW50IjoiIn19LHsibGlua2VkaW4iOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZW1haWwiOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"fluid","sr-font-size":"","sr-icon-display":"no-icon","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"sw-2","sr-pad":"","text-styles":"in","more_sites":"0","open_popup":""}},
89
-
90
- "sb-spcl-1":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiU2hhcmUgb24gRmFjZWJvb2siLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOjF9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiJUd2VldCIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6MX19LHsiZ29vZ2xlcGx1cyI6eyJjb3VudCI6MSwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsiZW1haWwiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJsaW5rZWRpbiI6eyJjb3VudCI6IiIsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoxfX0seyJzaG9ydGxpbmsiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJyZWRkaXQiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwcmludCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-2","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"4","open_popup":""}},
91
-
92
- "sb-b-1":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6MSwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IlNoYXJlIG9uIEZhY2Vib29rIiwiY291bnQiOiIifX0seyJ0d2l0dGVyIjp7InRleHQiOjEsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiJTaGFyZSBvbiBUd2l0dGVyIn19XQ==","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"","text-styles":"in","more_sites":"0","open_popup":""}},
93
-
94
- "sb-b-2":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsidHdpdHRlciI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7Imdvb2dsZXBsdXMiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIiLCJjb3VudCI6MX19LHsicGludGVyZXN0Ijp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOjF9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImVtYWlsIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicG9ja2V0Ijp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsicmVkZGl0Ijp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsiaGFja2VybmV3cyI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fSx7InN0dW1ibGV1cG9uIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOiIifX0seyJ0dW1ibHIiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJwZGYiOnsidGV4dCI6IiIsImN1c3RvbV91cmwiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3RleHQiOiIifX0seyJwcmludCI6eyJ0ZXh0IjoiIiwiY3VzdG9tX3VybCI6IiIsImljb24iOiIiLCJjdXN0b21fdGV4dCI6IiJ9fV0=","sr-sizes":"32px","sr-shapes":"circle","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"7","open_popup":""}},
95
-
96
- "sb-b-7":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7Imdvb2dsZXBsdXMiOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicGludGVyZXN0Ijp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOjF9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsicG9ja2V0Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicmVkZGl0Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsic3R1bWJsZXVwb24iOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBkZiI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InByaW50Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-sm","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"count-3","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"5","open_popup":""}},
97
-
98
- "sb-b-10":{"features":["buttons"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7Imdvb2dsZXBsdXMiOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicGludGVyZXN0Ijp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIiwiY291bnQiOjF9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsic2hvcnRsaW5rIjp7InRleHQiOiIiLCJjdXN0b21fdXJsIjoiIiwiaWNvbiI6IiIsImN1c3RvbV90ZXh0IjoiIn19LHsicG9ja2V0Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicmVkZGl0Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsic3R1bWJsZXVwb24iOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InBkZiI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InByaW50Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"circle","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"","sr-border-width":"bdr-md","sr-border-color":"","sr-background-color":"bg-none","bg_color": "transparent","sr-count-style":"bb-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"5","open_popup":""}},
99
-
100
- "sb_vl":{"features":["sharebar"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7Imdvb2dsZXBsdXMiOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicGludGVyZXN0Ijp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjpmYWxzZX19LHsicHJpbnQiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX1d","sr-sizes":"32px","sr-shapes":"squircle-2","sr-hover":"opacity","sr-layout":"vertical","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
101
-
102
- "sb_vl_light":{"features":["sharebar"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InByaW50Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"vertical","sr-font-size":"","sr-icon-display":"","icon_color":"", "bg_color":"transparent","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
103
-
104
- "sb_hl":{"features":["sharebar"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsidHdpdHRlciI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7Imdvb2dsZXBsdXMiOnsiY291bnQiOjEsImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicGludGVyZXN0Ijp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoxLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImVtYWlsIjp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19LHsicHJpbnQiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX1d","sr-sizes":"32px","sr-shapes":"squircle-2","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"#fff","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}},
105
-
106
- "sb_hl_light":{"features":["sharebar"],"settings":{"selected_sites":"W3siZmFjZWJvb2siOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InR3aXR0ZXIiOnsiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJnb29nbGVwbHVzIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiY291bnQiOiIiLCJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7ImxpbmtlZGluIjp7ImNvdW50IjoiIiwiY3VzdG9tX3RleHQiOiIiLCJpY29uIjoiIiwiY3VzdG9tX3VybCI6IiIsInRleHQiOiIifX0seyJlbWFpbCI6eyJjdXN0b21fdGV4dCI6IiIsImljb24iOiIiLCJjdXN0b21fdXJsIjoiIiwidGV4dCI6IiJ9fSx7InByaW50Ijp7ImN1c3RvbV90ZXh0IjoiIiwiaWNvbiI6IiIsImN1c3RvbV91cmwiOiIiLCJ0ZXh0IjoiIn19XQ==","sr-sizes":"32px","sr-shapes":"","sr-hover":"opacity","sr-layout":"","sr-font-size":"","sr-icon-display":"","icon_color":"", "bg_color":"transparent","sr-border-width":"","sr-border-color":"","sr-background-color":"","sr-count-style":"count-1","sr-shadow":"","sr-pad":"pad","text-styles":"in","more_sites":"0","open_popup":""}}
107
-
108
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/setup/templates.json DELETED
@@ -1,474 +0,0 @@
1
- {
2
- "template1": {
3
- "name": "Template 1",
4
- "category": "native",
5
- "content": [
6
- [ "fb_hl", "gp_hl", "twitter_hl", "linkedin_hl", "pocket_hl" ]
7
- ]
8
- },
9
- "template2": {
10
- "name": "Template 2",
11
- "category": "native",
12
- "content": [
13
- [ "fb_hl_lg", "twitter_hl_lg", "gp_hl_lg" ]
14
- ]
15
- },
16
-
17
- "template-spcl1": {
18
- "name": "Template Spcl 1",
19
- "category": "icons_text_count",
20
- "content": [
21
- [ "share_counter_hl", "sb-spcl-1" ]
22
- ]
23
- },
24
-
25
- "template-spcl2": {
26
- "name": "Template Spcl 2",
27
- "category": "native",
28
- "content": [
29
- [ "share_counter_vl", "sb-2" ],
30
- [ "fb_hl", "gp_hl", "twitter_hl", "linkedin_hl", "pocket_hl" ]
31
- ]
32
- },
33
-
34
- "template-spcl3": {
35
- "name": "Template spcl 3",
36
- "category": "native",
37
- "content": [
38
- [ "share_counter_hl", "fb_hl_nc", "twitter_hl", "gp_hl_nc", "linkedin_hl_nc", "pocket_hl_nc" ]
39
- ]
40
- },
41
-
42
- "template-spcl4": {
43
- "name": "Template spcl 4",
44
- "category": "icons_text_count",
45
- "content": [
46
- [ "share_counter_hl", "sb-b-1" ]
47
- ]
48
- },
49
-
50
- "template4": {
51
- "name": "Template 4",
52
- "category": "just_icons",
53
- "content": [
54
- [ "sb-1" ]
55
- ]
56
- },
57
-
58
- "template5": {
59
- "name": "Template 5",
60
- "category": "icons_count",
61
- "content": [
62
- [ "sb-2" ]
63
- ]
64
- },
65
-
66
- "template6": {
67
- "name": "Template 6",
68
- "category": "icons_count",
69
- "content": [
70
- [ "sb-3" ]
71
- ]
72
- },
73
-
74
- "template7": {
75
- "name": "Template 7",
76
- "category": "icons_count",
77
- "content": [
78
- [ "sb-4" ]
79
- ]
80
- },
81
-
82
- "template8": {
83
- "name": "Template 8",
84
- "category": "icons_count",
85
- "content": [
86
- [ "sb-5" ]
87
- ]
88
- },
89
-
90
- "template9": {
91
- "name": "Template 9",
92
- "category": "icons_count",
93
- "content": [
94
- [ "sb-6" ]
95
- ]
96
- },
97
-
98
- "template10": {
99
- "name": "Template 10",
100
- "category": "icons_count",
101
- "content": [
102
- [ "sb-7" ]
103
- ]
104
- },
105
-
106
- "template12": {
107
- "name": "Template 12",
108
- "category": "icons_count",
109
- "content": [
110
- [ "sb-9" ]
111
- ]
112
- },
113
-
114
- "template12-1": {
115
- "name": "Template 12-1",
116
- "category": "icons_count",
117
- "content": [
118
- [ "sb-b-2" ]
119
- ]
120
- },
121
-
122
- "template12-a2": {
123
- "name": "Template 12a2",
124
- "category": "icons_count",
125
- "content": [
126
- [ "sb-b-7" ]
127
- ]
128
- },
129
-
130
- "template12-a5": {
131
- "name": "Template 12a5",
132
- "category": "icons_count",
133
- "content": [
134
- [ "sb-b-10" ]
135
- ]
136
- },
137
-
138
- "template13": {
139
- "name": "Template 13",
140
- "category": "just_icons",
141
- "content": [
142
- [ "sb-10" ]
143
- ]
144
- },
145
-
146
- "template12-cmb-1": {
147
- "name": "Template 12cmb1",
148
- "category": "icons_count",
149
- "content": [
150
- [ "share_counter_hl", "sb-2" ]
151
- ]
152
- },
153
-
154
- "template12-cmb-2": {
155
- "name": "Template 12cmb2",
156
- "category": "icons_count",
157
- "content": [
158
- [ "share_counter_hl", "sb-3" ]
159
- ]
160
- },
161
-
162
- "template12-cmb-3": {
163
- "name": "Template 12cmb3",
164
- "category": "icons_count",
165
- "content": [
166
- [ "share_counter_hl", "sb-4" ]
167
- ]
168
- },
169
-
170
- "template12-cmb-6": {
171
- "name": "Template 12cmb6",
172
- "category": "icons_count",
173
- "content": [
174
- [ "share_counter_hl", "sb-7" ]
175
- ]
176
- },
177
-
178
- "template12-cmb-8": {
179
- "name": "Template 12cmb8",
180
- "category": "icons_count",
181
- "content": [
182
- [ "share_counter_vl", "sb-9" ]
183
- ]
184
- },
185
-
186
- "template12-cmb-9": {
187
- "name": "Template 12cmb9",
188
- "category": "icons_count",
189
- "content": [
190
- [ "share_counter_hl", "sb-10" ]
191
- ]
192
- },
193
-
194
- "template14": {
195
- "name": "Template 14",
196
- "category": "just_icons",
197
- "content": [
198
- [ "sb-11" ]
199
- ]
200
- },
201
-
202
- "template15": {
203
- "name": "Template 15",
204
- "category": "just_icons",
205
- "content": [
206
- [ "sb-12" ]
207
- ]
208
- },
209
-
210
- "template16": {
211
- "name": "Template 16",
212
- "category": "just_icons",
213
- "content": [
214
- [ "sb-13" ]
215
- ]
216
- },
217
-
218
- "template17": {
219
- "name": "Template 17",
220
- "category": "just_icons",
221
- "content": [
222
- [ "sb-14" ]
223
- ]
224
- },
225
-
226
- "template19": {
227
- "name": "Template 19",
228
- "category": "just_icons",
229
- "content": [
230
- [ "sb-16" ]
231
- ]
232
- },
233
-
234
- "template20": {
235
- "name": "Template 20",
236
- "category": "full_width",
237
- "content": [
238
- [ "sb-17" ]
239
- ]
240
- },
241
-
242
- "template21": {
243
- "name": "Template 21",
244
- "category": "full_width",
245
- "content": [
246
- [ "sb-18" ]
247
- ]
248
- },
249
-
250
- "template22": {
251
- "name": "Template 22",
252
- "category": "full_width",
253
- "content": [
254
- [ "sb-19" ]
255
- ]
256
- },
257
-
258
- "template23": {
259
- "name": "Template 23",
260
- "category": "full_width",
261
- "content": [
262
- [ "sb-20" ]
263
- ]
264
- },
265
-
266
- "template25": {
267
- "name": "Template 25",
268
- "category": "just_icons",
269
- "content": [
270
- [ "sb-22" ]
271
- ]
272
- },
273
-
274
- "template27": {
275
- "name": "Template 27",
276
- "category": "just_icons",
277
- "content": [
278
- [ "sb-24" ]
279
- ]
280
- },
281
-
282
- "template29": {
283
- "name": "Template 29",
284
- "category": "just_icons",
285
- "content": [
286
- [ "sb-26" ]
287
- ]
288
- },
289
-
290
- "template30": {
291
- "name": "Template 30",
292
- "category": "just_icons",
293
- "content": [
294
- [ "sb-27" ]
295
- ]
296
- },
297
-
298
- "template32": {
299
- "name": "Template 32",
300
- "category": "just_icons",
301
- "content": [
302
- [ "sb-29" ]
303
- ]
304
- },
305
-
306
- "template33": {
307
- "name": "Template 33",
308
- "category": "just_icons",
309
- "content": [
310
- [ "sb-30" ]
311
- ]
312
- },
313
-
314
- "template35": {
315
- "name": "Template 35",
316
- "category": "icons_text",
317
- "content": [
318
- [ "sb-text-1" ]
319
- ]
320
- },
321
-
322
- "template36": {
323
- "name": "Template 36",
324
- "category": "icons_text",
325
- "content": [
326
- [ "sb-text-2" ]
327
- ]
328
- },
329
-
330
- "template37": {
331
- "name": "Template 37",
332
- "category": "icons_text",
333
- "content": [
334
- [ "sb-text-3" ]
335
- ]
336
- },
337
-
338
- "template38": {
339
- "name": "Template 38",
340
- "category": "icons_text",
341
- "content": [
342
- [ "sb-text-4" ]
343
- ]
344
- },
345
-
346
- "template41": {
347
- "name": "Template 41",
348
- "category": "icons_text",
349
- "content": [
350
- [ "sb-text-7" ]
351
- ]
352
- },
353
-
354
- "template43": {
355
- "name": "Template 43",
356
- "category": "icons_text",
357
- "content": [
358
- [ "sb-text-9" ]
359
- ]
360
- },
361
-
362
- "template45": {
363
- "name": "Template 45",
364
- "category": "icons_text_count",
365
- "content": [
366
- [ "sb-count-text-1" ]
367
- ]
368
- },
369
-
370
- "template46": {
371
- "name": "Template 46",
372
- "category": "icons_text_count",
373
- "content": [
374
- [ "sb-count-text-2" ]
375
- ]
376
- },
377
-
378
- "template49": {
379
- "name": "Template 49",
380
- "category": "full_width",
381
- "content": [
382
- [ "sb-count-text-5" ]
383
- ]
384
- },
385
-
386
- "template51": {
387
- "name": "Template 51",
388
- "category": "icons_text_count",
389
- "content": [
390
- [ "sb-count-bbl-2" ]
391
- ]
392
- },
393
-
394
- "template54": {
395
- "name": "Template 54",
396
- "category": "icons_text_count",
397
- "content": [
398
- [ "sb-count-bbl-5" ]
399
- ]
400
- },
401
-
402
- "template55": {
403
- "name": "Template 55",
404
- "category": "just_text",
405
- "content": [
406
- [ "sb-only-text-1" ]
407
- ]
408
- },
409
-
410
- "template56": {
411
- "name": "Template 56",
412
- "category": "just_text",
413
- "content": [
414
- [ "sb-only-text-2" ]
415
- ]
416
- },
417
-
418
- "template58": {
419
- "name": "Template 58",
420
- "category": "just_text",
421
- "content": [
422
- [ "sb-only-text-4" ]
423
- ]
424
- },
425
-
426
- "template59": {
427
- "name": "Template 59",
428
- "category": "just_text",
429
- "content": [
430
- [ "sb-only-text-5" ]
431
- ]
432
- },
433
-
434
- "template60": {
435
- "name": "Template 60",
436
- "category": "icons_text",
437
- "content": [
438
- [ "sb-a-1" ]
439
- ]
440
- },
441
-
442
- "template61": {
443
- "name": "Template 61",
444
- "category": "icons_text",
445
- "content": [
446
- [ "sb-a-2" ]
447
- ]
448
- },
449
-
450
- "template62": {
451
- "name": "Template 62",
452
- "category": "icons_text",
453
- "content": [
454
- [ "sb-a-3" ]
455
- ]
456
- },
457
-
458
- "template63": {
459
- "name": "Template 63",
460
- "category": "icons_text",
461
- "content": [
462
- [ "sb-a-4" ]
463
- ]
464
- },
465
-
466
- "template64": {
467
- "name": "Template 64",
468
- "category": "icons_text",
469
- "content": [
470
- [ "sb-a-5" ]
471
- ]
472
- }
473
-
474
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/sharebar_preview.js DELETED
@@ -1,35 +0,0 @@
1
- $ = jQuery
2
- jQuery(document).ready(function( $ ) {
3
-
4
- var $sb = $( '.wpsr-sharebar' );
5
- mousedown = false,
6
- parent = window.parent;
7
-
8
- $(document).on( 'input change', '.offset_drag', function(){
9
- var cur_val = parseInt( $(this).val() );
10
- var off_change = $(this).attr( 'data-coffset' );
11
- var $off_val = $( '.offset_val' );
12
-
13
- cur_val = cur_val * ( ( off_change == 'right' || off_change == 'bottom' ) ? -1 : 1 );
14
-
15
- //$sb.attr( 'style', '' );
16
- $sb.css( off_change, cur_val );
17
- $off_val.val( cur_val + 'px' );
18
- });
19
-
20
- $(document).on( 'change', '.offset_val', function(){
21
- $( '.offset_drag' ).val( parseInt( $(this).val() ) ).change();
22
- });
23
-
24
- $(document).on( 'click', '.save_btn', function(){
25
- var $off_val = $( '.offset_val' );
26
- $( parent.document ).find( '[name="offset"]' ).val( $off_val.val() );
27
- parent.wpsr_sharebar_preview_close();
28
- });
29
-
30
- $(document).on( 'click', '.close_btn', function(){
31
- parent.wpsr_sharebar_preview_close();
32
- });
33
-
34
- });
35
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/tinymce.js ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * WP Socializer TinyMCE plugin
3
+ */
4
+
5
+ (function() {
6
+
7
+ tinymce.create( 'tinymce.plugins.WPSRButton',{
8
+
9
+ init : function(ed, url){
10
+ console.log(url);
11
+ var url = url.replace('/js', '');
12
+ ed.addButton( 'wp-socializer', {
13
+ title : 'Open WP Socializer shortcode reference',
14
+ image : url + '/images/icons/wp-socializer.png',
15
+ onclick : function(){
16
+ window.open('admin.php?page=wp_socializer&tab=shortcodes');
17
+ }
18
+ });
19
+ },
20
+
21
+ getInfo : function(){
22
+ return {
23
+ longname : 'WP Socializer',
24
+ author : 'Aakash Chakravarthy',
25
+ authorurl : 'https://www.aakashweb.com/',
26
+ infourl : 'https://www.aakashweb.com/',
27
+ version : '1.3'
28
+ };
29
+ }
30
+
31
+ });
32
+
33
+ tinymce.PluginManager.add( 'wp-socializer', tinymce.plugins.WPSRButton );
34
+
35
+ })();
admin/js/trumbowyg/icons.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg"><symbol id="trumbowyg-blockquote" viewBox="0 0 72 72"><path d="M21.3 31.9h-.6c.8-1.2 1.9-2.2 3.4-3.2 2.1-1.4 5-2.7 9.2-3.3l-1.4-8.9c-4.7.7-8.5 2.1-11.7 4-2.4 1.4-4.3 3.1-5.8 4.9-2.3 2.7-3.7 5.7-4.5 8.5-.8 2.8-1 5.4-1 7.5 0 2.3.3 4 .4 4.8 0 .1.1.3.1.4 1.2 5.4 6.1 9.5 11.9 9.5 6.7 0 12.2-5.4 12.2-12.2s-5.5-12-12.2-12zM49.5 31.9h-.6c.8-1.2 1.9-2.2 3.4-3.2 2.1-1.4 5-2.7 9.2-3.3l-1.4-8.9c-4.7.7-8.5 2.1-11.7 4-2.4 1.4-4.3 3.1-5.8 4.9-2.3 2.7-3.7 5.7-4.5 8.5-.8 2.8-1 5.4-1 7.5 0 2.3.3 4 .4 4.8 0 .1.1.3.1.4 1.2 5.4 6.1 9.5 11.9 9.5 6.7 0 12.2-5.4 12.2-12.2s-5.5-12-12.2-12z"/></symbol><symbol id="trumbowyg-bold" viewBox="0 0 72 72"><path d="M51.1 37.8c-1.1-1.4-2.5-2.5-4.2-3.3 1.2-.8 2.1-1.8 2.8-3 1-1.6 1.5-3.5 1.5-5.3 0-2-.6-4-1.7-5.8-1.1-1.8-2.8-3.2-4.8-4.1-2-.9-4.6-1.3-7.8-1.3h-16v42h16.3c2.6 0 4.8-.2 6.7-.7 1.9-.5 3.4-1.2 4.7-2.1 1.3-1 2.4-2.4 3.2-4.1.9-1.7 1.3-3.6 1.3-5.7.2-2.5-.5-4.7-2-6.6zM40.8 50.2c-.6.1-1.8.2-3.4.2h-9V38.5h8.3c2.5 0 4.4.2 5.6.6 1.2.4 2 1 2.7 2 .6.9 1 2 1 3.3 0 1.1-.2 2.1-.7 2.9-.5.9-1 1.5-1.7 1.9-.8.4-1.7.8-2.8 1zm2.6-20.4c-.5.7-1.3 1.3-2.5 1.6-.8.3-2.5.4-4.8.4h-7.7V21.6h7.1c1.4 0 2.6 0 3.6.1s1.7.2 2.2.4c1 .3 1.7.8 2.2 1.7.5.9.8 1.8.8 3-.1 1.3-.4 2.2-.9 3z"/></symbol><symbol id="trumbowyg-close" viewBox="0 0 72 72"><path d="M57 20.5l-5.4-5.4-15.5 15.5-15.6-15.5-5.4 5.4L30.7 36 15.1 51.5l5.4 5.4 15.6-15.5 15.5 15.5 5.4-5.4L41.5 36z"/></symbol><symbol id="trumbowyg-create-link" viewBox="0 0 72 72"><path d="M31.1 48.9l-6.7 6.7c-.8.8-1.6.9-2.1.9s-1.4-.1-2.1-.9L15 50.4c-1.1-1.1-1.1-3.1 0-4.2l6.1-6.1.2-.2 6.5-6.5c-1.2-.6-2.5-.9-3.8-.9-2.3 0-4.6.9-6.3 2.6L11 41.8c-3.5 3.5-3.5 9.2 0 12.7l5.2 5.2c1.7 1.7 4 2.6 6.3 2.6s4.6-.9 6.3-2.6l6.7-6.7c2.5-2.6 3.1-6.7 1.5-10l-5.9 5.9zM38.7 22.5l6.7-6.7c.8-.8 1.6-.9 2.1-.9s1.4.1 2.1.9l5.2 5.2c1.1 1.1 1.1 3.1 0 4.2l-6.1 6.1-.2.2L42 38c1.2.6 2.5.9 3.8.9 2.3 0 4.6-.9 6.3-2.6l6.7-6.7c3.5-3.5 3.5-9.2 0-12.7l-5.2-5.2c-1.7-1.7-4-2.6-6.3-2.6s-4.6.9-6.3 2.6l-6.7 6.7c-2.7 2.7-3.3 6.9-1.7 10.2l6.1-6.1c0 .1 0 .1 0 0z"/><path d="M44.2 30.5c.2-.2.4-.6.4-.9 0-.3-.1-.6-.4-.9l-2.3-2.3c-.3-.2-.6-.4-.9-.4-.3 0-.6.1-.9.4L25.9 40.6c-.2.2-.4.6-.4.9 0 .3.1.6.4.9l2.3 2.3c.2.2.6.4.9.4.3 0 .6-.1.9-.4l14.2-14.2zM49.9 55.4h-8.5v-5h8.5v-8.9h5.2v8.9h8.5v5h-8.5v8.9h-5.2v-8.9z"/></symbol><symbol id="trumbowyg-del" viewBox="0 0 72 72"><path d="M45.8 45c0 1-.3 1.9-.9 2.8-.6.9-1.6 1.6-3 2.1s-3.1.8-5 .8c-2.1 0-4-.4-5.7-1.1-1.7-.7-2.9-1.7-3.6-2.7-.8-1.1-1.3-2.6-1.5-4.5l-.1-.8-6.7.6v.9c.1 2.8.9 5.4 2.3 7.6 1.5 2.3 3.5 4 6.1 5.1 2.6 1.1 5.7 1.6 9.4 1.6 2.9 0 5.6-.5 8-1.6 2.4-1.1 4.3-2.7 5.6-4.7 1.3-2 2-4.2 2-6.5 0-1.6-.3-3.1-.9-4.5l-.2-.6H44c0 .1 1.8 2.3 1.8 5.5zM29 28.9c-.8-.8-1.2-1.7-1.2-2.9 0-.7.1-1.3.4-1.9.3-.6.7-1.1 1.4-1.6.6-.5 1.4-.9 2.5-1.1 1.1-.3 2.4-.4 3.9-.4 2.9 0 5 .6 6.3 1.7 1.3 1.1 2.1 2.7 2.4 5.1l.1.9 6.8-.5v-.9c-.1-2.5-.8-4.7-2.1-6.7s-3.2-3.5-5.6-4.5c-2.4-1-5.1-1.5-8.1-1.5-2.8 0-5.3.5-7.6 1.4-2.3 1-4.2 2.4-5.4 4.3-1.2 1.9-1.9 3.9-1.9 6.1 0 1.7.4 3.4 1.2 4.9l.3.5h11.8c-2.3-.9-3.9-1.7-5.2-2.9zm13.3-6.2zM22.7 20.3zM13 34.1h46.1v3.4H13z"/></symbol><symbol id="trumbowyg-em" viewBox="0 0 72 72"><path d="M26 57l10.1-42h7.2L33.2 57H26z"/></symbol><symbol id="trumbowyg-fullscreen" viewBox="0 0 72 72"><path d="M25.2 7.1H7.1v17.7l6.7-6.5 10.5 10.5 4.5-4.5-10.4-10.5zM47.2 7.1l6.5 6.7-10.5 10.5 4.5 4.5 10.5-10.4 6.7 6.8V7.1zM47.7 43.2l-4.5 4.5 10.4 10.5-6.8 6.7h18.1V47.2l-6.7 6.5zM24.3 43.2L13.8 53.6l-6.7-6.8v18.1h17.7l-6.5-6.7 10.5-10.5z"/><path fill="currentColor" d="M10.7 28.8h18.1V11.2l-6.6 6.4L11.6 7.1l-4.5 4.5 10.5 10.5zM60.8 28.8l-6.4-6.6 10.5-10.6-4.5-4.5-10.5 10.5-6.7-6.9v18.1zM60.4 64.9l4.5-4.5-10.5-10.5 6.9-6.7H43.2v17.6l6.6-6.4zM11.6 64.9l10.5-10.5 6.7 6.9V43.2H11.1l6.5 6.6L7.1 60.4z"/></symbol><symbol id="trumbowyg-h1" viewBox="0 0 72 72"><path d="M6.4 14.9h7.4v16.7h19.1V14.9h7.4V57h-7.4V38H13.8v19H6.4V14.9zM47.8 22.5c1.4 0 2.8-.1 4.1-.4 1.3-.2 2.5-.6 3.6-1.2 1.1-.5 2-1.3 2.8-2.1.8-.9 1.3-1.9 1.5-3.2h5.5v41.2h-7.4v-29H47.8v-5.3z"/></symbol><symbol id="trumbowyg-h2" viewBox="0 0 72 72"><path d="M1.5 14.9h7.4v16.7H28V14.9h7.4V57H28V38H8.8v19H1.5V14.9zM70.2 56.9H42c0-3.4.9-6.4 2.5-9s3.8-4.8 6.6-6.7c1.3-1 2.7-1.9 4.2-2.9 1.5-.9 2.8-1.9 4-3 1.2-1.1 2.2-2.2 3-3.4.8-1.2 1.2-2.7 1.2-4.3 0-.7-.1-1.5-.3-2.4s-.5-1.6-1-2.4c-.5-.7-1.2-1.3-2.1-1.8-.9-.5-2.1-.7-3.5-.7-1.3 0-2.4.3-3.3.8s-1.6 1.3-2.1 2.2-.9 2-1.2 3.3c-.3 1.3-.4 2.6-.4 4.1h-6.7c0-2.3.3-4.4.9-6.3.6-1.9 1.5-3.6 2.7-5 1.2-1.4 2.7-2.5 4.4-3.3 1.7-.8 3.8-1.2 6.1-1.2 2.5 0 4.6.4 6.3 1.2 1.7.8 3.1 1.9 4.1 3.1 1 1.3 1.8 2.6 2.2 4.1.4 1.5.6 2.9.6 4.2 0 1.6-.3 3.1-.8 4.5-.5 1.3-1.2 2.6-2.1 3.7-.9 1.1-1.8 2.2-2.9 3.1-1.1.9-2.2 1.8-3.4 2.7-1.2.8-2.4 1.6-3.5 2.4-1.2.7-2.3 1.5-3.3 2.2-1 .7-1.9 1.5-2.6 2.3-.7.8-1.3 1.7-1.5 2.6h20.1v5.9z"/></symbol><symbol id="trumbowyg-h3" viewBox="0 0 72 72"><path d="M1.4 14.5h7.4v16.7h19.1V14.5h7.4v42.1h-7.4v-19H8.8v19H1.4V14.5zM53.1 32.4c1.1 0 2.2 0 3.3-.2 1.1-.2 2.1-.5 2.9-1 .9-.5 1.6-1.2 2.1-2 .5-.9.8-1.9.8-3.2 0-1.8-.6-3.2-1.8-4.2-1.2-1.1-2.7-1.6-4.6-1.6-1.2 0-2.2.2-3.1.7-.9.5-1.6 1.1-2.2 1.9-.6.8-1 1.7-1.3 2.7-.3 1-.4 2-.4 3.1h-6.7c.1-2 .5-3.9 1.1-5.6.7-1.7 1.6-3.2 2.7-4.4s2.6-2.2 4.2-2.9c1.6-.7 3.5-1.1 5.6-1.1 1.6 0 3.2.2 4.7.7 1.6.5 2.9 1.2 4.2 2.1 1.2.9 2.2 2.1 3 3.4.7 1.4 1.1 3 1.1 4.8 0 2.1-.5 3.9-1.4 5.4-.9 1.6-2.4 2.7-4.4 3.4v.1c2.4.5 4.2 1.6 5.5 3.5 1.3 1.9 2 4.1 2 6.8 0 2-.4 3.7-1.2 5.3-.8 1.6-1.8 2.9-3.2 3.9-1.3 1.1-2.9 1.9-4.7 2.5-1.8.6-3.6.9-5.6.9-2.4 0-4.5-.3-6.3-1s-3.3-1.7-4.5-2.9c-1.2-1.3-2.1-2.8-2.7-4.5-.6-1.8-1-3.7-1-5.9h6.7c-.1 2.5.5 4.6 1.9 6.3 1.3 1.7 3.3 2.5 5.9 2.5 2.2 0 4.1-.6 5.6-1.9 1.5-1.3 2.3-3.1 2.3-5.4 0-1.6-.3-2.9-.9-3.8-.6-.9-1.5-1.7-2.5-2.2-1-.5-2.2-.8-3.4-.9-1.3-.1-2.6-.2-3.9-.1v-5.2z"/></symbol><symbol id="trumbowyg-h4" viewBox="0 0 72 72"><path d="M1.5 14.9h7.4v16.7H28V14.9h7.4V57H28V38H8.9v19H1.5V14.9zM70.5 47.2h-5.3V57h-6.4v-9.8H41.2v-6.7l17.7-24.8h6.4v26.2h5.3v5.3zm-24.2-5.3h12.5V23.7h-.1L46.3 41.9z"/></symbol><symbol id="trumbowyg-horizontal-rule" viewBox="0 0 72 72"><path d="M9.1 32h54v8h-54z"/></symbol><symbol id="trumbowyg-insert-image" viewBox="0 0 72 72"><path d="M64 17v38H8V17h56m8-8H0v54h72V9z"/><path d="M17.5 22C15 22 13 24 13 26.5s2 4.5 4.5 4.5 4.5-2 4.5-4.5-2-4.5-4.5-4.5zM16 50h27L29.5 32zM36 36.2l8.9-8.5L60.2 50H45.9S35.6 35.9 36 36.2z"/></symbol><symbol id="trumbowyg-italic" viewBox="0 0 72 72"><path d="M26 57l10.1-42h7.2L33.2 57H26z"/></symbol><symbol id="trumbowyg-justify-center" viewBox="0 0 72 72"><path d="M9 14h54v8H9zM9 50h54v8H9zM18 32h36v8H18z"/></symbol><symbol id="trumbowyg-justify-full" viewBox="0 0 72 72"><path d="M9 14h54v8H9zM9 50h54v8H9zM9 32h54v8H9z"/></symbol><symbol id="trumbowyg-justify-left" viewBox="0 0 72 72"><path d="M9 14h54v8H9zM9 50h54v8H9zM9 32h36v8H9z"/></symbol><symbol id="trumbowyg-justify-right" viewBox="0 0 72 72"><path d="M9 14h54v8H9zM9 50h54v8H9zM27 32h36v8H27z"/></symbol><symbol id="trumbowyg-link" viewBox="0 0 72 72"><path d="M30.9 49.1l-6.7 6.7c-.8.8-1.6.9-2.1.9s-1.4-.1-2.1-.9l-5.2-5.2c-1.1-1.1-1.1-3.1 0-4.2l6.1-6.1.2-.2 6.5-6.5c-1.2-.6-2.5-.9-3.8-.9-2.3 0-4.6.9-6.3 2.6L10.8 42c-3.5 3.5-3.5 9.2 0 12.7l5.2 5.2c1.7 1.7 4 2.6 6.3 2.6s4.6-.9 6.3-2.6l6.7-6.7C38 50.5 38.6 46.3 37 43l-6.1 6.1zM38.5 22.7l6.7-6.7c.8-.8 1.6-.9 2.1-.9s1.4.1 2.1.9l5.2 5.2c1.1 1.1 1.1 3.1 0 4.2l-6.1 6.1-.2.2-6.5 6.5c1.2.6 2.5.9 3.8.9 2.3 0 4.6-.9 6.3-2.6l6.7-6.7c3.5-3.5 3.5-9.2 0-12.7l-5.2-5.2c-1.7-1.7-4-2.6-6.3-2.6s-4.6.9-6.3 2.6l-6.7 6.7c-2.7 2.7-3.3 6.9-1.7 10.2l6.1-6.1z"/><path d="M44.1 30.7c.2-.2.4-.6.4-.9 0-.3-.1-.6-.4-.9l-2.3-2.3c-.2-.2-.6-.4-.9-.4-.3 0-.6.1-.9.4L25.8 40.8c-.2.2-.4.6-.4.9 0 .3.1.6.4.9l2.3 2.3c.2.2.6.4.9.4.3 0 .6-.1.9-.4l14.2-14.2z"/></symbol><symbol id="trumbowyg-ordered-list" viewBox="0 0 72 72"><path d="M27 14h36v8H27zM27 50h36v8H27zM27 32h36v8H27zM11.8 15.8V22h1.8v-7.8h-1.5l-2.1 1 .3 1.3zM12.1 38.5l.7-.6c1.1-1 2.1-2.1 2.1-3.4 0-1.4-1-2.4-2.7-2.4-1.1 0-2 .4-2.6.8l.5 1.3c.4-.3 1-.6 1.7-.6.9 0 1.3.5 1.3 1.1 0 .9-.9 1.8-2.6 3.3l-1 .9V40H15v-1.5h-2.9zM13.3 53.9c1-.4 1.4-1 1.4-1.8 0-1.1-.9-1.9-2.6-1.9-1 0-1.9.3-2.4.6l.4 1.3c.3-.2 1-.5 1.6-.5.8 0 1.2.3 1.2.8 0 .7-.8.9-1.4.9h-.7v1.3h.7c.8 0 1.6.3 1.6 1.1 0 .6-.5 1-1.4 1-.7 0-1.5-.3-1.8-.5l-.4 1.4c.5.3 1.3.6 2.3.6 2 0 3.2-1 3.2-2.4 0-1.1-.8-1.8-1.7-1.9z"/></symbol><symbol id="trumbowyg-p" viewBox="0 0 72 72"><path d="M47.8 15.1H30.1c-4.7 0-8.5 3.7-8.5 8.4s3.7 8.4 8.4 8.4v25h7V19.8h3v37.1h4.1V19.8h3.7v-4.7z"/></symbol><symbol id="trumbowyg-redo" viewBox="0 0 72 72"><path d="M10.8 51.2c0-5.1 2.1-9.7 5.4-13.1 3.3-3.3 8-5.4 13.1-5.4H46v-12L61.3 36 45.9 51.3V39.1H29.3c-3.3 0-6.4 1.3-8.5 3.5-2.2 2.2-3.5 5.2-3.5 8.5h-6.5z"/></symbol><symbol id="trumbowyg-removeformat" viewBox="0 0 72 72"><path d="M58.2 54.6L52 48.5l3.6-3.6 6.1 6.1 6.4-6.4 3.8 3.8-6.4 6.4 6.1 6.1-3.6 3.6-6.1-6.1-6.4 6.4-3.7-3.8 6.4-6.4zM21.7 52.1H50V57H21.7zM18.8 15.2h34.1v6.4H39.5v24.2h-7.4V21.5H18.8v-6.3z"/></symbol><symbol id="trumbowyg-strikethrough" viewBox="0 0 72 72"><path d="M45.8 45c0 1-.3 1.9-.9 2.8-.6.9-1.6 1.6-3 2.1s-3.1.8-5 .8c-2.1 0-4-.4-5.7-1.1-1.7-.7-2.9-1.7-3.6-2.7-.8-1.1-1.3-2.6-1.5-4.5l-.1-.8-6.7.6v.9c.1 2.8.9 5.4 2.3 7.6 1.5 2.3 3.5 4 6.1 5.1 2.6 1.1 5.7 1.6 9.4 1.6 2.9 0 5.6-.5 8-1.6 2.4-1.1 4.3-2.7 5.6-4.7 1.3-2 2-4.2 2-6.5 0-1.6-.3-3.1-.9-4.5l-.2-.6H44c0 .1 1.8 2.3 1.8 5.5zM29 28.9c-.8-.8-1.2-1.7-1.2-2.9 0-.7.1-1.3.4-1.9.3-.6.7-1.1 1.4-1.6.6-.5 1.4-.9 2.5-1.1 1.1-.3 2.4-.4 3.9-.4 2.9 0 5 .6 6.3 1.7 1.3 1.1 2.1 2.7 2.4 5.1l.1.9 6.8-.5v-.9c-.1-2.5-.8-4.7-2.1-6.7s-3.2-3.5-5.6-4.5c-2.4-1-5.1-1.5-8.1-1.5-2.8 0-5.3.5-7.6 1.4-2.3 1-4.2 2.4-5.4 4.3-1.2 1.9-1.9 3.9-1.9 6.1 0 1.7.4 3.4 1.2 4.9l.3.5h11.8c-2.3-.9-3.9-1.7-5.2-2.9zm13.3-6.2zM22.7 20.3zM13 34.1h46.1v3.4H13z"/></symbol><symbol id="trumbowyg-strong" viewBox="0 0 72 72"><path d="M51.1 37.8c-1.1-1.4-2.5-2.5-4.2-3.3 1.2-.8 2.1-1.8 2.8-3 1-1.6 1.5-3.5 1.5-5.3 0-2-.6-4-1.7-5.8-1.1-1.8-2.8-3.2-4.8-4.1-2-.9-4.6-1.3-7.8-1.3h-16v42h16.3c2.6 0 4.8-.2 6.7-.7 1.9-.5 3.4-1.2 4.7-2.1 1.3-1 2.4-2.4 3.2-4.1.9-1.7 1.3-3.6 1.3-5.7.2-2.5-.5-4.7-2-6.6zM40.8 50.2c-.6.1-1.8.2-3.4.2h-9V38.5h8.3c2.5 0 4.4.2 5.6.6 1.2.4 2 1 2.7 2 .6.9 1 2 1 3.3 0 1.1-.2 2.1-.7 2.9-.5.9-1 1.5-1.7 1.9-.8.4-1.7.8-2.8 1zm2.6-20.4c-.5.7-1.3 1.3-2.5 1.6-.8.3-2.5.4-4.8.4h-7.7V21.6h7.1c1.4 0 2.6 0 3.6.1s1.7.2 2.2.4c1 .3 1.7.8 2.2 1.7.5.9.8 1.8.8 3-.1 1.3-.4 2.2-.9 3z"/></symbol><symbol id="trumbowyg-subscript" viewBox="0 0 72 72"><path d="M32 15h7.8L56 57.1h-7.9L44.3 46H27.4l-4 11.1h-7.6L32 15zm-2.5 25.4h12.9L36 22.3h-.2l-6.3 18.1zM58.7 59.9c.6-1.4 2-2.8 4.1-4.4 1.9-1.3 3.1-2.3 3.7-2.9.8-.9 1.3-1.9 1.3-3 0-.9-.2-1.6-.7-2.2-.5-.6-1.2-.9-2.1-.9-1.2 0-2.1.5-2.5 1.4-.3.5-.4 1.4-.5 2.5h-4c.1-1.8.4-3.2 1-4.3 1.1-2.1 3-3.1 5.8-3.1 2.2 0 3.9.6 5.2 1.8 1.3 1.2 1.9 2.8 1.9 4.8 0 1.5-.5 2.9-1.4 4.1-.6.8-1.6 1.7-3 2.6L66 57.7c-1 .7-1.7 1.2-2.1 1.6-.4.3-.7.7-1 1.1H72V64H57.8c0-1.5.3-2.8.9-4.1z"/></symbol><symbol id="trumbowyg-superscript" viewBox="0 0 72 72"><path d="M32 15h7.8L56 57.1h-7.9l-4-11.1H27.4l-4 11.1h-7.6L32 15zm-2.5 25.4h12.9L36 22.3h-.2l-6.3 18.1zM49.6 28.8c.5-1.1 1.6-2.3 3.4-3.6 1.5-1.1 2.5-1.9 3-2.4.7-.7 1-1.6 1-2.4 0-.7-.2-1.3-.6-1.8-.4-.5-1-.7-1.7-.7-1 0-1.7.4-2.1 1.1-.2.4-.3 1.1-.4 2.1H49c.1-1.5.3-2.6.8-3.5.9-1.7 2.5-2.6 4.8-2.6 1.8 0 3.2.5 4.3 1.5 1.1 1 1.6 2.3 1.6 4 0 1.3-.4 2.4-1.1 3.4-.5.7-1.3 1.4-2.4 2.2l-1.3 1c-.8.6-1.4 1-1.7 1.3-.3.3-.6.6-.8.9h7.4v3H48.8c0-1.3.3-2.4.8-3.5z"/></symbol><symbol id="trumbowyg-underline" viewBox="0 0 72 72"><path d="M36 35zM15.2 55.9h41.6V59H15.2zM21.1 13.9h6.4v21.2c0 1.2.1 2.5.2 3.7.1 1.3.5 2.4 1 3.4.6 1 1.4 1.8 2.6 2.5 1.1.6 2.7 1 4.8 1 2.1 0 3.7-.3 4.8-1 1.1-.6 2-1.5 2.6-2.5.6-1 .9-2.1 1-3.4.1-1.3.2-2.5.2-3.7V13.9H51v23.3c0 2.3-.4 4.4-1.1 6.1-.7 1.7-1.7 3.2-3 4.4-1.3 1.2-2.9 2-4.7 2.6-1.8.6-3.9.9-6.1.9-2.2 0-4.3-.3-6.1-.9-1.8-.6-3.4-1.5-4.7-2.6-1.3-1.2-2.3-2.6-3-4.4-.7-1.7-1.1-3.8-1.1-6.1V13.9z"/></symbol><symbol id="trumbowyg-undo" viewBox="0 0 72 72"><path d="M61.2 51.2c0-5.1-2.1-9.7-5.4-13.1-3.3-3.3-8-5.4-13.1-5.4H26.1v-12L10.8 36l15.3 15.3V39.1h16.7c3.3 0 6.4 1.3 8.5 3.5 2.2 2.2 3.5 5.2 3.5 8.5h6.4z"/></symbol><symbol id="trumbowyg-unlink" viewBox="0 0 72 72"><path d="M30.9 49.1l-6.7 6.7c-.8.8-1.6.9-2.1.9s-1.4-.1-2.1-.9l-5.2-5.2c-1.1-1.1-1.1-3.1 0-4.2l6.1-6.1.2-.2 6.5-6.5c-1.2-.6-2.5-.9-3.8-.9-2.3 0-4.6.9-6.3 2.6L10.8 42c-3.5 3.5-3.5 9.2 0 12.7l5.2 5.2c1.7 1.7 4 2.6 6.3 2.6s4.6-.9 6.3-2.6l6.7-6.7C38 50.5 38.6 46.3 37 43l-6.1 6.1zM38.5 22.7l6.7-6.7c.8-.8 1.6-.9 2.1-.9s1.4.1 2.1.9l5.2 5.2c1.1 1.1 1.1 3.1 0 4.2l-6.1 6.1-.2.2-6.5 6.5c1.2.6 2.5.9 3.8.9 2.3 0 4.6-.9 6.3-2.6l6.7-6.7c3.5-3.5 3.5-9.2 0-12.7l-5.2-5.2c-1.7-1.7-4-2.6-6.3-2.6s-4.6.9-6.3 2.6l-6.7 6.7c-2.7 2.7-3.3 6.9-1.7 10.2l6.1-6.1z"/><path d="M44.1 30.7c.2-.2.4-.6.4-.9 0-.3-.1-.6-.4-.9l-2.3-2.3c-.2-.2-.6-.4-.9-.4-.3 0-.6.1-.9.4L25.8 40.8c-.2.2-.4.6-.4.9 0 .3.1.6.4.9l2.3 2.3c.2.2.6.4.9.4.3 0 .6-.1.9-.4l14.2-14.2zM41.3 55.8v-5h22.2v5H41.3z"/></symbol><symbol id="trumbowyg-unordered-list" viewBox="0 0 72 72"><path d="M27 14h36v8H27zM27 50h36v8H27zM9 50h9v8H9zM9 32h9v8H9zM9 14h9v8H9zM27 32h36v8H27z"/></symbol><symbol id="trumbowyg-view-html" viewBox="0 0 72 72"><path fill="none" stroke="currentColor" stroke-width="8" stroke-miterlimit="10" d="M26.9 17.9L9 36.2 26.9 54M45 54l17.9-18.3L45 17.9"/></symbol><symbol id="trumbowyg-base64" viewBox="0 0 72 72"><path d="M64 17v38H8V17h56m8-8H0v54h72V9z"/><path d="M29.9 28.9c-.5-.5-1.1-.8-1.8-.8s-1.4.2-1.9.7c-.5.4-.9 1-1.2 1.6-.3.6-.5 1.3-.6 2.1-.1.7-.2 1.4-.2 1.9l.1.1c.6-.8 1.2-1.4 2-1.8.8-.4 1.7-.5 2.7-.5.9 0 1.8.2 2.6.6.8.4 1.6.9 2.2 1.5.6.6 1 1.3 1.2 2.2.3.8.4 1.6.4 2.5 0 1.1-.2 2.1-.5 3-.3.9-.8 1.7-1.5 2.4-.6.7-1.4 1.2-2.3 1.6-.9.4-1.9.6-3 .6-1.6 0-2.8-.3-3.9-.9-1-.6-1.8-1.4-2.5-2.4-.6-1-1-2.1-1.3-3.4-.2-1.3-.4-2.6-.4-3.9 0-1.3.1-2.6.4-3.8.3-1.3.8-2.4 1.4-3.5.7-1 1.5-1.9 2.5-2.5 1-.6 2.3-1 3.8-1 .9 0 1.7.1 2.5.4.8.3 1.4.6 2 1.1.6.5 1.1 1.1 1.4 1.8.4.7.6 1.5.7 2.5h-4c0-1-.3-1.6-.8-2.1zm-3.5 6.8c-.4.2-.8.5-1 .8-.3.4-.5.8-.6 1.2-.1.5-.2 1-.2 1.5s.1.9.2 1.4c.1.5.4.9.6 1.2.3.4.6.7 1 .9.4.2.9.3 1.4.3.5 0 1-.1 1.3-.3.4-.2.7-.5 1-.9.3-.4.5-.8.6-1.2.1-.5.2-.9.2-1.4 0-.5-.1-1-.2-1.4-.1-.5-.3-.9-.6-1.2-.3-.4-.6-.7-1-.9-.4-.2-.9-.3-1.4-.3-.4 0-.9.1-1.3.3zM36.3 41.3v-3.8l9-12.1H49v12.4h2.7v3.5H49v4.8h-4v-4.8h-8.7zM45 30.7l-5.3 7.2h5.4l-.1-7.2z"/></symbol><symbol id="trumbowyg-back-color" viewBox="0 0 72 72"><path d="M36.5 22.3l-6.3 18.1H43l-6.3-18.1z"/><path d="M9 8.9v54.2h54.1V8.9H9zm39.9 48.2L45 46H28.2l-3.9 11.1h-7.6L32.8 15h7.8l16.2 42.1h-7.9z"/></symbol><symbol id="trumbowyg-fore-color" viewBox="0 0 72 72"><path d="M32 15h7.8L56 57.1h-7.9l-4-11.1H27.4l-4 11.1h-7.6L32 15zm-2.5 25.4h12.9L36 22.3h-.2l-6.3 18.1z"/></symbol><symbol id="trumbowyg-noembed" viewBox="0 0 72 72"><path d="M31.5 33.6V25l11 11-11 11v-8.8z"/><path d="M64 17v38H8V17h56m8-8H0v54h72V9z"/></symbol><symbol id="trumbowyg-preformatted" viewBox="0 0 72 72"><path d="M10.3 33.5c.4 0 .9-.1 1.5-.2s1.2-.3 1.8-.7c.6-.3 1.1-.8 1.5-1.3.4-.5.6-1.3.6-2.1V17.1c0-1.4.3-2.6.8-3.6s1.2-1.9 2-2.5c.8-.7 1.6-1.2 2.5-1.5.9-.3 1.6-.5 2.2-.5h5.3v5.3h-3.2c-.7 0-1.3.1-1.8.4-.4.3-.8.6-1 1-.2.4-.4.9-.4 1.3-.1.5-.1.9-.1 1.4v11.4c0 1.2-.2 2.1-.7 2.9-.5.8-1 1.4-1.7 1.8-.6.4-1.3.8-2 1-.7.2-1.3.3-1.7.4v.1c.5 0 1 .1 1.7.3.7.2 1.3.5 2 .9.6.5 1.2 1.1 1.7 1.9.5.8.7 2 .7 3.4v11.1c0 .4 0 .9.1 1.4.1.5.2.9.4 1.3s.6.7 1 1c.4.3 1 .4 1.8.4h3.2V63h-5.3c-.6 0-1.4-.2-2.2-.5-.9-.3-1.7-.8-2.5-1.5s-1.4-1.5-2-2.5c-.5-1-.8-2.2-.8-3.6V43.5c0-.9-.2-1.7-.6-2.3-.4-.6-.9-1.1-1.5-1.5-.6-.4-1.2-.6-1.8-.7-.6-.1-1.1-.2-1.5-.2v-5.3zM61.8 38.7c-.4 0-1 .1-1.6.2-.6.1-1.2.4-1.8.7-.6.3-1.1.7-1.5 1.3-.4.5-.6 1.3-.6 2.1v12.1c0 1.4-.3 2.6-.8 3.6s-1.2 1.9-2 2.5c-.8.7-1.6 1.2-2.5 1.5-.9.3-1.6.5-2.2.5h-5.3v-5.3h3.2c.7 0 1.3-.1 1.8-.4.4-.3.8-.6 1-1 .2-.4.4-.9.4-1.3.1-.5.1-.9.1-1.4V42.3c0-1.2.2-2.1.7-2.9.5-.8 1-1.4 1.7-1.8.6-.4 1.3-.8 2-1 .7-.2 1.3-.3 1.7-.4v-.1c-.5 0-1-.1-1.7-.3-.7-.2-1.3-.5-2-.9-.6-.4-1.2-1.1-1.7-1.9-.5-.8-.7-2-.7-3.4V18.5c0-.4 0-.9-.1-1.4-.1-.5-.2-.9-.4-1.3s-.6-.7-1-1c-.4-.3-1-.4-1.8-.4h-3.2V9.1h5.3c.6 0 1.4.2 2.2.5.9.3 1.7.8 2.5 1.5s1.4 1.5 2 2.5c.5 1 .8 2.2.8 3.6v11.6c0 .9.2 1.7.6 2.3.4.6.9 1.1 1.5 1.5.6.4 1.2.6 1.8.7.6.1 1.2.2 1.6.2v5.2z"/></symbol><symbol id="trumbowyg-upload" viewBox="0 0 72 72"><path d="M64 27v28H8V27H0v36h72V27h-8z"/><path d="M32.1 6.7h8v33.6h-8z"/><path d="M48 35.9L36 49.6 24 36h24z"/></symbol></svg>
 
admin/js/trumbowyg/trumbowyg.min.css DELETED
@@ -1,2 +0,0 @@
1
- /** Trumbowyg v2.1.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
2
- #trumbowyg-icons,#trumbowyg-icons svg{height:0;width:0}#trumbowyg-icons{overflow:hidden;visibility:hidden}.trumbowyg-box *,.trumbowyg-box ::after,.trumbowyg-box ::before{box-sizing:border-box}.trumbowyg-box svg{width:17px;height:100%;fill:#222}.trumbowyg-box,.trumbowyg-editor{display:block;position:relative;border:1px solid #DDD;width:100%;min-height:300px;margin:17px auto}.trumbowyg-box .trumbowyg-editor{margin:0 auto}.trumbowyg-box.trumbowyg-fullscreen{background:#FEFEFE;border:none!important}.trumbowyg-editor,.trumbowyg-textarea{position:relative;box-sizing:border-box;padding:20px;min-height:300px;width:100%;border-style:none;resize:none;outline:0;overflow:auto}.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-box-blur .trumbowyg-editor::before{color:transparent!important;text-shadow:0 0 7px #333}@media screen and (min-width:0 \0){.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-box-blur .trumbowyg-editor::before{color:rgba(200,200,200,.6)!important}}@supports (-ms-accelerator:true){.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-box-blur .trumbowyg-editor::before{color:rgba(200,200,200,.6)!important}}.trumbowyg-box-blur .trumbowyg-editor hr,.trumbowyg-box-blur .trumbowyg-editor img{opacity:.2}.trumbowyg-textarea{position:relative;display:block;overflow:auto;border:none;white-space:normal;font-size:14px;font-family:Inconsolata,Consolas,Courier,"Courier New",sans-serif;line-height:18px}.trumbowyg-box.trumbowyg-editor-visible .trumbowyg-textarea{height:1px!important;width:25%;min-height:0!important;padding:0!important;background:0 0;opacity:0!important}.trumbowyg-box.trumbowyg-editor-hidden .trumbowyg-textarea{display:block}.trumbowyg-box.trumbowyg-editor-hidden .trumbowyg-editor{display:none}.trumbowyg-box.trumbowyg-disabled .trumbowyg-textarea{opacity:.8;background:0 0}.trumbowyg-editor[contenteditable=true]:empty::before{content:attr(placeholder);color:#999;pointer-events:none}.trumbowyg-button-pane{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;width:100%;min-height:36px;background:#ecf0f1;border-bottom:1px solid #d7e0e2;margin:0;padding:0 5px;list-style-type:none;line-height:10px;-webkit-backface-visibility:hidden;backface-visibility:hidden}.trumbowyg-button-pane::after{content:" ";display:block;position:absolute;top:36px;left:0;right:0;width:100%;height:1px;background:#d7e0e2}.trumbowyg-button-pane .trumbowyg-button-group{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap}.trumbowyg-button-pane .trumbowyg-button-group .trumbowyg-fullscreen-button svg{color:transparent}.trumbowyg-button-pane .trumbowyg-button-group:not(:empty)+.trumbowyg-button-group::before{content:" ";display:block;width:1px;background:#d7e0e2;margin:0 5px;height:35px}.trumbowyg-button-pane button{display:block;position:relative;width:35px;height:35px;padding:1px 6px!important;margin-bottom:1px;overflow:hidden;border:none;cursor:pointer;background:0 0;-webkit-transition:background-color 150ms,opacity 150ms;transition:background-color 150ms,opacity 150ms}.trumbowyg-button-pane.trumbowyg-disable button:not(.trumbowyg-not-disable):not(.trumbowyg-active),.trumbowyg-disabled .trumbowyg-button-pane button:not(.trumbowyg-not-disable):not(.trumbowyg-viewHTML-button){opacity:.2;cursor:default}.trumbowyg-button-pane.trumbowyg-disable .trumbowyg-button-group::before,.trumbowyg-disabled .trumbowyg-button-pane .trumbowyg-button-group::before{background:#e3e9eb}.trumbowyg-button-pane button.trumbowyg-active,.trumbowyg-button-pane button:not(.trumbowyg-disable):focus,.trumbowyg-button-pane button:not(.trumbowyg-disable):hover{background-color:#FFF;outline:0}.trumbowyg-button-pane .trumbowyg-open-dropdown::after{display:block;content:" ";position:absolute;top:25px;right:3px;height:0;width:0;border:3px solid transparent;border-top-color:#555}.trumbowyg-button-pane .trumbowyg-right{margin-left:auto}.trumbowyg-button-pane .trumbowyg-right::before{display:none!important}.trumbowyg-dropdown{width:200px;border:1px solid #ecf0f1;padding:5px 0;border-top:none;background:#FFF;margin-left:-1px;box-shadow:rgba(0,0,0,.1) 0 2px 3px}.trumbowyg-dropdown button{display:block;width:100%;height:35px;line-height:35px;text-decoration:none;background:#FFF;padding:0 10px;color:#333!important;border:none;cursor:pointer;text-align:left;font-size:15px;-webkit-transition:all 150ms;transition:all 150ms}.trumbowyg-dropdown button:focus,.trumbowyg-dropdown button:hover{background:#ecf0f1}.trumbowyg-dropdown button svg{float:left;margin-right:14px}.trumbowyg-modal{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);max-width:520px;width:100%;height:350px;z-index:11;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.trumbowyg-modal-box{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);max-width:500px;width:calc(100% - 20px);padding-bottom:45px;z-index:1;background-color:#FFF;text-align:center;font-size:14px;box-shadow:rgba(0,0,0,.2) 0 2px 3px;-webkit-backface-visibility:hidden;backface-visibility:hidden}.trumbowyg-modal-box .trumbowyg-modal-title{font-size:24px;font-weight:700;margin:0 0 20px;padding:15px 0 13px;display:block;border-bottom:1px solid #EEE;color:#333;background:#fbfcfc}.trumbowyg-modal-box .trumbowyg-progress{width:100%;height:3px;position:absolute;top:58px}.trumbowyg-modal-box .trumbowyg-progress .trumbowyg-progress-bar{background:#2BC06A;height:100%;-webkit-transition:width 150ms linear;transition:width 150ms linear}.trumbowyg-modal-box label{display:block;position:relative;margin:15px 12px;height:27px;line-height:27px;overflow:hidden}.trumbowyg-modal-box label .trumbowyg-input-infos{display:block;text-align:left;height:25px;line-height:25px;-webkit-transition:all 150ms;transition:all 150ms}.trumbowyg-modal-box label .trumbowyg-input-infos span{display:block;color:#69878f;background-color:#fbfcfc;border:1px solid #DEDEDE;padding:0 7px;width:150px}.trumbowyg-modal-box label .trumbowyg-input-infos span.trumbowyg-msg-error{color:#e74c3c}.trumbowyg-modal-box label.trumbowyg-input-error input,.trumbowyg-modal-box label.trumbowyg-input-error textarea{border:1px solid #e74c3c}.trumbowyg-modal-box label.trumbowyg-input-error .trumbowyg-input-infos{margin-top:-27px}.trumbowyg-modal-box label input{position:absolute;top:0;right:0;height:27px;line-height:27px;border:1px solid #DEDEDE;background:#fff;font-size:14px;max-width:330px;width:70%;padding:0 7px;-webkit-transition:all 150ms;transition:all 150ms}.trumbowyg-modal-box label input:focus,.trumbowyg-modal-box label input:hover{outline:0;border:1px solid #95a5a6}.trumbowyg-modal-box label input:focus{background:#fbfcfc}.trumbowyg-modal-box .error{margin-top:25px;display:block;color:red}.trumbowyg-modal-box .trumbowyg-modal-button{position:absolute;bottom:10px;right:0;text-decoration:none;color:#FFF;display:block;width:100px;height:35px;line-height:33px;margin:0 10px;background-color:#333;border:none;cursor:pointer;font-family:"Trebuchet MS",Helvetica,Verdana,sans-serif;font-size:16px;-webkit-transition:all 150ms;transition:all 150ms}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit{right:110px;background:#2bc06a}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:focus,.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:hover{background:#40d47e;outline:0}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:active{background:#25a25a}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset{color:#555;background:#e6e6e6}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:focus,.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:hover{background:#fbfbfb;outline:0}.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:active{background:#d5d5d5}.trumbowyg-overlay{position:absolute;background-color:rgba(255,255,255,.5);width:100%;left:0;display:none;z-index:10}body.trumbowyg-body-fullscreen{overflow:hidden}.trumbowyg-fullscreen{position:fixed;top:0;left:0;width:100%;height:100%;margin:0;padding:0;z-index:99999}.trumbowyg-fullscreen .trumbowyg-editor,.trumbowyg-fullscreen.trumbowyg-box{border:none}.trumbowyg-fullscreen .trumbowyg-editor,.trumbowyg-fullscreen .trumbowyg-textarea{height:calc(100% - 37px)!important;overflow:auto}.trumbowyg-fullscreen .trumbowyg-overlay{height:100%!important}.trumbowyg-fullscreen .trumbowyg-button-group .trumbowyg-fullscreen-button svg{color:#222;fill:transparent}.trumbowyg-editor embed,.trumbowyg-editor img,.trumbowyg-editor object,.trumbowyg-editor video{max-width:100%}.trumbowyg-editor img,.trumbowyg-editor video{height:auto}.trumbowyg-editor img{cursor:move}.trumbowyg-editor.trumbowyg-reset-css{background:#FEFEFE!important;font-family:"Trebuchet MS",Helvetica,Verdana,sans-serif!important;font-size:14px!important;line-height:1.45em!important;white-space:normal!important;color:#333}.trumbowyg-editor.trumbowyg-reset-css a{color:#15c!important;text-decoration:underline!important}.trumbowyg-editor.trumbowyg-reset-css blockquote,.trumbowyg-editor.trumbowyg-reset-css div,.trumbowyg-editor.trumbowyg-reset-css ol,.trumbowyg-editor.trumbowyg-reset-css p,.trumbowyg-editor.trumbowyg-reset-css ul{box-shadow:none!important;background:0 0!important;margin:0 0 15px!important;line-height:1.4em!important;font-family:"Trebuchet MS",Helvetica,Verdana,sans-serif!important;font-size:14px!important;border:none}.trumbowyg-editor.trumbowyg-reset-css hr,.trumbowyg-editor.trumbowyg-reset-css iframe,.trumbowyg-editor.trumbowyg-reset-css object{margin-bottom:15px!important}.trumbowyg-editor.trumbowyg-reset-css blockquote{margin-left:32px!important;font-style:italic!important;color:#555}.trumbowyg-editor.trumbowyg-reset-css ol,.trumbowyg-editor.trumbowyg-reset-css ul{padding-left:20px!important}.trumbowyg-editor.trumbowyg-reset-css ol ol,.trumbowyg-editor.trumbowyg-reset-css ol ul,.trumbowyg-editor.trumbowyg-reset-css ul ol,.trumbowyg-editor.trumbowyg-reset-css ul ul{border:none;margin:2px!important;padding:0 0 0 24px!important}.trumbowyg-editor.trumbowyg-reset-css hr{display:block;height:1px;border:none;border-top:1px solid #CCC}.trumbowyg-editor.trumbowyg-reset-css h1,.trumbowyg-editor.trumbowyg-reset-css h2,.trumbowyg-editor.trumbowyg-reset-css h3,.trumbowyg-editor.trumbowyg-reset-css h4{color:#111;background:0 0;margin:0!important;padding:0!important;font-weight:700}.trumbowyg-editor.trumbowyg-reset-css h1{font-size:32px!important;line-height:38px!important;margin-bottom:20px!important}.trumbowyg-editor.trumbowyg-reset-css h2{font-size:26px!important;line-height:34px!important;margin-bottom:15px!important}.trumbowyg-editor.trumbowyg-reset-css h3{font-size:22px!important;line-height:28px!important;margin-bottom:7px!important}.trumbowyg-editor.trumbowyg-reset-css h4{font-size:16px!important;line-height:22px!important;margin-bottom:7px!important}.trumbowyg-dark .trumbowyg-textarea{background:#111;color:#ddd}.trumbowyg-dark .trumbowyg-box{border:1px solid #343434}.trumbowyg-dark .trumbowyg-box.trumbowyg-fullscreen{background:#111}.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor::before{text-shadow:0 0 7px #ccc}@media screen and (min-width:0 \0){.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor::before{color:rgba(20,20,20,.6)!important}}@supports (-ms-accelerator:true){.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor *,.trumbowyg-dark .trumbowyg-box.trumbowyg-box-blur .trumbowyg-editor::before{color:rgba(20,20,20,.6)!important}}.trumbowyg-dark .trumbowyg-box svg{fill:#ecf0f1;color:#ecf0f1}.trumbowyg-dark .trumbowyg-button-pane{background-color:#222;border-bottom-color:#343434}.trumbowyg-dark .trumbowyg-button-pane::after{background:#343434}.trumbowyg-dark .trumbowyg-button-pane .trumbowyg-button-group:not(:empty)::before{background-color:#343434}.trumbowyg-dark .trumbowyg-button-pane .trumbowyg-button-group:not(:empty) .trumbowyg-fullscreen-button svg{color:transparent}.trumbowyg-dark .trumbowyg-button-pane.trumbowyg-disable .trumbowyg-button-group::before{background-color:#2a2a2a}.trumbowyg-dark .trumbowyg-button-pane button.trumbowyg-active,.trumbowyg-dark .trumbowyg-button-pane button:not(.trumbowyg-disable):focus,.trumbowyg-dark .trumbowyg-button-pane button:not(.trumbowyg-disable):hover{background-color:#333}.trumbowyg-dark .trumbowyg-button-pane .trumbowyg-open-dropdown::after{border-top-color:#fff}.trumbowyg-dark .trumbowyg-fullscreen .trumbowyg-button-group .trumbowyg-fullscreen-button svg{color:#ecf0f1;fill:transparent}.trumbowyg-dark .trumbowyg-dropdown{border-color:#222;background:#333;box-shadow:rgba(0,0,0,.3) 0 2px 3px}.trumbowyg-dark .trumbowyg-dropdown button{background:#333;color:#fff!important}.trumbowyg-dark .trumbowyg-dropdown button:focus,.trumbowyg-dark .trumbowyg-dropdown button:hover{background:#222}.trumbowyg-dark .trumbowyg-modal-box{background-color:#222}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-title{border-bottom:1px solid #555;color:#fff;background:#3c3c3c}.trumbowyg-dark .trumbowyg-modal-box label{display:block;position:relative;margin:15px 12px;height:27px;line-height:27px;overflow:hidden}.trumbowyg-dark .trumbowyg-modal-box label .trumbowyg-input-infos span{color:#eee;background-color:#2f2f2f;border-color:#222}.trumbowyg-dark .trumbowyg-modal-box label .trumbowyg-input-infos span.trumbowyg-msg-error{color:#e74c3c}.trumbowyg-dark .trumbowyg-modal-box label.trumbowyg-input-error input,.trumbowyg-dark .trumbowyg-modal-box label.trumbowyg-input-error textarea{border-color:#e74c3c}.trumbowyg-dark .trumbowyg-modal-box label input{border-color:#222;color:#eee;background:#333}.trumbowyg-dark .trumbowyg-modal-box label input:focus,.trumbowyg-dark .trumbowyg-modal-box label input:hover{border-color:#626262}.trumbowyg-dark .trumbowyg-modal-box label input:focus{background-color:#2f2f2f}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit{background:#1b7943}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:focus,.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:hover{background:#25a25a}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit:active{background:#176437}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset{background:#333;color:#ccc}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:focus,.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:hover{background:#444}.trumbowyg-dark .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset:active{background:#111}.trumbowyg-dark .trumbowyg-overlay{background-color:rgba(15,15,15,.6)}
 
 
admin/js/trumbowyg/trumbowyg.min.js DELETED
@@ -1,2 +0,0 @@
1
- /** Trumbowyg v2.1.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
2
- jQuery.trumbowyg={langs:{en:{viewHTML:"View HTML",undo:"Undo",redo:"Redo",formatting:"Formatting",p:"Paragraph",blockquote:"Quote",code:"Code",header:"Header",bold:"Bold",italic:"Italic",strikethrough:"Stroke",underline:"Underline",strong:"Strong",em:"Emphasis",del:"Deleted",superscript:"Superscript",subscript:"Subscript",unorderedList:"Unordered list",orderedList:"Ordered list",insertImage:"Insert Image",link:"Link",createLink:"Insert link",unlink:"Remove link",justifyLeft:"Align Left",justifyCenter:"Align Center",justifyRight:"Align Right",justifyFull:"Align Justify",horizontalRule:"Insert horizontal rule",removeformat:"Remove format",fullscreen:"Fullscreen",close:"Close",submit:"Confirm",reset:"Cancel",required:"Required",description:"Description",title:"Title",text:"Text",target:"Target"}},plugins:{},svgPath:null},function(e,t,n,a){"use strict";a.fn.trumbowyg=function(e,t){var n="trumbowyg";if(e===Object(e)||!e)return this.each(function(){a(this).data(n)||a(this).data(n,new o(this,e))});if(1===this.length)try{var r=a(this).data(n);switch(e){case"execCmd":return r.execCmd(t.cmd,t.param,t.forceCss);case"openModal":return r.openModal(t.title,t.content);case"closeModal":return r.closeModal();case"openModalInsert":return r.openModalInsert(t.title,t.fields,t.callback);case"saveRange":return r.saveRange();case"getRange":return r.range;case"getRangeText":return r.getRangeText();case"restoreRange":return r.restoreRange();case"enable":return r.toggleDisable(!1);case"disable":return r.toggleDisable(!0);case"destroy":return r.destroy();case"empty":return r.empty();case"html":return r.html(t)}}catch(i){}return!1};var o=function(e,o){var r=this,i="trumbowyg-icons";r.doc=e.ownerDocument||n,r.$ta=a(e),r.$c=a(e),o=o||{},null!=o.lang||null!=a.trumbowyg.langs[o.lang]?r.lang=a.extend(!0,{},a.trumbowyg.langs.en,a.trumbowyg.langs[o.lang]):r.lang=a.trumbowyg.langs.en;var s=null!=a.trumbowyg.svgPath?a.trumbowyg.svgPath:o.svgPath;if(r.hasSvg=s!==!1,r.svgPath=r.doc.querySelector("base")?t.location:"",0===a("#"+i,r.doc).length&&s!==!1){if(null==s)try{throw new Error}catch(l){var d=l.stack.split("\n");for(var c in d)if(d[c].match(/http[s]?:\/\//)){s=d[Number(c)].match(/((http[s]?:\/\/.+\/)([^\/]+\.js)):/)[1].split("/"),s.pop(),s=s.join("/")+"/ui/icons.svg";break}}var u=r.doc.createElement("div");u.id=i,r.doc.body.insertBefore(u,r.doc.body.childNodes[0]),a.get(s,function(e){u.innerHTML=(new XMLSerializer).serializeToString(e.documentElement)})}var g=r.lang.header,f=function(){return(t.chrome||t.Intl&&Intl.v8BreakIterator)&&"CSS"in t};r.btnsDef={viewHTML:{fn:"toggle"},undo:{isSupported:f,key:"Z"},redo:{isSupported:f,key:"Y"},p:{fn:"formatBlock"},blockquote:{fn:"formatBlock"},h1:{fn:"formatBlock",title:g+" 1"},h2:{fn:"formatBlock",title:g+" 2"},h3:{fn:"formatBlock",title:g+" 3"},h4:{fn:"formatBlock",title:g+" 4"},subscript:{tag:"sub"},superscript:{tag:"sup"},bold:{key:"B"},italic:{key:"I"},underline:{tag:"u"},strikethrough:{tag:"strike"},strong:{fn:"bold",key:"B"},em:{fn:"italic",key:"I"},del:{fn:"strikethrough"},createLink:{key:"K",tag:"a"},unlink:{},insertImage:{},justifyLeft:{tag:"left",forceCss:!0},justifyCenter:{tag:"center",forceCss:!0},justifyRight:{tag:"right",forceCss:!0},justifyFull:{tag:"justify",forceCss:!0},unorderedList:{fn:"insertUnorderedList",tag:"ul"},orderedList:{fn:"insertOrderedList",tag:"ol"},horizontalRule:{fn:"insertHorizontalRule"},removeformat:{},fullscreen:{"class":"trumbowyg-not-disable"},close:{fn:"destroy","class":"trumbowyg-not-disable"},formatting:{dropdown:["p","blockquote","h1","h2","h3","h4"],ico:"p"},link:{dropdown:["createLink","unlink"]}},r.o=a.extend(!0,{},{lang:"en",fixedBtnPane:!1,fixedFullWidth:!1,autogrow:!1,prefix:"trumbowyg-",semantic:!0,resetCss:!1,removeformatPasted:!1,tagsToRemove:[],btnsGrps:{design:["bold","italic","underline","strikethrough"],semantic:["strong","em","del"],justify:["justifyLeft","justifyCenter","justifyRight","justifyFull"],lists:["unorderedList","orderedList"]},btns:[["viewHTML"],["undo","redo"],["formatting"],"btnGrp-semantic",["superscript","subscript"],["link"],["insertImage"],"btnGrp-justify","btnGrp-lists",["horizontalRule"],["removeformat"],["fullscreen"]],btnsDef:{},inlineElementsSelector:"a,abbr,acronym,b,caption,cite,code,col,dfn,dir,dt,dd,em,font,hr,i,kbd,li,q,span,strikeout,strong,sub,sup,u",pasteHandlers:[],imgDblClickHandler:function(){var e=a(this),t=e.attr("src"),n="(Base64)";return 0===t.indexOf("data:image")&&(t=n),r.openModalInsert(r.lang.insertImage,{url:{label:"URL",value:t,required:!0},alt:{label:r.lang.description,value:e.attr("alt")}},function(t){return t.src!==n&&e.attr({src:t.src}),e.attr({alt:t.alt}),!0}),!1},plugins:{}},o),r.disabled=r.o.disabled||"TEXTAREA"===e.nodeName&&e.disabled,o.btns?r.o.btns=o.btns:r.o.semantic||(r.o.btns[4]="btnGrp-design"),a.each(r.o.btnsDef,function(e,t){r.addBtnDef(e,t)}),r.keys=[],r.tagToButton={},r.tagHandlers=[],r.pasteHandlers=[].concat(r.o.pasteHandlers),r.init()};o.prototype={init:function(){var e=this;e.height=e.$ta.height(),e.initPlugins(),e.doc.execCommand("enableObjectResizing",!1,!1),e.doc.execCommand("defaultParagraphSeparator",!1,"p"),e.buildEditor(),e.buildBtnPane(),e.fixedBtnPaneEvents(),e.buildOverlay(),setTimeout(function(){e.disabled&&e.toggleDisable(!0),e.$c.trigger("tbwinit")})},addBtnDef:function(e,t){this.btnsDef[e]=t},buildEditor:function(){var e=this,n=e.o.prefix,o="";e.$box=a("<div/>",{"class":n+"box "+n+"editor-visible "+n+e.o.lang+" trumbowyg"}),e.isTextarea=e.$ta.is("textarea"),e.isTextarea?(o=e.$ta.val(),e.$ed=a("<div/>"),e.$box.insertAfter(e.$ta).append(e.$ed,e.$ta)):(e.$ed=e.$ta,o=e.$ed.html(),e.$ta=a("<textarea/>",{name:e.$ta.attr("id"),height:e.height}).val(o),e.$box.insertAfter(e.$ed).append(e.$ta,e.$ed),e.syncCode()),e.$ta.addClass(n+"textarea").attr("tabindex",-1),e.$ed.addClass(n+"editor").attr({contenteditable:!0,dir:e.lang._dir||"ltr"}).html(o),e.o.tabindex&&e.$ed.attr("tabindex",e.o.tabindex),e.$c.is("[placeholder]")&&e.$ed.attr("placeholder",e.$c.attr("placeholder")),e.o.resetCss&&e.$ed.addClass(n+"reset-css"),e.o.autogrow||e.$ta.add(e.$ed).css({height:e.height}),e.semanticCode(),e._ctrl=!1,e.$ed.on("dblclick","img",e.o.imgDblClickHandler).on("keydown",function(t){if(e._composition=229===t.which,t.ctrlKey){e._ctrl=!0;var n=e.keys[String.fromCharCode(t.which).toUpperCase()];try{return e.execCmd(n.fn,n.param),!1}catch(a){}}}).on("keyup",function(t){t.which>=37&&t.which<=40||(!t.ctrlKey||89!==t.which&&90!==t.which?e._ctrl||17===t.which||e._composition||(e.semanticCode(!1,13===t.which),e.$c.trigger("tbwchange")):e.$c.trigger("tbwchange"),setTimeout(function(){e._ctrl=!1},200))}).on("mouseup keydown keyup",function(){e.updateButtonPaneStatus()}).on("focus blur",function(t){e.$c.trigger("tbw"+t.type),"blur"===t.type&&a("."+n+"active-button",e.$btnPane).removeClass(n+"active-button "+n+"active")}).on("cut",function(){e.$c.trigger("tbwchange")}).on("paste",function(n){if(e.o.removeformatPasted){n.preventDefault();try{var o=t.clipboardData.getData("Text");try{e.doc.selection.createRange().pasteHTML(o)}catch(r){e.doc.getSelection().getRangeAt(0).insertNode(e.doc.createTextNode(o))}}catch(i){e.execCmd("insertText",(n.originalEvent||n).clipboardData.getData("text/plain"))}}a.each(e.pasteHandlers,function(e,t){t(n)}),setTimeout(function(){e.o.semantic?e.semanticCode(!1,!0):e.syncCode(),e.$c.trigger("tbwpaste",n)},0)}),e.$ta.on("keyup paste",function(){e.$c.trigger("tbwchange")}),a(e.doc).on("keydown",function(t){return 27===t.which?(e.closeModal(),!1):void 0})},buildBtnPane:function(){var e=this,t=e.o.prefix,n=e.$btnPane=a("<div/>",{"class":t+"button-pane"});a.each(e.o.btns,function(o,r){try{var i=r.split("btnGrp-");null!=i[1]&&(r=e.o.btnsGrps[i[1]])}catch(s){}a.isArray(r)||(r=[r]);var l=a("<div/>",{"class":t+"button-group "+(r.indexOf("fullscreen")>=0?t+"right":"")});a.each(r,function(t,n){try{var a;e.isSupportedBtn(n)&&(a=e.buildBtn(n)),l.append(a)}catch(o){}}),n.append(l)}),e.$box.prepend(n)},buildBtn:function(e){var t=this,n=t.o.prefix,o=t.btnsDef[e],r=o.dropdown,i=t.lang[e]||e,s=a("<button/>",{type:"button","class":n+e+"-button "+(o["class"]||""),html:t.hasSvg?'<svg><use xlink:href="'+t.svgPath+"#"+n+(o.ico||e).replace(/([A-Z]+)/g,"-$1").toLowerCase()+'"/></svg>':"",title:(o.title||o.text||i)+(o.key?" (Ctrl + "+o.key+")":""),tabindex:-1,mousedown:function(){return(!r||a("."+e+"-"+n+"dropdown",t.$box).is(":hidden"))&&a("body",t.doc).trigger("mousedown"),!t.$btnPane.hasClass(n+"disable")||a(this).hasClass(n+"active")||a(this).hasClass(n+"not-disable")?(t.execCmd((r?"dropdown":!1)||o.fn||e,o.param||e,o.forceCss||!1),!1):!1}});if(r){s.addClass(n+"open-dropdown");var l=n+"dropdown",d=a("<div/>",{"class":l+"-"+e+" "+l+" "+n+"fixed-top","data-dropdown":e});a.each(r,function(e,n){t.btnsDef[n]&&t.isSupportedBtn(n)&&d.append(t.buildSubBtn(n))}),t.$box.append(d.hide())}else o.key&&(t.keys[o.key]={fn:o.fn||e,param:o.param||e});return r||(t.tagToButton[(o.tag||e).toLowerCase()]=e),s},buildSubBtn:function(e){var t=this,n=t.o.prefix,o=t.btnsDef[e];return o.key&&(t.keys[o.key]={fn:o.fn||e,param:o.param||e}),t.tagToButton[(o.tag||e).toLowerCase()]=e,a("<button/>",{type:"button","class":n+e+"-dropdown-button"+(o.ico?" "+n+o.ico+"-button":""),html:t.hasSvg?'<svg><use xlink:href="'+t.svgPath+"#"+n+(o.ico||e).replace(/([A-Z]+)/g,"-$1").toLowerCase()+'"/></svg>'+(o.text||o.title||t.lang[e]||e):"",title:o.key?" (Ctrl + "+o.key+")":null,style:o.style||null,mousedown:function(){return a("body",t.doc).trigger("mousedown"),t.execCmd(o.fn||e,o.param||e,o.forceCss||!1),!1}})},isSupportedBtn:function(e){try{return this.btnsDef[e].isSupported()}catch(t){}return!0},buildOverlay:function(){var e=this;return e.$overlay=a("<div/>",{"class":e.o.prefix+"overlay"}).css({top:e.$btnPane.outerHeight(),height:e.$ed.outerHeight()+1+"px"}).appendTo(e.$box),e.$overlay},showOverlay:function(){var e=this;a(t).trigger("scroll"),e.$overlay.fadeIn(200),e.$box.addClass(e.o.prefix+"box-blur")},hideOverlay:function(){var e=this;e.$overlay.fadeOut(50),e.$box.removeClass(e.o.prefix+"box-blur")},fixedBtnPaneEvents:function(){var e=this,n=e.o.fixedFullWidth,o=e.$box;e.o.fixedBtnPane&&(e.isFixed=!1,a(t).on("scroll resize",function(){if(o){e.syncCode();var r=a(t).scrollTop(),i=o.offset().top+1,s=e.$btnPane,l=s.outerHeight()-2;r-i>0&&r-i-e.height<0?(e.isFixed||(e.isFixed=!0,s.css({position:"fixed",top:0,left:n?"0":"auto",zIndex:7}),a([e.$ta,e.$ed]).css({marginTop:s.height()})),s.css({width:n?"100%":o.width()-1+"px"}),a("."+e.o.prefix+"fixed-top",o).css({position:n?"fixed":"absolute",top:n?l:l+(r-i)+"px",zIndex:15})):e.isFixed&&(e.isFixed=!1,s.removeAttr("style"),a([e.$ta,e.$ed]).css({marginTop:0}),a("."+e.o.prefix+"fixed-top",o).css({position:"absolute",top:l}))}}))},toggleDisable:function(e){var t=this,n=t.o.prefix;t.disabled=e,e?t.$ta.attr("disabled",!0):t.$ta.removeAttr("disabled"),t.$box.toggleClass(n+"disabled",e),t.$ed.attr("contenteditable",!e)},destroy:function(){var e=this,t=e.o.prefix,n=e.height;e.isTextarea?e.$box.after(e.$ta.css({height:n}).val(e.html()).removeClass(t+"textarea").show()):e.$box.after(e.$ed.css({height:n}).removeClass(t+"editor").removeAttr("contenteditable").html(e.html()).show()),e.$ed.off("dblclick","img"),e.destroyPlugins(),e.$box.remove(),e.$c.removeData("trumbowyg"),a("body").removeClass(t+"body-fullscreen")},empty:function(){this.$ta.val(""),this.syncCode(!0)},toggle:function(){var e=this,t=e.o.prefix;e.semanticCode(!1,!0),setTimeout(function(){e.doc.activeElement.blur(),e.$box.toggleClass(t+"editor-hidden "+t+"editor-visible"),e.$btnPane.toggleClass(t+"disable"),a("."+t+"viewHTML-button",e.$btnPane).toggleClass(t+"active"),e.$box.hasClass(t+"editor-visible")?e.$ta.attr("tabindex",-1):e.$ta.removeAttr("tabindex")},0)},dropdown:function(e){var n=this,o=n.doc,r=n.o.prefix,i=a("[data-dropdown="+e+"]",n.$box),s=a("."+r+e+"-button",n.$btnPane),l=i.is(":hidden");if(a("body",o).trigger("mousedown"),l){var d=s.offset().left;s.addClass(r+"active"),i.css({position:"absolute",top:s.offset().top-n.$btnPane.offset().top+s.outerHeight(),left:n.o.fixedFullWidth&&n.isFixed?d+"px":d-n.$btnPane.offset().left+"px"}).show(),a(t).trigger("scroll"),a("body",o).on("mousedown",function(){a("."+r+"dropdown",o).hide(),a("."+r+"active",o).removeClass(r+"active"),a("body",o).off("mousedown")})}},html:function(e){var t=this;return null!=e?(t.$ta.val(e),t.syncCode(!0),t):t.$ta.val()},syncTextarea:function(){var e=this;e.$ta.val(e.$ed.text().trim().length>0||e.$ed.find("hr,img,embed,input").length>0?e.$ed.html():"")},syncCode:function(e){var t=this;!e&&t.$ed.is(":visible")?t.syncTextarea():t.$ed.html(t.$ta.val()),t.o.autogrow&&(t.height=t.$ed.height(),t.height!==t.$ta.css("height")&&(t.$ta.css({height:t.height}),t.$c.trigger("tbwresize")))},semanticCode:function(e,t){var n=this;if(n.saveRange(),n.syncCode(e),a(n.o.tagsToRemove.join(","),n.$ed).remove(),n.o.semantic){if(n.semanticTag("b","strong"),n.semanticTag("i","em"),n.semanticTag("strike","del"),t){var o=n.o.inlineElementsSelector,r=":not("+o+")";n.$ed.contents().filter(function(){return 3===this.nodeType&&this.nodeValue.trim().length>0}).wrap("<span data-tbw/>");var i=function(e){if(0!==e.length){var t=e.nextUntil(r).andSelf().wrapAll("<p/>").parent(),n=t.nextAll(o).first();t.next("br").remove(),i(n)}};i(n.$ed.children(o).first()),n.semanticTag("div","p",!0),n.$ed.find("p").filter(function(){return n.range&&this===n.range.startContainer?!1:0===a(this).text().trim().length&&0===a(this).children().not("br,span").length}).contents().unwrap(),a("[data-tbw]",n.$ed).contents().unwrap(),n.$ed.find("p:empty").remove()}n.restoreRange(),n.syncTextarea()}},semanticTag:function(e,t,n){a(e,this.$ed).each(function(){var e=a(this);e.wrap("<"+t+"/>"),n&&a.each(e.prop("attributes"),function(){e.parent().attr(this.name,this.value)}),e.contents().unwrap()})},createLink:function(){for(var e,t,n,o=this,r=o.doc.getSelection(),i=r.focusNode;["A","DIV"].indexOf(i.nodeName)<0;)i=i.parentNode;if(i&&"A"===i.nodeName){var s=a(i);e=s.attr("href"),t=s.attr("title"),n=s.attr("target");var l=o.doc.createRange();l.selectNode(i),r.addRange(l)}o.saveRange(),o.openModalInsert(o.lang.createLink,{url:{label:"URL",required:!0,value:e},title:{label:o.lang.title,value:t},text:{label:o.lang.text,value:o.getRangeText()},target:{label:o.lang.target,value:n}},function(e){var t=a(['<a href="',e.url,'">',e.text,"</a>"].join(""));return e.title.length>0&&t.attr("title",e.title),e.target.length>0&&t.attr("target",e.target),o.range.deleteContents(),o.range.insertNode(t[0]),!0})},unlink:function(){var e=this,t=e.doc.getSelection(),n=t.focusNode;if(t.isCollapsed){for(;["A","DIV"].indexOf(n.nodeName)<0;)n=n.parentNode;if(n&&"A"===n.nodeName){var a=e.doc.createRange();a.selectNode(n),t.addRange(a)}}e.execCmd("unlink",void 0,void 0,!0)},insertImage:function(){var e=this;e.saveRange(),e.openModalInsert(e.lang.insertImage,{url:{label:"URL",required:!0},alt:{label:e.lang.description,value:e.getRangeText()}},function(t){return e.execCmd("insertImage",t.url),a('img[src="'+t.url+'"]:not([alt])',e.$box).attr("alt",t.alt),!0})},fullscreen:function(){var e,n=this,o=n.o.prefix,r=o+"fullscreen";n.$box.toggleClass(r),e=n.$box.hasClass(r),a("body").toggleClass(o+"body-fullscreen",e),a(t).trigger("scroll"),n.$c.trigger("tbw"+(e?"open":"close")+"fullscreen")},execCmd:function(t,n,a,o){var r=this;o=!!o||"","dropdown"!==t&&r.$ed.focus(),r.doc.execCommand("styleWithCSS",!1,a||!1);try{r[t+o](n)}catch(i){try{t(n)}catch(s){"insertHorizontalRule"===t?n=void 0:"formatBlock"!==t||-1===e.userAgent.indexOf("MSIE")&&-1===e.appVersion.indexOf("Trident/")||(n="<"+n+">"),r.doc.execCommand(t,!1,n),r.syncCode(),r.semanticCode(!1,!0)}"dropdown"!==t&&(r.updateButtonPaneStatus(),r.$c.trigger("tbwchange"))}},openModal:function(e,n){var o=this,r=o.o.prefix;if(a("."+r+"modal-box",o.$box).length>0)return!1;o.saveRange(),o.showOverlay(),o.$btnPane.addClass(r+"disable");var i=a("<div/>",{"class":r+"modal "+r+"fixed-top"}).css({top:o.$btnPane.height()}).appendTo(o.$box);o.$overlay.one("click",function(){return i.trigger("tbwcancel"),!1});var s=a("<form/>",{action:"",html:n}).on("submit",function(){return i.trigger("tbwconfirm"),!1}).on("reset",function(){return i.trigger("tbwcancel"),!1}),l=a("<div/>",{"class":r+"modal-box",html:s}).css({top:"-"+o.$btnPane.outerHeight()+"px",opacity:0}).appendTo(i).animate({top:0,opacity:1},100);return a("<span/>",{text:e,"class":r+"modal-title"}).prependTo(l),i.height(l.outerHeight()+10),a("input:first",l).focus(),o.buildModalBtn("submit",l),o.buildModalBtn("reset",l),a(t).trigger("scroll"),i},buildModalBtn:function(e,t){var n=this,o=n.o.prefix;return a("<button/>",{"class":o+"modal-button "+o+"modal-"+e,type:e,text:n.lang[e]||e}).appendTo(a("form",t))},closeModal:function(){var e=this,t=e.o.prefix;e.$btnPane.removeClass(t+"disable"),e.$overlay.off();var n=a("."+t+"modal-box",e.$box);n.animate({top:"-"+n.height()},100,function(){n.parent().remove(),e.hideOverlay()}),e.restoreRange()},openModalInsert:function(e,t,n){var o=this,r=o.o.prefix,i=o.lang,s="",l="tbwconfirm";return a.each(t,function(e,t){var n=t.label,a=t.name||e;s+='<label><input type="'+(t.type||"text")+'" name="'+a+'" value="'+(t.value||"").replace(/"/g,"&quot;")+'"><span class="'+r+'input-infos"><span>'+(n?i[n]?i[n]:n:i[e]?i[e]:e)+"</span></span></label>"}),o.openModal(e,s).on(l,function(){var e=a("form",a(this)),r=!0,i={};a.each(t,function(t,n){var s=a('input[name="'+t+'"]',e);i[t]=a.trim(s.val()),n.required&&""===i[t]?(r=!1,o.addErrorOnModalField(s,o.lang.required)):n.pattern&&!n.pattern.test(i[t])&&(r=!1,o.addErrorOnModalField(s,n.patternError))}),r&&(o.restoreRange(),n(i,t)&&(o.syncCode(),o.$c.trigger("tbwchange"),o.closeModal(),a(this).off(l)))}).one("tbwcancel",function(){a(this).off(l),o.closeModal()})},addErrorOnModalField:function(e,t){var n=this.o.prefix,o=e.parent();e.on("change keyup",function(){o.removeClass(n+"input-error")}),o.addClass(n+"input-error").find("input+span").append(a("<span/>",{"class":n+"msg-error",text:t}))},saveRange:function(){var e=this,t=e.doc.getSelection();if(e.range=null,t.rangeCount){var n,a=e.range=t.getRangeAt(0),o=e.doc.createRange();o.selectNodeContents(e.$ed[0]),o.setEnd(a.startContainer,a.startOffset),n=(o+"").length,e.metaRange={start:n,end:n+(a+"").length}}},restoreRange:function(){var e,t=this,n=t.metaRange,a=t.range,o=t.doc.getSelection();if(a){if(n&&n.start!==n.end){var r,i=0,s=[t.$ed[0]],l=!1,d=!1;for(e=t.doc.createRange();!d&&(r=s.pop());)if(3===r.nodeType){var c=i+r.length;!l&&n.start>=i&&n.start<=c&&(e.setStart(r,n.start-i),l=!0),l&&n.end>=i&&n.end<=c&&(e.setEnd(r,n.end-i),d=!0),i=c}else for(var u=r.childNodes,g=u.length;g>0;)g-=1,s.push(u[g])}o.removeAllRanges(),o.addRange(e||a)}},getRangeText:function(){return this.range+""},updateButtonPaneStatus:function(){var e=this,t=e.o.prefix,n=e.getTagsRecursive(e.doc.getSelection().focusNode.parentNode),o=t+"active-button "+t+"active";a("."+t+"active-button",e.$btnPane).removeClass(o),a.each(n,function(n,r){var i=e.tagToButton[r.toLowerCase()],s=a("."+t+i+"-button",e.$btnPane);if(s.length>0)s.addClass(o);else try{s=a("."+t+"dropdown ."+t+i+"-dropdown-button",e.$box);var l=s.parent().data("dropdown");a("."+t+l+"-button",e.$box).addClass(o)}catch(d){}})},getTagsRecursive:function(e,t){var n=this;t=t||[];var o=e.tagName;return"DIV"===o?t:("P"===o&&""!==e.style.textAlign&&t.push(e.style.textAlign),a.each(n.tagHandlers,function(a,o){t=t.concat(o(e,n))}),t.push(o),n.getTagsRecursive(e.parentNode,t))},initPlugins:function(){var e=this;e.loadedPlugins=[],a.each(a.trumbowyg.plugins,function(t,n){(!n.shouldInit||n.shouldInit(e))&&(n.init(e),n.tagHandler&&e.tagHandlers.push(n.tagHandler),e.loadedPlugins.push(n))})},destroyPlugins:function(){a.each(this.loadedPlugins,function(e,t){t.destroy&&t.destroy()})}}}(navigator,window,document,jQuery);
 
 
admin/mobile_sharebar.php DELETED
@@ -1,172 +0,0 @@
1
- <?php
2
- /**
3
- * Mobile sharebar settings page
4
- *
5
- **/
6
-
7
- class wpsr_admin_mobile_sharebar{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
12
-
13
- }
14
-
15
- function register( $pages ){
16
-
17
- $pages[ 'mobile_sharebar' ] = array(
18
- 'name' => 'Mobile sharebar',
19
- 'page_callback' => array( $this, 'page' ),
20
- 'banner' => WPSR_ADMIN_URL . '/images/banners/mobile-sharebar.svg',
21
- 'feature' => true,
22
- 'form' => array(
23
- 'id' => 'mobile_sharebar_settings',
24
- 'name' => 'mobile_sharebar_settings',
25
- 'callback' => array( $this, 'form_fields' ),
26
- 'validation' => array( $this, 'validation' ),
27
- )
28
- );
29
-
30
- return $pages;
31
-
32
- }
33
-
34
- function form_fields( $values ){
35
-
36
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'mobile_sharebar' ) );
37
-
38
- $section0 = array(
39
- array( __( 'Select to enable or disable mobile sharebar feature', 'wpsr' ), WPSR_Admin::field( 'select', array(
40
- 'name' => 'ft_status',
41
- 'value' => $values[ 'ft_status' ],
42
- 'list' => array(
43
- 'enable' => __( 'Enable mobile sharebar', 'wpsr' ),
44
- 'disable' => __( 'Disable mobile sharebar', 'wpsr' )
45
- ),
46
- )), 'class="ft_table"' ),
47
- );
48
-
49
- WPSR_Admin::build_table( $section0, __( 'Enable/disable mobile sharebar', 'wpsr' ), '', false, '1' );
50
-
51
- echo '<div class="feature_wrap">';
52
-
53
- $sb_sites = WPSR_Lists::social_icons();
54
-
55
- WPSR_Admin::box_wrap( 'open', __( 'Add buttons to mobile sharebar', 'wpsr' ), __( 'Select buttons from the list below and add it to the selected list.', 'wpsr' ), '2' );
56
- echo '<table class="form-table ssb_tbl"><tr><td width="90%">';
57
- echo '<select class="ssb_list widefat">';
58
- foreach( $sb_sites as $id=>$prop ){
59
- if( in_array( 'for_share', $prop[ 'features' ] ) ){
60
- echo '<option value="' . $id . '" data-color="' . $prop['colors'][0] . '">' . $prop[ 'name' ] . '</option>';
61
- }
62
- }
63
- echo '</select>';
64
- echo '</td><td>';
65
- echo '<button class="button button-primary ssb_add"><i class="fa fa-plus"></i> ' . __( 'Add button', 'wpsr' ) . '</button>';
66
- echo '</td></tr></table>';
67
-
68
- echo '<h4>' . __( 'Selected buttons', 'wpsr' ) . '</h4>';
69
-
70
- $decoded = base64_decode( $values[ 'template' ] );
71
- $msb_btns = json_decode( $decoded );
72
-
73
- if( !is_array( $msb_btns ) ){
74
- $msb_btns = array();
75
- }
76
-
77
- echo '<ul class="ssb_selected_list clearfix">';
78
- if( count( $msb_btns ) > 0 ){
79
- foreach( $msb_btns as $msb_item ){
80
- if( !array_key_exists( $msb_item, $sb_sites ) ){
81
- continue;
82
- }
83
- $sb_info = $sb_sites[ $msb_item ];
84
- echo '<li title="' . $sb_info[ 'name' ] . '" data-id="' . $msb_item . '" style="background-color:' . $sb_info['colors'][0] . '"><i class="' . $sb_info[ 'icon' ] . '"></i> <span class="ssb_remove" title="' . __( 'Delete button', 'wpsr' ) . '">x</span></li>';
85
- }
86
- }else{
87
- echo '<span class="ssb_empty">' . __( 'No buttons are selected for text sharebar', 'wpsr' ) . '</span>';
88
- }
89
- echo '</ul>';
90
- echo '<input type="hidden" name="template" class="ssb_template" value="' . $values[ 'template' ] . '"/>';
91
-
92
- WPSR_Admin::box_wrap( 'close' );
93
-
94
- # Settings form
95
- $section2 = array(
96
-
97
- array( __( 'Button size', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
98
- 'name' => 'size',
99
- 'value' => $values['size'],
100
- 'list' => array(
101
- '32px' => array( '32px', 'size.svg', '32px' ),
102
- '40px' => array( '40px', 'size.svg', '40px' ),
103
- '48px' => array( '48px', 'size.svg', '48px' ),
104
- '64px' => array( '64px', 'size.svg', '64px' ),
105
- )
106
- ))),
107
-
108
- array( __( 'Button background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
109
- 'name' => 'bg_color',
110
- 'value' => $values['bg_color'],
111
- 'class' => 'color_picker',
112
- 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
113
- ))),
114
-
115
- array( __( 'Icon color', 'wpsr' ), WPSR_Admin::field( 'text', array(
116
- 'name' => 'icon_color',
117
- 'value' => $values['icon_color'],
118
- 'class' => 'color_picker'
119
- ))),
120
-
121
- array( __( 'Hide on scroll', 'wpsr' ), WPSR_Admin::field( 'select', array(
122
- 'name' => 'hide_on_scroll',
123
- 'value' => $values['hide_on_scroll'],
124
- 'list' => array(
125
- 'yes' => __( 'Yes', 'wpsr' ),
126
- 'no' => __( 'No', 'wpsr' )
127
- ),
128
- 'helper' => __( 'Select yes to hide sharebar on scrolling up', 'wpsr' )
129
- ))),
130
-
131
- array( __( 'Gutters', 'wpsr' ), WPSR_Admin::field( 'select', array(
132
- 'name' => 'pad',
133
- 'value' => $values['pad'],
134
- 'list' => array(
135
- '' => __( 'No', 'wpsr' ),
136
- 'pad' => __( 'Yes', 'wpsr' )
137
- ),
138
- 'helper' => __( 'Select to add space between buttons', 'wpsr' )
139
- ))),
140
-
141
- );
142
- WPSR_Admin::build_table( $section2, __( 'Settings', 'wpsr' ), '', false, '3' );
143
-
144
- // Location rules
145
- WPSR_Admin::box_wrap( 'open', __( 'Conditions to display the mobile sharebar', 'wpsr' ), __( 'Choose the below options to select the pages which will display the mobile sharebar.', 'wpsr' ), '4' );
146
- WPSR_Location_Rules::display_rules( "loc_rules", $values['loc_rules'] );
147
- WPSR_Admin::box_wrap( 'close' );
148
-
149
- echo '</div>';
150
-
151
- echo '<script>';
152
- echo 'var sb_sites = ' . json_encode( $sb_sites ) . ';';
153
- echo '</script>';
154
-
155
- }
156
-
157
-
158
- function page(){
159
-
160
- WPSR_Admin::settings_form( 'mobile_sharebar' );
161
-
162
- }
163
-
164
- function validation( $input ){
165
- return $input;
166
- }
167
-
168
- }
169
-
170
- new wpsr_admin_mobile_sharebar();
171
-
172
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/pages/floating-sharebar.php ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Floating sharebar settings page
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Admin_Floating_Sharebar{
10
+
11
+ function __construct(){
12
+
13
+ add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
14
+
15
+ }
16
+
17
+ function register( $pages ){
18
+
19
+ $pages[ 'floating_sharebar' ] = array(
20
+ 'name' => __( 'Floating sharebar', 'wpsr' ),
21
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/floating-sharebar.svg',
22
+ 'description' => __( 'Add floating/sticky share icons to share the content on social media sites.', 'wpsr' ),
23
+ 'category' => 'feature',
24
+ 'type' => 'feature',
25
+ 'form_name' => 'floating_sharebar_settings',
26
+ 'callbacks' => array(
27
+ 'page' => array( $this, 'page' ),
28
+ 'form' => array( $this, 'form' ),
29
+ 'validation' => array( $this, 'validation' ),
30
+ )
31
+ );
32
+
33
+ return $pages;
34
+
35
+ }
36
+
37
+ function page(){
38
+
39
+ WPSR_Admin::settings_form( 'floating_sharebar' );
40
+
41
+ }
42
+
43
+ function form( $values ){
44
+
45
+ $values = WPSR_Lists::set_defaults( $values, WPSR_Options::default_values( 'floating_sharebar' ) );
46
+ $options = WPSR_Options::options( 'floating_sharebar' );
47
+ $form = new WPSR_Form( $values, $options );
48
+
49
+ // Section 0
50
+ $form->section_start( __( 'Enable/disable floating sharebar', 'wpsr' ), '1' );
51
+ $form->label( __( 'Select to enable or disable floating sharebar feature', 'wpsr' ) );
52
+ $form->field( 'select', array(
53
+ 'name' => 'ft_status',
54
+ 'value' => $form->values[ 'ft_status' ],
55
+ 'list' => $options[ 'ft_status' ],
56
+ ));
57
+ $form->build();
58
+ $form->section_end();
59
+
60
+ $icon_settings = array( 'icon', 'hover_text', 'html' );
61
+ WPSR_Icons_Editor::commons( $icon_settings );
62
+
63
+ echo '<div class="feature_wrap">';
64
+
65
+ // Section 1
66
+ $form->section_start( __( 'Choose the social icons', 'wpsr' ), '2' );
67
+ $form->section_description( __( 'Add social icons to the template, re-arrange them and configure individual icon settings.', 'wpsr' ) );
68
+ WPSR_Icons_Editor::editor( $values[ 'selected_icons' ], 'selected_icons' );
69
+ $form->section_end();
70
+
71
+ // Settings
72
+ $form->section_start( __( 'Settings', 'wpsr' ), '3' );
73
+
74
+ $form->tab_list(array(
75
+ 'style' => '<i class="fas fa-paint-brush"></i>' . __( 'Style', 'wpsr' ),
76
+ 'position' => '<i class="fas fa-arrows-alt"></i>' . __( 'Position', 'wpsr' ),
77
+ 'share_counter' => '<i class="fab fa-creative-commons-zero"></i>' . __( 'Share counter', 'wpsr' ),
78
+ 'responsiveness' => '<i class="fas fa-mobile-alt"></i>' . __( 'Responsiveness', 'wpsr' ),
79
+ 'misc' => '<i class="fas fa-cog"></i>' . __( 'Miscellaneous', 'wpsr' )
80
+ ));
81
+
82
+ echo '<div class="tab_wrap">';
83
+ $this->tab_style( $form );
84
+ $this->tab_position( $form );
85
+ $this->tab_share_counter( $form );
86
+ $this->tab_responsiveness( $form );
87
+ $this->tab_misc( $form );
88
+ echo '</div>';
89
+
90
+ $form->section_end();
91
+
92
+ // Location rules
93
+ $form->section_start( __( 'Conditions to display the sharebar', 'wpsr' ), '4' );
94
+ $form->section_description( __( 'Choose the below options to select the pages which will display the sharebar.', 'wpsr' ) );
95
+ WPSR_Location_Rules::display_rules( 'loc_rules', $values['loc_rules'] );
96
+ $form->section_end();
97
+
98
+ echo '</div>';
99
+
100
+ }
101
+
102
+ function tab_style( $form ){
103
+
104
+ echo '<div data-tab="style">';
105
+
106
+ $form->label( __( 'Sharebar style', 'wpsr' ) );
107
+ $form->field( 'image_select', array(
108
+ 'name' => 'style',
109
+ 'value' => $form->values['style'],
110
+ 'class' => 'setting_sb_style',
111
+ 'list' => $form->options[ 'style' ],
112
+ ));
113
+ $form->end();
114
+
115
+ $form->start( '', 'data-conditioner data-condr-input=".setting_sb_style" data-condr-value="enclosed" data-condr-action="simple?show:hide" data-condr-events="change"' );
116
+ $form->label( __( 'Sharebar background color', 'wpsr' ) );
117
+ $form->field( 'text', array(
118
+ 'name' => 'sb_bg_color',
119
+ 'value' => $form->values['sb_bg_color'],
120
+ 'class' => 'color_picker',
121
+ ));
122
+ $form->end();
123
+
124
+ $form->label( __( 'Icon size', 'wpsr' ) );
125
+ $form->field( 'image_select', array(
126
+ 'name' => 'icon_size',
127
+ 'value' => $form->values[ 'icon_size' ],
128
+ 'list' => $form->options[ 'icon_size' ],
129
+ ));
130
+ $form->end();
131
+
132
+ $form->label( __( 'Icon shape', 'wpsr' ) );
133
+ $form->field( 'image_select', array(
134
+ 'name' => 'icon_shape',
135
+ 'value' => $form->values['icon_shape'],
136
+ 'class' => 'setting_shape',
137
+ 'list' => $form->options[ 'icon_shape' ],
138
+ 'helper' => 'Note: Shapes marked * might not react well to certain hover effects and share counter styles.'
139
+ ));
140
+ $form->end();
141
+
142
+ $form->label( __( 'Icon color', 'wpsr' ) );
143
+ $form->field( 'text', array(
144
+ 'name' => 'icon_color',
145
+ 'value' => $form->values['icon_color'],
146
+ 'class' => 'color_picker',
147
+ 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
148
+ ));
149
+ $form->end();
150
+
151
+ $form->label( __( 'Icon background color', 'wpsr' ) );
152
+ $form->field( 'text', array(
153
+ 'name' => 'icon_bg_color',
154
+ 'value' => $form->values['icon_bg_color'],
155
+ 'class' => 'color_picker',
156
+ 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
157
+ ));
158
+ $form->end();
159
+
160
+ $form->label( __( 'Hover effect', 'wpsr' ) );
161
+ $form->field( 'select', array(
162
+ 'name' => 'hover_effect',
163
+ 'value' => $form->values['hover_effect'],
164
+ 'list' => $form->options[ 'hover_effect' ],
165
+ ));
166
+ $form->end();
167
+
168
+ $form->start( '', 'data-conditioner data-condr-input=".setting_shape" data-condr-value="" data-condr-action="simple?show:hide" data-condr-events="change"' );
169
+ $form->label( __( 'Space between the icons', 'wpsr' ) );
170
+ $form->field( 'select', array(
171
+ 'name' => 'padding',
172
+ 'value' => $form->values['padding'],
173
+ 'list' => $form->options[ 'padding' ],
174
+ 'helper' => __( 'Select to add space between the icons', 'wpsr' ),
175
+ ));
176
+ $form->end();
177
+
178
+ $form->build();
179
+
180
+ echo '</div>';
181
+
182
+ }
183
+
184
+ function tab_position( $form ){
185
+
186
+ echo '<div data-tab="position">';
187
+
188
+ $form->label( __( 'Position of the sharebar', 'wpsr' ) );
189
+ $form->field( 'select', array(
190
+ 'name' => 'sb_position',
191
+ 'value' => $form->values['sb_position'],
192
+ 'class' => 'setting_sb_position',
193
+ 'list' => $form->options[ 'sb_position' ]
194
+ ));
195
+ $form->end();
196
+
197
+ $form->start( '', 'data-conditioner data-condr-input=".setting_sb_position" data-condr-value="scontent" data-condr-action="simple?show:hide" data-condr-events="change"' );
198
+ $form->label( __( 'ID or CSS class name of the content to stick with', 'wpsr' ) );
199
+ $form->field( 'text', array(
200
+ 'name' => 'stick_element',
201
+ 'value' => $form->values['stick_element'],
202
+ 'placeholder' => 'Ex: #content',
203
+ 'helper' => '<a href="https://www.youtube.com/watch?v=GQ1YO0xZ7WA" target="_blank">Watch quick video to identify this</a>'
204
+ ));
205
+ $form->end();
206
+
207
+ $form->label( __( 'Offset from the window', 'wpsr' ) );
208
+ $form->field( 'text', array(
209
+ 'name' => 'offset',
210
+ 'value' => $form->values[ 'offset' ],
211
+ 'class' => '',
212
+ 'helper' => __( 'Example: 20px (or) 10% (or) -30px' )
213
+ ));
214
+ $form->end();
215
+
216
+ $form->label( __( 'Sharebar movement', 'wpsr' ) );
217
+ $form->field( 'select', array(
218
+ 'name' => 'movement',
219
+ 'value' => $form->values['movement'],
220
+ 'list' => $form->options[ 'movement' ],
221
+ ));
222
+ $form->end();
223
+
224
+ $form->build();
225
+
226
+ echo '</div>';
227
+
228
+ }
229
+
230
+ function tab_share_counter( $form ){
231
+
232
+ echo '<div data-tab="share_counter">';
233
+
234
+ $form->label( __( 'Share counter', 'wpsr' ) );
235
+ $form->field( 'select', array(
236
+ 'name' => 'share_counter',
237
+ 'value' => $form->values['share_counter'],
238
+ 'class' => 'setting_share_counter',
239
+ 'list' => $form->options[ 'share_counter' ],
240
+ ));
241
+ $form->end();
242
+
243
+ $form->start( '', 'data-conditioner data-condr-input=".setting_share_counter" data-condr-value="individual" data-condr-action="pattern?show:hide" data-condr-events="change"' );
244
+ $form->label( __( 'Share counter style', 'wpsr' ) );
245
+ $form->field( 'image_select', array(
246
+ 'name' => 'sc_style',
247
+ 'value' => $form->values['sc_style'],
248
+ 'list' => $form->options[ 'sc_style' ],
249
+ 'helper' => __( 'To show count, in the same page under icons list, select an icon and enable gear icon &gt; show count', 'wpsr' )
250
+ ));
251
+ $form->end();
252
+
253
+ $form->start( '', 'data-conditioner data-condr-input=".setting_share_counter" data-condr-value="total" data-condr-action="pattern?show:hide" data-condr-events="change"' );
254
+ $form->label( __( 'Total share count position', 'wpsr' ) );
255
+ $form->field( 'select', array(
256
+ 'name' => 'sc_total_position',
257
+ 'value' => $form->values['sc_total_position'],
258
+ 'list' => $form->options[ 'sc_total_position' ],
259
+ ));
260
+ $form->end();
261
+
262
+ $form->start( '', 'data-conditioner data-condr-input=".setting_share_counter" data-condr-value="total" data-condr-action="pattern?show:hide" data-condr-events="change"' );
263
+ $form->label( __( 'Total share count color', 'wpsr' ) );
264
+ $form->field( 'text', array(
265
+ 'name' => 'sc_total_color',
266
+ 'value' => $form->values['sc_total_color'],
267
+ 'class' => 'color_picker',
268
+ 'helper' => __( 'Leave blank to use default color', 'wpsr' )
269
+ ));
270
+ $form->end();
271
+
272
+ $form->build();
273
+
274
+ WPSR_Share_Counter::admin_note();
275
+
276
+ echo '</div>';
277
+
278
+ }
279
+
280
+ function tab_responsiveness( $form ){
281
+
282
+ echo '<div data-tab="responsiveness">';
283
+
284
+ $form->label( __( 'On desktop (or) large screen', 'wpsr' ) );
285
+ $form->field( 'select', array(
286
+ 'name' => 'lg_screen_action',
287
+ 'value' => $form->values['lg_screen_action'],
288
+ 'list' => $form->options[ 'lg_screen_action' ],
289
+ ));
290
+ $form->end();
291
+
292
+ $form->label( __( 'On mobile (or) small screen', 'wpsr' ) );
293
+ $form->field( 'select', array(
294
+ 'name' => 'sm_screen_action',
295
+ 'value' => $form->values['sm_screen_action'],
296
+ 'list' => $form->options[ 'sm_screen_action' ],
297
+ ));
298
+ $form->end();
299
+
300
+ $form->label( __( 'Responsive width', 'wpsr' ) );
301
+ $form->field( 'text', array(
302
+ 'name' => 'sm_screen_width',
303
+ 'value' => $form->values[ 'sm_screen_width' ],
304
+ 'type' => 'number',
305
+ 'helper' => __( 'The width of the screen below which the sharebar switches to mobile mode.' ),
306
+ 'after_text' => 'px'
307
+ ));
308
+ $form->end();
309
+
310
+ $form->build();
311
+
312
+ echo '</div>';
313
+
314
+ }
315
+
316
+ function tab_misc( $form ){
317
+
318
+ echo '<div data-tab="misc">';
319
+
320
+ $form->label( __( 'Number of icons to group into one single icon', 'wpsr' ) );
321
+ $form->field( 'select', array(
322
+ 'name' => 'more_icons',
323
+ 'value' => $form->values['more_icons'],
324
+ 'list' => $form->options[ 'more_icons' ],
325
+ 'helper' => __( 'Select the number of icons from the end which will should be grouped into one single icon called "More"', 'wpsr' )
326
+ ));
327
+ $form->end();
328
+
329
+ $form->build();
330
+
331
+ echo '</div>';
332
+
333
+ }
334
+
335
+ function validation( $input ){
336
+
337
+ if( $input['ft_status'] == 'enable' ){
338
+ $sb_settings = get_option( 'wpsr_sharebar_settings' );
339
+ $sb_settings[ 'ft_status' ] = 'disable';
340
+ update_option( 'wpsr_sharebar_settings', $sb_settings );
341
+ }
342
+
343
+ return $input;
344
+ }
345
+
346
+ }
347
+
348
+ new WPSR_Admin_Floating_Sharebar();
349
+
350
+ ?>
admin/pages/follow-icons.php ADDED
@@ -0,0 +1,370 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Follow icons admin page
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Admin_Follow_Icons{
10
+
11
+ public static function init(){
12
+
13
+ add_filter( 'wpsr_register_admin_page', array( __class__, 'register' ) );
14
+
15
+ add_action( 'wp_ajax_wpsr_follow_icons_editor', array( __class__, 'popup_editor' ) );
16
+
17
+ }
18
+
19
+ public static function register( $pages ){
20
+
21
+ $pages[ 'follow_icons' ] = array(
22
+ 'name' => __( 'Follow icons', 'wpsr' ),
23
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/follow-icons.svg',
24
+ 'description' => __( 'Add floating/sticky follow icons with links to your social media profiles.', 'wpsr' ),
25
+ 'category' => 'feature',
26
+ 'type' => 'feature',
27
+ 'form_name' => 'followbar_settings',
28
+ 'callbacks' => array(
29
+ 'page' => array( __class__, 'page' ),
30
+ 'form' => array( __class__, 'form' ),
31
+ 'validation' => array( __class__, 'validation' ),
32
+ )
33
+ );
34
+
35
+ return $pages;
36
+
37
+ }
38
+
39
+ public static function page(){
40
+ WPSR_Admin::settings_form( 'follow_icons' );
41
+ }
42
+
43
+ public static function form( $values ){
44
+
45
+ $values = WPSR_Lists::set_defaults( $values, WPSR_Options::default_values( 'follow_icons' ) );
46
+ $options = WPSR_Options::options( 'follow_icons' );
47
+ $form = new WPSR_Form( $values, $options );
48
+
49
+ // Section 0
50
+ $form->section_start( __( 'Enable/disable follow icons', 'wpsr' ), '1' );
51
+ $form->label( __( 'Select to enable or disable follow icons feature', 'wpsr' ) );
52
+ $form->field( 'select', array(
53
+ 'name' => 'ft_status',
54
+ 'value' => $values[ 'ft_status' ],
55
+ 'list' => $options[ 'ft_status' ],
56
+ ));
57
+ $form->build();
58
+ $form->section_end();
59
+
60
+ echo '<div class="feature_wrap">';
61
+
62
+ // Section 1
63
+ $form->section_start( __( 'Add and edit follow icons', 'wpsr' ), '2' );
64
+ $form->section_description( __( 'Below are the icons added to follow bar. Open editor to add and rearrange the icons.', 'wpsr' ) );
65
+
66
+ echo '<h4>' . __( 'Selected icons', 'wpsr' ) . '</h4>';
67
+ $template = self::read_template( $values[ 'template' ] );
68
+ echo '<div id="fb_prev_wrap">' . $template[ 'prev' ] . '</div>';
69
+
70
+ echo '<input type="hidden" id="fb_template_val" name="template" value="' . $values[ 'template' ] . '" />';
71
+ echo '<p align="center"><button class="button button-primary wpsr_ppe_fb_open" data-cnt-id="fb_template_val" data-prev-id="fb_prev_wrap"><i class="fa fa-pencil-alt"></i> ' . __( 'Open editor', 'wpsr' ) . '</button></p>';
72
+ $form->section_end();
73
+
74
+ // Settings
75
+ $form->section_start( __( 'Settings', 'wpsr' ), '3' );
76
+
77
+ $form->tab_list(array(
78
+ 'style' => '<i class="fas fa-paint-brush"></i>' . __( 'Style', 'wpsr' ),
79
+ 'position' => '<i class="fas fa-arrows-alt"></i>' . __( 'Position', 'wpsr' ),
80
+ 'responsiveness' => '<i class="fas fa-mobile-alt"></i>' . __( 'Responsiveness', 'wpsr' ),
81
+ 'misc' => '<i class="fas fa-cog"></i>' . __( 'Miscellaneous', 'wpsr' ),
82
+ ));
83
+
84
+ echo '<div class="tab_wrap">';
85
+ self::tab_style( $form );
86
+ self::tab_position( $form );
87
+ self::tab_responsiveness( $form );
88
+ self::tab_misc( $form );
89
+ echo '</div>';
90
+
91
+ $form->section_end();
92
+
93
+ // Location rules
94
+ $form->section_start( __( 'Conditions to display the follow icons', 'wpsr' ), '4' );
95
+ $form->section_description( __( 'Choose the below options to select the pages which will display the follow icons.', 'wpsr' ) );
96
+ WPSR_Location_Rules::display_rules( 'loc_rules', $values[ 'loc_rules' ] );
97
+ $form->section_end();
98
+
99
+ echo '</div>';
100
+ }
101
+
102
+ public static function tab_style( $form ){
103
+
104
+ echo '<div data-tab="style">';
105
+
106
+ $form->label( __( 'Icon shape', 'wpsr' ) );
107
+ $form->field( 'image_select', array(
108
+ 'name' => 'shape',
109
+ 'value' => $form->values[ 'shape' ],
110
+ 'list' => $form->options[ 'shape' ],
111
+ ));
112
+ $form->end();
113
+
114
+ $form->label( __( 'Icon size', 'wpsr' ) );
115
+ $form->field( 'image_select', array(
116
+ 'name' => 'size',
117
+ 'value' => $form->values[ 'size' ],
118
+ 'list' => $form->options[ 'size' ],
119
+ ));
120
+ $form->end();
121
+
122
+ $form->label( __( 'Icon background color', 'wpsr' ) );
123
+ $form->field( 'text', array(
124
+ 'name' => 'bg_color',
125
+ 'value' => $form->values['bg_color'],
126
+ 'class' => 'color_picker',
127
+ 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
128
+ ));
129
+ $form->end();
130
+
131
+ $form->label( __( 'Icon color', 'wpsr' ) );
132
+ $form->field( 'text', array(
133
+ 'name' => 'icon_color',
134
+ 'value' => $form->values['icon_color'],
135
+ 'class' => 'color_picker'
136
+ ));
137
+ $form->end();
138
+
139
+ $form->label( __( 'Hover effect', 'wpsr' ) );
140
+ $form->field( 'select', array(
141
+ 'name' => 'hover',
142
+ 'value' => $form->values[ 'hover' ],
143
+ 'list' => $form->options[ 'hover' ],
144
+ ));
145
+ $form->end();
146
+
147
+ $form->label( __ ( 'Space between icons', 'wpsr' ) );
148
+ $form->field( 'select', array(
149
+ 'name' => 'pad',
150
+ 'value' => $form->values[ 'pad' ],
151
+ 'list' => $form->options[ 'pad' ],
152
+ 'helper' => __( 'Select to add space between buttons', 'wpsr' )
153
+ ));
154
+ $form->end();
155
+
156
+ $form->build();
157
+
158
+ echo '</div>';
159
+
160
+ }
161
+
162
+ public static function tab_position( $form ){
163
+
164
+ echo '<div data-tab="position">';
165
+
166
+ $form->label( __( 'Orientation', 'wpsr' ) );
167
+ $form->field( 'image_select', array(
168
+ 'name' => 'orientation',
169
+ 'value' => $form->values[ 'orientation' ],
170
+ 'list' => $form->options[ 'orientation' ]
171
+ ));
172
+ $form->end();
173
+
174
+ $form->label( __( 'Position', 'wpsr' ) );
175
+ $form->field( 'image_select', array(
176
+ 'name' => 'position',
177
+ 'value' => $form->values[ 'position' ],
178
+ 'list' => $form->options[ 'position' ]
179
+ ));
180
+ $form->end();
181
+
182
+ $form->build();
183
+
184
+ WPSR_Admin_Shortcodes::note( __( 'Follow icons', 'wpsr' ), 'wpsr_follow_icons' );
185
+
186
+ echo '</div>';
187
+
188
+ }
189
+
190
+ public static function tab_responsiveness( $form ){
191
+
192
+ echo '<div data-tab="responsiveness">';
193
+
194
+ $form->label( __( 'On desktop (or) large screen', 'wpsr' ) );
195
+ $form->field( 'select', array(
196
+ 'name' => 'lg_screen_action',
197
+ 'value' => $form->values[ 'lg_screen_action' ],
198
+ 'list' => $form->options[ 'lg_screen_action' ],
199
+ ));
200
+ $form->end();
201
+
202
+ $form->label( __( 'On mobile (or) small screen', 'wpsr' ) );
203
+ $form->field( 'select', array(
204
+ 'name' => 'sm_screen_action',
205
+ 'value' => $form->values[ 'sm_screen_action' ],
206
+ 'list' => $form->options[ 'sm_screen_action' ],
207
+ ));
208
+ $form->end();
209
+
210
+ $form->label( __( 'Responsive width', 'wpsr' ) );
211
+ $form->field( 'text', array(
212
+ 'name' => 'sm_screen_width',
213
+ 'value' => $form->values[ 'sm_screen_width' ],
214
+ 'type' => 'number',
215
+ 'helper' => __( 'The width of the screen below which the follow icons switches to mobile mode.' ),
216
+ 'after_text' => 'px'
217
+ ));
218
+ $form->end();
219
+
220
+ $form->build();
221
+
222
+ echo '</div>';
223
+
224
+ }
225
+
226
+ public static function tab_misc( $form ){
227
+
228
+ echo '<div data-tab="misc">';
229
+
230
+ $form->label( __( 'Text above the icons', 'wpsr' ) );
231
+ $form->field( 'text', array(
232
+ 'name' => 'title',
233
+ 'value' => $form->values['title'],
234
+ 'helper' => __( 'Text to show above the follow icons', 'wpsr' ),
235
+ ));
236
+ $form->end();
237
+
238
+ $form->label( __( 'Open links in popup', 'wpsr' ) );
239
+ $form->field( 'select', array(
240
+ 'name' => 'open_popup',
241
+ 'value' => $form->values[ 'open_popup' ],
242
+ 'list' => $form->options[ 'open_popup' ],
243
+ ));
244
+ $form->end();
245
+
246
+ $form->build();
247
+
248
+ echo '</div>';
249
+
250
+ }
251
+
252
+ public static function validation( $input ){
253
+ return $input;
254
+ }
255
+
256
+ public static function popup_editor(){
257
+
258
+ global $hook_suffix;
259
+ $hook_suffix = WPSR_Admin::$pagehook;
260
+ set_current_screen( $hook_suffix );
261
+
262
+ iframe_header( 'WP Socializer follow icons editor' );
263
+
264
+ if( !isset( $_GET[ 'template' ] ) || !isset( $_GET[ 'cnt_id' ] ) || !isset( $_GET[ 'prev_id' ] ) ){
265
+ echo '<p align="center">Incomplete info to load editor !</p></body></html>';
266
+ }
267
+
268
+ $sb_sites = WPSR_Lists::social_icons();
269
+ echo '<script>window.social_icons = ' . json_encode( $sb_sites ) . ';</script>';
270
+ echo '<script>window.li_template = \'' . self::li_template() . '\';</script>';
271
+
272
+ echo '<div id="wpsr_pp_editor">';
273
+ echo '<h2>WP Socializer - Follow icons editor</h2>';
274
+ echo '<p>' . __( 'Select the follow icon below and add it to follow icons list. Drag and drop to rearrange the icons.', 'wpsr' ) . '</p>';
275
+
276
+ echo '<table class="form-table follow_bar_tbl"><tr><td width="80%">';
277
+ echo '<select class="fb_list widefat">';
278
+ foreach( $sb_sites as $id => $prop ){
279
+ if( !in_array( 'for_profile', $prop[ 'features' ] ) ){
280
+ continue;
281
+ }
282
+ echo '<option value="' . $id . '">' . $prop[ 'name' ] . '</option>';
283
+ }
284
+ echo '</select>';
285
+ echo '</td><td>';
286
+ echo '<button class="fb_add button button-primary widefat">' . __( 'Add to follow icons', 'wpsr' ) . '</button>';
287
+ echo '</td></tr></table>';
288
+
289
+ $template = self::read_template( esc_attr( $_GET[ 'template' ] ) );
290
+ echo '<ul class="fb_selected">';
291
+ echo $template[ 'editor' ];
292
+ echo '</ul>';
293
+
294
+ echo '<input type="hidden" class="fb_template" />';
295
+
296
+ echo '<hr/ >';
297
+ echo '<h3>Note:</h3>';
298
+ echo '<ul>';
299
+ echo '<li>For WhatsApp use profile URL as <code>https://wa.me/1XXXXXXXXXX</code>. <a href="https://faq.whatsapp.com/general/chats/how-to-use-click-to-chat/" target="_blank">Refer this page</a> for more details.</li>';
300
+ echo '<li>For Email use profile URL as <code>mailto:YOUR_EMAIL_ID</code></li>';
301
+ echo '<li>For Phone use profile URL as <code>tel:YOUR_PHONE_NUMBER</code></li>';
302
+ echo '</ul>';
303
+
304
+ echo '<p class="wpsr_ppe_footer" align="center"><button class="button button-primary wpsr_ppe_save" data-mode="followbar" data-cnt-id="' . esc_attr( $_GET[ 'cnt_id' ] ) . '" data-prev-id="' . esc_attr( $_GET[ 'prev_id' ] ) . '">Apply settings</button> <button class="button wpsr_ppe_cancel">Cancel</button></p>';
305
+
306
+ echo '</div>';
307
+
308
+ iframe_footer();
309
+ die( 0 );
310
+
311
+ }
312
+
313
+ public static function read_template( $template = '' ){
314
+
315
+ $decoded = base64_decode( $template );
316
+ $btns = json_decode( $decoded );
317
+
318
+ if( !is_array( $btns ) ){
319
+ return array(
320
+ 'prev' => '',
321
+ 'editor' => ''
322
+ );
323
+ }
324
+
325
+ $sb_sites = WPSR_Lists::social_icons();
326
+ $editor = '';
327
+ $prev = '';
328
+
329
+ foreach( $btns as $btn_obj ){
330
+
331
+ $id = key( (array) $btn_obj );
332
+
333
+ if(!array_key_exists($id, $sb_sites)){
334
+ continue;
335
+ }
336
+
337
+ $prop = $sb_sites[ $id ];
338
+
339
+ $editor .= self::li_template( $id, $prop[ 'name' ], $prop[ 'icon' ], $prop[ 'colors' ][0], $btn_obj->$id->url, $btn_obj->$id->icon, $btn_obj->$id->text );
340
+ $prev .= '<li style="background-color:' . $prop[ 'colors' ][0] . '"><i class="' . $prop[ 'icon' ] . '"></i></li>';
341
+ }
342
+
343
+ if( $prev == '' )
344
+ $prev = '<span>' . __( 'No buttons are added. Open the editor to add buttons.', 'wpsr' ) . '</span>';
345
+
346
+ $prev = '<ul class="fb_preview">' . $prev . '</ul>';
347
+
348
+ return array(
349
+ 'editor' => $editor,
350
+ 'prev' => $prev
351
+ );
352
+
353
+ }
354
+
355
+ public static function li_template( $id = '%id%', $name = '%name%', $icon = '%icon%', $color = '%color%', $url = '%url%', $iurl = '%iurl%', $text = '%text%' ){
356
+
357
+ $title = __( 'Leave blank to use default', 'wpsr' );
358
+ $label_url = __( 'Your profile URL (start with https://)', 'wpsr' );
359
+ $label_hover_text = __( 'Button hover text', 'wpsr' );
360
+ $label_icon_url = __( 'Icon image URL (optional)', 'wpsr' );
361
+
362
+ return '<li data-id="' . $id . '"><h4 style="background-color: ' . $color . '"><i class="' . $icon . ' item_icon"></i>' . $name . '<a href="#" class="fb_item_control fb_item_remove">' . __( 'Delete', 'wpsr' ) . '</a></h4><div><label><span>' . $label_url . '</span><input type="text" class="widefat fb_item_url" placeholder="Enter profile URL" value="' . $url . '" /></label><label><span>' . $label_hover_text . '</span><input type="text" class="widefat fb_btn_text" placeholder="Enter custom text to show for button" title="' . $title . '" value="' . urldecode( $text ) . '"/></label><label><span>' . $label_icon_url . '</span><input type="text" class="widefat fb_icon_url" placeholder="Enter custom Icon URL." title="' . $title . '" value="' . $iurl . '"/></label></div></li>';
363
+
364
+ }
365
+
366
+ }
367
+
368
+ WPSR_Admin_Follow_Icons::init();
369
+
370
+ ?>
admin/pages/general-settings.php ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * General settings admin page
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Admin_Settings{
10
+
11
+ function __construct(){
12
+
13
+ add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
14
+
15
+ add_action( 'wpsr_form_general_settings', array( $this, 'general_settings' ), 10, 1 );
16
+
17
+ }
18
+
19
+ function register( $pages ){
20
+
21
+ $pages[ 'general_settings' ] = array(
22
+ 'name' => __( 'Settings', 'wpsr' ),
23
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/settings.svg',
24
+ 'category' => 'other',
25
+ 'type' => 'settings',
26
+ 'form_name' => 'general_settings',
27
+ 'callbacks' => array(
28
+ 'page' => array( $this, 'page' ),
29
+ 'validation' => array( $this, 'validation' )
30
+ )
31
+ );
32
+
33
+ return $pages;
34
+
35
+ }
36
+
37
+ function page(){
38
+
39
+ WPSR_Admin::settings_form( 'general_settings' );
40
+ }
41
+
42
+ function validation( $values ){
43
+
44
+ if( intval( $values[ 'counter_expiration' ] ) < 1800 ){
45
+ $values[ 'counter_expiration' ] = 1800;
46
+ }
47
+
48
+ return $values;
49
+ }
50
+
51
+ function general_settings( $values ){
52
+
53
+ $form = new WPSR_Form();
54
+ $values = WPSR_Lists::set_defaults( $values, WPSR_Options::default_values( 'general_settings' ) );
55
+ $options = WPSR_Options::options( 'general_settings' );
56
+
57
+ // Share icons settings
58
+ $form->section_start( __( 'Share icons settings', 'wpsr' ) );
59
+
60
+ $form->label( __( 'Facebook App ID', 'wpsr' ) );
61
+ $form->field( 'text', array(
62
+ 'name' => 'facebook_app_id',
63
+ 'value' => $values[ 'facebook_app_id' ]
64
+ ));
65
+ $form->end();
66
+
67
+ $form->label( __( 'Facebook App secret', 'wpsr' ) );
68
+ $form->field( 'text', array(
69
+ 'name' => 'facebook_app_secret',
70
+ 'value' => $values[ 'facebook_app_secret' ],
71
+ 'helper' => 'You can find your facebook app ID and secret in <a href="https://developers.facebook.com/apps/" target="_blank">this page</a> under your app --> Settings --> Basic. Please create a new facebook app if there are no apps. This is used to retrieve facebook share/like count of the URL.'
72
+ ));
73
+ $form->end();
74
+
75
+ $form->label( __( 'Facebook SDK language', 'wpsr' ) );
76
+ $form->field( 'select', array(
77
+ 'name' => 'facebook_lang',
78
+ 'value' => $values[ 'facebook_lang' ],
79
+ 'list' => WPSR_Lists::lang_codes( 'facebook' )
80
+ ));
81
+ $form->end();
82
+
83
+ $form->label( __( 'Twitter username', 'wpsr' ) );
84
+ $form->field( 'text', array(
85
+ 'name' => 'twitter_username',
86
+ 'value' => $values[ 'twitter_username' ],
87
+ 'helper' => __( 'Your twitter username without @ sign', 'wpsr' )
88
+ ));
89
+ $form->end();
90
+
91
+ $form->build();
92
+ $form->section_end();
93
+
94
+ // Share counter
95
+ $form->section_start( __( 'Share counter settings', 'wpsr' ) );
96
+
97
+ $form->label( __( 'Share count cache duration', 'wpsr' ) );
98
+ $form->field( 'text', array(
99
+ 'type' => 'number',
100
+ 'name' => 'counter_expiration',
101
+ 'value' => $values[ 'counter_expiration' ],
102
+ 'after_text' => 'seconds',
103
+ 'helper' => __( 'Enter the number of seconds to cache the share count for every URL in the database. Default is 43200 seconds i.e 1/2 day. Minimum value required is 1800 seconds i.e 30 minutes', 'wpsr' )
104
+ ));
105
+ $form->end();
106
+
107
+ $form->label( __( 'Include share count of both http and https URL ?', 'wpsr' ) );
108
+ $form->field( 'select', array(
109
+ 'name' => 'counter_both_protocols',
110
+ 'value' => $values[ 'counter_both_protocols' ],
111
+ 'list' => $options[ 'counter_both_protocols' ],
112
+ 'helper' => __( 'If your site was migrated from http to https and lost your share counts then please enable this option to include the old URL for the count.', 'wpsr' )
113
+ ));
114
+ $form->end();
115
+
116
+ $form->build();
117
+ $form->section_end();
118
+
119
+ // Misc settings
120
+ $form->section_start( __( 'Miscellaneous settings', 'wpsr' ) );
121
+
122
+ $font_icons = WPSR_Lists::font_icons();
123
+ $font_icons_list = array();
124
+
125
+ foreach( $font_icons as $id => $prop ){
126
+ $font_icons_list[$id] = $prop['name'];
127
+ }
128
+
129
+ $inc_list = WPSR_Includes::list_all();
130
+ $inc_text = '<code>' . implode('</code>, <code>', array_keys($inc_list) ) . '</code>';
131
+
132
+ $form->label( __( 'Font icon', 'wpsr' ) );
133
+ $form->field( 'select', array(
134
+ 'name' => 'font_icon',
135
+ 'value' => $values['font_icon'],
136
+ 'list' => $font_icons_list
137
+ ));
138
+ $form->end();
139
+
140
+ $form->label( __( 'Additional CSS rules', 'wpsr' ) );
141
+ $form->field( 'textarea', array(
142
+ 'name' => 'misc_additional_css',
143
+ 'value' => $values['misc_additional_css'],
144
+ 'helper' => __( 'Enter custom CSS rules to customize without the style tag', 'wpsr' ),
145
+ 'rows' => '3',
146
+ 'cols' => '100'
147
+ ));
148
+ $form->end();
149
+
150
+ $form->label( __( 'CSS/JS to not to load in any page', 'wpsr' ) );
151
+ $form->field( 'text', array(
152
+ 'name' => 'skip_res_load',
153
+ 'value' => $values['skip_res_load'],
154
+ 'helper' => __( 'Enter the ID of the CSS/JS resources to not to load in any page. <a href="#" class="tblr_btn" data-id="res_info_box">Click here</a> to see the list of resources. <div class="hidden" data-tglr="res_info_box"><p>' . $inc_text . '</p> <p>Enter the IDs separated by comma. <b>Note: Many of the resources are intelligently loaded based on buttons used in the page. Please use this field only after discussion with the developer.</b></p></div>', 'wpsr' )
155
+ ));
156
+ $form->end();
157
+
158
+ $form->build();
159
+ $form->section_end();
160
+
161
+ }
162
+
163
+ }
164
+
165
+ new WPSR_Admin_Settings();
166
+
167
+ ?>
admin/pages/import-export.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Import/export admin page
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Admin_Import_Export{
10
+
11
+ function __construct(){
12
+
13
+ add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
14
+
15
+ }
16
+
17
+ function register( $pages ){
18
+
19
+ $pages[ 'import_export' ] = array(
20
+ 'name' => __( 'Import/Export', 'wpsr' ),
21
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/import-export.svg',
22
+ 'category' => 'other',
23
+ 'type' => 'settings',
24
+ 'callbacks' => array(
25
+ 'page' => array( $this, 'page' )
26
+ )
27
+ );
28
+
29
+ return $pages;
30
+
31
+ }
32
+
33
+ function page(){
34
+
35
+ $form = new WPSR_Form();
36
+
37
+ echo '<div class="notice notice-success inline hidden"><p>' . __( 'Successful imported data !', 'wpsr' ) . '</p></div>';
38
+ echo '<div class="notice notice-error inline hidden"><p>' . __( 'Failed to import data, please re-import the data !', 'wpsr' ) . '</p></div>';
39
+
40
+ echo '<form id="import_form">';
41
+
42
+ $form->section_start( __( 'Import data', 'wpsr' ) );
43
+ $form->section_description( __( 'Import the already exported WP Socializer data using the field below. Please note that importing will <b>overwrite</b> all the existing buttons created and the settings.', 'wpsr' ) );
44
+ $form->label( __( 'Import data', 'wpsr' ) );
45
+ $form->field( 'textarea', array(
46
+ 'name' => 'import_data',
47
+ 'value' => '',
48
+ 'helper' => __( 'Paste the exported data into the text box above.', 'wpsr' ),
49
+ 'rows' => '3',
50
+ 'cols' => '100'
51
+ ));
52
+ $form->build();
53
+ $form->section_end();
54
+
55
+ wp_nonce_field( 'wpsr_import_nonce' );
56
+
57
+ echo '<p align="right"><input type="submit" class="import_form_submit button button-primary" value="' . __( 'Import', 'wpsr' ) . '" /></p>';
58
+ echo '</form>';
59
+
60
+ $form->section_start( __( 'Export', 'wpsr' ) );
61
+ $form->label( __( 'Export data', 'wpsr' ) );
62
+ $form->field( 'textarea', array(
63
+ 'name' => 'export_data',
64
+ 'value' => WPSR_Import_Export::export(),
65
+ 'helper' => __( 'Copy the data above, save it and import it later', 'wpsr' ),
66
+ 'rows' => '3',
67
+ 'cols' => '100',
68
+ 'custom' => 'onClick="this.select();"'
69
+ ));
70
+ $form->build();
71
+ $form->section_end();
72
+
73
+ }
74
+
75
+ function validation( $input ){
76
+ return $input;
77
+ }
78
+
79
+ }
80
+
81
+ new WPSR_Admin_Import_Export();
82
+
83
+ ?>
admin/pages/share-icons.php ADDED
@@ -0,0 +1,380 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Share icons settings page
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Admin_Share_Icons{
10
+
11
+ function __construct(){
12
+
13
+ add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
14
+
15
+ }
16
+
17
+ function register( $pages ){
18
+
19
+ $pages[ 'share_icons' ] = array(
20
+ 'name' => __( 'Share icons', 'wpsr' ),
21
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/share-icons.svg',
22
+ 'description' => __( 'Add icons above and below posts to share the content on social media sites.', 'wpsr' ),
23
+ 'category' => 'feature',
24
+ 'type' => 'feature',
25
+ 'form_name' => 'social_icons_settings',
26
+ 'callbacks' => array(
27
+ 'page' => array( $this, 'page' ),
28
+ 'form' => array( $this, 'form' ),
29
+ 'validation' => array( $this, 'validation' ),
30
+ )
31
+ );
32
+
33
+ return $pages;
34
+
35
+ }
36
+
37
+ function page(){
38
+ WPSR_Admin::settings_form( 'share_icons' );
39
+ }
40
+
41
+ function template( $values, $i ){
42
+
43
+ if( !isset( $values[ 'tmpl' ][ $i ] ) ){
44
+ $values[ 'tmpl' ][ $i ] = WPSR_Options::default_values( 'share_icons' );
45
+ if( $i == 2 ){
46
+ $values[ 'tmpl' ][ $i ][ 'selected_icons' ] = 'W10=';
47
+ $values[ 'tmpl' ][ $i ][ 'share_counter' ] = '';
48
+ $values[ 'tmpl' ][ $i ][ 'heading' ] = '';
49
+ }
50
+ }else{
51
+ $values[ 'tmpl' ][ $i ] = WPSR_Lists::set_defaults( $values[ 'tmpl' ][ $i ], WPSR_Options::default_values( 'share_icons' ) );
52
+ }
53
+
54
+ $options = WPSR_Options::options( 'share_icons' );
55
+ $form = new WPSR_Form( $values, $options );
56
+
57
+ echo '<div class="template_wrap" data-id="' . $i . '">';
58
+
59
+ $form->section_start( __( 'Choose the share icons', 'wpsr' ), '2' );
60
+ $form->section_description( __( 'Add share icons to the template, re-arrange them and configure individual icon settings.', 'wpsr' ) );
61
+ WPSR_Icons_Editor::editor( $values[ 'tmpl' ][ $i ][ 'selected_icons' ], 'tmpl[' . $i . '][selected_icons]' );
62
+ $form->section_end();
63
+
64
+ // Customization
65
+ $form->section_start( __( 'Customization', 'wpsr' ), '3' );
66
+
67
+ $form->tab_list(array(
68
+ 'style' => '<i class="fas fa-paint-brush"></i>' . __( 'Style', 'wpsr' ),
69
+ 'position' => '<i class="fas fa-arrows-alt"></i>' . __( 'Position', 'wpsr' ),
70
+ 'share_counter' => '<i class="fab fa-creative-commons-zero"></i>' . __( 'Share counter', 'wpsr' ),
71
+ 'responsiveness' => '<i class="fas fa-mobile-alt"></i>' . __( 'Responsiveness', 'wpsr' ),
72
+ 'misc' => '<i class="fas fa-cog"></i>' . __( 'Miscellaneous', 'wpsr' ),
73
+ ));
74
+
75
+ echo '<div class="tab_wrap">';
76
+ $this->tab_style( $form, $i );
77
+ $this->tab_position( $form, $i );
78
+ $this->tab_share_counter( $form, $i );
79
+ $this->tab_responsiveness( $form, $i );
80
+ $this->tab_misc( $form, $i );
81
+ echo '</div>';
82
+
83
+ $form->section_end();
84
+
85
+ // Location rules
86
+ $form->section_start( __( 'Conditions to display the template', 'wpsr' ), '5' );
87
+ $form->section_description( __( 'Choose the below options to select the pages which will display the template.', 'wpsr' ) );
88
+ WPSR_Location_Rules::display_rules( "tmpl[$i][loc_rules]", $values['tmpl'][$i]['loc_rules'] );
89
+ $form->section_end();
90
+
91
+ echo '</div>';
92
+
93
+ }
94
+
95
+ function form( $values ){
96
+
97
+ $form = new WPSR_Form();
98
+ $values = WPSR_Lists::set_defaults( $values, array(
99
+ 'ft_status' => 'enable',
100
+ 'tmpl' => array()
101
+ ));
102
+
103
+ $form->section_start( __( 'Enable/disable share icons', 'wpsr' ), '1' );
104
+ $form->label( __( 'Select to enable or disable share icons feature', 'wpsr' ) );
105
+ $form->field( 'select', array(
106
+ 'name' => 'ft_status',
107
+ 'value' => $values[ 'ft_status' ],
108
+ 'list' => array(
109
+ 'enable' => __( 'Enable share icons', 'wpsr' ),
110
+ 'disable' => __( 'Disable share icons', 'wpsr' )
111
+ ),
112
+ ));
113
+ $form->build();
114
+ $form->section_end();
115
+
116
+ $icon_settings = array( 'icon', 'text', 'hover_text', 'html' );
117
+ WPSR_Icons_Editor::commons( $icon_settings );
118
+
119
+ echo '<div class="feature_wrap">';
120
+
121
+ $template_count = 2;
122
+
123
+ echo '<ul class="template_tab">';
124
+ for( $i = 1; $i <= $template_count; $i++ ){
125
+ echo '<li>Template ' . $i . '</li>';
126
+ }
127
+ echo '</ul>';
128
+
129
+ for( $i=1; $i<=$template_count; $i++ ){
130
+ $this->template( $values, $i );
131
+ }
132
+
133
+ echo '</div>';
134
+
135
+ }
136
+
137
+ function tab_style( $form, $i ){
138
+
139
+ echo '<div data-tab="style">';
140
+
141
+ $form->label( __( 'Icon layout', 'wpsr' ) );
142
+ $form->field( 'image_select', array(
143
+ 'name' => 'tmpl[' . $i . '][layout]',
144
+ 'value' => $form->values[ 'tmpl' ][ $i ]['layout'],
145
+ 'class' => 'setting_btn_layout' . $i,
146
+ 'list' => $form->options[ 'layout' ],
147
+ ));
148
+ $form->end();
149
+
150
+ $form->label( __( 'Icon size', 'wpsr' ) );
151
+ $form->field( 'image_select', array(
152
+ 'name' => 'tmpl[' . $i . '][icon_size]',
153
+ 'value' => $form->values[ 'tmpl' ][ $i ]['icon_size'],
154
+ 'list' => $form->options[ 'icon_size' ],
155
+ ));
156
+ $form->end();
157
+
158
+ $form->start( '', 'data-conditioner data-condr-input=".setting_btn_layout' . $i . '" data-condr-value="" data-condr-action="simple?show:hide" data-condr-events="change"' );
159
+ $form->label( __( 'Icon shape', 'wpsr' ) );
160
+ $form->field( 'image_select', array(
161
+ 'name' => 'tmpl[' . $i . '][icon_shape]',
162
+ 'value' => $form->values[ 'tmpl' ][ $i ]['icon_shape'],
163
+ 'list' => $form->options[ 'icon_shape' ],
164
+ 'helper' => 'Note: Shapes marked * might not react well to certain hover effects and share counter styles.'
165
+ ));
166
+ $form->end();
167
+
168
+ $form->label( __( 'Icon color', 'wpsr' ) );
169
+ $form->field( 'text', array(
170
+ 'name' => 'tmpl[' . $i . '][icon_color]',
171
+ 'value' => $form->values[ 'tmpl' ][ $i ]['icon_color'],
172
+ 'class' => 'color_picker',
173
+ 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
174
+ ));
175
+ $form->end();
176
+
177
+ $form->label( __( 'Icon background color', 'wpsr' ) );
178
+ $form->field( 'text', array(
179
+ 'name' => 'tmpl[' . $i . '][icon_bg_color]',
180
+ 'value' => $form->values[ 'tmpl' ][ $i ]['icon_bg_color'],
181
+ 'class' => 'color_picker',
182
+ 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
183
+ ));
184
+ $form->end();
185
+
186
+ $form->label( __( 'Hover effect', 'wpsr' ) );
187
+ $form->field( 'select', array(
188
+ 'name' => 'tmpl[' . $i . '][hover_effect]',
189
+ 'value' => $form->values[ 'tmpl' ][ $i ]['hover_effect'],
190
+ 'list' => $form->options[ 'hover_effect' ],
191
+ ));
192
+ $form->end();
193
+
194
+ $form->label( __( 'Space between icons', 'wpsr' ) );
195
+ $form->field( 'select', array(
196
+ 'name' => 'tmpl[' . $i . '][padding]',
197
+ 'value' => $form->values[ 'tmpl' ][ $i ]['padding'],
198
+ 'list' => $form->options[ 'padding' ],
199
+ 'helper' => __( 'Select to add space between icons', 'wpsr' ),
200
+ ));
201
+ $form->end();
202
+
203
+ $form->build();
204
+
205
+ echo '</div>';
206
+
207
+ }
208
+
209
+ function tab_share_counter( $form, $i ){
210
+
211
+ echo '<div data-tab="share_counter">';
212
+
213
+ $form->label( __( 'Share counter', 'wpsr' ) );
214
+ $form->field( 'select', array(
215
+ 'name' => 'tmpl[' . $i . '][share_counter]',
216
+ 'value' => $form->values[ 'tmpl' ][ $i ]['share_counter'],
217
+ 'class' => 'setting_share_counter' . $i,
218
+ 'list' => $form->options[ 'share_counter' ],
219
+ ));
220
+ $form->end();
221
+
222
+ $form->start( '', 'data-conditioner data-condr-input=".setting_share_counter' . $i . '" data-condr-value="individual" data-condr-action="pattern?show:hide" data-condr-events="change"' );
223
+ $form->label( __( 'Share counter style', 'wpsr' ) );
224
+ $form->field( 'image_select', array(
225
+ 'name' => 'tmpl[' . $i . '][sc_style]',
226
+ 'value' => $form->values[ 'tmpl' ][ $i ]['sc_style'],
227
+ 'list' => $form->options[ 'sc_style' ]
228
+ ));
229
+ $form->end();
230
+
231
+ $form->start( '', 'data-conditioner data-condr-input=".setting_share_counter' . $i . '" data-condr-value="total" data-condr-action="pattern?show:hide" data-condr-events="change"' );
232
+ $form->label( __( 'Total share count position', 'wpsr' ) );
233
+ $form->field( 'select', array(
234
+ 'name' => 'tmpl[' . $i . '][sc_total_position]',
235
+ 'value' => $form->values[ 'tmpl' ][ $i ]['sc_total_position'],
236
+ 'list' => $form->options[ 'sc_total_position' ],
237
+ ));
238
+ $form->end();
239
+
240
+ $form->build();
241
+
242
+ WPSR_Share_Counter::admin_note();
243
+
244
+ echo '</div>';
245
+
246
+ }
247
+
248
+ function tab_position( $form, $i ){
249
+
250
+ echo '<div data-tab="position">';
251
+
252
+ $form->label( __( 'Position of the share icons on the page', 'wpsr' ) );
253
+ $form->field( 'select', array(
254
+ 'name' => 'tmpl[' . $i . '][position]',
255
+ 'list' => $form->options[ 'position' ],
256
+ 'value' => $form->values[ 'tmpl' ][ $i ][ 'position' ]
257
+ ));
258
+ $form->end();
259
+
260
+ $form->label( __( 'Share icons in post excerpts', 'wpsr' ) );
261
+ $form->field( 'select', array(
262
+ 'name' => 'tmpl[' . $i . '][in_excerpt]',
263
+ 'list' => $form->options[ 'in_excerpt' ],
264
+ 'value' => $form->values[ 'tmpl' ][ $i ][ 'in_excerpt' ]
265
+ ));
266
+ $form->end();
267
+
268
+ $form->build();
269
+
270
+ WPSR_Admin_Shortcodes::note( __( 'Share icons', 'wpsr' ), 'wpsr_share_icons' );
271
+
272
+ echo '</div>';
273
+
274
+ }
275
+
276
+ function tab_responsiveness( $form, $i ){
277
+
278
+ echo '<div data-tab="responsiveness">';
279
+
280
+ $form->label( __( 'On desktop (or) large screen', 'wpsr' ) );
281
+ $form->field( 'select', array(
282
+ 'name' => 'tmpl[' . $i . '][lg_screen_action]',
283
+ 'value' => $form->values[ 'tmpl' ][ $i ]['lg_screen_action'],
284
+ 'list' => $form->options[ 'lg_screen_action' ],
285
+ ));
286
+ $form->end();
287
+
288
+ $form->label( __( 'On mobile (or) small screen', 'wpsr' ) );
289
+ $form->field( 'select', array(
290
+ 'name' => 'tmpl[' . $i . '][sm_screen_action]',
291
+ 'value' => $form->values[ 'tmpl' ][ $i ]['sm_screen_action'],
292
+ 'list' => $form->options[ 'sm_screen_action' ],
293
+ ));
294
+ $form->end();
295
+
296
+ $form->label( __( 'Responsive width', 'wpsr' ) );
297
+ $form->field( 'text', array(
298
+ 'name' => 'tmpl[' . $i . '][sm_screen_width]',
299
+ 'value' => $form->values[ 'tmpl' ][ $i ]['sm_screen_width'],
300
+ 'type' => 'number',
301
+ 'helper' => __( 'The width of the screen below which the share icons switches to mobile mode.' ),
302
+ 'after_text' => 'px'
303
+ ));
304
+ $form->end();
305
+
306
+ $form->build();
307
+
308
+ echo '</div>';
309
+
310
+ }
311
+
312
+ function tab_misc( $form, $i ){
313
+
314
+ echo '<div data-tab="misc">';
315
+
316
+ $form->start( '', 'data-conditioner data-condr-input=".setting_btn_layout' . $i . '" data-condr-value="" data-condr-action="simple?show:hide" data-condr-events="change"' );
317
+ $form->label( __( 'Center the icons', 'wpsr' ) );
318
+ $form->field( 'select', array(
319
+ 'name' => 'tmpl[' . $i . '][center_icons]',
320
+ 'value' => $form->values[ 'tmpl' ][ $i ]['center_icons'],
321
+ 'list' => $form->options[ 'center_icons' ]
322
+ ));
323
+ $form->end();
324
+
325
+ $form->label( __( 'Heading text', 'wpsr' ) );
326
+ $form->field( 'text', array(
327
+ 'name' => 'tmpl[' . $i . '][heading]',
328
+ 'value' => $form->values[ 'tmpl' ][ $i ][ 'heading' ],
329
+ 'class' => '',
330
+ 'helper' => __( 'Heading to show above the share buttons. HTML is allowed.' )
331
+ ));
332
+ $form->end();
333
+
334
+ $form->label( __( 'Number of icons to group into one single icon', 'wpsr' ) );
335
+ $form->field( 'select', array(
336
+ 'name' => 'tmpl[' . $i . '][more_icons]',
337
+ 'value' => $form->values[ 'tmpl' ][ $i ]['more_icons'],
338
+ 'list' => $form->options[ 'more_icons' ],
339
+ 'helper' => __( 'Select the number of icons from the end which will should be grouped into one single icon called "More"', 'wpsr' )
340
+ ));
341
+ $form->end();
342
+
343
+ $form->label( __( 'Custom HTML above and below icons', 'wpsr' ) );
344
+ $form->field( 'textarea', array(
345
+ 'name' => 'tmpl[' . $i . '][custom_html_above]',
346
+ 'value' => $form->values[ 'tmpl' ][ $i ][ 'custom_html_above' ],
347
+ 'class' => 'inline_field',
348
+ 'placeholder' => 'Above'
349
+ ));
350
+ $form->field( 'textarea', array(
351
+ 'name' => 'tmpl[' . $i . '][custom_html_below]',
352
+ 'value' => $form->values[ 'tmpl' ][ $i ][ 'custom_html_below' ],
353
+ 'class' => '',
354
+ 'placeholder' => 'Below'
355
+ ));
356
+ $form->description( __( 'Supports any HTML and shortcodes', 'wpsr' ) );
357
+ $form->end();
358
+
359
+ $form->build();
360
+
361
+ echo '</div>';
362
+
363
+ }
364
+
365
+ function validation( $input ){
366
+
367
+ if( $input['ft_status'] == 'enable' ){
368
+ $btn_settings = get_option( 'wpsr_button_settings' );
369
+ $btn_settings[ 'ft_status' ] = 'disable';
370
+ update_option( 'wpsr_button_settings', $btn_settings );
371
+ }
372
+
373
+ return $input;
374
+ }
375
+
376
+ }
377
+
378
+ new WPSR_Admin_Share_Icons();
379
+
380
+ ?>
admin/pages/shortcodes.php ADDED
@@ -0,0 +1,358 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Shortcodes admin page
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Admin_Shortcodes{
10
+
11
+ function __construct(){
12
+
13
+ add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
14
+
15
+ }
16
+
17
+ function register( $pages ){
18
+
19
+ $pages[ 'shortcodes' ] = array(
20
+ 'name' => __( 'Shortcodes', 'wpsr' ),
21
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/shortcodes.svg',
22
+ 'description' => __( 'Create shortcodes for social sharing icons and follow icons to use them in any custom location.', 'wpsr' ),
23
+ 'category' => 'feature',
24
+ 'type' => 'shortcodes',
25
+ 'callbacks' => array(
26
+ 'page' => array( $this, 'page' )
27
+ )
28
+ );
29
+
30
+ return $pages;
31
+
32
+ }
33
+
34
+ function page(){
35
+
36
+ $form = new WPSR_Form();
37
+
38
+ $form->section_start();
39
+
40
+ $form->tab_list(array(
41
+ 'share_icons' => '<i class="fas fa-share-alt"></i>' . __( 'Share Icons', 'wpsr' ),
42
+ 'follow_icons' => '<i class="fas fa-user-plus"></i>' . __( 'Follow Icons', 'wpsr' ),
43
+ 'share_link' => '<i class="fas fa-link"></i></i>' . __( 'Share link', 'wpsr' )
44
+ ));
45
+
46
+ echo '<div class="tab_wrap">';
47
+ $this->tab_share_icons();
48
+ $this->tab_follow_icons();
49
+ $this->tab_share_link();
50
+ echo '</div>';
51
+
52
+ echo '<h3>' . __( 'Save your shortcodes', 'wpsr' ) . '</h3>';
53
+ echo '<p>' . __( 'Save the shortcodes you created with a shortcode creation and management plugin like "Shortcoder" and insert them easily in posts whenever needed.' ) . '</p>';
54
+ if( class_exists( 'Shortcoder' ) && is_plugin_active( 'shortcoder/shortcoder.php' ) ){
55
+ echo '<p><a href="' . admin_url( 'post-new.php?post_type=shortcoder' ) . '" target="_blank" class="button button-primary">' . __( 'Open shortcoder', 'wpsr' ) . '</a></p>';
56
+ }else{
57
+ if( function_exists( 'add_thickbox' ) ){
58
+ add_thickbox();
59
+ }
60
+ echo '<p><a href="' . admin_url( 'plugin-install.php?tab=plugin-information&plugin=shortcoder&TB_iframe=true&width=700&height=550' ) . '" class="button button-primary thickbox">' . __( 'Learn more', 'wpsr' ) . '</a></p>';
61
+ }
62
+
63
+ echo '<h3>' . __( 'Using in theme', 'wpsr' ) . '</h3>';
64
+ echo '<p>' . __( 'To use the shortcode anywhere in your theme, use the below PHP snippet and replace the shortcode with the plugin shortcode.', 'wpsr' ) . '</p>';
65
+ echo '<pre>&lt;?php echo do_shortcode( \'THE_SHORTCODE\' ); ?&gt;</pre>';
66
+
67
+ $form->section_end();
68
+
69
+ }
70
+
71
+ function tab_share_icons(){
72
+
73
+ echo '<div data-tab="share_icons">';
74
+
75
+ echo '<h3>' . __( 'Syntax', 'wpsr' ) . '</h3>';
76
+ echo '<pre>[wpsr_share_icons parameter1="value" parameter2="value" ...]</pre>';
77
+
78
+ echo '<h3>' . __( 'Example', 'wpsr' ) . '</h3>';
79
+ echo '<pre>[wpsr_share_icons icons="facebook,twitter,pinterest,email" icon_size="40px" icon_bg_color="red" icon_shape="drop"]</pre>';
80
+
81
+ echo '<h3>' . __( 'Parameter reference', 'wpsr' ) . '</h3>';
82
+ $options = WPSR_Options::share_icons();
83
+
84
+ unset( $options[ 'selected_icons' ] );
85
+ unset( $options[ 'loc_rules' ] );
86
+ unset( $options[ 'position' ] );
87
+ unset( $options[ 'in_excerpt' ] );
88
+ unset( $options[ 'heading' ] );
89
+ unset( $options[ 'custom_html_above' ] );
90
+ unset( $options[ 'custom_html_below' ] );
91
+
92
+ echo '<table class="widefat">
93
+ <thead>
94
+ <tr>
95
+ <th>' . __( 'Parameter', 'wpsr' ) . '</th>
96
+ <th>' . __( 'Default value', 'wpsr' ) . '</th>
97
+ <th>' . __( 'Description', 'wpsr' ) . '</th>
98
+ <th>' . __( 'Supported values', 'wpsr' ) . '</th>
99
+ </tr>
100
+ </thead>
101
+ <tbody>
102
+ ';
103
+
104
+ // Adding icons to the param list
105
+ $icons_param = array(
106
+ 'icons' => array(
107
+ 'default' => 'facebook,twitter,linkedin,pinterest,email',
108
+ 'options' => false,
109
+ 'description' => __( 'The ID share icons to display separated by comma. See list below for icon IDs.', 'wpsr' )
110
+ ),
111
+ 'template' => array(
112
+ 'default' => '<empty>',
113
+ 'options' => array( '1' => '1', '2' => '2' ),
114
+ 'description' => __( 'The ID of the template which is configured in the share icons feature settings page. When this is provided, other configurations are NOT considered. Use this parameter only to use the saved configuration in a custom location.', 'wpsr' )
115
+ )
116
+ );
117
+ $options = $icons_param + $options;
118
+
119
+ $options[ 'page_url' ] = array(
120
+ 'default' => __( 'The current post URL', 'wpsr' ),
121
+ 'description' => __( 'The URL to share', 'wpsr' ),
122
+ 'options' => false
123
+ );
124
+ $options[ 'page_title' ] = array(
125
+ 'default' => __( 'The current post URL', 'wpsr' ),
126
+ 'description' => __( 'The title of the URL', 'wpsr' ),
127
+ 'options' => false
128
+ );
129
+ $options[ 'page_excerpt' ] = array(
130
+ 'default' => __( 'The current post\'s excerpt', 'wpsr' ),
131
+ 'description' => __( 'A short description of the page. Honored by some social sharing sites.', 'wpsr' ),
132
+ 'options' => false
133
+ );
134
+
135
+ foreach( $options as $key => $val ){
136
+ $default = empty( $val[ 'default' ] ) ? '<empty>' : $val[ 'default' ];
137
+ $description = isset( $val[ 'description' ] ) ? $val[ 'description' ] : '';
138
+
139
+ $supported_values = '';
140
+ if( $val[ 'options' ] && is_array( $val[ 'options' ] ) ){
141
+ $supported_values = array_keys( $val[ 'options' ] );
142
+ $supported_values = array_map(function( $value ){
143
+ return empty( $value ) ? htmlspecialchars( '<empty>' ) : $value;
144
+ }, $supported_values );
145
+ $supported_values = implode( ', ', $supported_values );
146
+ }
147
+
148
+ echo '<tr>';
149
+ echo '<td><code>' . $key . '</code></td>';
150
+ echo '<td><code>' . htmlspecialchars( $default ) . '</code></td>';
151
+ echo '<td>' . $description . '</td>';
152
+ echo '<td>' . $supported_values . '</td>';
153
+ echo '</tr>';
154
+ }
155
+
156
+ echo '</tbody>
157
+ </table>';
158
+
159
+ echo '<h3>' . __( 'Supported share icons', 'wpsr' ) . '</h3>';
160
+ $social_icons = WPSR_Lists::social_icons();
161
+ $social_icons = array_filter( $social_icons, function( $props ){
162
+ if( in_array( 'for_share', $props[ 'features' ] ) ){
163
+ return true;
164
+ }else{
165
+ return false;
166
+ }
167
+ });
168
+ echo '<p>' . implode( ', ', array_keys( $social_icons ) ) . '</p>';
169
+
170
+ echo '</div>';
171
+
172
+ }
173
+
174
+ function tab_follow_icons(){
175
+
176
+ echo '<div data-tab="follow_icons">';
177
+
178
+ echo '<h3>' . __( 'Syntax', 'wpsr' ) . '</h3>';
179
+ echo '<pre>[wpsr_follow_icons parameter1="value" parameter2="value" ...]</pre>';
180
+
181
+ echo '<h3>' . __( 'Example', 'wpsr' ) . '</h3>';
182
+ echo '<pre>[wpsr_follow_icons facebook="https://facebook.com/aakashweb" twitter="https://twitter.com/aakashweb" instagram="https://instagram.com/aakashweb" bg_color="green" shape="circle"]</pre>';
183
+
184
+ echo '<h3>' . __( 'Parameter reference', 'wpsr' ) . '</h3>';
185
+ $options = WPSR_Options::follow_icons();
186
+
187
+ unset( $options[ 'ft_status' ] );
188
+ unset( $options[ 'template' ] );
189
+ unset( $options[ 'orientation' ] );
190
+ unset( $options[ 'position' ] );
191
+ unset( $options[ 'title' ] );
192
+ unset( $options[ 'loc_rules' ] );
193
+
194
+ echo '<table class="widefat">
195
+ <thead>
196
+ <tr>
197
+ <th>' . __( 'Parameter', 'wpsr' ) . '</th>
198
+ <th>' . __( 'Default value', 'wpsr' ) . '</th>
199
+ <th>' . __( 'Description', 'wpsr' ) . '</th>
200
+ <th>' . __( 'Supported values', 'wpsr' ) . '</th>
201
+ </tr>
202
+ </thead>
203
+ <tbody>
204
+ ';
205
+
206
+ // Adding icons to the param list
207
+ $icons_param = array( '&lt;icon_id&gt;' => array(
208
+ 'default' => '',
209
+ 'options' => false,
210
+ 'description' => __( 'The profile URL of the site. See list below for follow icons ID.', 'wpsr' )
211
+ ));
212
+ $options = $icons_param + $options;
213
+
214
+ foreach( $options as $key => $val ){
215
+ $default = empty( $val[ 'default' ] ) ? '<empty>' : $val[ 'default' ];
216
+ $description = isset( $val[ 'description' ] ) ? $val[ 'description' ] : '';
217
+
218
+ $supported_values = '';
219
+ if( $val[ 'options' ] ){
220
+ $supported_values = array_keys( $val[ 'options' ] );
221
+ $supported_values = array_map(function( $value ){
222
+ return empty( $value ) ? htmlspecialchars( '<empty>' ) : $value;
223
+ }, $supported_values );
224
+ $supported_values = implode( ', ', $supported_values );
225
+ }
226
+
227
+ echo '<tr>';
228
+ echo '<td><code>' . $key . '</code></td>';
229
+ echo '<td><code>' . htmlspecialchars( $default ) . '</code></td>';
230
+ echo '<td>' . $description . '</td>';
231
+ echo '<td>' . $supported_values . '</td>';
232
+ echo '</tr>';
233
+ }
234
+
235
+ echo '</tbody>
236
+ </table>';
237
+
238
+ echo '<h3>' . __( 'Supported icons', 'wpsr' ) . '</h3>';
239
+ $social_icons = WPSR_Lists::social_icons();
240
+ $social_icons = array_filter( $social_icons, function( $props ){
241
+ if( in_array( 'for_profile', $props[ 'features' ] ) ){
242
+ return true;
243
+ }else{
244
+ return false;
245
+ }
246
+ });
247
+ echo '<p>' . implode( ', ', array_keys( $social_icons ) ) . '</p>';
248
+
249
+ echo '</div>';
250
+
251
+ }
252
+
253
+ function tab_share_link(){
254
+
255
+ echo '<div data-tab="share_link">';
256
+
257
+ echo '<h3>' . __( 'Syntax', 'wpsr' ) . '</h3>';
258
+ echo '<pre>[wpsr_share_link parameter1="value" parameter2="value" ...]</pre>';
259
+
260
+ echo '<h3>' . __( 'Example', 'wpsr' ) . '</h3>';
261
+ echo '<pre>[wpsr_share_link for="twitter"]Tweet about this page[/wpsr_share_link]</pre>';
262
+
263
+ echo '<h3>' . __( 'Output', 'wpsr' ) . '</h3>';
264
+ echo '<pre><a href="https://twitter.com/intent/tweet?text=Post+by+author%20-%20http://example.com/post-by-author/%20@vaakash" target="_blank" rel="nofollow">Tweet about this page</a></pre>';
265
+
266
+ echo '<h3>' . __( 'Parameter reference', 'wpsr' ) . '</h3>';
267
+
268
+ echo '<table class="widefat">
269
+ <thead>
270
+ <tr>
271
+ <th>' . __( 'Parameter', 'wpsr' ) . '</th>
272
+ <th>' . __( 'Default value', 'wpsr' ) . '</th>
273
+ <th>' . __( 'Description', 'wpsr' ) . '</th>
274
+ <th>' . __( 'Supported values', 'wpsr' ) . '</th>
275
+ </tr>
276
+ </thead>
277
+ <tbody>
278
+ ';
279
+
280
+ $rows = array(
281
+ array(
282
+ 'parameter' => 'for',
283
+ 'default_value' => '&lt;empty&gt;',
284
+ 'description' => __( 'The ID of the social media service to generate share link for.', 'wpsr' ),
285
+ 'supported_values' => __( 'Refer list below for the supported IDs', 'wpsr' )
286
+ ),
287
+ array(
288
+ 'parameter' => 'class',
289
+ 'default_value' => '&lt;empty&gt;',
290
+ 'description' => __( 'Sets the CSS class value for the a tag.', 'wpsr' ),
291
+ 'supported_values' => ''
292
+ ),
293
+ array(
294
+ 'parameter' => 'target',
295
+ 'default_value' => '_blank',
296
+ 'description' => __( 'Sets the target attribute for the link.', 'wpsr' ),
297
+ 'supported_values' => ''
298
+ ),
299
+ array(
300
+ 'parameter' => 'page_url',
301
+ 'default_value' => 'The URL of the current post/page where the shortcode is used.',
302
+ 'description' => __( 'Sets the URL to share.', 'wpsr' ),
303
+ 'supported_values' => ''
304
+ ),
305
+ array(
306
+ 'parameter' => 'page_title',
307
+ 'default_value' => 'The title of the current post/page where the shortcode is used.',
308
+ 'description' => __( 'The title of the page to share', 'wpsr' ),
309
+ 'supported_values' => ''
310
+ ),
311
+ array(
312
+ 'parameter' => 'page_excerpt',
313
+ 'default_value' => 'The description of the current post/page where the shortcode is used.',
314
+ 'description' => __( 'The description of the page to share', 'wpsr' ),
315
+ 'supported_values' => ''
316
+ )
317
+ );
318
+
319
+ foreach( $rows as $row ){
320
+ echo '<tr>';
321
+ echo '<td>' . $row['parameter'] . '</td>';
322
+ echo '<td>' . $row['default_value'] . '</td>';
323
+ echo '<td>' . $row['description'] . '</td>';
324
+ echo '<td>' . $row['supported_values'] . '</td>';
325
+ echo '</tr>';
326
+ }
327
+
328
+ echo '</tbody>
329
+ </table>';
330
+
331
+ echo '<h3>' . __( 'Supported icons', 'wpsr' ) . '</h3>';
332
+ $social_icons = WPSR_Lists::social_icons();
333
+ $social_icons = array_filter( $social_icons, function( $props ){
334
+ if( in_array( 'for_share', $props[ 'features' ] ) ){
335
+ return true;
336
+ }else{
337
+ return false;
338
+ }
339
+ });
340
+ echo '<p>' . implode( ', ', array_keys( $social_icons ) ) . '</p>';
341
+
342
+ echo '</div>';
343
+
344
+ }
345
+
346
+ public static function note( $feature = '', $shortcode = '' ){
347
+ echo '<div class="note">';
348
+ echo '<h4><i class="fas fa-code"></i>' . __( 'Shortcode', 'wpsr' ) . '</h4>';
349
+ echo '<p>' . sprintf( __( 'If you want to use %s anywhere in a custom position then you can use the shortcode <code>[%s]</code>. Please refer shortcodes page on how to customize this shortcode.', 'wpsr' ), $feature, $shortcode ) . '</p>';
350
+ echo '<p><a href="' . admin_url( 'admin.php?page=wp_socializer&tab=shortcodes' ) . '" target="_blank" class="button button-primary">' . __( 'Create shortcode', 'wpsr' ) . '</a></p>';
351
+ echo '</div>';
352
+ }
353
+
354
+ }
355
+
356
+ new WPSR_Admin_Shortcodes();
357
+
358
+ ?>
admin/pages/text-sharebar.php ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Text sharebar settings page
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Admin_Text_Sharebar{
10
+
11
+ function __construct(){
12
+
13
+ add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
14
+
15
+ }
16
+
17
+ function register( $pages ){
18
+
19
+ $pages[ 'text_sharebar' ] = array(
20
+ 'name' => __( 'Text sharebar', 'wpsr' ),
21
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/text-sharebar.svg',
22
+ 'description' => __( 'Add tooltip to share the text selected by the user on social media sites.', 'wpsr' ),
23
+ 'category' => 'feature',
24
+ 'type' => 'feature',
25
+ 'form_name' => 'text_sharebar_settings',
26
+ 'callbacks' => array(
27
+ 'page' => array( $this, 'page' ),
28
+ 'form' => array( $this, 'form' ),
29
+ 'validation' => array( $this, 'validation' ),
30
+ ),
31
+ );
32
+
33
+ return $pages;
34
+
35
+ }
36
+
37
+ function page(){
38
+
39
+ WPSR_Admin::settings_form( 'text_sharebar' );
40
+
41
+ }
42
+
43
+ function form( $values ){
44
+
45
+ $values = WPSR_Lists::set_defaults( $values, WPSR_Options::default_values( 'text_sharebar' ) );
46
+ $options = WPSR_Options::options( 'text_sharebar' );
47
+ $form = new WPSR_Form();
48
+
49
+ $form->section_start( __( 'Enable/disable text sharebar', 'wpsr' ), '1' );
50
+ $form->label( __( 'Select to enable or disable text sharebar feature', 'wpsr' ) );
51
+ $form->field( 'select', array(
52
+ 'name' => 'ft_status',
53
+ 'value' => $values[ 'ft_status' ],
54
+ 'list' => $options[ 'ft_status' ],
55
+ ));
56
+ $form->build();
57
+ $form->section_end();
58
+
59
+ echo '<div class="feature_wrap">';
60
+
61
+ $sb_sites = WPSR_Lists::social_icons();
62
+
63
+ $form->section_start( __( 'Add buttons to text sharebar', 'wpsr' ) );
64
+ $form->section_description( __( 'Select buttons from the list below and add it to the selected list.', 'wpsr' ) );
65
+
66
+ echo '<table class="form-table ssb_tbl"><tr><td width="90%">';
67
+ echo '<select class="ssb_list widefat">';
68
+ foreach( $sb_sites as $id=>$prop ){
69
+ if( in_array( 'for_tsb', $prop[ 'features' ] ) ){
70
+ echo '<option value="' . $id . '" data-color="' . $prop['colors'][0] . '">' . $prop[ 'name' ] . '</option>';
71
+ }
72
+ }
73
+ echo '</select>';
74
+ echo '</td><td>';
75
+ echo '<button class="button button-primary ssb_add">' . __( 'Add button', 'wpsr' ) . '</button>';
76
+ echo '</td></tr></table>';
77
+
78
+ $decoded = base64_decode( $values[ 'template' ] );
79
+ $tsb_btns = json_decode( $decoded );
80
+
81
+ if( !is_array( $tsb_btns ) ){
82
+ $tsb_btns = array();
83
+ }
84
+
85
+ echo '<h4>' . __( 'Selected buttons', 'wpsr' ) . '</h4>';
86
+ echo '<ul class="ssb_selected_list clearfix">';
87
+ if( count( $tsb_btns ) > 0 ){
88
+ foreach( $tsb_btns as $tsb_item ){
89
+ $sb_info = $sb_sites[ $tsb_item ];
90
+ echo '<li title="' . $sb_info[ 'name' ] . '" data-id="' . $tsb_item . '" style="background-color:' . $sb_info['colors'][0] . '"><i class="' . $sb_info[ 'icon' ] . '"></i> <span class="ssb_remove" title="' . __( 'Delete button', 'wpsr' ) . '">x</span></li>';
91
+ }
92
+ }else{
93
+ echo '<span class="ssb_empty">' . __( 'No buttons are selected for text sharebar', 'wpsr' ) . '</span>';
94
+ }
95
+ echo '</ul>';
96
+ echo '<input type="hidden" name="template" class="ssb_template" value="' . $values[ 'template' ] . '"/>';
97
+
98
+ $form->section_end();
99
+
100
+ // Settings form
101
+ $form->section_start( __( 'Settings' ), '3' );
102
+
103
+ $form->label( __( 'ID or CSS class name of the content to show text sharebar', 'wpsr' ) );
104
+ $form->field( 'text', array(
105
+ 'name' => 'content',
106
+ 'value' => $values['content'],
107
+ 'placeholder' => 'Ex: .entry-content',
108
+ 'helper' => '<a href="https://www.youtube.com/watch?v=GQ1YO0xZ7WA" target="_blank">Watch quick video to identify this</a>'
109
+ ));
110
+ $form->end();
111
+
112
+ $form->label( __( 'Button size', 'wpsr' ) );
113
+ $form->field( 'image_select', array(
114
+ 'name' => 'size',
115
+ 'value' => $values['size'],
116
+ 'list' => $options[ 'size' ]
117
+ ));
118
+ $form->end();
119
+
120
+ $form->label( __( 'Background color', 'wpsr' ) );
121
+ $form->field( 'text', array(
122
+ 'name' => 'bg_color',
123
+ 'value' => $values['bg_color'],
124
+ 'class' => 'color_picker'
125
+ ));
126
+ $form->end();
127
+
128
+ $form->label( __( 'Icon color', 'wpsr' ) );
129
+ $form->field( 'text', array(
130
+ 'name' => 'icon_color',
131
+ 'value' => $values['icon_color'],
132
+ 'class' => 'color_picker'
133
+ ));
134
+ $form->end();
135
+
136
+ $form->label( __( 'Maximum word count to quote', 'wpsr' ) );
137
+ $form->field( 'text', array(
138
+ 'type' => 'number',
139
+ 'name' => 'text_count',
140
+ 'value' => $values['text_count'],
141
+ 'helper' => __( 'Set value to 0 to include all the selected text', 'wpsr' )
142
+ ));
143
+ $form->end();
144
+
145
+ $form->build();
146
+ $form->section_end();
147
+
148
+ // Location rules
149
+ $form->section_start( __( 'Conditions to display the text sharebar', 'wpsr' ), '4' );
150
+ $form->section_description( __( 'Choose the below options to select the pages which will display the text sharebar.', 'wpsr' ) );
151
+ WPSR_Location_Rules::display_rules( 'loc_rules', $values[ 'loc_rules' ] );
152
+ $form->section_end();
153
+
154
+ echo '</div>';
155
+
156
+ echo '<script>';
157
+ echo 'var sb_sites = ' . json_encode( $sb_sites ) . ';';
158
+ echo '</script>';
159
+
160
+ }
161
+
162
+ function validation( $input ){
163
+ return $input;
164
+ }
165
+
166
+ }
167
+
168
+ new WPSR_Admin_Text_Sharebar();
169
+
170
+ ?>
admin/setup.php DELETED
@@ -1,595 +0,0 @@
1
- <?php
2
- /**
3
- * Help admin page
4
- *
5
- **/
6
-
7
- class WPSR_Admin_Setup{
8
-
9
- public static $pagehook = 'wp-socializer_page_wp_socializer_setup';
10
-
11
- public static function init(){
12
-
13
- // Register the admin page with the plugin
14
- add_filter( 'wpsr_register_admin_page', array( __CLASS__, 'register' ) );
15
-
16
- // Register the admin menu
17
- add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ) );
18
-
19
- // Enqueue the scripts and styles
20
- add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ) );
21
-
22
- // Register the action for admin ajax features
23
- add_action( 'wp_ajax_wpsr_setup', array( __CLASS__, 'save_data_ajax' ) );
24
-
25
- }
26
-
27
- public static function register( $pages ){
28
-
29
- $pages[ 'setup' ] = array(
30
- 'name' => 'Setup wizard',
31
- 'page_callback' => '',
32
- 'feature' => true,
33
- 'banner' => WPSR_ADMIN_URL . '/images/banners/setup.png',
34
- 'link' => admin_url( 'admin.php?page=wp_socializer_setup' ),
35
- 'hide_in_nav' => true,
36
- 'form' => array(
37
- 'id' => '',
38
- 'name' => '',
39
- 'callback' => '',
40
- 'validation' => '',
41
- )
42
- );
43
-
44
- return $pages;
45
-
46
- }
47
-
48
- public static function admin_menu(){
49
-
50
- add_submenu_page( 'wp_socializer', 'WP Socializer - Setup wizard', 'Setup wizard', 'manage_options', 'wp_socializer_setup', array( __class__, 'setup_page' ) );
51
-
52
- }
53
-
54
- public static function enqueue_scripts( $hook ){
55
-
56
- if( self::$pagehook == $hook ){
57
- wp_enqueue_style( 'wpsr_setup_css', WPSR_ADMIN_URL . 'css/style_setup.css' );
58
- wp_enqueue_style( 'wpsr_fa', WPSR_Lists::ext_res( 'font-awesome-adm' ) );
59
- wp_enqueue_style( 'wpsr_ipopup', WPSR_ADMIN_URL . 'css/ipopup.css' );
60
-
61
- wp_enqueue_script( 'jquery' );
62
- wp_enqueue_script( 'wpsr_ipopup', WPSR_ADMIN_URL . 'js/ipopup.js' );
63
- wp_enqueue_script( 'wpsr_setup_js', WPSR_ADMIN_URL . 'js/script_setup.js', array( 'jquery', 'wpsr_ipopup' ) );
64
- }
65
-
66
- }
67
-
68
- public static function setup_page(){
69
-
70
- $st_templates = WPSR_Lists::load_json( 'templates' );
71
- $st_buttons = WPSR_Services::list_templates( 'buttons' );
72
-
73
- $pages = array(
74
- 'Start', 'Share buttons',
75
- 'Sharebar', 'Follow bar',
76
- 'Extras', 'Finish'
77
- );
78
-
79
- echo '<div class="wrap">';
80
-
81
- echo '<div class="header">';
82
- echo '<h1><img src="' . WPSR_ADMIN_URL . '/images/icons/wp-socializer.png"/> WP Socializer <small>Setup wizard</small></h1>';
83
- echo '<ul class="progress">';
84
- foreach( $pages as $index => $name ){
85
- echo '<li data-id="' . ( $index + 1 ) . '">' . $name . '</li>';
86
- }
87
- echo '</ul>';
88
- echo '</div>';
89
-
90
- echo '<div class="pages">';
91
-
92
- self::page1();
93
- self::page2();
94
- self::page3();
95
- self::page4();
96
- self::page5();
97
- self::page6();
98
-
99
- echo '</div>'; // Pages
100
-
101
- echo '<footer class="footer">';
102
- echo '<button class="button skip_btn" data-return="' . admin_url( 'admin.php?page=wp_socializer' ) . '">Skip setup</button>';
103
- echo '<button class="button prev_btn"><i class="fa fa-chevron-left"></i> Previous</button>';
104
- echo '<button class="button button-primary next_btn" data-next="Next" data-finish="Finish"><span class="text">Next</span> <i class="fa fa-chevron-right"></i></button>';
105
- echo '</footer>';
106
-
107
-
108
- echo '<div class="tmpl_popup">';
109
- echo '<a href="#" class="tmpl_pp_close"><i class="fa fa-times"></i></a>';
110
- echo '<h1>Select a template <small> ( You can edit/customize the template later )</small></h1>';
111
-
112
- WPSR_Buttons::$temp_buttons = $st_buttons;
113
-
114
- $supported_cats = array(
115
- 'native' => 'Native social icons',
116
- 'icons_text_count' => 'Icons, text with counter',
117
- 'just_icons' => 'Just icons',
118
- 'icons_count' => 'Icons with counter',
119
- 'full_width' => 'Full width buttons',
120
- 'icons_text' => 'Icons with text',
121
- 'just_text' => 'Just text'
122
- );
123
-
124
- $template_cats = array();
125
- foreach( $st_templates as $id => $data ){
126
- $cat = isset( $data[ 'category' ] ) ? $data[ 'category' ] : 'misc';
127
-
128
- if( isset( $template_cats[ $cat ] ) ){
129
- $template_cats[ $cat ][ $id ] = $data;
130
- }else{
131
- $template_cats[ $cat ] = array();
132
- $template_cats[ $cat ][ $id ] = $data;
133
- }
134
- }
135
-
136
- echo '<section class="tmpl_list_wrap">';
137
- foreach( $template_cats as $cat => $tmpls ){
138
- $cat_name = array_key_exists( $cat, $supported_cats ) ? $supported_cats[ $cat ] : $cat;
139
- echo '<h3 class="tmpl_cat_name">' . $cat_name . ' (' . count( $tmpls ) . ')' . '<i class="fa fa-sort collapse"></i></h3>';
140
- echo '<ul class="tmpl_list">';
141
- foreach( $tmpls as $id => $data ){
142
- $tmpl = self::template_info( $id );
143
- $out = WPSR_Template_Buttons::html( $tmpl[ 'data' ], self::dummy_page_info() );
144
- echo '<li data-id="' . $id . '">' . $out[ 'html' ] . '</li>';
145
- }
146
- echo '</ul>';
147
- }
148
- echo '</section>';
149
-
150
- echo '<div class="tmpl_pp_footer"><button class="button tmpl_clear_btn"><i class="fa fa-times"></i> No template</button>
151
- <button class="button button-primary tmpl_apply_btn"><i class="fa fa-check-circle"></i> Select this template</button> <a class="req_template" href="http://bit.ly/wpsrForumNew" target="_blank">Request/submit template</a></div>';
152
- echo '</div>';
153
- WPSR_Buttons::$temp_buttons = array();
154
-
155
- echo '</div>';
156
-
157
- WPSR_Includes::preview_print_includes();
158
-
159
- echo '<script>
160
- var wpsr = { ajaxurl: "' . get_admin_url() . 'admin-ajax.php" };
161
- </script>';
162
-
163
- }
164
-
165
- public static function page1(){
166
-
167
- echo '<div class="page active" data-page="1">';
168
- echo '<h1><i class="fa fa-magic"></i> Lets start !</h1>';
169
- echo '<p>Thank you for using WP Socializer plugin.</p>';
170
- echo '<p>Lets go through the setup process to quickly add attractive share buttons easily to your site.</p>';
171
- echo '<p>It only takes less than 3 minutes to get your WordPress site setup with social sharing features.</p>';
172
- echo '<p><em>Note: After setup, you can always go to the main settings page to customize further.</em></p>';
173
- echo '</div>';
174
-
175
- }
176
-
177
- public static function page2(){
178
-
179
- echo '<div class="page" data-page="2">';
180
- echo '<h1><i class="fa fa-cog"></i> Add share buttons to your posts !</h1>';
181
-
182
- echo '<div class="dummy_head"></div>';
183
-
184
- echo '<div class="tmpl_sel not_sel" data-for="above_post" data-ctext="Click to change template">
185
- <div class="tmpl_preview" data-etext="<i class=\'fa fa-plus picon\'></i> Click here to select a template above post"></div></div>';
186
-
187
- echo '<div class="dummy_p"><span></span><span></span><span></span><span></span><span></span></div>';
188
- echo '<div class="dummy_p"><span></span><span></span><span></span><span></span><span></span></div>';
189
-
190
- echo '<div class="tmpl_sel not_sel" data-for="below_post" data-ctext="Click to change template">
191
- <div class="tmpl_preview" data-etext="<i class=\'fa fa-plus picon\'></i> Click here to select a template below post"></div></div>';
192
-
193
- echo '</div>';
194
-
195
- }
196
-
197
- public static function page3(){
198
-
199
- echo '<div class="page" data-page="3">';
200
- echo '<h1><i class="fa fa-cog"></i> <span class="cb_wrap"><input class="cb" id="ft_sharebar" type="checkbox" data-toggle="sharebar_wrap" /><label for="ft_sharebar" class="fa"></label></span>';
201
- echo 'Add a sharebar to your website ?</h1>';
202
-
203
- $services = WPSR_Services::list_all();
204
- $feature = 'sharebar';
205
- $hide_services = array( 'sharethis', 'html' );
206
-
207
- echo '<div class="sharebar_wrap hidden">';
208
-
209
- echo '<p>What do you want to add in the sharebar ?</p>';
210
-
211
- echo WPSR_Admin::field( 'image_select', array(
212
- 'id' => 'sb_btn_option',
213
- 'value' => 'icons',
214
- 'list' => array(
215
- 'icons' => array( 'Social icons', 'social-icons-sb.png', '125px' ),
216
- 'icons_counter' => array( 'Social icons with counter', 'social-icons-counter-sb.png', '125px' ),
217
- 'native_buttons' => array( 'Native social icons', 'native-buttons-sb.png', '125px' )
218
- )
219
- ));
220
-
221
- echo '<div class="sharebar_btn_opts">';
222
- echo '<p>Select the share buttons you like to see in your Sharebar. You can later customize the sharebar in main administration page.</p>';
223
- echo '<ul class="sharebar_btns clearfix">';
224
- foreach( $services as $id => $config ){
225
- if( !in_array( $feature, $config[ 'hide_in_feature' ] ) && !in_array( $id, $hide_services ) ){
226
- echo '<li data-id="' . $id . '">' . '<img src="' . $config[ 'icons' ] . '" />' . $config[ 'name' ] . '</li>';
227
- }
228
- }
229
- echo '</ul>';
230
- echo '</div>';
231
-
232
- echo '<p>Select the orientation of the sharebar</p>';
233
- echo WPSR_Admin::field( 'image_select', array(
234
- 'id' => 'sb_orientation',
235
- 'value' => 'vl',
236
- 'list' => array(
237
- 'vl' => array( __( 'Vertical', 'wpsr' ), 'sb-vertical.png', '125px' ),
238
- 'hl' => array( __( 'Horizontal', 'wpsr' ), 'sb-horizontal.png', '125px' )
239
- )
240
- ));
241
- echo '</div>';
242
-
243
- echo '<p class="question_wait" data-qwait="sharebar_wrap"><img src="' . WPSR_ADMIN_URL . '/images/banners/sharebar.png"/></p>';
244
- echo '<img src="https://goo.gl/fHTXcY" style="display:none"/>';
245
-
246
- echo '</div>';
247
-
248
- }
249
-
250
- public static function page4(){
251
-
252
- echo '<div class="page" data-page="4">';
253
- echo '<h1><i class="fa fa-cog"></i> <span class="cb_wrap"><input class="cb" id="ft_followbar" type="checkbox" data-toggle="followbar_wrap" /><label for="ft_followbar" class="fa"></label></span>';
254
- echo 'Add a Follow bar to your website ?</h1>';
255
-
256
- echo '<div class="followbar_wrap hidden">';
257
- echo '<p>Click "Open editor" to add follow me buttons to your website. You can change the size, shape and other settings later in the main administration page.</p>';
258
-
259
- echo '<div id="fb_prev_wrap"><ul class="fb_preview"><span>' . __( 'No buttons are added. Open the editor to add buttons.', 'wpsr' ) . '</span></ul></div>';
260
- echo '<input type="hidden" id="fb_template_val" value="" />';
261
- echo '<p align="center"><button class="button button-primary wpsr_ppe_fb_open" data-cnt-id="fb_template_val" data-prev-id="fb_prev_wrap"><i class="fa fa-plus"></i> ' . __( 'Open editor', 'wpsr' ) . '</button></p>';
262
-
263
- echo '</div>';
264
-
265
- echo '<p class="question_wait" data-qwait="followbar_wrap"><img src="' . WPSR_ADMIN_URL . '/images/banners/followbar.png"/></p>';
266
-
267
- echo '</div>';
268
-
269
- }
270
-
271
- public static function page5(){
272
-
273
- echo '<div class="page" data-page="5">';
274
- echo '<h1><i class="fa fa-cog"></i> More features !</h1>';
275
-
276
- echo '<p class="ft_more"><span class="cb_wrap"><input class="cb" id="ft_textsharebar" type="checkbox" /><label for="ft_textsharebar" class="fa"></label></span>';
277
- echo 'Add text sharebar to your posts and pages ?';
278
- echo '</p>';
279
-
280
- echo '<p class="ft_more"><span class="cb_wrap"><input class="cb" id="ft_mobilesharebar" type="checkbox" /><label for="ft_mobilesharebar" class="fa"></label></span>';
281
- echo 'Add a mobile sharebar to your website ?';
282
- echo '</p>';
283
-
284
- echo '</div>';
285
-
286
- }
287
-
288
- public static function page6(){
289
-
290
- echo '<div class="page" data-page="6">';
291
-
292
- echo '<div class="saving_msg" data-nonce="' . wp_create_nonce( 'wpsr_setup_data' ) . '">
293
- <p align="center"><i class="fa fa-spinner fa-spin fa-3x fa-fw"></i><br/>
294
- <span>Saving data...</span></p>
295
- </div>';
296
-
297
- echo '<div class="saving_done">';
298
- echo '<h1><i class="fa fa-check-circle-o"></i> Finish !</h1>';
299
- echo '<p class="timer_text"></p>';
300
- echo '<p>Congratulations WP Socializer is now all set. You can tweak and customize a lot more options in the main settings page.</p>';
301
-
302
- echo '<h2 class="whats_next_head">What\'s next ?</h2>';
303
-
304
- echo '<p align="center" class="whats_next">';
305
- echo '<a href="' . get_site_url() . '" class="button button-primary" target="_blank"><i class="fa fa-home"></i> Visit your site</a> <a href="' . admin_url( 'admin.php?page=wp_socializer' ) . '" class="button button-primary" target="_blank"><i class="fa fa-cog"></i> Go to main settings page</a> </p>';
306
-
307
- echo '<p align="center" class="share_sec">';
308
- echo '<span class="socializer a sr-32px sr-float sr-pad sr-icon-white sr-sw-1">
309
- <span class="sr-twitter sr-text-in"><a href="https://twitter.com/intent/tweet?hashtags=wordpress&ref_src=twsrc%5Etfw&related=vaakash&text=Check%20out%20WP%20Socializer%2C%20a%20powerful%20social%20media%20share%20icons%2C%20buttons%20plugin%20for%20WordPress&tw_p=tweetbutton&url=https%3A%2F%2Fwww.aakashweb.com%2Fwordpress-plugins%2Fwp-socializer%2F&via=vaakash" target="_blank" title="Twitter"><i class="fab fa-twitter"></i><span class="text">Tweet about WP Socializer</span></a></span>
310
- <span class="sr-googleplus sr-text-in"><a href="https://plus.google.com/share?url=https%3A%2F%2Fwww.aakashweb.com%2Fwordpress-plugins%2Fwp-socializer%2F" target="_blank" title="Google Plus"><i class="fab fa-google-plus"></i><span class="text">Share WP Socializer on Google+</span></a></span>
311
- </span>
312
- </p>';
313
-
314
- echo '<section class="finish_footer"><a href="https://goo.gl/u8Zf09" target="_blank"><i class="fa fa-comment"></i> Send feedback</a> <a href="https://goo.gl/2DjGhD" class="fright" target="_blank"><i class="fa fa-star"></i> Rate and review</a></section>';
315
-
316
- echo '</div>';
317
- echo '</div>';
318
-
319
- }
320
-
321
- public static function save_data_ajax(){
322
-
323
- if( $_POST && check_admin_referer( 'wpsr_setup_data' ) ){
324
-
325
- $p = WPSR_Admin::clean_post();
326
-
327
- // Share buttons
328
- if( isset( $p[ 'share_buttons' ] ) && is_array( $p[ 'share_buttons' ] ) ){
329
-
330
- $share_buttons = $p[ 'share_buttons' ];
331
-
332
- if( isset( $share_buttons[ 'above_post' ] ) ){
333
- $tmpl_id = $share_buttons[ 'above_post' ];
334
- self::save_sharebuttons( $tmpl_id, '1', 'above_posts' );
335
- }
336
-
337
- if( isset( $share_buttons[ 'below_post' ] ) ){
338
- $tmpl_id = $share_buttons[ 'below_post' ];
339
- self::save_sharebuttons( $tmpl_id, '2', 'below_posts' );
340
- }
341
-
342
- }
343
-
344
- // Sharebar
345
- if( isset( $p[ 'sharebar' ] ) && is_array( $p[ 'sharebar' ] ) ){
346
- self::save_sharebar( $p[ 'sharebar' ] );
347
- }
348
-
349
- // Followbar
350
- if( isset( $p[ 'followbar' ] ) && $p[ 'followbar' ] != '0' ){
351
- self::save_followbar( $p[ 'followbar' ] );
352
- }
353
-
354
- // Text sharebar
355
- if( isset( $p[ 'text_sharebar' ] ) && $p[ 'text_sharebar' ] != '0' ){
356
- self::save_text_sharebar();
357
- }
358
-
359
- // Mobile sharebar
360
- if( isset( $p[ 'mobile_sharebar' ] ) && $p[ 'mobile_sharebar' ] != '0' ){
361
- self::save_mobile_sharebar();
362
- }
363
-
364
- update_option( 'wpsr_version', WPSR_VERSION );
365
- update_option( 'wpsr_setup', WPSR_SETUP_VERSION );
366
-
367
- echo 'SETUP_SAVED';
368
- }
369
-
370
- die( 0 );
371
- }
372
-
373
- public static function add_buttons( $list, $feature = 'buttons' ){
374
-
375
- if( !is_array( $list ) || empty( $list ) ){
376
- return false;
377
- }
378
-
379
- $st_buttons = WPSR_Services::list_templates( $feature );
380
-
381
- $saved_buttons = get_option( 'wpsr_buttons' );
382
- $saved_buttons = is_array( $saved_buttons ) ? $saved_buttons : array();
383
-
384
- foreach( $list as $btn ){
385
- if( array_key_exists( $btn, $st_buttons ) ){
386
- $btn_config = $st_buttons[ $btn ];
387
- $btn_config[ 'feature' ] = $feature;
388
- $btn_config[ 'settings' ][ 'title' ] = 'Setup created-' . $btn;
389
-
390
- $saved_buttons[ $btn ] = $btn_config;
391
-
392
- }
393
- }
394
-
395
- update_option( 'wpsr_buttons', $saved_buttons );
396
-
397
- }
398
-
399
- public static function template_info( $id ){
400
-
401
- $st_templates = WPSR_Lists::load_json( 'templates' );
402
- $tmpl_info = array(
403
- 'data' => '',
404
- 'buttons' => array()
405
- );
406
-
407
- if( !array_key_exists( $id, $st_templates ) ){
408
- return $tmpl_info;
409
- }
410
-
411
- return self::template_gen( $st_templates[ $id ][ 'content' ] );
412
- }
413
-
414
- public static function template_gen( $content = array() ){
415
-
416
- if( !is_array( $content ) ){
417
- return array(
418
- 'data' => '',
419
- 'buttons' => array()
420
- );
421
- }
422
-
423
- $row_no = 1;
424
- $tmpl = array();
425
- $tmpl_content = $content;
426
- $tmpl_buttons = array();
427
-
428
- foreach( $tmpl_content as $row ){
429
-
430
- if( !is_array( $row ) ){
431
- continue;
432
- }
433
-
434
- $buttons = array();
435
- foreach( $row as $button ){
436
- $temp = array();
437
- $temp[ $button ] = array();
438
- array_push( $buttons, $temp );
439
-
440
- if( !in_array( $button, $tmpl_buttons ) ){
441
- array_push( $tmpl_buttons, $button );
442
- }
443
-
444
- }
445
-
446
- $tmpl[ $row_no ] = array(
447
- 'properties' => array(),
448
- 'buttons' => $buttons
449
- );
450
-
451
- $row_no++;
452
-
453
- }
454
-
455
- return array(
456
- 'buttons' => $tmpl_buttons,
457
- 'data' => base64_encode( json_encode( $tmpl ) )
458
- );
459
-
460
- }
461
-
462
- public static function save_sharebuttons( $tmpl_id, $order, $position ){
463
-
464
- if( $tmpl_id == '0' ){
465
- return false;
466
- }
467
-
468
- $tmpl_info = self::template_info( $tmpl_id );
469
- $tmpl_cnt = $tmpl_info[ 'data' ];
470
- $tmpl_btns = $tmpl_info[ 'buttons' ];
471
-
472
- $template_data = WPSR_Lists::set_defaults( array(
473
- 'content' => $tmpl_cnt,
474
- 'position' => $position
475
- ), WPSR_Lists::defaults( 'buttons' ));
476
-
477
- $template_opts = array();
478
- $template_opts[ 'tmpl' ] = array();
479
- $template_opts[ 'tmpl' ][ $order ] = $template_data;
480
- $template_opts = WPSR_Lists::set_defaults( $template_opts, get_option( 'wpsr_button_settings' ) );
481
-
482
- update_option( 'wpsr_button_settings', $template_opts );
483
-
484
- self::add_buttons( $tmpl_btns, 'buttons' );
485
-
486
- }
487
-
488
- public static function save_sharebar( $opts ){
489
-
490
- if( !is_array( $opts ) ){
491
- return false;
492
- }
493
-
494
- $orientation = isset( $opts[ 'orientation' ] ) ? $opts[ 'orientation' ] : 'vl';
495
- $sel_buttons = isset( $opts[ 'buttons' ] ) ? $opts[ 'buttons' ] : array();
496
-
497
- if( empty( $sel_buttons ) ){
498
- return false;
499
- }
500
-
501
- $sharebar_btns = WPSR_Services::list_templates( 'sharebar' );
502
- $order_list = array( 'share_counter', 'social_icons', 'facebook', 'google_plus', 'linkedin', 'stumbleupon', 'reddit', 'pinterest', 'twitter' );
503
- $the_row = array();
504
-
505
- foreach( $sharebar_btns as $id => $config ){
506
-
507
- $otext = '_' . $orientation;
508
- $service = $config[ 'service' ];
509
-
510
- if( strpos( $id, $otext ) !== false && in_array( $service, $sel_buttons ) ){
511
-
512
- $pos = array_search( $service, $order_list );
513
- if( $pos !== false ){
514
- $the_row[ $pos ] = $id;
515
- }
516
-
517
- }
518
- }
519
-
520
- if( empty( $the_row ) ){
521
- return false;
522
- }
523
-
524
- ksort( $the_row );
525
-
526
- $the_row = array_values( $the_row );
527
- $tmpl_cnt = array( $the_row );
528
- $tmpl_info = self::template_gen( $tmpl_cnt );
529
- $to_save = array(
530
- 'ft_status' => 'enable',
531
- 'buttons' => $tmpl_info[ 'data' ],
532
- 'type' => ( $orientation == 'vl' ) ? 'vertical' : 'horizontal',
533
- );
534
-
535
- # Reset skin when there is only sharebar
536
- if( count( $tmpl_info[ 'buttons' ] ) == 1 ){
537
- if( strpos( $tmpl_info[ 'buttons' ][0], 'sb_' ) !== false ){
538
- $to_save[ 'theme' ] = 'simple-ns';
539
- $to_save[ 'bg_color' ] = '';
540
- $to_save[ 'border_color' ] = '';
541
- }
542
- }
543
-
544
- $to_save = WPSR_Lists::set_defaults( $to_save, WPSR_Lists::defaults( 'sharebar' ) );
545
-
546
- update_option( 'wpsr_sharebar_settings', $to_save );
547
-
548
- self::add_buttons( $tmpl_info[ 'buttons' ], 'sharebar' );
549
-
550
- }
551
-
552
- public static function save_followbar( $cnt ){
553
-
554
- $new_opts = WPSR_Lists::set_defaults( array(
555
- 'ft_status' => 'enable',
556
- 'template' => $cnt,
557
- 'shape' => 'circle'
558
- ), WPSR_Lists::defaults( 'followbar' ) );
559
-
560
- update_option( 'wpsr_followbar_settings', $new_opts );
561
-
562
- }
563
-
564
- public static function save_text_sharebar(){
565
- $opts = WPSR_Lists::defaults( 'text_sharebar' );
566
- $opts[ 'ft_status' ] = 'enable';
567
- $opts[ 'template' ] = 'WyJmYWNlYm9vayIsInR3aXR0ZXIiLCJnb29nbGUiLCJsaW5rZWRpbiIsImVtYWlsIl0=';
568
- update_option( 'wpsr_text_sharebar_settings', $opts );
569
- }
570
-
571
- public static function save_mobile_sharebar(){
572
- $opts = WPSR_Lists::defaults( 'mobile_sharebar' );
573
- $opts[ 'ft_status' ] = 'enable';
574
- $opts[ 'template' ] = 'WyJmYWNlYm9vayIsInR3aXR0ZXIiLCJnb29nbGVwbHVzIiwibGlua2VkaW4iLCJlbWFpbCIsIndoYXRzYXBwIiwiZmJtZXNzZW5nZXIiXQ==';
575
- update_option( 'wpsr_mobile_sharebar_settings', $opts );
576
- }
577
-
578
- public static function dummy_page_info(){
579
- return array(
580
- 'title' => 'Google',
581
- 'url' => 'https://www.google.com',
582
- 'excerpt' => 'Dummy excerpt for WP Socializer preview',
583
- 'short_url' => 'https://goo.gl/lightsaber',
584
- 'comments_count' => '45',
585
- 'post_id' => 1,
586
- 'post_image' => '',
587
- 'rss_url' => ''
588
- );
589
- }
590
-
591
- }
592
-
593
- WPSR_Admin_Setup::init();
594
-
595
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/sharebar.php DELETED
@@ -1,252 +0,0 @@
1
- <?php
2
- /**
3
- * Buttons selection page
4
- *
5
- **/
6
-
7
- class wpsr_admin_sharebar{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
12
-
13
- }
14
-
15
- function register( $pages ){
16
-
17
- $pages[ 'sharebar' ] = array(
18
- 'name' => 'Floating sharebar (Deprecated)',
19
- 'banner' => WPSR_ADMIN_URL . '/images/banners/floating-sharebar.svg',
20
- 'page_callback' => array( $this, 'page' ),
21
- 'feature' => true,
22
- 'class' => 'old_ft',
23
- 'form' => array(
24
- 'id' => 'sharebar_settings',
25
- 'name' => 'sharebar_settings',
26
- 'callback' => array( $this, 'form_fields' ),
27
- 'validation' => array( $this, 'validation' ),
28
- )
29
- );
30
-
31
- return $pages;
32
-
33
- }
34
-
35
- function form_fields( $values ){
36
-
37
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'sharebar' ) );
38
-
39
- $feature = array(
40
- 'name' => 'sharebar',
41
- 'hide_services' => array()
42
- );
43
-
44
- $section0 = array(
45
- array( __( 'Select to enable or disable sharebar feature', 'wpsr' ), WPSR_Admin::field( 'select', array(
46
- 'name' => 'ft_status',
47
- 'value' => $values[ 'ft_status' ],
48
- 'list' => array(
49
- 'enable' => __( 'Enable sharebar', 'wpsr' ),
50
- 'disable' => __( 'Disable sharebar', 'wpsr' )
51
- ),
52
- )), 'class="ft_table"' ),
53
- );
54
-
55
- WPSR_Admin::build_table( $section0, __( 'Enable/disable sharebar', 'wpsr' ), '', false, '1' );
56
-
57
- echo '<div class="feature_wrap">';
58
-
59
- $sb_types = array(
60
- 'vertical' => array( __( 'Vertical', 'wpsr' ), 'sb-vertical.png', '100px' ),
61
- 'horizontal' => array( __( 'Horizontal', 'wpsr' ), 'sb-horizontal.png', '100px' )
62
- );
63
-
64
- $sb_bar_positions = array(
65
- 'vertical' => array(
66
- 'scontent' => __( 'Stick to content', 'wpsr' ),
67
- 'wleft' => __( 'Left of the window', 'wpsr' ),
68
- 'wright' => __( 'Right of the window', 'wpsr' )
69
- ),
70
- 'horizontal' => array(
71
- 'wbottom' => __( 'Bottom of the window', 'wpsr' ),
72
- 'wtop' => __( 'Top of the window', 'wpsr' )
73
- )
74
- );
75
-
76
- $section1 = array(
77
- array( __( 'Sharebar type', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
78
- 'name' => 'type',
79
- 'value' => $values['type'],
80
- 'list' => $sb_types
81
- ))),
82
-
83
- array( __( 'Vertical sharebar position', 'wpsr' ), WPSR_Admin::field( 'select', array(
84
- 'name' => 'vl_position',
85
- 'value' => $values['vl_position'],
86
- 'list' => $sb_bar_positions[ 'vertical' ],
87
- 'helper' => __( 'The position of the vertical sharebar in the page', 'wpsr' )
88
- )), 'data-conditioner data-condr-input="[name=type]" data-condr-value="vertical" data-condr-action="simple?show:hide" data-condr-events="change"'),
89
-
90
- array( __( 'Horizontal sharebar position', 'wpsr' ), WPSR_Admin::field( 'select', array(
91
- 'name' => 'hl_position',
92
- 'value' => $values['hl_position'],
93
- 'list' => $sb_bar_positions[ 'horizontal' ],
94
- 'helper' => __( 'The position of the horizontal sharebar in the page', 'wpsr' )
95
- )), 'data-conditioner data-condr-input="[name=type]" data-condr-value="horizontal" data-condr-action="simple?show:hide" data-condr-events="change"'),
96
-
97
- array( __( 'ID or class name of the content to stick with', 'wpsr' ), WPSR_Admin::field( 'text', array(
98
- 'name' => 'stick_element',
99
- 'value' => $values['stick_element'],
100
- 'placeholder' => 'Ex: #content',
101
- 'qtip' => 'https://www.youtube.com/watch?v=GQ1YO0xZ7WA'
102
- )), 'class="tbl_row_stick_cnt"' ),
103
-
104
- );
105
-
106
- WPSR_Admin::build_table( $section1, __( 'Sharebar type', 'wpsr' ), '', false, '2' );
107
-
108
- WPSR_Admin::box_wrap( 'open', __( 'Add buttons to the sharebar', 'wpsr' ), __( 'Add sharing buttons to the sharebar template below', 'wpsr' ), '3' );
109
-
110
- WPSR_Admin::buttons_veditor( "buttons", $values['buttons'], false, false );
111
- WPSR_Buttons_Picker::print_buttons_picker($feature);
112
-
113
- WPSR_Admin::box_wrap( 'close' );
114
-
115
- $themes = array(
116
- 'simple' => __( 'Simple', 'wpsr' ),
117
- 'simple-sq' => __( 'Simple - Square edges', 'wpsr' ),
118
- 'simple-ns' => __( 'Simple - No Shadow', 'wpsr' ),
119
- 'simple-icon-counter' => __( 'Simple - Sharebar with icons and counter', 'wpsr' ),
120
- );
121
-
122
- $mv_sharebar = array(
123
- 'move' => __( 'Move when page scrolls', 'wpsr' ),
124
- 'static' => __( 'Static, no movement', 'wpsr' )
125
- );
126
-
127
- $section2 = array(
128
-
129
- array( __( 'Theme', 'wpsr' ), WPSR_Admin::field( 'select', array(
130
- 'name' => 'theme',
131
- 'value' => $values['theme'],
132
- 'list' => apply_filters( 'wpsr_mod_sharebar_themes', $themes ),
133
- ))),
134
-
135
- /*
136
- array( 'Horizontal sharebar width', WPSR_Admin::field( 'text', array(
137
- 'name' => 'hl_width',
138
- 'value' => $values['hl_width'],
139
- 'placeholder' => 'Enter width of the sharebar. Ex: 800px',
140
- )), 'data-conditioner data-condr-input="[name=type]" data-condr-value="horizontal" data-condr-action="simple?show:hide" data-condr-events="change" '),
141
- */
142
-
143
- array( __( 'Sharebar movement', 'wpsr' ), WPSR_Admin::field( 'select', array(
144
- 'name' => 'vl_movement',
145
- 'value' => $values['vl_movement'],
146
- 'list' => $mv_sharebar,
147
- )), 'data-conditioner data-condr-input="[name=type]" data-condr-value="vertical" data-condr-action="simple?show:hide" data-condr-events="change" '),
148
-
149
- array( __( 'Background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
150
- 'name' => 'bg_color',
151
- 'value' => $values['bg_color'],
152
- 'class' => 'color_picker',
153
- 'helper' => __( 'Set empty value for transparency', 'wpsr' ),
154
- ))),
155
-
156
- array( __( 'Border color', 'wpsr' ), WPSR_Admin::field( 'text', array(
157
- 'name' => 'border_color',
158
- 'value' => $values['border_color'],
159
- 'class' => 'color_picker',
160
- ))),
161
-
162
- array( __( 'Initial state', 'wpsr' ), WPSR_Admin::field( 'select', array(
163
- 'name' => 'init_state',
164
- 'value' => $values['init_state'],
165
- 'list' => array(
166
- 'open' => __( 'Opened', 'wpsr' ),
167
- 'close' => __( 'Closed', 'wpsr' )
168
- ),
169
- ))),
170
-
171
- array( __( 'Offset from window/content', 'wpsr' ), WPSR_Admin::field( 'text', array(
172
- 'name' => 'offset',
173
- 'value' => $values['offset'],
174
- 'tip' => __( 'Pixels to offset the sharebar. You can also use the "adjust" button to edit visually.', 'wpsr' ),
175
- )) . ' <button class="button button-primary sharebar_preview_btn" title="' . __( 'Edit the offset of the sharebar visually', 'wpsr' ) . '"><i class="fa fa-cog"></i> ' . __( 'Adjust position visually', 'wpsr' ) . '</button><div class="sharebar_preview_iwrap"><iframe src=""></iframe></div>' ),
176
-
177
- array( __( 'Additional CSS styles', 'wpsr' ), WPSR_Admin::field( 'text', array(
178
- 'name' => 'css_class',
179
- 'value' => $values['css_class'],
180
- 'placeholder' => __( 'Enter CSS class name separated by comma', 'wpsr' ),
181
- ))),
182
-
183
- array( __( 'Open/close button when in mobile mode', 'wpsr' ), WPSR_Admin::field( 'select', array(
184
- 'name' => 'vl_mob_mode_pos',
185
- 'value' => $values['vl_mob_mode_pos'],
186
- 'list' => array(
187
- 'left' => __( 'Left side', 'wpsr'),
188
- 'right' => __( 'Right side', 'wpsr')
189
- ),
190
- )), 'data-conditioner data-condr-input="[name=type]" data-condr-value="vertical" data-condr-action="simple?show:hide" data-condr-events="change" '),
191
-
192
- array( __( 'Minimize when screen width is less than', 'wpsr' ), WPSR_Admin::field( 'text', array(
193
- 'name' => 'min_on_width',
194
- 'value' => $values['min_on_width'],
195
- 'type' => 'number',
196
- 'helper' => __( 'in pixels. 0 to disable.' )
197
- ))),
198
-
199
- );
200
-
201
- WPSR_Admin::build_table( $section2, __( 'Customization', 'wpsr' ), '', false, '4' );
202
-
203
- // Location rules
204
- WPSR_Admin::box_wrap( 'open', __( 'Conditions to display the sharebar', 'wpsr' ), __( 'Choose the below options to select the pages which will display the sharebar.', 'wpsr' ), '5' );
205
- WPSR_Location_Rules::display_rules( "loc_rules", $values['loc_rules'] );
206
- WPSR_Admin::box_wrap( 'close' );
207
-
208
- echo '<script>jQuery(document).ready(function(){
209
- jQuery( ".tbl_row_stick_cnt" ).conditioner({
210
- conditions: [
211
- {
212
- input: "[name=type]",
213
- type: "simple",
214
- value: "vertical"
215
- },
216
- {
217
- input: "[name=vl_position]",
218
- type: "simple",
219
- value: "scontent"
220
- }
221
- ],
222
- events: "click",
223
- onTrue: function(){ jQuery(this).show(); },
224
- onFalse: function(){ jQuery(this).hide(); }
225
- });
226
- });</script>';
227
-
228
- echo '</div>';
229
-
230
- }
231
-
232
- function page(){
233
-
234
- echo '<div class="notice notice-error">
235
- <p>Classic sharebar feature is now deprecated and will be removed in the next version. It is replaced with a brand new "Floating sharebar" feature.</p>
236
- <p>Please enable the new sharebar in the settings page and migrate your old configuration.</p>
237
- <p><a href="' . admin_url( 'admin.php?page=wp_socializer&tab=floating_sharebar') . '" class="button button-primary">Open new floating sharebar settings</a></p>
238
- </div>';
239
-
240
- WPSR_Admin::settings_form( 'sharebar' );
241
-
242
- }
243
-
244
- function validation( $input ){
245
- return $input;
246
- }
247
-
248
- }
249
-
250
- new wpsr_admin_sharebar();
251
-
252
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/social_icons.php DELETED
@@ -1,316 +0,0 @@
1
- <?php
2
- /**
3
- * Social icons settings page
4
- *
5
- **/
6
-
7
- class wpsr_admin_social_icons{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
12
-
13
- }
14
-
15
- function register( $pages ){
16
-
17
- $pages[ 'social_icons' ] = array(
18
- 'name' => 'Social icons',
19
- 'page_callback' => array( $this, 'page' ),
20
- 'banner' => WPSR_ADMIN_URL . '/images/banners/social-icons.svg',
21
- 'feature' => true,
22
- 'class' => 'new_ft',
23
- 'form' => array(
24
- 'id' => 'social_icons_settings',
25
- 'name' => 'social_icons_settings',
26
- 'callback' => array( $this, 'form_fields' ),
27
- 'validation' => array( $this, 'validation' ),
28
- )
29
- );
30
-
31
- return $pages;
32
-
33
- }
34
-
35
- function template( $values, $i ){
36
-
37
- if( !isset( $values[ 'tmpl' ][ $i ] ) ){
38
- $values[ 'tmpl' ][ $i ] = WPSR_Lists::defaults( 'social_icons_template' );
39
- if( $i == 2 ){
40
- $values[ 'tmpl' ][ $i ][ 'selected_icons' ] = 'W10=';
41
- $values[ 'tmpl' ][ $i ][ 'share_counter' ] = '';
42
- $values[ 'tmpl' ][ $i ][ 'heading' ] = '';
43
- }
44
- }else{
45
- $values[ 'tmpl' ][ $i ] = WPSR_Lists::set_defaults( $values[ 'tmpl' ][ $i ], WPSR_Lists::defaults( 'social_icons_template' ) );
46
- }
47
-
48
- echo '<div class="template_wrap" data-id="' . $i . '">';
49
-
50
- WPSR_Admin::box_wrap( 'open', __( 'Choose the social icons', 'wpsr' ), __( 'Add social icons to the template, re-arrange them and configure individual icon settings.', 'wpsr' ), '2' );
51
- WPSR_Icons_Editor::editor( $values[ 'tmpl' ][ $i ][ 'selected_icons' ], 'tmpl[' . $i . '][selected_icons]' );
52
- WPSR_Admin::box_wrap( 'close' );
53
-
54
- $customization = array(
55
-
56
- array( __( 'Icon layout', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
57
- 'name' => 'tmpl[' . $i . '][layout]',
58
- 'value' => $values[ 'tmpl' ][ $i ]['layout'],
59
- 'class' => 'setting_btn_layout' . $i,
60
- 'list' => array(
61
- '' => array( 'Normal', 'layout-horizontal.svg', '64px' ),
62
- 'fluid' => array( 'Full width', 'layout-fluid.svg', '64px' ),
63
- ),
64
- ))),
65
-
66
- array(__( 'Icon size', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
67
- 'name' => 'tmpl[' . $i . '][icon_size]',
68
- 'value' => $values[ 'tmpl' ][ $i ]['icon_size'],
69
- 'list' => array(
70
- '32px' => array( '32px', 'size.svg', '32px' ),
71
- '40px' => array( '40px', 'size.svg', '40px' ),
72
- '48px' => array( '48px', 'size.svg', '48px' ),
73
- '64px' => array( '64px', 'size.svg', '64px' ),
74
- ),
75
- ))),
76
-
77
- array( __( 'Icon shape', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
78
- 'name' => 'tmpl[' . $i . '][icon_shape]',
79
- 'value' => $values[ 'tmpl' ][ $i ]['icon_shape'],
80
- 'list' => array(
81
- '' => array( 'Sqaure', 'shape-square.svg', '32px' ),
82
- 'circle' => array( 'Circle', 'shape-circle.svg', '32px' ),
83
- 'squircle' => array( 'Squircle', 'shape-squircle.svg', '32px' ),
84
- 'squircle-2' => array( 'Squircle 2', 'shape-squircle-2.svg', '32px' ),
85
- 'diamond' => array( 'Diamond*', 'shape-diamond.svg', '32px' ),
86
- 'ribbon' => array( 'Ribbon*', 'shape-ribbon.svg', '32px' ),
87
- 'drop' => array( 'Drop*', 'shape-drop.svg', '32px' ),
88
- ),
89
- 'helper' => 'Note: Shapes marked * might not react well to certain hover effects and share counter styles.'
90
- )), 'data-conditioner data-condr-input=".setting_btn_layout' . $i . '" data-condr-value="" data-condr-action="simple?show:hide" data-condr-events="change"'),
91
-
92
- array( __( 'Hover effects', 'wpsr' ), WPSR_Admin::field( 'select', array(
93
- 'name' => 'tmpl[' . $i . '][hover_effect]',
94
- 'value' => $values[ 'tmpl' ][ $i ]['hover_effect'],
95
- 'list' => array(
96
- '' => __( 'None', 'wpsr' ),
97
- 'opacity' => 'Opacity',
98
- 'rotate' => 'Rotate',
99
- 'zoom' => 'Zoom',
100
- 'shrink' => 'Shrink',
101
- 'float' => 'Float',
102
- 'sink' => 'Sink',
103
- 'fade-white' => 'Fade to white',
104
- 'fade-black' => 'Fade to black'
105
- ),
106
- ))),
107
-
108
- array( __( 'Icon color', 'wpsr' ), WPSR_Admin::field( 'text', array(
109
- 'name' => 'tmpl[' . $i . '][icon_color]',
110
- 'value' => $values[ 'tmpl' ][ $i ]['icon_color'],
111
- 'class' => 'color_picker',
112
- 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
113
- ))),
114
-
115
- array( __( 'Icon background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
116
- 'name' => 'tmpl[' . $i . '][icon_bg_color]',
117
- 'value' => $values[ 'tmpl' ][ $i ]['icon_bg_color'],
118
- 'class' => 'color_picker',
119
- 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
120
- ))),
121
-
122
- array( __( 'Gutters', 'wpsr' ), WPSR_Admin::field( 'select', array(
123
- 'name' => 'tmpl[' . $i . '][padding]',
124
- 'value' => $values[ 'tmpl' ][ $i ]['padding'],
125
- 'list' => array(
126
- '' => 'No',
127
- 'pad' => 'Yes'
128
- ),
129
- 'helper' => __( 'Select to add space between icons', 'wpsr' ),
130
- ))),
131
-
132
- array('SHARE COUNTER', ''),
133
-
134
- array( __( 'Share counter', 'wpsr' ), WPSR_Admin::field( 'select', array(
135
- 'name' => 'tmpl[' . $i . '][share_counter]',
136
- 'value' => $values[ 'tmpl' ][ $i ]['share_counter'],
137
- 'class' => 'setting_share_counter' . $i,
138
- 'list' => array(
139
- '' => 'No share count',
140
- 'individual' => 'Individual count',
141
- 'total' => 'Total count only',
142
- 'total-individual' => 'Both individual and total counts',
143
- ),
144
- ))),
145
-
146
- array( __( 'Share counter style', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
147
- 'name' => 'tmpl[' . $i . '][sc_style]',
148
- 'value' => $values[ 'tmpl' ][ $i ]['sc_style'],
149
- 'list' => array(
150
- 'count-1' => array( 'Style 1', 'counter-1.svg', '60px' ),
151
- 'count-2' => array( 'Style 2', 'counter-2.svg', '70px' ),
152
- 'count-3' => array( 'Style 3', 'counter-3.svg', '70px' ),
153
- ),
154
- 'helper' => __( 'To show count, in the same page under icons list, select an icon and enable gear icon &gt; show count', 'wpsr' )
155
- )), 'data-conditioner data-condr-input=".setting_share_counter' . $i . '" data-condr-value="individual" data-condr-action="pattern?show:hide" data-condr-events="change"'),
156
-
157
- array( __( 'Total share count position', 'wpsr' ), WPSR_Admin::field( 'select', array(
158
- 'name' => 'tmpl[' . $i . '][sc_total_position]',
159
- 'value' => $values[ 'tmpl' ][ $i ]['sc_total_position'],
160
- 'list' => array(
161
- 'left' => 'Left to the icons',
162
- 'right' => 'Right to the icons'
163
- ),
164
- )), 'data-conditioner data-condr-input=".setting_share_counter' . $i . '" data-condr-value="total" data-condr-action="pattern?show:hide" data-condr-events="change"'),
165
-
166
- array('MISC', ''),
167
-
168
- array( __( 'No of icons in the last to group', 'wpsr' ), WPSR_Admin::field( 'select', array(
169
- 'name' => 'tmpl[' . $i . '][more_icons]',
170
- 'value' => $values[ 'tmpl' ][ $i ]['more_icons'],
171
- 'list' => array(
172
- '0' => 'No grouping',
173
- '1' => '1',
174
- '2' => '2',
175
- '3' => '3',
176
- '4' => '4',
177
- '5' => '5',
178
- '6' => '6',
179
- '7' => '7',
180
- '8' => '8',
181
- '9' => '9',
182
- '10' => '10',
183
- ),
184
- 'helper' => __( 'The last icons grouped will be displayed in a "More" icons menu', 'wpsr' )
185
- ))),
186
-
187
- array( __( 'Center the icons', 'wpsr' ), WPSR_Admin::field( 'select', array(
188
- 'name' => 'tmpl[' . $i . '][center_icons]',
189
- 'value' => $values[ 'tmpl' ][ $i ]['center_icons'],
190
- 'list' => array(
191
- '' => 'No',
192
- 'yes' => 'Yes'
193
- )
194
- )), 'data-conditioner data-condr-input=".setting_btn_layout' . $i . '" data-condr-value="" data-condr-action="simple?show:hide" data-condr-events="change"'),
195
-
196
- array( __( 'Heading text', 'wpsr' ), WPSR_Admin::field( 'text', array(
197
- 'name' => 'tmpl[' . $i . '][heading]',
198
- 'value' => $values[ 'tmpl' ][ $i ][ 'heading' ],
199
- 'class' => '',
200
- 'helper' => __( 'Heading to show above the share buttons. HTML is allowed.' )
201
- ))),
202
-
203
- array( __( 'Custom HTML above and below icons', 'wpsr' ), WPSR_Admin::field( 'textarea', array(
204
- 'name' => 'tmpl[' . $i . '][custom_html_above]',
205
- 'value' => $values[ 'tmpl' ][ $i ][ 'custom_html_above' ],
206
- 'class' => 'inline_field',
207
- 'placeholder' => 'Above'
208
- )) . WPSR_Admin::field( 'textarea', array(
209
- 'name' => 'tmpl[' . $i . '][custom_html_below]',
210
- 'value' => $values[ 'tmpl' ][ $i ][ 'custom_html_below' ],
211
- 'class' => '',
212
- 'placeholder' => 'Below',
213
- 'helper' => 'Supports any HTML and shortcodes'
214
- ))),
215
-
216
- );
217
-
218
- WPSR_Admin::build_table( $customization, __( 'Customization', 'wpsr' ), '', false, '3' );
219
-
220
- $positions = array(
221
- 'above_posts' => __( 'Above posts', 'wpsr' ),
222
- 'below_posts' => __( 'Below posts', 'wpsr' ),
223
- 'above_below_posts' => __( 'Both above and below posts', 'wpsr' )
224
- );
225
-
226
- // Position rules
227
- WPSR_Admin::box_wrap( 'open', __( 'Position of template in the page', 'wpsr' ), __( 'Choose the below options to select the position the template in a page.', 'wpsr' ), '4' );
228
-
229
- echo WPSR_Admin::field( 'radio', array(
230
- 'name' => 'tmpl[' . $i . '][position]',
231
- 'list' => $positions,
232
- 'value' => $values[ 'tmpl' ][ $i ][ 'position' ],
233
- 'default' => 'above_below_post',
234
- ));
235
-
236
- echo '<hr/><p>' . __( 'Select whether to show this template in excerpts', 'wpsr' ) . '</p>';
237
-
238
- echo WPSR_Admin::field( 'radio', array(
239
- 'name' => 'tmpl[' . $i . '][in_excerpt]',
240
- 'list' => array( 'show' => __( 'Show in excerpt', 'wpsr' ), 'hide' => __( 'Hide in excerpt', 'wpsr' ) ),
241
- 'value' => $values[ 'tmpl' ][ $i ][ 'in_excerpt' ],
242
- 'default' => 'hide',
243
- ));
244
-
245
- WPSR_Admin::box_wrap( 'close' );
246
-
247
- // Location rules
248
- WPSR_Admin::box_wrap( 'open', __( 'Conditions to display the template', 'wpsr' ), __( 'Choose the below options to select the pages which will display the template.', 'wpsr' ), '5' );
249
- WPSR_Location_Rules::display_rules( "tmpl[$i][loc_rules]", $values['tmpl'][$i]['loc_rules'] );
250
- WPSR_Admin::box_wrap( 'close' );
251
-
252
- echo '</div>';
253
-
254
- }
255
-
256
- function form_fields( $values ){
257
-
258
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'social_icons' ) );
259
-
260
- $section0 = array(
261
- array( __( 'Select to enable or disable social icons feature', 'wpsr' ), WPSR_Admin::field( 'select', array(
262
- 'name' => 'ft_status',
263
- 'value' => $values[ 'ft_status' ],
264
- 'list' => array(
265
- 'enable' => __( 'Enable social icons', 'wpsr' ),
266
- 'disable' => __( 'Disable social icons', 'wpsr' )
267
- ),
268
- )), 'class="ft_table"' ),
269
- );
270
-
271
- WPSR_Admin::build_table( $section0, __( 'Enable/disable social icons', 'wpsr' ), '', false, '1' );
272
-
273
- $icon_settings = array( 'icon', 'text', 'hover_text', 'html' );
274
- WPSR_Icons_Editor::commons( $icon_settings );
275
-
276
- echo '<div class="feature_wrap">';
277
-
278
- $template_count = 2;
279
-
280
- echo '<ul class="template_tab">';
281
- for( $i = 1; $i <= $template_count; $i++ ){
282
- echo '<li>Template ' . $i . '</li>';
283
- }
284
- echo '</ul>';
285
-
286
- for( $i=1; $i<=$template_count; $i++ ){
287
- $this->template( $values, $i );
288
- }
289
-
290
- echo '</div>';
291
-
292
- }
293
-
294
-
295
- function page(){
296
-
297
- WPSR_Admin::settings_form( 'social_icons' );
298
-
299
- }
300
-
301
- function validation( $input ){
302
-
303
- if( $input['ft_status'] == 'enable' ){
304
- $btn_settings = get_option( 'wpsr_button_settings' );
305
- $btn_settings[ 'ft_status' ] = 'disable';
306
- update_option( 'wpsr_button_settings', $btn_settings );
307
- }
308
-
309
- return $input;
310
- }
311
-
312
- }
313
-
314
- new wpsr_admin_social_icons();
315
-
316
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/text_sharebar.php DELETED
@@ -1,163 +0,0 @@
1
- <?php
2
- /**
3
- * Text sharebar settings page
4
- *
5
- **/
6
-
7
- class wpsr_admin_text_sharebar{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
12
-
13
- }
14
-
15
- function register( $pages ){
16
-
17
- $pages[ 'text_sharebar' ] = array(
18
- 'name' => 'Text sharebar',
19
- 'page_callback' => array( $this, 'page' ),
20
- 'banner' => WPSR_ADMIN_URL . '/images/banners/text-sharebar.svg',
21
- 'feature' => true,
22
- 'form' => array(
23
- 'id' => 'text_sharebar_settings',
24
- 'name' => 'text_sharebar_settings',
25
- 'callback' => array( $this, 'form_fields' ),
26
- 'validation' => array( $this, 'validation' ),
27
- )
28
- );
29
-
30
- return $pages;
31
-
32
- }
33
-
34
- function form_fields( $values ){
35
-
36
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'text_sharebar' ) );
37
-
38
- $section0 = array(
39
- array( __( 'Select to enable or disable text sharebar feature', 'wpsr' ), WPSR_Admin::field( 'select', array(
40
- 'name' => 'ft_status',
41
- 'value' => $values[ 'ft_status' ],
42
- 'list' => array(
43
- 'enable' => __( 'Enable text sharebar', 'wpsr' ),
44
- 'disable' => __( 'Disable text sharebar', 'wpsr' )
45
- ),
46
- )), 'class="ft_table"' ),
47
- );
48
-
49
- WPSR_Admin::build_table( $section0, __( 'Enable/disable text sharebar', 'wpsr' ), '', false, '1' );
50
-
51
- echo '<div class="feature_wrap">';
52
-
53
- $sb_sites = WPSR_Lists::social_icons();
54
-
55
- WPSR_Admin::box_wrap( 'open', __( 'Add buttons to text sharebar', 'wpsr' ), __( 'Select buttons from the list below and add it to the selected list.', 'wpsr' ), '2' );
56
- echo '<table class="form-table ssb_tbl"><tr><td width="90%">';
57
- echo '<select class="ssb_list widefat">';
58
- foreach( $sb_sites as $id=>$prop ){
59
- if( in_array( 'for_tsb', $prop[ 'features' ] ) ){
60
- echo '<option value="' . $id . '" data-color="' . $prop['colors'][0] . '">' . $prop[ 'name' ] . '</option>';
61
- }
62
- }
63
- echo '</select>';
64
- echo '</td><td>';
65
- echo '<button class="button button-primary ssb_add">' . __( 'Add button', 'wpsr' ) . '</button>';
66
- echo '</td></tr></table>';
67
-
68
- echo '<h4>' . __( 'Selected buttons', 'wpsr' ) . '</h4>';
69
-
70
- $decoded = base64_decode( $values[ 'template' ] );
71
- $tsb_btns = json_decode( $decoded );
72
-
73
- if( !is_array( $tsb_btns ) ){
74
- $tsb_btns = array();
75
- }
76
-
77
- echo '<ul class="ssb_selected_list clearfix">';
78
- if( count( $tsb_btns ) > 0 ){
79
- foreach( $tsb_btns as $tsb_item ){
80
- $sb_info = $sb_sites[ $tsb_item ];
81
- echo '<li title="' . $sb_info[ 'name' ] . '" data-id="' . $tsb_item . '" style="background-color:' . $sb_info['colors'][0] . '"><i class="' . $sb_info[ 'icon' ] . '"></i> <span class="ssb_remove" title="' . __( 'Delete button', 'wpsr' ) . '">x</span></li>';
82
- }
83
- }else{
84
- echo '<span class="ssb_empty">' . __( 'No buttons are selected for text sharebar', 'wpsr' ) . '</span>';
85
- }
86
- echo '</ul>';
87
- echo '<input type="hidden" name="template" class="ssb_template" value="' . $values[ 'template' ] . '"/>';
88
-
89
- WPSR_Admin::box_wrap( 'close' );
90
-
91
- # Settings form
92
- $section2 = array(
93
-
94
- array( __( 'ID or class name of the content to show text sharebar', 'wpsr' ), WPSR_Admin::field( 'text', array(
95
- 'name' => 'content',
96
- 'value' => $values['content'],
97
- 'placeholder' => 'Ex: .entry-content',
98
- 'qtip' => 'https://www.youtube.com/watch?v=GQ1YO0xZ7WA'
99
- ))),
100
-
101
- array( __( 'Button size', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
102
- 'name' => 'size',
103
- 'value' => $values['size'],
104
- 'list' => array(
105
- '32px' => array( '32px', 'size.svg', '32px' ),
106
- '40px' => array( '40px', 'size.svg', '40px' ),
107
- '48px' => array( '48px', 'size.svg', '48px' ),
108
- '64px' => array( '64px', 'size.svg', '64px' ),
109
- ),
110
- 'tip' => WPSR_ADMIN_URL . '/images/tips/tsb-sizes.png'
111
- ))),
112
-
113
- array( __( 'Background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
114
- 'name' => 'bg_color',
115
- 'value' => $values['bg_color'],
116
- 'class' => 'color_picker'
117
- ))),
118
-
119
- array( __( 'Icon color', 'wpsr' ), WPSR_Admin::field( 'text', array(
120
- 'name' => 'icon_color',
121
- 'value' => $values['icon_color'],
122
- 'class' => 'color_picker'
123
- ))),
124
-
125
- array( __( 'Maximum word count to quote', 'wpsr' ), WPSR_Admin::field( 'text', array(
126
- 'type' => 'number',
127
- 'name' => 'text_count',
128
- 'value' => $values['text_count'],
129
- 'helper' => __( 'Set value to 0 to include all the selected text', 'wpsr' )
130
- ))),
131
-
132
- );
133
- WPSR_Admin::build_table( $section2, __( 'Settings', 'wpsr' ), '', false, '3' );
134
-
135
- // Location rules
136
- WPSR_Admin::box_wrap( 'open', __( 'Conditions to display the text sharebar', 'wpsr' ), __( 'Choose the below options to select the pages which will display the text sharebar.', 'wpsr' ), '4' );
137
- WPSR_Location_Rules::display_rules( "loc_rules", $values['loc_rules'] );
138
- WPSR_Admin::box_wrap( 'close' );
139
-
140
- echo '</div>';
141
-
142
- echo '<script>';
143
- echo 'var sb_sites = ' . json_encode( $sb_sites ) . ';';
144
- echo '</script>';
145
-
146
- }
147
-
148
-
149
- function page(){
150
-
151
- WPSR_Admin::settings_form( 'text_sharebar' );
152
-
153
- }
154
-
155
- function validation( $input ){
156
- return $input;
157
- }
158
-
159
- }
160
-
161
- new wpsr_admin_text_sharebar();
162
-
163
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/tools.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( ! defined( 'ABSPATH' ) ) exit;
4
+
5
+ class WPSR_Admin_Tools{
6
+
7
+ public static function init(){
8
+
9
+ // Add TinyMCE button
10
+ add_action( 'admin_init', array( __class__, 'register_mce' ) );
11
+
12
+ }
13
+
14
+ public static function register_mce(){
15
+
16
+ add_filter( 'mce_buttons', array( __class__, 'register_mce_button' ) );
17
+
18
+ add_filter( 'mce_external_plugins', array( __class__, 'register_mce_js' ) );
19
+
20
+ }
21
+
22
+ public static function register_mce_button( $buttons ){
23
+
24
+ array_push( $buttons, 'separator', 'wp-socializer' );
25
+ return $buttons;
26
+
27
+ }
28
+
29
+ public static function register_mce_js( $plugins ){
30
+
31
+ $plugins[ 'wp-socializer' ] = WPSR_ADMIN_URL . '/js/tinymce.js';
32
+ return $plugins;
33
+
34
+ }
35
+
36
+ }
37
+
38
+ WPSR_Admin_Tools::init();
39
+
40
+ ?>
admin/widgets.php CHANGED
@@ -1,78 +1,127 @@
1
  <?php
2
  /**
3
- * Widgets admin page
4
  *
5
  **/
6
-
7
- class wpsr_admin_widgets{
 
 
8
 
9
- function __construct(){
 
 
 
 
 
 
 
 
 
10
 
11
- add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
 
 
 
 
 
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  }
14
-
15
- function register( $pages ){
16
-
17
- $pages[ 'widgets' ] = array(
18
- 'name' => __( 'Sidebar widgets', 'wpsr' ),
19
- 'page_callback' => array( $this, 'page' ),
20
- 'banner' => WPSR_ADMIN_URL . '/images/banners/widgets.svg',
21
- 'link' => admin_url('widgets.php#wp-socializer'),
22
- 'feature' => true,
23
- 'form' => array(
24
- 'id' => 'widgets',
25
- 'name' => 'widgets',
26
- 'callback' => ''
27
- )
28
- );
29
 
30
- return $pages;
 
 
 
 
 
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  }
33
-
34
- function page(){
35
-
36
- $widgets = WPSR_Widgets::list_all();
37
- $link = 'widgets.php#wp-socializer';
38
 
39
- wp_safe_redirect( admin_url('widgets.php#wp-socializer') );
40
-
41
- echo '<div class="widgets_page">';
42
-
43
- echo '<h1>' . __( 'Social media widgets', 'wpsr' ) .'</h1>';
44
- echo '<p>' . __( 'With WP Socializer plugin native social media widgets can also be inserted. WP Socializer supports the below list of widgets and they can be inserted in the WordPress Widgets page.', 'wpsr' ) . '</p>';
45
- echo '<p><a href="' . $link . '" class="button button-primary top_btn">' . __( 'Open Widgets page', 'wpsr' ) . '</a></p>';
46
 
47
- $widget_button = '<a href="' . $link . '" target="_blank" class="button button-primary">' . __( 'Insert widget', 'wpsr' ) . '</a>';
48
- echo '<h2>' . __( 'Available widgets', 'wpsr' ) . '</h2>';
49
- echo '<div class="widget_list clearfix">';
50
- foreach( $widgets as $id => $prop ){
51
- echo '<div class="widget_info">';
52
- echo '<h3>' . $prop[ 'name' ] . '</h3>';
53
- if( isset( $prop[ 'banner' ] ) ){
54
- echo '<div class="widget_image"><img src="' . $prop[ 'banner' ] . '" /></div>';
55
- }
56
- if( isset( $prop[ 'description' ] ) ){
57
- echo '<p>' . $prop[ 'description' ] . '</p>';
58
- }
59
- echo $widget_button;
60
- echo '</div>';
61
- }
62
- echo '</div>';
63
 
64
- echo '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
- WPSR_Admin::admin_footer();
 
 
 
 
 
67
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
69
-
70
- function validation( $input ){
71
- return $input;
 
 
 
 
72
  }
73
-
74
- }
75
 
76
- new wpsr_admin_widgets();
77
 
78
  ?>
1
  <?php
2
  /**
3
+ * Widgets admin page helpers
4
  *
5
  **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Widget_Form_Fields{
10
 
11
+ function __construct( $widget_obj, $instance ){
12
+ $this->obj = $widget_obj;
13
+ $this->instance = $instance;
14
+ }
15
+
16
+ function heading( $text ){
17
+ echo '<h3>' . $text . '</h3>';
18
+ }
19
+
20
+ function text( $id, $name, $opts = array() ){
21
 
22
+ $opts = WPSR_Lists::set_defaults( $opts, array(
23
+ 'class' => 'widefat',
24
+ 'helper' => '',
25
+ 'placeholder' => '',
26
+ 'custom' => ''
27
+ ));
28
 
29
+ $class = ( $opts[ 'class' ] == 'widefat' ) ? 'class="full_width"' : '';
30
+
31
+ echo '<p ' . $class . '>';
32
+ echo '<label for="' . esc_attr( $this->obj->get_field_id( $id ) ) . '">' . $name . '</label>';
33
+ echo WPSR_Form::field_html( 'text', array(
34
+ 'type' => 'text',
35
+ 'name' => $this->obj->get_field_name( $id ),
36
+ 'id' => $this->obj->get_field_id( $id ),
37
+ 'value' => $this->instance[ $id ],
38
+ 'class' => $opts[ 'class' ],
39
+ 'helper' => $opts[ 'helper' ],
40
+ 'placeholder' => $opts[ 'placeholder' ],
41
+ 'custom' => $opts[ 'custom' ]
42
+ ));
43
+ echo '</p>';
44
  }
45
+
46
+ function select( $id, $name, $list, $opts = array() ){
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
+ $opts = WPSR_Lists::set_defaults( $opts, array(
49
+ 'class' => 'widefat',
50
+ 'helper' => '',
51
+ 'placeholder' => '',
52
+ 'custom' => ''
53
+ ));
54
 
55
+ echo '<p>';
56
+ echo '<label for="' . esc_attr( $this->obj->get_field_id( $id ) ) . '">' . $name . '</label>';
57
+ echo WPSR_Form::field_html( 'select', array(
58
+ 'name' => $this->obj->get_field_name( $id ),
59
+ 'id' => $this->obj->get_field_id( $id ),
60
+ 'value' => $this->instance[ $id ],
61
+ 'list' => $list,
62
+ 'class' => $opts[ 'class' ],
63
+ 'helper' => $opts[ 'helper' ],
64
+ 'placeholder' => $opts[ 'placeholder' ],
65
+ 'custom' => $opts[ 'custom' ]
66
+ ));
67
+ echo '</p>';
68
  }
 
 
 
 
 
69
 
70
+ function number( $id, $name, $opts = array() ){
 
 
 
 
 
 
71
 
72
+ $opts = WPSR_Lists::set_defaults( $opts, array(
73
+ 'class' => 'smallfat',
74
+ 'helper' => '',
75
+ 'placeholder' => '',
76
+ 'custom' => ''
77
+ ));
 
 
 
 
 
 
 
 
 
 
78
 
79
+ echo '<p>';
80
+ echo '<label for="' . esc_attr( $this->obj->get_field_id( $id ) ) . '">' . $name . '</label>';
81
+ echo WPSR_Form::field_html( 'text', array(
82
+ 'name' => $this->obj->get_field_name( $id ),
83
+ 'id' => $this->obj->get_field_id( $id ),
84
+ 'value' => $this->instance[ $id ],
85
+ 'class' => $opts[ 'class' ],
86
+ 'helper' => $opts[ 'helper' ],
87
+ 'placeholder' => $opts[ 'placeholder' ],
88
+ 'type' => 'number',
89
+ 'custom' => $opts[ 'custom' ]
90
+ ));
91
+ echo '</p>';
92
+ }
93
+
94
+ function textarea( $id, $name, $opts = array() ){
95
 
96
+ $opts = WPSR_Lists::set_defaults( $opts, array(
97
+ 'class' => 'widefat',
98
+ 'helper' => '',
99
+ 'placeholder' => '',
100
+ 'custom' => ''
101
+ ));
102
 
103
+ echo '<p>';
104
+ echo '<label for="' . esc_attr( $this->obj->get_field_id( $id ) ) . '">' . $name . '</label>';
105
+ echo WPSR_Form::field_html( 'textarea', array(
106
+ 'name' => $this->obj->get_field_name( $id ),
107
+ 'id' => $this->obj->get_field_id( $id ),
108
+ 'value' => $this->instance[ $id ],
109
+ 'class' => $opts[ 'class' ],
110
+ 'helper' => $opts[ 'helper' ],
111
+ 'placeholder' => $opts[ 'placeholder' ],
112
+ 'custom' => $opts[ 'custom' ]
113
+ ));
114
+ echo '</p>';
115
  }
116
+
117
+ function footer(){
118
+
119
+ echo '<footer>';
120
+ echo '<span class="wpsr_version">WP Socializer v' . WPSR_VERSION . '</span> | <a href="https://wordpress.org/support/plugin/wp-socializer/reviews/?rate=5#new-post" target="_blank">Rate this plugin</a> | <a href="https://www.paypal.me/vaakash/6" target="_blank">Buy me a Coffee</a> | <a href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/?utm_source=wp-socializer&utm_medium=widget&utm_campaign=ufw" target="_blank">Add widgets to sticky popup</a>';
121
+ echo '</footer>';
122
+
123
  }
 
 
124
 
125
+ }
126
 
127
  ?>
core/buttons.php DELETED
@@ -1,326 +0,0 @@
1
- <?php
2
- /**
3
- * Contains core functions for the working of the buttons
4
- *
5
- */
6
-
7
- class WPSR_Buttons{
8
-
9
- public static function init(){
10
-
11
- // Register all services ajax action
12
- add_action( 'wp_ajax_wpsr_service', array( __CLASS__, 'service_action' ) );
13
-
14
- // Register filter to get the button for given ID
15
- add_action( 'wpsr_print_button', array( __CLASS__, 'print_button' ), 10, 2 );
16
-
17
- // Add the common shortcode for the service
18
- add_shortcode( 'wpsr_button', array( __CLASS__, 'add_shortcode' ) );
19
-
20
- // Return empty value for v2.x shortcodes
21
- self::old_shortcodes();
22
-
23
- }
24
-
25
- public static function service_action(){
26
-
27
- $get = self::clean_get();
28
- $services = WPSR_Services::list_all();
29
- $service_id = $get[ 'service_id' ];
30
- $buttons = WPSR_Buttons::list_all();
31
- $do = $get[ 'do' ];
32
-
33
- if( !array_key_exists( $service_id, $services ) )
34
- die( 'Invalid WP Socializer service !' );
35
-
36
- switch( $do ){
37
-
38
- // Create a new button
39
- case 'new':
40
-
41
- // Generate a new button id
42
- $button_id = self::generate_button_id( $service_id );
43
-
44
- $buttons[ $button_id ] = array(
45
- 'service' => $service_id,
46
- 'feature' => $get[ 'feature' ],
47
- 'settings' => array()
48
- );
49
-
50
- update_option( 'wpsr_buttons', $buttons );
51
-
52
- // Create compiled array of details
53
- $temp = $buttons[ $button_id ];
54
- $temp[ 'id' ] = $button_id;
55
- $temp[ 'settings_size' ] = $button_id;
56
- $html = '';
57
-
58
- $service = $services[ $service_id ];
59
- $html .= '<li data-service="' . esc_attr( $service_id ) . '" data-id="' . esc_attr( $button_id ) . '" class="ui_btn">';
60
- $html .= '<span class="btn_icon"><img src="' . esc_attr( $service['icons'] ) . '" /></span>';
61
- $html .= '<span class="btn_name">' . $service['name'] . '</span>';
62
- $html .= '<i class="btn_action btn_delete fa fa-trash-alt" title="' . __( 'Delete button', 'wpsr' ) . '"></i>';
63
- $html .= '<i class="btn_action btn_edit fa fa-cog" title="' . __( 'Settings', 'wpsr') . '"></i>';
64
- $html .= '</li>';
65
- $temp[ 'html' ] = $html;
66
-
67
- header('Content-Type: application/json');
68
- echo json_encode( $temp );
69
-
70
- break;
71
-
72
- // Edit existing button
73
- case 'edit':
74
-
75
- // Get the button ID from request
76
- $button_id = $get[ 'button_id' ];
77
-
78
- // Update Section
79
- if( $_POST && check_admin_referer( 'wpsr_nonce_service_submit' ) ){
80
-
81
- $post = self::clean_post();
82
-
83
- $buttons[ $button_id ] = array(
84
- 'service' => $service_id,
85
- 'feature' => $post[ 'feature' ],
86
- 'settings' => apply_filters( 'wpsr_service_validation_' . $service_id, $post[ 'o' ] )
87
- );
88
-
89
- update_option( 'wpsr_buttons', $buttons );
90
-
91
- }
92
-
93
- // View Section
94
- if( !empty( $button_id ) && array_key_exists( $button_id, $buttons ) ){
95
-
96
- $button = array(
97
- 'id' => $button_id,
98
- 'values' => $buttons[ $button_id ][ 'settings' ],
99
- 'feature' => $buttons[ $button_id ][ 'feature' ]
100
- );
101
-
102
- }else{
103
-
104
- die( 'Invalid button ID !');
105
-
106
- }
107
-
108
- // Display the service settings HTML
109
- self::settings_html( $service_id, $button );
110
-
111
- break;
112
-
113
- // Delete button
114
- case 'delete':
115
-
116
- // Get the button ID from request
117
- $button_id = $get[ 'button_id' ];
118
-
119
- if( !empty( $button_id ) && array_key_exists( $button_id, $buttons ) ){
120
-
121
- unset( $buttons [ $button_id ] );
122
-
123
- update_option( 'wpsr_buttons', $buttons );
124
-
125
- // Print the success character
126
- echo '1';
127
-
128
- }else{
129
-
130
- die( 'Invalid button ID !');
131
-
132
- }
133
-
134
- break;
135
-
136
- }
137
-
138
- die(0);
139
-
140
- }
141
-
142
- public static function settings_html( $service_id, $button ){
143
-
144
- if( empty( $button[ 'id' ] ) ){
145
- $save_button = __( 'Create button', 'wpsr' );
146
- }else{
147
- $save_button = __( 'Save button settings', 'wpsr' );
148
- }
149
-
150
- $form_action = get_admin_url() . "admin-ajax.php?action=wpsr_service&do=edit&service_id=$service_id&button_id=$button[id]&feature=$button[feature]";
151
-
152
- // Inject feature to view
153
- $button[ 'values' ][ '_feature' ] = $button[ 'feature' ];
154
-
155
- // Start HTML output for settings
156
- echo '<form method="post" action="' . $form_action . '" class="btn_settings_form">';
157
-
158
- // The title for every button
159
- echo '<input type="text" placeholder="' . __( 'Name the button for identification', 'wpsr' ) . '" title="' . __( 'Click to edit title', 'wpsr' ) . '" name="o[title]" class="tt_name" value="' . ( isset ( $button[ 'values' ][ 'title' ] ) ? esc_attr( $button[ 'values' ][ 'title' ] ) : '' ). '" />';
160
-
161
- WPSR_Services::settings( $service_id, $button[ 'values' ] );
162
-
163
- echo '<input type="hidden" name="button_id" value="' . $button[ 'id' ] . '" />';
164
- echo '<input type="hidden" name="feature" value="' . $button[ 'feature' ] . '" />';
165
-
166
- echo '<div class="btn_settings_footer">
167
- <input class="btn_shortcode" title="' . __( 'Copy shortcode', 'wpsr' ) . '" type="text" value=\'[wpsr_button id="' . $button[ 'id' ] . '"]\' />
168
- <span class="btn_settings_status">' . __( 'Button settings saved !', 'wpsr' ) . '</span>
169
- <input type="submit" name="submit" value="' . $save_button .'" class="button button-primary btn_settings_save" />
170
- </div>';
171
-
172
- wp_nonce_field( 'wpsr_nonce_service_submit' );
173
-
174
- echo '</form>';
175
- }
176
-
177
- public static function get_button( $id = '', $page_info = array() ){
178
-
179
- if( empty( $id ) )
180
- return '';
181
-
182
- $services = WPSR_Services::list_all();
183
- $buttons = WPSR_Buttons::list_all();
184
-
185
- if( !array_key_exists( $id, $buttons ) ){
186
- return '';
187
- }
188
-
189
- $button = $buttons[ $id ];
190
- $service_id = $button[ 'service' ];
191
-
192
- if( !array_key_exists( $service_id, $services ) ){
193
- return '';
194
- }
195
-
196
- $service = $services[ $service_id ];
197
-
198
- // Inject feature name for processing
199
- $button[ 'settings' ][ '_feature' ] = $button[ 'feature' ];
200
-
201
- // Get the page info
202
- $page_info = empty( $page_info ) ? WPSR_Metadata::metadata() : $page_info;
203
-
204
- // Call the service output function
205
- $out = WPSR_Services::output( $service_id, $button[ 'settings' ], $page_info );
206
-
207
- // Apply filters on the output includes and html
208
- $out = apply_filters( 'wpsr_mod_service_output', $out );
209
-
210
- // Add to active services list
211
- WPSR_Services::add_active_service( $service_id );
212
-
213
- // Add to includes as active
214
- WPSR_Includes::add_active_includes( $out[ 'includes' ] );
215
-
216
- return $out[ 'html' ];
217
-
218
- }
219
-
220
- public static function print_button( $id, $page_info = array() ){
221
-
222
- echo self::get_button( $id, $page_info );
223
-
224
- }
225
-
226
- public static function add_shortcode( $atts ){
227
-
228
- $att = shortcode_atts( array(
229
- 'id' => ''
230
- ), $atts );
231
-
232
- if ( empty( $att[ 'id' ] ) ){
233
- return '';
234
- }
235
-
236
- return self::get_button( $att[ 'id' ], '' );
237
- }
238
-
239
- public static function list_all(){
240
-
241
- $buttons = get_option( 'wpsr_buttons', array() );
242
-
243
- if( !empty( self::$temp_buttons ) ){
244
- $buttons = self::get_temp_buttons();
245
- }
246
-
247
- return apply_filters( 'wpsr_mod_buttons_list', $buttons );
248
- }
249
-
250
- public static function generate_button_id( $service_id ){
251
-
252
- $digits = 4;
253
- $randId = rand( pow( 10, $digits-1 ), pow( 10, $digits ) - 1 );
254
- return $randId;
255
-
256
- }
257
-
258
- public static function clean_get(){
259
-
260
- foreach( $_GET as $k=>$v ){
261
- $_GET[$k] = sanitize_text_field( $v );
262
- }
263
-
264
- return $_GET;
265
- }
266
-
267
- public static function clean_post(){
268
-
269
- return stripslashes_deep( $_POST );
270
-
271
- }
272
-
273
- public static function old_shortcodes(){
274
-
275
- // Returning empty for the old v2.x shortcodes
276
-
277
- add_shortcode( 'wpsr_socialbts', array( __CLASS__, 'old_buttons' ) );
278
- add_shortcode( 'wpsr_addthis', array( __CLASS__, 'old_buttons' ) );
279
- add_shortcode( 'wpsr_sharethis', array( __CLASS__, 'old_buttons' ));
280
- add_shortcode( 'wpsr_retweet', array( __CLASS__, 'old_buttons' ) );
281
- add_shortcode( 'wpsr_buzz', array( __CLASS__, 'old_buttons' ) );
282
- add_shortcode( 'wpsr_plusone', array( __CLASS__, 'old_buttons' ) );
283
- add_shortcode( 'wpsr_digg', array( __CLASS__, 'old_buttons' ) );
284
- add_shortcode( 'wpsr_facebook', array( __CLASS__, 'old_buttons' ) );
285
- add_shortcode( 'wpsr_stumbleupon', array( __CLASS__, 'old_buttons' ) );
286
- add_shortcode( 'wpsr_reddit', array( __CLASS__, 'old_buttons' ) );
287
- add_shortcode( 'wpsr_linkedin', array( __CLASS__, 'old_buttons' ) );
288
- add_shortcode( 'wpsr_pinterest', array( __CLASS__, 'old_buttons' ) );
289
- add_shortcode( 'wpsr_commentsbt', array( __CLASS__, 'old_buttons' ) );
290
-
291
- }
292
-
293
- public static function old_buttons(){
294
- return '';
295
- }
296
-
297
- public static $temp_buttons = array();
298
-
299
- public static function get_temp_buttons(){
300
-
301
- $btns = self::$temp_buttons;
302
-
303
- if( is_array( $btns ) ){
304
- foreach( $btns as $id => $config ){
305
-
306
- if( !isset( $config[ 'feature' ] ) )
307
- $btns[ $id ][ 'feature' ] = 'temp_feature';
308
-
309
- if( !isset( $config[ 'settings' ] ) )
310
- $btns[ $id ][ 'settings' ] = array();
311
-
312
- if( !isset( $config[ 'service' ] ) )
313
- $btns[ $id ][ 'service' ] = 'temp_service';
314
-
315
- }
316
- }
317
-
318
- return $btns;
319
-
320
- }
321
-
322
- }
323
-
324
- WPSR_Buttons::init();
325
-
326
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/{import_export.php → import-export.php} RENAMED
@@ -4,6 +4,8 @@
4
  *
5
  */
6
 
 
 
7
  class WPSR_Import_Export{
8
 
9
  public static function init(){
@@ -15,14 +17,10 @@ class WPSR_Import_Export{
15
  public static function settings_list(){
16
 
17
  return apply_filters( 'wpsr_mod_settings_list', array(
18
- 'buttons' => 'wpsr_buttons',
19
  'social_icons_settings' => 'wpsr_social_icons_settings',
20
  'floating_sharebar_settings' => 'wpsr_floating_sharebar_settings',
21
- 'button_settings' => 'wpsr_button_settings',
22
- 'sharebar_settings' => 'wpsr_sharebar_settings',
23
  'followbar_settings' => 'wpsr_followbar_settings',
24
  'text_sharebar_settings' => 'wpsr_text_sharebar_settings',
25
- 'mobile_sharebar_settings' => 'wpsr_mobile_sharebar_settings',
26
  'general_settings' => 'wpsr_general_settings'
27
  ));
28
 
4
  *
5
  */
6
 
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
  class WPSR_Import_Export{
10
 
11
  public static function init(){
17
  public static function settings_list(){
18
 
19
  return apply_filters( 'wpsr_mod_settings_list', array(
 
20
  'social_icons_settings' => 'wpsr_social_icons_settings',
21
  'floating_sharebar_settings' => 'wpsr_floating_sharebar_settings',
 
 
22
  'followbar_settings' => 'wpsr_followbar_settings',
23
  'text_sharebar_settings' => 'wpsr_text_sharebar_settings',
 
24
  'general_settings' => 'wpsr_general_settings'
25
  ));
26
 
core/includes.php CHANGED
@@ -4,13 +4,43 @@
4
  *
5
  */
6
 
 
 
7
  class WPSR_Includes{
8
 
9
  private static $all_includes = array();
10
  private static $active_includes = array();
11
 
12
  public static function init(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
 
 
 
 
 
 
14
  // The default includes for template
15
  self::register( array(
16
  'main_css' => array(
@@ -32,34 +62,36 @@ class WPSR_Includes{
32
  'code' => '<script>var wpsr_ajax_url = "' . esc_attr( admin_url( 'admin-ajax.php' ) ) . '";</script>',
33
  'deps' => array(),
34
  'version' => WPSR_VERSION
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  )
36
-
37
  ));
38
 
39
  self::add_active_includes( array( 'main_css', 'main_js', 'ajax_url' ) );
40
-
41
- // Print CSS in header
42
- add_action( 'wp_enqueue_scripts' , array( __CLASS__, 'print_styles' ) );
43
-
44
- // Print scripts in footer
45
- add_action( 'wp_footer', array( __CLASS__, 'print_scripts' ) );
46
-
47
- }
48
-
49
- public static function register( $includes ){
50
-
51
- if( is_array( $includes ) ){
52
- foreach( $includes as $inc_id => $inc_info ){
53
- if( !array_key_exists( $inc_id, self::$all_includes ) ){
54
-
55
- self::$all_includes[ $inc_id ] = $inc_info;
56
-
57
- }
58
- }
59
- }
60
-
61
  }
62
-
63
  public static function do_wp_register(){
64
 
65
  $includes = self::list_all();
@@ -158,7 +190,7 @@ class WPSR_Includes{
158
  echo "\n<!-- WP Socializer - JS - End -->\n";
159
 
160
  $gs = get_option( 'wpsr_general_settings' );
161
- $gs = WPSR_Lists::set_defaults( $gs, WPSR_Lists::defaults( 'gsettings_misc' ) );
162
 
163
  if( trim( $gs[ 'misc_additional_css' ] ) != '' ){
164
  echo "<!-- WP Socializer - Custom CSS rules - Start --><style>" . $gs[ 'misc_additional_css' ] . "</style><!-- WP Socializer - Custom CSS rules - End -->\n";
@@ -235,7 +267,7 @@ class WPSR_Includes{
235
 
236
  public static function skip_include( $id ){
237
 
238
- $gsettings = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Lists::defaults( 'gsettings_misc' ) );
239
  $skip_res_load = $gsettings[ 'skip_res_load' ];
240
 
241
  if( empty( $skip_res_load ) ){
4
  *
5
  */
6
 
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
  class WPSR_Includes{
10
 
11
  private static $all_includes = array();
12
  private static $active_includes = array();
13
 
14
  public static function init(){
15
+
16
+ self::register_defaults();
17
+
18
+ // Print CSS in header
19
+ add_action( 'wp_enqueue_scripts' , array( __CLASS__, 'print_styles' ) );
20
+
21
+ // Print scripts in footer
22
+ add_action( 'wp_footer', array( __CLASS__, 'print_scripts' ) );
23
+
24
+ }
25
+
26
+ public static function register( $includes ){
27
+
28
+ if( is_array( $includes ) ){
29
+ foreach( $includes as $inc_id => $inc_info ){
30
+ if( !array_key_exists( $inc_id, self::$all_includes ) ){
31
+
32
+ self::$all_includes[ $inc_id ] = $inc_info;
33
+
34
+ }
35
+ }
36
+ }
37
 
38
+ }
39
+
40
+ public static function register_defaults(){
41
+
42
+ $gsettings = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
43
+
44
  // The default includes for template
45
  self::register( array(
46
  'main_css' => array(
62
  'code' => '<script>var wpsr_ajax_url = "' . esc_attr( admin_url( 'admin-ajax.php' ) ) . '";</script>',
63
  'deps' => array(),
64
  'version' => WPSR_VERSION
65
+ ),
66
+
67
+ 'fa_icons' => array(
68
+ 'type' => 'css',
69
+ 'link' => WPSR_Lists::get_font_icon()['prop']['link'],
70
+ 'deps' => array(),
71
+ 'version' => WPSR_VERSION
72
+ ),
73
+
74
+ 'facebook_js' => array(
75
+ 'type' => 'js',
76
+ 'code' => '<div id="fb-root"></div>
77
+ <script async defer crossorigin="anonymous" src="https://connect.facebook.net/' . $gsettings[ 'facebook_lang' ] . '/sdk.js#xfbml=1&version=v7.0&appId=' . $gsettings[ 'facebook_app_id' ] . '"></script>',
78
+ 'deps' => array(),
79
+ 'version' => WPSR_VERSION
80
+ ),
81
+
82
+ 'twitter_js' => array(
83
+ 'type' => 'js',
84
+ 'code' => '<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>',
85
+ 'deps' => array(),
86
+ 'version' => WPSR_VERSION
87
  )
88
+
89
  ));
90
 
91
  self::add_active_includes( array( 'main_css', 'main_js', 'ajax_url' ) );
92
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  }
94
+
95
  public static function do_wp_register(){
96
 
97
  $includes = self::list_all();
190
  echo "\n<!-- WP Socializer - JS - End -->\n";
191
 
192
  $gs = get_option( 'wpsr_general_settings' );
193
+ $gs = WPSR_Lists::set_defaults( $gs, WPSR_Options::default_values( 'general_settings' ) );
194
 
195
  if( trim( $gs[ 'misc_additional_css' ] ) != '' ){
196
  echo "<!-- WP Socializer - Custom CSS rules - Start --><style>" . $gs[ 'misc_additional_css' ] . "</style><!-- WP Socializer - Custom CSS rules - End -->\n";
267
 
268
  public static function skip_include( $id ){
269
 
270
+ $gsettings = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
271
  $skip_res_load = $gsettings[ 'skip_res_load' ];
272
 
273
  if( empty( $skip_res_load ) ){
core/lists.php CHANGED
@@ -1,9 +1,11 @@
1
  <?php
2
  /**
3
- * List of social media sites for social icons, sharethis, default values for admin pages and list of external resoruces
4
  *
5
  */
6
 
 
 
7
  class WPSR_Lists{
8
 
9
  public static function init(){
@@ -30,9 +32,7 @@ class WPSR_Lists{
30
 
31
  $res = apply_filters( 'wpsr_mod_ext_res', array(
32
  'font-awesome-adm' => 'https://use.fontawesome.com/releases/v5.12.0/css/all.css',
33
- 'wp-socializer-cl' => 'https://raw.githubusercontent.com/vaakash/vaakash.github.io/master/misc/wp-socializer/changelogs/',
34
- 'jquery' => 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js',
35
- 'help' => 'https://raw.githubusercontent.com/vaakash/aakash-web/master/misc/wp-socializer/help.html'
36
  ));
37
 
38
  if( array_key_exists( $name, $res ) ){
@@ -70,7 +70,7 @@ class WPSR_Lists{
70
 
71
  $font_icons = self::font_icons();
72
 
73
- $gsettings = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Lists::defaults( 'gsettings_misc' ) );
74
 
75
  $sel_font_icon = $gsettings['font_icon'];
76
  $sel_font_icon = ($sel_font_icon == '') ? 'fa4' : $sel_font_icon;
@@ -90,29 +90,8 @@ class WPSR_Lists{
90
 
91
  }
92
 
93
- public static function load_json( $name = 'buttons' ){
94
-
95
- $file = WPSR_ADMIN_URL . '/js/setup/' . $name . '.json';
96
- $response = wp_remote_get( $file );
97
-
98
- if( is_wp_error( $response ) ){
99
- return array();
100
- }else{
101
- if( $response[ 'response' ][ 'code' ] == 200 ){
102
- $data = json_decode( wp_remote_retrieve_body( $response ), true );
103
- return is_array( $data ) ? $data : array();
104
- }else{
105
- return array();
106
- }
107
- }
108
-
109
- }
110
-
111
  public static function social_icons(){
112
 
113
- $g_settings = get_option( 'wpsr_general_settings' );
114
- $g_settings = WPSR_Lists::set_defaults( $g_settings, self::defaults( 'gsettings_socialbuttons' ) );
115
-
116
  $all_icons = apply_filters( 'wpsr_mod_social_icons_list', array(
117
  'addtofavorites' => array(
118
  'name' => 'Add to favorites',
@@ -222,7 +201,7 @@ class WPSR_Lists{
222
  'link' => 'mailto:?to=&subject={title-plain}&body={excerpt-plain}%20-%20{url}',
223
  'link_tsb' => 'mailto:?to=&subject={title}&body={excerpt}%20-%20{url}',
224
  'options' => array(),
225
- 'features' => array( 'for_share', 'for_tsb' ),
226
  'colors' => array( '#000' ),
227
  ),
228
 
@@ -244,7 +223,7 @@ class WPSR_Lists{
244
  'link_tsb' => 'https://www.facebook.com/share.php?u={url}&quote={excerpt}',
245
  'options' => array( 'count' ),
246
  'features' => array( 'for_share', 'for_profile', 'for_tsb' ),
247
- 'colors' => array( '#3e5b98' ),
248
  ),
249
 
250
  'fbmessenger' => array(
@@ -325,7 +304,7 @@ class WPSR_Lists{
325
  'link' => 'https://instagram.com',
326
  'options' => array(),
327
  'features' => array( 'for_profile' ),
328
- 'colors' => array( '#0d3c5f' ),
329
  ),
330
 
331
  'line' => array(
@@ -343,7 +322,7 @@ class WPSR_Lists{
343
  'title' => __('Add this to ', 'wpsr') . 'LinkedIn',
344
  'icon' => array('fa4'=> 'fa fa-linkedin', 'fa5' => 'fab fa-linkedin-in'),
345
  'link' => 'https://www.linkedin.com/sharing/share-offsite/?url={url}',
346
- 'options' => array( 'count' ),
347
  'features' => array( 'for_share', 'for_profile', 'for_tsb' ),
348
  'colors' => array( '#0274B3' ),
349
  ),
@@ -567,7 +546,7 @@ class WPSR_Lists{
567
  'link_tsb' => 'https://twitter.com/intent/tweet?text={excerpt}%20-%20{url}%20{twitter-username}',
568
  'options' => array(),
569
  'features' => array( 'for_share', 'for_profile', 'for_tsb' ),
570
- 'colors' => array( '#4da7de' ),
571
  ),
572
 
573
  'vimeo' => array(
@@ -650,7 +629,7 @@ class WPSR_Lists{
650
  'link' => 'https://youtube.com/',
651
  'options' => array(),
652
  'features' => array( 'for_profile' ),
653
- 'colors' => array( '#cc181e' ),
654
  ),
655
 
656
  ));
@@ -666,20 +645,8 @@ class WPSR_Lists{
666
 
667
  }
668
 
669
- public static function sharethis(){
670
-
671
- return apply_filters( 'wpsr_mod_sharethis_list', array() );
672
-
673
- }
674
-
675
  public static function lang_codes( $for = '' ){
676
 
677
- if( $for == 'google_plus' ){
678
- return apply_filters( 'wpsr_mod_googleplus_lang', array(
679
- 'af' => 'Afrikaans', 'am' => 'Amharic', 'ar' => 'Arabic', 'eu' => 'Basque', 'bn' => 'Bengali', 'bg' => 'Bulgarian', 'ca' => 'Catalan', 'zh-HK' => 'Chinese (Hong Kong)', 'zh-CN' => 'Chinese (Simplified)', 'zh-TW' => 'Chinese (Traditional)', 'hr' => 'Croatian', 'cs' => 'Czech', 'da' => 'Danish', 'nl' => 'Dutch', 'en-GB' => 'English (UK)', 'en-US' => 'English (US)', 'et' => 'Estonian', 'fil' => 'Filipino', 'fi' => 'Finnish', 'fr' => 'French', 'fr-CA' => 'French (Canadian)', '' => '', 'gl' => 'Galician', 'de' => 'German', 'el' => 'Greek', 'gu' => 'Gujarati', 'iw' => 'Hebrew', 'hi' => 'Hindi', 'hu' => 'Hungarian', 'is' => 'Icelandic', 'id' => 'Indonesian', 'it' => 'Italian', 'ja' => 'Japanese', 'kn' => 'Kannada', 'ko' => 'Korean', 'lv' => 'Latvian', 'lt' => 'Lithuanian', 'ms' => 'Malay', 'ml' => 'Malayalam', 'mr' => 'Marathi', 'no' => 'Norwegian', 'fa' => 'Persian', 'pl' => 'Polish', '' => '', 'pt-BR' => 'Portuguese (Brazil)', 'pt-PT' => 'Portuguese (Portugal)', 'ro' => 'Romanian', 'ru' => 'Russian', 'sr' => 'Serbian', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'es' => 'Spanish', 'es-419' => 'Spanish (Latin America)', 'sw' => 'Swahili', 'sv' => 'Swedish', 'ta' => 'Tamil', 'te' => 'Telugu', 'th' => 'Thai', 'tr' => 'Turkish', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'vi' => 'Vietnamese', 'zu' => 'Zulu'
680
- ));
681
- }
682
-
683
  if( $for == 'facebook' ){
684
  return apply_filters( 'wpsr_mod_facebook_lang', array(
685
  'af_ZA' => 'Afrikaans', 'ak_GH' => 'Akan', 'am_ET' => 'Amharic', 'ar_AR' => 'Arabic', 'as_IN' => 'Assamese', 'ay_BO' => 'Aymara', 'az_AZ' => 'Azerbaijani', 'be_BY' => 'Belarusian', 'bg_BG' => 'Bulgarian', 'bn_IN' => 'Bengali', 'bp_IN' => 'Bhojpuri', 'br_FR' => 'Breton', 'bs_BA' => 'Bosnian', 'ca_ES' => 'Catalan', 'cb_IQ' => 'Sorani Kurdish', 'ck_US' => 'Cherokee', 'co_FR' => 'Corsican', 'cs_CZ' => 'Czech', 'cx_PH' => 'Cebuano', 'cy_GB' => 'Welsh', 'da_DK' => 'Danish', 'de_DE' => 'German', 'el_GR' => 'Greek', 'en_GB' => 'English (UK)', 'en_PI' => 'English (Pirate)', 'en_UD' => 'English (Upside Down)', 'en_US' => 'English (US)', 'eo_EO' => 'Esperanto', 'es_ES' => 'Spanish (Spain)', 'es_LA' => 'Spanish', 'es_MX' => 'Spanish (Mexico)', 'et_EE' => 'Estonian', 'eu_ES' => 'Basque', 'fa_IR' => 'Persian', 'fb_LT' => 'Leet Speak', 'ff_NG' => 'Fula', 'fi_FI' => 'Finnish', 'fo_FO' => 'Faroese', 'fr_CA' => 'French (Canada)', 'fr_FR' => 'French (France)', 'fy_NL' => 'Frisian', 'ga_IE' => 'Irish', 'gl_ES' => 'Galician', 'gn_PY' => 'Guarani', 'gu_IN' => 'Gujarati', 'gx_GR' => 'Classical Greek', 'ha_NG' => 'Hausa', 'he_IL' => 'Hebrew', 'hi_IN' => 'Hindi', 'hr_HR' => 'Croatian', 'ht_HT' => 'Haitian Creole', 'hu_HU' => 'Hungarian', 'hy_AM' => 'Armenian', 'id_ID' => 'Indonesian', 'ig_NG' => 'Igbo', 'is_IS' => 'Icelandic', 'it_IT' => 'Italian', 'ja_JP' => 'Japanese', 'ja_KS' => 'Japanese (Kansai)', 'jv_ID' => 'Javanese', 'ka_GE' => 'Georgian', 'kk_KZ' => 'Kazakh', 'km_KH' => 'Khmer', 'kn_IN' => 'Kannada', 'ko_KR' => 'Korean', 'ks_IN' => 'Kashmiri', 'ku_TR' => 'Kurdish (Kurmanji)', 'ky_KG' => 'Kyrgyz', 'la_VA' => 'Latin', 'lg_UG' => 'Ganda', 'li_NL' => 'Limburgish', 'ln_CD' => 'Lingala', 'lo_LA' => 'Lao', 'lt_LT' => 'Lithuanian', 'lv_LV' => 'Latvian', 'mg_MG' => 'Malagasy', 'mi_NZ' => 'Māori', 'mk_MK' => 'Macedonian', 'ml_IN' => 'Malayalam', 'mn_MN' => 'Mongolian', 'mr_IN' => 'Marathi', 'ms_MY' => 'Malay', 'mt_MT' => 'Maltese', 'my_MM' => 'Burmese', 'nb_NO' => 'Norwegian (bokmal)', 'nd_ZW' => 'Northern Ndebele', 'ne_NP' => 'Nepali', 'nl_BE' => 'Dutch (België)', 'nl_NL' => 'Dutch', 'nn_NO' => 'Norwegian (nynorsk)', 'nr_ZA' => 'Southern Ndebele', 'ns_ZA' => 'Northern Sotho', 'ny_MW' => 'Chewa', 'or_IN' => 'Oriya', 'pa_IN' => 'Punjabi', 'pl_PL' => 'Polish', 'ps_AF' => 'Pashto', 'pt_BR' => 'Portuguese (Brazil)', 'pt_PT' => 'Portuguese (Portugal)', 'qc_GT' => 'Quiché', 'qu_PE' => 'Quechua', 'qz_MM' => 'Burmese (Zawgyi)', 'rm_CH' => 'Romansh', 'ro_RO' => 'Romanian', 'ru_RU' => 'Russian', 'rw_RW' => 'Kinyarwanda', 'sa_IN' => 'Sanskrit', 'sc_IT' => 'Sardinian', 'se_NO' => 'Northern Sámi', 'si_LK' => 'Sinhala', 'sk_SK' => 'Slovak', 'sl_SI' => 'Slovenian', 'sn_ZW' => 'Shona', 'so_SO' => 'Somali', 'sq_AL' => 'Albanian', 'sr_RS' => 'Serbian', 'ss_SZ' => 'Swazi', 'st_ZA' => 'Southern Sotho', 'sv_SE' => 'Swedish', 'sw_KE' => 'Swahili', 'sy_SY' => 'Syriac', 'sz_PL' => 'Silesian', 'ta_IN' => 'Tamil', 'te_IN' => 'Telugu', 'tg_TJ' => 'Tajik', 'th_TH' => 'Thai', 'tk_TM' => 'Turkmen', 'tl_PH' => 'Filipino', 'tl_ST' => 'Klingon', 'tn_BW' => 'Tswana', 'tr_TR' => 'Turkish', 'ts_ZA' => 'Tsonga', 'tt_RU' => 'Tatar', 'tz_MA' => 'Tamazight', 'uk_UA' => 'Ukrainian', 'ur_PK' => 'Urdu', 'uz_UZ' => 'Uzbek', 've_ZA' => 'Venda', 'vi_VN' => 'Vietnamese', 'wo_SN' => 'Wolof', 'xh_ZA' => 'Xhosa', 'yi_DE' => 'Yiddish', 'yo_NG' => 'Yoruba', 'zh_CN' => 'Simplified Chinese (China)', 'zh_HK' => 'Traditional Chinese (Hong Kong)', 'zh_TW' => 'Traditional Chinese (Taiwan)', 'zu_ZA' => 'Zulu', 'zz_TR' => 'Zazaki'
@@ -694,229 +661,6 @@ class WPSR_Lists{
694
 
695
  }
696
 
697
- public static function defaults( $page ){
698
-
699
- if( $page == 'buttons' ){
700
- return array(
701
- 'ft_status' => 'disable',
702
- 'tmpl' => array()
703
- );
704
- }
705
-
706
- if( $page == 'sharebar' ){
707
- return array(
708
- 'ft_status' => 'disable',
709
- 'buttons' => 'eyIxIjp7InByb3BlcnRpZXMiOnt9LCJidXR0b25zIjpbXX19',
710
- 'type' => 'vertical',
711
- 'vl_position' => 'wleft',
712
- 'hl_position' => 'wbottom',
713
- 'stick_element' => '',
714
- 'theme' => 'simple',
715
- 'vl_movement' => 'move',
716
- 'css_class' => '',
717
- 'offset' => '20px',
718
- 'bg_color' => '#ffffff',
719
- 'border_color' => '#cccccc',
720
- 'init_state' => 'open',
721
- 'vl_mob_mode_pos' => 'left',
722
- 'min_on_width' => '0',
723
- 'loc_rules' => array(
724
- 'type' => 'show_all',
725
- 'rule' => 'W10=',
726
- 'devices' => 'all'
727
- )
728
- );
729
- }
730
-
731
- if( $page == 'followbar' ){
732
- return array(
733
- 'ft_status' => 'disable',
734
- 'template' => 'W10=',
735
- 'shape' => '',
736
- 'size' => '32px',
737
- 'init_state' => 'open',
738
- 'bg_color' => '',
739
- 'icon_color' => '#ffffff',
740
- 'orientation' => 'vertical',
741
- 'position' => 'rm',
742
- 'hover' => 'zoom',
743
- 'pad' => 'pad',
744
- 'title' => '',
745
- 'open_popup' => 'no',
746
- 'min_on_width' => '0',
747
- 'loc_rules' => array(
748
- 'type' => 'show_all',
749
- 'rule' => 'W10=',
750
- 'devices' => 'all'
751
- )
752
- );
753
- }
754
-
755
- if( $page == 'text_sharebar' ){
756
- return array(
757
- 'ft_status' => 'disable',
758
- 'template' => 'W10=',
759
- 'content' => '.entry-content',
760
- 'size' => '32px',
761
- 'bg_color' => '#333',
762
- 'icon_color' => '#fff',
763
- 'text_count' => '20',
764
- 'loc_rules' => array(
765
- 'type' => 'show_selected',
766
- 'rule' => 'W1tbInNpbmdsZSIsImVxdWFsIiwiIl1dLFtbInBhZ2UiLCJlcXVhbCIsIiJdXV0=',
767
- 'devices' => 'desktop_only'
768
- )
769
- );
770
- }
771
-
772
- if( $page == 'mobile_sharebar' ){
773
- return array(
774
- 'ft_status' => 'disable',
775
- 'template' => 'W10=',
776
- 'size' => '48px',
777
- 'bg_color' => '',
778
- 'icon_color' => '#ffffff',
779
- 'hide_on_scroll' => 'yes',
780
- 'pad' => '',
781
- 'loc_rules' => array(
782
- 'type' => 'show_all',
783
- 'rule' => 'W10=',
784
- 'devices' => 'mobile_only'
785
- )
786
- );
787
- }
788
-
789
- if( $page == 'buttons_template' ){
790
- return array(
791
- 'content' => 'eyIxIjp7InByb3BlcnRpZXMiOnt9LCJidXR0b25zIjpbXX19',
792
- 'loc_rules' => array(
793
- 'type' => 'show_all',
794
- 'rule' => 'W10=',
795
- 'devices' => 'all'
796
- ),
797
- 'position' => 'below_posts',
798
- 'in_excerpt' => 'show',
799
- 'min_on_width' => '0'
800
- );
801
- }
802
-
803
- if( $page == 'social_icons' ){
804
- return array(
805
- 'ft_status' => 'enable',
806
- 'tmpl' => array()
807
- );
808
- }
809
-
810
- if( $page == 'social_icons_template' ){
811
- return array(
812
- 'selected_icons' => 'W3siZmFjZWJvb2siOnsiaG92ZXJfdGV4dCI6IiIsInRleHQiOiIiLCJpY29uIjoiIn19LHsidHdpdHRlciI6eyJpY29uIjoiIiwidGV4dCI6IiIsImhvdmVyX3RleHQiOiIifX0seyJsaW5rZWRpbiI6eyJpY29uIjoiIiwidGV4dCI6IiIsImhvdmVyX3RleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiaWNvbiI6IiIsInRleHQiOiIiLCJob3Zlcl90ZXh0IjoiIn19LHsicHJpbnQiOnsiaWNvbiI6IiIsInRleHQiOiIiLCJob3Zlcl90ZXh0IjoiIn19LHsicGRmIjp7Imljb24iOiIiLCJ0ZXh0IjoiIiwiaG92ZXJfdGV4dCI6IiJ9fV0=',
813
- 'layout' => '',
814
- 'icon_size' => '32px',
815
- 'icon_shape' => 'circle',
816
- 'hover_effect' => 'opacity',
817
- 'icon_color' => '#ffffff',
818
- 'icon_bg_color' => '',
819
- 'padding' => 'pad',
820
- 'share_counter' => 'total-individual',
821
- 'sc_style' => 'count-1',
822
- 'sc_total_position' => 'left',
823
- 'more_icons' => '0',
824
- 'center_icons' => '',
825
- 'heading' => '<h3>Share and Enjoy !</h3>',
826
- 'custom_html_above' => '',
827
- 'custom_html_below' => '',
828
- 'loc_rules' => array(
829
- 'type' => 'show_all',
830
- 'rule' => 'W10=',
831
- 'devices' => 'all'
832
- ),
833
- 'position' => 'below_posts',
834
- 'in_excerpt' => 'hide'
835
- );
836
- }
837
-
838
- if( $page == 'floating_sharebar' ){
839
- return array(
840
- 'ft_status' => 'disable',
841
- 'selected_icons' => 'W3siZmFjZWJvb2siOnsiaG92ZXJfdGV4dCI6IiIsImljb24iOiIifX0seyJ0d2l0dGVyIjp7ImhvdmVyX3RleHQiOiIiLCJpY29uIjoiIn19LHsibGlua2VkaW4iOnsiaG92ZXJfdGV4dCI6IiIsImljb24iOiIifX0seyJlbWFpbCI6eyJob3Zlcl90ZXh0IjoiIiwiaWNvbiI6IiJ9fSx7InBkZiI6eyJob3Zlcl90ZXh0IjoiIiwiaWNvbiI6IiJ9fSx7IndoYXRzYXBwIjp7ImhvdmVyX3RleHQiOiIiLCJpY29uIjoiIn19XQ==',
842
- 'icon_size' => '40px',
843
- 'icon_shape' => '',
844
- 'hover_effect' => 'opacity',
845
- 'icon_color' => '#ffffff',
846
- 'icon_bg_color' => '',
847
- 'padding' => '',
848
- 'style' => '',
849
- 'sb_bg_color' => '#1e73be',
850
- 'sb_position' => 'wleft',
851
- 'stick_element' => '.entry',
852
- 'offset' => '10px',
853
- 'movement' => 'move',
854
- 'share_counter' => 'total-individual',
855
- 'sc_style' => 'count-1',
856
- 'sc_total_position' => 'top',
857
- 'sc_total_color' => '#000000',
858
- 'responsive_width' => '600',
859
- 'responsive_action' => 'hide',
860
- 'init_state' => 'open',
861
- 'more_icons' => '0',
862
- 'loc_rules' => array(
863
- 'type' => 'show_all',
864
- 'rule' => 'W10=',
865
- 'devices' => 'desktop_only'
866
- )
867
- );
868
- }
869
-
870
- if( $page == 'gsettings_twitter' ){
871
- return array(
872
- 'twitter_username' => ''
873
- );
874
- }
875
-
876
- if( $page == 'gsettings_facebook' ){
877
- return array(
878
- 'facebook_app_id' => '',
879
- 'facebook_app_secret' => '',
880
- 'facebook_lang' => 'en_US'
881
- );
882
- }
883
-
884
- if( $page == 'gsettings_googleplus' ){
885
- return array(
886
- 'googleplus_lang' => 'en-US'
887
- );
888
- }
889
-
890
- if( $page == 'gsettings_linkedin' ){
891
- return array(
892
- 'linkedin_lang' => 'en_US'
893
- );
894
- }
895
-
896
- if( $page == 'gsettings_sharethis' ){
897
- return array(
898
- 'st_prop_id' => ''
899
- );
900
- }
901
-
902
- if( $page == 'gsettings_socialbuttons' ){
903
- return array(
904
- 'sb_comment_sec' => '#comments'
905
- );
906
- }
907
-
908
- if( $page == 'gsettings_misc' ){
909
- return array(
910
- 'font_icon' => 'fa5',
911
- 'misc_additional_css' => '',
912
- 'skip_res_load' => ''
913
- );
914
- }
915
-
916
- return array();
917
-
918
- }
919
-
920
  public static function public_icons( $icon ){
921
 
922
  $icons = apply_filters( 'wpsr_mod_public_icons', array(
1
  <?php
2
  /**
3
+ * List of social media sites for social icons, default values for admin pages and list of external resources
4
  *
5
  */
6
 
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
  class WPSR_Lists{
10
 
11
  public static function init(){
32
 
33
  $res = apply_filters( 'wpsr_mod_ext_res', array(
34
  'font-awesome-adm' => 'https://use.fontawesome.com/releases/v5.12.0/css/all.css',
35
+ 'wp-socializer-cl' => 'https://raw.githubusercontent.com/vaakash/vaakash.github.io/master/misc/wp-socializer/changelogs/'
 
 
36
  ));
37
 
38
  if( array_key_exists( $name, $res ) ){
70
 
71
  $font_icons = self::font_icons();
72
 
73
+ $gsettings = self::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
74
 
75
  $sel_font_icon = $gsettings['font_icon'];
76
  $sel_font_icon = ($sel_font_icon == '') ? 'fa4' : $sel_font_icon;
90
 
91
  }
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  public static function social_icons(){
94
 
 
 
 
95
  $all_icons = apply_filters( 'wpsr_mod_social_icons_list', array(
96
  'addtofavorites' => array(
97
  'name' => 'Add to favorites',
201
  'link' => 'mailto:?to=&subject={title-plain}&body={excerpt-plain}%20-%20{url}',
202
  'link_tsb' => 'mailto:?to=&subject={title}&body={excerpt}%20-%20{url}',
203
  'options' => array(),
204
+ 'features' => array( 'for_share', 'for_profile', 'for_tsb' ),
205
  'colors' => array( '#000' ),
206
  ),
207
 
223
  'link_tsb' => 'https://www.facebook.com/share.php?u={url}&quote={excerpt}',
224
  'options' => array( 'count' ),
225
  'features' => array( 'for_share', 'for_profile', 'for_tsb' ),
226
+ 'colors' => array( '#1977f3' ),
227
  ),
228
 
229
  'fbmessenger' => array(
304
  'link' => 'https://instagram.com',
305
  'options' => array(),
306
  'features' => array( 'for_profile' ),
307
+ 'colors' => array( '#e23367' ),
308
  ),
309
 
310
  'line' => array(
322
  'title' => __('Add this to ', 'wpsr') . 'LinkedIn',
323
  'icon' => array('fa4'=> 'fa fa-linkedin', 'fa5' => 'fab fa-linkedin-in'),
324
  'link' => 'https://www.linkedin.com/sharing/share-offsite/?url={url}',
325
+ 'options' => array(),
326
  'features' => array( 'for_share', 'for_profile', 'for_tsb' ),
327
  'colors' => array( '#0274B3' ),
328
  ),
546
  'link_tsb' => 'https://twitter.com/intent/tweet?text={excerpt}%20-%20{url}%20{twitter-username}',
547
  'options' => array(),
548
  'features' => array( 'for_share', 'for_profile', 'for_tsb' ),
549
+ 'colors' => array( '#1da1f2' ),
550
  ),
551
 
552
  'vimeo' => array(
629
  'link' => 'https://youtube.com/',
630
  'options' => array(),
631
  'features' => array( 'for_profile' ),
632
+ 'colors' => array( '#ff0000' ),
633
  ),
634
 
635
  ));
645
 
646
  }
647
 
 
 
 
 
 
 
648
  public static function lang_codes( $for = '' ){
649
 
 
 
 
 
 
 
650
  if( $for == 'facebook' ){
651
  return apply_filters( 'wpsr_mod_facebook_lang', array(
652
  'af_ZA' => 'Afrikaans', 'ak_GH' => 'Akan', 'am_ET' => 'Amharic', 'ar_AR' => 'Arabic', 'as_IN' => 'Assamese', 'ay_BO' => 'Aymara', 'az_AZ' => 'Azerbaijani', 'be_BY' => 'Belarusian', 'bg_BG' => 'Bulgarian', 'bn_IN' => 'Bengali', 'bp_IN' => 'Bhojpuri', 'br_FR' => 'Breton', 'bs_BA' => 'Bosnian', 'ca_ES' => 'Catalan', 'cb_IQ' => 'Sorani Kurdish', 'ck_US' => 'Cherokee', 'co_FR' => 'Corsican', 'cs_CZ' => 'Czech', 'cx_PH' => 'Cebuano', 'cy_GB' => 'Welsh', 'da_DK' => 'Danish', 'de_DE' => 'German', 'el_GR' => 'Greek', 'en_GB' => 'English (UK)', 'en_PI' => 'English (Pirate)', 'en_UD' => 'English (Upside Down)', 'en_US' => 'English (US)', 'eo_EO' => 'Esperanto', 'es_ES' => 'Spanish (Spain)', 'es_LA' => 'Spanish', 'es_MX' => 'Spanish (Mexico)', 'et_EE' => 'Estonian', 'eu_ES' => 'Basque', 'fa_IR' => 'Persian', 'fb_LT' => 'Leet Speak', 'ff_NG' => 'Fula', 'fi_FI' => 'Finnish', 'fo_FO' => 'Faroese', 'fr_CA' => 'French (Canada)', 'fr_FR' => 'French (France)', 'fy_NL' => 'Frisian', 'ga_IE' => 'Irish', 'gl_ES' => 'Galician', 'gn_PY' => 'Guarani', 'gu_IN' => 'Gujarati', 'gx_GR' => 'Classical Greek', 'ha_NG' => 'Hausa', 'he_IL' => 'Hebrew', 'hi_IN' => 'Hindi', 'hr_HR' => 'Croatian', 'ht_HT' => 'Haitian Creole', 'hu_HU' => 'Hungarian', 'hy_AM' => 'Armenian', 'id_ID' => 'Indonesian', 'ig_NG' => 'Igbo', 'is_IS' => 'Icelandic', 'it_IT' => 'Italian', 'ja_JP' => 'Japanese', 'ja_KS' => 'Japanese (Kansai)', 'jv_ID' => 'Javanese', 'ka_GE' => 'Georgian', 'kk_KZ' => 'Kazakh', 'km_KH' => 'Khmer', 'kn_IN' => 'Kannada', 'ko_KR' => 'Korean', 'ks_IN' => 'Kashmiri', 'ku_TR' => 'Kurdish (Kurmanji)', 'ky_KG' => 'Kyrgyz', 'la_VA' => 'Latin', 'lg_UG' => 'Ganda', 'li_NL' => 'Limburgish', 'ln_CD' => 'Lingala', 'lo_LA' => 'Lao', 'lt_LT' => 'Lithuanian', 'lv_LV' => 'Latvian', 'mg_MG' => 'Malagasy', 'mi_NZ' => 'Māori', 'mk_MK' => 'Macedonian', 'ml_IN' => 'Malayalam', 'mn_MN' => 'Mongolian', 'mr_IN' => 'Marathi', 'ms_MY' => 'Malay', 'mt_MT' => 'Maltese', 'my_MM' => 'Burmese', 'nb_NO' => 'Norwegian (bokmal)', 'nd_ZW' => 'Northern Ndebele', 'ne_NP' => 'Nepali', 'nl_BE' => 'Dutch (België)', 'nl_NL' => 'Dutch', 'nn_NO' => 'Norwegian (nynorsk)', 'nr_ZA' => 'Southern Ndebele', 'ns_ZA' => 'Northern Sotho', 'ny_MW' => 'Chewa', 'or_IN' => 'Oriya', 'pa_IN' => 'Punjabi', 'pl_PL' => 'Polish', 'ps_AF' => 'Pashto', 'pt_BR' => 'Portuguese (Brazil)', 'pt_PT' => 'Portuguese (Portugal)', 'qc_GT' => 'Quiché', 'qu_PE' => 'Quechua', 'qz_MM' => 'Burmese (Zawgyi)', 'rm_CH' => 'Romansh', 'ro_RO' => 'Romanian', 'ru_RU' => 'Russian', 'rw_RW' => 'Kinyarwanda', 'sa_IN' => 'Sanskrit', 'sc_IT' => 'Sardinian', 'se_NO' => 'Northern Sámi', 'si_LK' => 'Sinhala', 'sk_SK' => 'Slovak', 'sl_SI' => 'Slovenian', 'sn_ZW' => 'Shona', 'so_SO' => 'Somali', 'sq_AL' => 'Albanian', 'sr_RS' => 'Serbian', 'ss_SZ' => 'Swazi', 'st_ZA' => 'Southern Sotho', 'sv_SE' => 'Swedish', 'sw_KE' => 'Swahili', 'sy_SY' => 'Syriac', 'sz_PL' => 'Silesian', 'ta_IN' => 'Tamil', 'te_IN' => 'Telugu', 'tg_TJ' => 'Tajik', 'th_TH' => 'Thai', 'tk_TM' => 'Turkmen', 'tl_PH' => 'Filipino', 'tl_ST' => 'Klingon', 'tn_BW' => 'Tswana', 'tr_TR' => 'Turkish', 'ts_ZA' => 'Tsonga', 'tt_RU' => 'Tatar', 'tz_MA' => 'Tamazight', 'uk_UA' => 'Ukrainian', 'ur_PK' => 'Urdu', 'uz_UZ' => 'Uzbek', 've_ZA' => 'Venda', 'vi_VN' => 'Vietnamese', 'wo_SN' => 'Wolof', 'xh_ZA' => 'Xhosa', 'yi_DE' => 'Yiddish', 'yo_NG' => 'Yoruba', 'zh_CN' => 'Simplified Chinese (China)', 'zh_HK' => 'Traditional Chinese (Hong Kong)', 'zh_TW' => 'Traditional Chinese (Taiwan)', 'zu_ZA' => 'Zulu', 'zz_TR' => 'Zazaki'
661
 
662
  }
663
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
664
  public static function public_icons( $icon ){
665
 
666
  $icons = apply_filters( 'wpsr_mod_public_icons', array(
core/{location_rules.php → location-rules.php} RENAMED
@@ -4,6 +4,8 @@
4
  *
5
  */
6
 
 
 
7
  class WPSR_Location_Rules{
8
 
9
  public static function init(){
@@ -125,18 +127,9 @@ class WPSR_Location_Rules{
125
 
126
  $rule_wrap = WPSR_Lists::set_defaults( $rule_wrap, array(
127
  'type' => 'show_all',
128
- 'rule' => 'W10=',
129
- 'devices' => 'all'
130
  ));
131
 
132
- if( wp_is_mobile() && $rule_wrap[ 'devices' ] == 'desktop_only' ){
133
- return 0;
134
- }
135
-
136
- if( !wp_is_mobile() && $rule_wrap[ 'devices' ] == 'mobile_only' ){
137
- return 0;
138
- }
139
-
140
  $type = $rule_wrap[ 'type' ];
141
  $group = json_decode( base64_decode( $rule_wrap[ 'rule' ] ) );
142
 
@@ -247,7 +240,7 @@ class WPSR_Location_Rules{
247
  echo '<div class="loc_rules_wrap">';
248
 
249
  echo '<div class="loc_rules_type">';
250
- echo WPSR_Admin::field( 'image_select', array(
251
  'name' => $id . '[type]',
252
  'list' => $types,
253
  'value' => $values['type'],
@@ -285,19 +278,6 @@ class WPSR_Location_Rules{
285
  echo '<div class="loc_rules_temp">' . self::rules_template( array( '', '', '' ), 1 ) . '</div>';
286
  echo '</div>';
287
 
288
- echo '<hr/><div class="loc_rules_sec2">';
289
- echo __( 'Show this', 'wpsr' );
290
- echo WPSR_Admin::field( 'image_select', array(
291
- 'name' => $id . '[devices]',
292
- 'value' => $values[ 'devices' ],
293
- 'list' => array(
294
- 'all' => array( __( 'On both desktop and mobile devices', 'wpsr' ), 'desktop-mobile.png', '80px' ),
295
- 'mobile_only' => array( __( 'On mobile devices alone', 'wpsr' ), 'mobile.png', '80px' ),
296
- 'desktop_only' => array( __( 'On desktops alone', 'wpsr' ), 'desktop.png', '80px' )
297
- )
298
- ));
299
- echo '</div>';
300
-
301
  echo '</div>';
302
 
303
  }
4
  *
5
  */
6
 
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
  class WPSR_Location_Rules{
10
 
11
  public static function init(){
127
 
128
  $rule_wrap = WPSR_Lists::set_defaults( $rule_wrap, array(
129
  'type' => 'show_all',
130
+ 'rule' => 'W10='
 
131
  ));
132
 
 
 
 
 
 
 
 
 
133
  $type = $rule_wrap[ 'type' ];
134
  $group = json_decode( base64_decode( $rule_wrap[ 'rule' ] ) );
135
 
240
  echo '<div class="loc_rules_wrap">';
241
 
242
  echo '<div class="loc_rules_type">';
243
+ echo WPSR_Form::field_html( 'image_select', array(
244
  'name' => $id . '[type]',
245
  'list' => $types,
246
  'value' => $values['type'],
278
  echo '<div class="loc_rules_temp">' . self::rules_template( array( '', '', '' ), 1 ) . '</div>';
279
  echo '</div>';
280
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  echo '</div>';
282
 
283
  }
core/metadata.php CHANGED
@@ -4,6 +4,8 @@
4
  *
5
  */
6
 
 
 
7
  class WPSR_Metadata{
8
 
9
  public static $defaults = array();
@@ -30,16 +32,13 @@ class WPSR_Metadata{
30
  public static function metadata(){
31
 
32
  $page_info = self::page_info();
 
33
 
34
- $g_settings = get_option( 'wpsr_general_settings' );
35
- $twitter_config = WPSR_Lists::set_defaults( $g_settings, WPSR_Lists::defaults( 'gsettings_twitter' ) );
36
- $facebook_config = WPSR_Lists::set_defaults( $g_settings, WPSR_Lists::defaults( 'gsettings_facebook' ) );
37
-
38
  $misc_info = array(
39
  'rss_url' => get_bloginfo( 'rss2_url' ),
40
- 'twitter_username' => ( empty( $twitter_config[ 'twitter_username' ] ) ? '' : '@' . $twitter_config[ 'twitter_username' ] ),
41
- 'fb_app_id' => $facebook_config[ 'facebook_app_id' ],
42
- 'fb_app_secret' => $facebook_config[ 'facebook_app_secret' ]
43
  );
44
 
45
  $metadata = array_merge( $page_info, $misc_info );
4
  *
5
  */
6
 
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
  class WPSR_Metadata{
10
 
11
  public static $defaults = array();
32
  public static function metadata(){
33
 
34
  $page_info = self::page_info();
35
+ $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
36
 
 
 
 
 
37
  $misc_info = array(
38
  'rss_url' => get_bloginfo( 'rss2_url' ),
39
+ 'twitter_username' => ( empty( $gs[ 'twitter_username' ] ) ? '' : '@' . $gs[ 'twitter_username' ] ),
40
+ 'fb_app_id' => $gs[ 'facebook_app_id' ],
41
+ 'fb_app_secret' => $gs[ 'facebook_app_secret' ]
42
  );
43
 
44
  $metadata = array_merge( $page_info, $misc_info );
core/options.php ADDED
@@ -0,0 +1,579 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Options of all the features
4
+ *
5
+ */
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Options{
10
+
11
+ public static function common_options( $field ){
12
+
13
+ $fields = array(
14
+ 'icon_size' => array(
15
+ '32px' => array( '32px', 'size.svg', '32px' ),
16
+ '40px' => array( '40px', 'size.svg', '40px' ),
17
+ '48px' => array( '48px', 'size.svg', '48px' ),
18
+ '64px' => array( '64px', 'size.svg', '64px' )
19
+ ),
20
+ 'icon_shape' => array(
21
+ '' => array( 'Square', 'shape-square.svg', '32px' ),
22
+ 'circle' => array( 'Circle', 'shape-circle.svg', '32px' ),
23
+ 'squircle' => array( 'Squircle', 'shape-squircle.svg', '32px' ),
24
+ 'squircle-2' => array( 'Squircle 2', 'shape-squircle-2.svg', '32px' ),
25
+ 'drop' => array( 'Drop', 'shape-drop.svg', '32px' ),
26
+ 'diamond' => array( 'Diamond*', 'shape-diamond.svg', '32px' ),
27
+ 'ribbon' => array( 'Ribbon*', 'shape-ribbon.svg', '32px' )
28
+ ),
29
+ 'hover_effect' => array(
30
+ '' => __( 'None', 'wpsr' ),
31
+ 'opacity' => 'Fade',
32
+ 'rotate' => 'Rotate',
33
+ 'zoom' => 'Zoom',
34
+ 'shrink' => 'Shrink',
35
+ 'float' => 'Float',
36
+ 'sink' => 'Sink'
37
+ ),
38
+ 'share_counter' => array(
39
+ '' => 'No share count',
40
+ 'individual' => 'Individual count',
41
+ 'total' => 'Total count only',
42
+ 'total-individual' => 'Both individual and total counts',
43
+ ),
44
+ 'sc_style' => array(
45
+ 'count-1' => array( 'Style 1', 'counter-1.svg', '60px' ),
46
+ 'count-2' => array( 'Style 2', 'counter-2.svg', '70px' ),
47
+ 'count-3' => array( 'Style 3', 'counter-3.svg', '70px' ),
48
+ ),
49
+ 'more_icons' => array(
50
+ '0' => 'No grouping',
51
+ '1' => '1',
52
+ '2' => '2',
53
+ '3' => '3',
54
+ '4' => '4',
55
+ '5' => '5',
56
+ '6' => '6',
57
+ '7' => '7',
58
+ '8' => '8',
59
+ '9' => '9',
60
+ '10' => '10',
61
+ )
62
+ );
63
+
64
+ return $fields[ $field ];
65
+
66
+ }
67
+
68
+ public static function filter_options( $feature, $prop ){
69
+
70
+ $fields = call_user_func( array( __class__, $feature ) );
71
+ $output = array();
72
+
73
+ foreach( $fields as $key => $val ){
74
+ $filter_val = array_key_exists( $prop, $val ) ? $val[ $prop ] : '';
75
+ $output[ $key ] = $filter_val;
76
+ }
77
+
78
+ return $output;
79
+
80
+ }
81
+
82
+ public static function default_values( $feature ){
83
+ return self::filter_options( $feature, 'default' );
84
+ }
85
+
86
+ public static function options( $feature ){
87
+ return self::filter_options( $feature, 'options' );
88
+ }
89
+
90
+ public static function share_icons(){
91
+
92
+ return array(
93
+ 'selected_icons' => array(
94
+ 'default' => 'W3siZmFjZWJvb2siOnsiaG92ZXJfdGV4dCI6IiIsInRleHQiOiIiLCJpY29uIjoiIn19LHsidHdpdHRlciI6eyJpY29uIjoiIiwidGV4dCI6IiIsImhvdmVyX3RleHQiOiIifX0seyJsaW5rZWRpbiI6eyJpY29uIjoiIiwidGV4dCI6IiIsImhvdmVyX3RleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiaWNvbiI6IiIsInRleHQiOiIiLCJob3Zlcl90ZXh0IjoiIn19LHsicHJpbnQiOnsiaWNvbiI6IiIsInRleHQiOiIiLCJob3Zlcl90ZXh0IjoiIn19LHsicGRmIjp7Imljb24iOiIiLCJ0ZXh0IjoiIiwiaG92ZXJfdGV4dCI6IiJ9fV0=',
95
+ 'options' => false,
96
+ 'description' => __( 'The social media icons selected for sharing', 'wpsr' )
97
+ ),
98
+ 'layout' => array(
99
+ 'default' => '',
100
+ 'options' => array(
101
+ '' => array( 'Normal', 'layout-horizontal.svg', '64px' ),
102
+ 'fluid' => array( 'Full width', 'layout-fluid.svg', '64px' ),
103
+ ),
104
+ 'description' => __( 'The layout of the social icons. It decides whether the icons should be of normal width or full width. Select fluid for full width.', 'wpsr' )
105
+ ),
106
+ 'icon_size' => array(
107
+ 'default' => '32px',
108
+ 'options' => self::common_options( 'icon_size' ),
109
+ 'description' => __( 'The size of the icons.', 'wpsr' )
110
+ ),
111
+ 'icon_shape' => array(
112
+ 'default' => 'circle',
113
+ 'options' => self::common_options( 'icon_shape' ),
114
+ 'description' => __( 'The shape of the icons.', 'wpsr' )
115
+ ),
116
+ 'hover_effect' => array(
117
+ 'default' => 'opacity',
118
+ 'options' => self::common_options( 'hover_effect' ),
119
+ 'description' => __( 'The behavior of the icons when mouse is hovered over them.', 'wpsr' )
120
+ ),
121
+ 'icon_color' => array(
122
+ 'default' => '#ffffff',
123
+ 'options' => false,
124
+ 'description' => __( 'The color of the icons.', 'wpsr' )
125
+ ),
126
+ 'icon_bg_color' => array(
127
+ 'default' => '',
128
+ 'options' => false,
129
+ 'description' => __( 'The background color of the icons. Leave empty to take the social media site\'s own color.', 'wpsr' )
130
+ ),
131
+ 'padding' => array(
132
+ 'default' => 'pad',
133
+ 'options' => array(
134
+ '' => 'No',
135
+ 'pad' => 'Yes'
136
+ ),
137
+ 'description' => __( 'Decides whether to add a space between the icons.', 'wpsr' )
138
+ ),
139
+ 'share_counter' => array(
140
+ 'default' => 'total-individual',
141
+ 'options' => self::common_options( 'share_counter' ),
142
+ 'description' => __( 'The type of share counters to display in the share icons bar.', 'wpsr' )
143
+ ),
144
+ 'sc_style' => array(
145
+ 'default' => 'count-1',
146
+ 'options' => self::common_options( 'sc_style' ),
147
+ 'description' => __( 'The design style of the share count numbers and how they are displayed.', 'wpsr' )
148
+ ),
149
+ 'sc_total_position' => array(
150
+ 'default' => 'left',
151
+ 'options' => array(
152
+ 'left' => 'Left to the icons',
153
+ 'right' => 'Right to the icons'
154
+ ),
155
+ 'description' => __( 'The position of the total count. This is effective only when share_counter includes total count.', 'wpsr' )
156
+ ),
157
+ 'more_icons' => array(
158
+ 'default' => '0',
159
+ 'options' => self::common_options( 'more_icons' ),
160
+ 'description' => __( 'The number of icons from the last to group into a single icon.', 'wpsr' )
161
+ ),
162
+ 'center_icons' => array(
163
+ 'default' => '',
164
+ 'options' => array(
165
+ '' => 'No',
166
+ 'yes' => 'Yes'
167
+ ),
168
+ 'description' => __( 'Centers the icon in the content.', 'wpsr' )
169
+ ),
170
+ 'heading' => array(
171
+ 'default' => '<h3>Share and Enjoy !</h3>',
172
+ 'options' => false,
173
+ 'description' => __( 'The heading to display above the icons. HTML is allowed.', 'wpsr' )
174
+ ),
175
+ 'custom_html_above' => array(
176
+ 'default' => '',
177
+ 'options' => false
178
+ ),
179
+ 'custom_html_below' => array(
180
+ 'default' => '',
181
+ 'options' => false
182
+ ),
183
+
184
+ 'sm_screen_width' => array(
185
+ 'default' => '768',
186
+ 'options' => false,
187
+ 'description' => __( 'The screen width below which the icons will act in mobile/small screen mode. In pixels.', 'wpsr' )
188
+ ),
189
+ 'lg_screen_action' => array(
190
+ 'default' => 'show',
191
+ 'options' => array(
192
+ 'show' => __( 'Show', 'wpsr' ),
193
+ 'hide' => __( 'Hide', 'wpsr' )
194
+ ),
195
+ 'description' => __( 'The behavior of the icons in desktop/large screens.', 'wpsr' )
196
+ ),
197
+ 'sm_screen_action' => array(
198
+ 'default' => 'show',
199
+ 'options' => array(
200
+ 'show' => __( 'Show', 'wpsr' ),
201
+ 'hide' => __( 'Hide', 'wpsr' )
202
+ ),
203
+ 'description' => __( 'The behavior of the icons in mobile/small screens.', 'wpsr' )
204
+ ),
205
+
206
+ 'loc_rules' => array(
207
+ 'default' => array(
208
+ 'type' => 'show_all',
209
+ 'rule' => 'W10='
210
+ ),
211
+ 'options' => false
212
+ ),
213
+
214
+ 'position' => array(
215
+ 'default' => 'below_posts',
216
+ 'options' => array(
217
+ 'above_posts' => __( 'Above posts', 'wpsr' ),
218
+ 'below_posts' => __( 'Below posts', 'wpsr' ),
219
+ 'above_below_posts' => __( 'Both above and below posts', 'wpsr' )
220
+ ),
221
+ 'description' => __( 'The position of the social icons in a post.', 'wpsr' )
222
+ ),
223
+ 'in_excerpt' => array(
224
+ 'default' => 'hide',
225
+ 'options' => array(
226
+ 'show' => __( 'Show in excerpt', 'wpsr' ),
227
+ 'hide' => __( 'Hide in excerpt', 'wpsr' )
228
+ ),
229
+ 'description' => __( 'Decides whether to show the icons in the excerpts.', 'wpsr' )
230
+ )
231
+ );
232
+
233
+ }
234
+
235
+ public static function floating_sharebar(){
236
+
237
+ return array(
238
+ 'ft_status' => array(
239
+ 'default' => 'disable',
240
+ 'options' => array(
241
+ 'enable' => __( 'Enable floating sharebar', 'wpsr' ),
242
+ 'disable' => __( 'Disable floating sharebar', 'wpsr' )
243
+ )
244
+ ),
245
+ 'selected_icons' => array(
246
+ 'default' => 'W3siZmFjZWJvb2siOnsiaG92ZXJfdGV4dCI6IiIsImljb24iOiIifX0seyJ0d2l0dGVyIjp7ImhvdmVyX3RleHQiOiIiLCJpY29uIjoiIn19LHsibGlua2VkaW4iOnsiaG92ZXJfdGV4dCI6IiIsImljb24iOiIifX0seyJlbWFpbCI6eyJob3Zlcl90ZXh0IjoiIiwiaWNvbiI6IiJ9fSx7InBkZiI6eyJob3Zlcl90ZXh0IjoiIiwiaWNvbiI6IiJ9fSx7IndoYXRzYXBwIjp7ImhvdmVyX3RleHQiOiIiLCJpY29uIjoiIn19XQ==',
247
+ 'options' => false
248
+ ),
249
+ 'icon_size' => array(
250
+ 'default' => '40px',
251
+ 'options' => self::common_options( 'icon_size' )
252
+ ),
253
+ 'icon_shape' => array(
254
+ 'default' => '',
255
+ 'options' => self::common_options( 'icon_shape' )
256
+ ),
257
+ 'hover_effect' => array(
258
+ 'default' => 'opacity',
259
+ 'options' => self::common_options( 'hover_effect' )
260
+ ),
261
+ 'icon_color' => array(
262
+ 'default' => '#ffffff',
263
+ 'options' => false
264
+ ),
265
+ 'icon_bg_color' => array(
266
+ 'default' => '',
267
+ 'options' => false
268
+ ),
269
+ 'padding' => array(
270
+ 'default' => '',
271
+ 'options' => array(
272
+ '' => 'No',
273
+ 'pad' => 'Yes'
274
+ )
275
+ ),
276
+ 'style' => array(
277
+ 'default' => '',
278
+ 'options' => array(
279
+ '' => array( 'Simple', 'layout-vertical.svg', '64px' ),
280
+ 'enclosed' => array( 'Enclosed', 'fsb-enclosed.svg', '64px' ),
281
+ )
282
+ ),
283
+ 'sb_bg_color' => array(
284
+ 'default' => '#ffffff',
285
+ 'options' => false
286
+ ),
287
+ 'sb_position' => array(
288
+ 'default' => 'wleft',
289
+ 'options' => array(
290
+ 'wleft' => 'Left of the page',
291
+ 'wright' => 'Right of the page',
292
+ 'scontent' => 'Stick to the content'
293
+ )
294
+ ),
295
+ 'stick_element' => array(
296
+ 'default' => '.entry',
297
+ 'options' => false
298
+ ),
299
+ 'offset' => array(
300
+ 'default' => '10px',
301
+ 'options' => false
302
+ ),
303
+ 'movement' => array(
304
+ 'default' => 'move',
305
+ 'options' => array(
306
+ 'move' => __( 'Sticky, move when page is scrolled', 'wpsr' ),
307
+ 'static' => __( 'Static, no movement', 'wpsr' )
308
+ )
309
+ ),
310
+ 'share_counter' => array(
311
+ 'default' => 'total-individual',
312
+ 'options' => self::common_options( 'share_counter' )
313
+ ),
314
+ 'sc_style' => array(
315
+ 'default' => 'count-1',
316
+ 'options' => self::common_options( 'sc_style' )
317
+ ),
318
+ 'sc_total_position' => array(
319
+ 'default' => 'top',
320
+ 'options' => array(
321
+ 'top' => 'Above the icons',
322
+ 'bottom' => 'Below the icons'
323
+ )
324
+ ),
325
+ 'sc_total_color' => array(
326
+ 'default' => '#000000',
327
+ 'options' => false
328
+ ),
329
+
330
+ 'sm_screen_width' => array(
331
+ 'default' => '768',
332
+ 'options' => false
333
+ ),
334
+ 'lg_screen_action' => array(
335
+ 'default' => 'show',
336
+ 'options' => array(
337
+ 'show' => __( 'Show', 'wpsr' ),
338
+ 'hide' => __( 'Hide', 'wpsr' ),
339
+ 'close' => __( 'Close', 'wpsr' )
340
+ )
341
+ ),
342
+ 'sm_screen_action' => array(
343
+ 'default' => 'bottom',
344
+ 'options' => array(
345
+ 'bottom' => __( 'Show to bottom of the page', 'wpsr' ),
346
+ 'hide' => __( 'Hide', 'wpsr' )
347
+ )
348
+ ),
349
+
350
+ 'more_icons' => array(
351
+ 'default' => '0',
352
+ 'options' => self::common_options( 'more_icons' )
353
+ ),
354
+ 'loc_rules' => array(
355
+ 'default' => array(
356
+ 'type' => 'show_all',
357
+ 'rule' => 'W10='
358
+ ),
359
+ 'options' => false
360
+ )
361
+ );
362
+
363
+ }
364
+
365
+ public static function follow_icons(){
366
+
367
+ return array(
368
+ 'ft_status' => array(
369
+ 'default' => 'disable',
370
+ 'options' => array(
371
+ 'enable' => __( 'Enable follow icons', 'wpsr' ),
372
+ 'disable' => __( 'Disable follow icons', 'wpsr' )
373
+ )
374
+ ),
375
+ 'template' => array(
376
+ 'default' => 'W10=',
377
+ 'options' => false
378
+ ),
379
+ 'shape' => array(
380
+ 'default' => '',
381
+ 'options' => self::common_options( 'icon_shape' ),
382
+ 'description' => __( 'The shape of the icons.', 'wpsr' )
383
+ ),
384
+ 'size' => array(
385
+ 'default' => '32px',
386
+ 'options' => self::common_options( 'icon_size' ),
387
+ 'description' => __( 'The size of the icons.', 'wpsr' )
388
+ ),
389
+ 'bg_color' => array(
390
+ 'default' => '',
391
+ 'options' => false,
392
+ 'description' => __( 'The background color of the icons. Leave empty to take the default social media site\'s brand color', 'wpsr' )
393
+ ),
394
+ 'icon_color' => array(
395
+ 'default' => '#ffffff',
396
+ 'options' => false,
397
+ 'description' => __( 'The color of the icon.', 'wpsr' )
398
+ ),
399
+ 'orientation' => array(
400
+ 'default' => 'vertical',
401
+ 'options' => array(
402
+ 'vertical' => array( 'Vertical', 'layout-vertical.svg', '75px' ),
403
+ 'horizontal' => array( 'Horizontal', 'layout-horizontal.svg', '75px' ),
404
+ ),
405
+ 'description' => __( 'The orientation of the icon bar.', 'wpsr' )
406
+ ),
407
+ 'position' => array(
408
+ 'default' => 'rm',
409
+ 'options' => array(
410
+ 'tl' => array( 'Top left', 'pos-tl.svg', '60px' ),
411
+ 'tm' => array( 'Top middle', 'pos-tm.svg', '60px' ),
412
+ 'tr' => array( 'Top right', 'pos-tr.svg', '60px' ),
413
+ 'rm' => array( 'Right middle', 'pos-rm.svg', '60px' ),
414
+ 'br' => array( 'Bottom right', 'pos-br.svg', '60px' ),
415
+ 'bm' => array( 'Bottom middle', 'pos-bm.svg', '60px' ),
416
+ 'bl' => array( 'Bottom left', 'pos-bl.svg', '60px' ),
417
+ 'lm' => array( 'Left middle', 'pos-lm.svg', '60px' ),
418
+ )
419
+ ),
420
+ 'hover' => array(
421
+ 'default' => 'zoom',
422
+ 'options' => self::common_options( 'hover_effect' ),
423
+ 'description' => __( 'The behavior of the icons when mouse is hovered over them.', 'wpsr' )
424
+ ),
425
+ 'pad' => array(
426
+ 'default' => 'pad',
427
+ 'options' => array(
428
+ '' => __( 'No', 'wpsr' ),
429
+ 'pad' => __( 'Yes', 'wpsr' )
430
+ ),
431
+ 'description' => __( 'Decides whether to add a space between the icons.', 'wpsr' )
432
+ ),
433
+ 'title' => array(
434
+ 'default' => '',
435
+ 'options' => false
436
+ ),
437
+ 'open_popup' => array(
438
+ 'default' => 'no',
439
+ 'options' => array(
440
+ 'no' => 'No',
441
+ '' => 'Yes',
442
+ ),
443
+ 'description' => __( 'Decides whether to open the links in a popup or in a new tab.', 'wpsr' )
444
+ ),
445
+ 'sm_screen_width' => array(
446
+ 'default' => '768',
447
+ 'options' => false,
448
+ 'description' => __( 'The screen width below which the icons will act in mobile/small screen mode. In pixels.', 'wpsr' )
449
+ ),
450
+ 'lg_screen_action' => array(
451
+ 'default' => 'show',
452
+ 'options' => array(
453
+ 'show' => __( 'Show', 'wpsr' ),
454
+ 'hide' => __( 'Hide', 'wpsr' ),
455
+ 'close' => __( 'Close', 'wpsr' )
456
+ ),
457
+ 'description' => __( 'The behavior of the icons in desktop/large screens.', 'wpsr' )
458
+ ),
459
+ 'sm_screen_action' => array(
460
+ 'default' => 'show',
461
+ 'options' => array(
462
+ 'show' => __( 'Show', 'wpsr' ),
463
+ 'hide' => __( 'Hide', 'wpsr' ),
464
+ 'close' => __( 'Close', 'wpsr' )
465
+ ),
466
+ 'description' => __( 'The behavior of the icons in mobile/small screens.', 'wpsr' )
467
+ ),
468
+ 'loc_rules' => array(
469
+ 'default' => array(
470
+ 'type' => 'show_all',
471
+ 'rule' => 'W10='
472
+ ),
473
+ 'options' => false
474
+ )
475
+ );
476
+
477
+ }
478
+
479
+ public static function text_sharebar(){
480
+
481
+ return array(
482
+ 'ft_status' => array(
483
+ 'options' => array(
484
+ 'enable' => __( 'Enable text sharebar', 'wpsr' ),
485
+ 'disable' => __( 'Disable text sharebar', 'wpsr' )
486
+ ),
487
+ 'default' => 'disable'
488
+ ),
489
+ 'template' => array(
490
+ 'options' => false,
491
+ 'default' => 'W10=',
492
+ ),
493
+ 'content' => array(
494
+ 'options' => false,
495
+ 'default' => '.entry-content',
496
+ ),
497
+ 'size' => array(
498
+ 'options' => self::common_options( 'icon_size' ),
499
+ 'default' => '32px',
500
+ ),
501
+ 'bg_color' => array(
502
+ 'options' => false,
503
+ 'default' => '#333',
504
+ ),
505
+ 'icon_color' => array(
506
+ 'options' => false,
507
+ 'default' => '#fff',
508
+ ),
509
+ 'text_count' => array(
510
+ 'options' => false,
511
+ 'default' => '20',
512
+ ),
513
+ 'loc_rules' => array(
514
+ 'options' => false,
515
+ 'default' => array(
516
+ 'type' => 'show_selected',
517
+ 'rule' => 'W1tbInNpbmdsZSIsImVxdWFsIiwiIl1dLFtbInBhZ2UiLCJlcXVhbCIsIiJdXV0='
518
+ )
519
+ )
520
+ );
521
+
522
+ }
523
+
524
+ public static function general_settings(){
525
+
526
+ return array(
527
+
528
+ // Share icons
529
+ 'facebook_app_id' => array(
530
+ 'default' => '',
531
+ 'options' => false
532
+ ),
533
+ 'facebook_app_secret' => array(
534
+ 'default' => '',
535
+ 'options' => false
536
+ ),
537
+ 'facebook_lang' => array(
538
+ 'default' => 'en_US',
539
+ 'options' => false
540
+ ),
541
+ 'twitter_username' => array(
542
+ 'default' => '',
543
+ 'options' => false
544
+ ),
545
+
546
+ // Share counter
547
+ 'counter_expiration' => array(
548
+ 'default' => '43200',
549
+ 'options' => false
550
+ ),
551
+ 'counter_both_protocols' => array(
552
+ 'default' => 'no',
553
+ 'options' => array(
554
+ 'no' => __( 'No', 'wpsr' ),
555
+ 'yes' => __( 'Yes', 'wpsr' )
556
+ )
557
+ ),
558
+
559
+ // Misc settings
560
+ 'font_icon' => array(
561
+ 'default' => 'fa5',
562
+ 'options' => false
563
+ ),
564
+ 'misc_additional_css' => array(
565
+ 'default' => '',
566
+ 'options' => false
567
+ ),
568
+ 'skip_res_load' => array(
569
+ 'default' => '',
570
+ 'options' => false
571
+ )
572
+
573
+ );
574
+
575
+ }
576
+
577
+ }
578
+
579
+ ?>
core/services.php DELETED
@@ -1,185 +0,0 @@
1
- <?php
2
- /**
3
- * Main API class for WP Socializer plugin
4
- *
5
- */
6
-
7
- class WPSR_Services{
8
-
9
- private static $services = array();
10
- private static $active_services = array();
11
-
12
- public static function init(){
13
-
14
- add_action( 'init', array( __CLASS__, 'register' ) );
15
-
16
- }
17
-
18
- public static function register(){
19
-
20
- $init_services = apply_filters( 'wpsr_register_service', array() );
21
-
22
- $defaults = array(
23
- 'name' => '',
24
- 'icons' => '',
25
- 'desc' => '',
26
- 'settings' => array(),
27
- 'hide_in_feature' => array(),
28
- 'callbacks' => array(
29
- 'output' => '',
30
- 'includes' => '',
31
- 'settings' => '',
32
- 'validation' => '',
33
- 'general_settings' => '',
34
- 'general_settings_validation' => '',
35
- 'templates' => ''
36
- )
37
- );
38
-
39
- foreach( $init_services as $id => $config ){
40
-
41
- $config[ 'callbacks' ] = WPSR_Lists::set_defaults( $config[ 'callbacks' ], $defaults[ 'callbacks' ] );
42
- $config = WPSR_Lists::set_defaults( $config, $defaults );
43
-
44
- apply_filters( 'wpsr_mod_service_config', $config );
45
-
46
- self::$services[ $id ] = $config;
47
-
48
- if( $config[ 'callbacks' ][ 'validation' ] != '' ){
49
- add_filter( 'wpsr_service_validation_' . $id, $config[ 'callbacks' ][ 'validation' ], 10, 1 );
50
- }
51
-
52
- if( $config[ 'callbacks' ][ 'general_settings' ] != '' ){
53
- add_action( 'wpsr_form_general_settings', $config[ 'callbacks' ][ 'general_settings' ], 10, 1 );
54
- add_filter( 'wpsr_form_validation_general_settings', $config[ 'callbacks' ][ 'general_settings_validation' ], 10, 1 );
55
- }
56
-
57
- self::register_includes( $id );
58
-
59
- }
60
-
61
- }
62
-
63
- public static function list_all( $remove_callbacks = true ){
64
-
65
- $services_temp = self::$services;
66
-
67
- if( $remove_callbacks ){
68
- foreach( $services_temp as $id => $config ){
69
- unset( $services_temp[ $id ][ 'callbacks' ] );
70
- }
71
- }
72
-
73
- return apply_filters( 'wpsr_mod_services_list', $services_temp );
74
-
75
- }
76
-
77
- public static function list_templates($feature=''){
78
-
79
- $services = self::list_all();
80
- $all_templates = array();
81
-
82
- foreach($services as $id => $config){
83
- $templates = self::templates($id);
84
- foreach($templates as $tid => $tdata){
85
- $supported_features = isset($tdata['features']) ? $tdata['features'] : array();
86
- if(count($supported_features) > 0 ){
87
- if(!in_array($feature, $supported_features) || in_array('!'.$feature, $supported_features)){
88
- continue;
89
- }
90
- }
91
-
92
- $tdata['service'] = $id;
93
- $all_templates[$tid] = $tdata;
94
- }
95
- }
96
-
97
- return $all_templates;
98
-
99
- }
100
-
101
- public static function output( $id, $settings = array(), $page_info = array() ){
102
-
103
- $services = self::list_all( false );
104
-
105
- if( !self::check_callable( $id, 'output' ) ){
106
- return '';
107
- }
108
-
109
- return call_user_func( $services[ $id ][ 'callbacks' ][ 'output' ], $settings, $page_info );
110
-
111
- }
112
-
113
- public static function settings( $id, $values ){
114
-
115
- $services = self::list_all( false );
116
-
117
- if( !self::check_callable( $id, 'settings' ) ){
118
- return '';
119
- }
120
-
121
- return call_user_func( $services[ $id ][ 'callbacks' ][ 'settings' ], $values );
122
-
123
- }
124
-
125
- public static function templates( $id ){
126
-
127
- $services = self::list_all( false );
128
-
129
- if( !self::check_callable( $id, 'templates' ) ){
130
- return array();
131
- }
132
-
133
- return call_user_func( $services[ $id ][ 'callbacks' ][ 'templates' ] );
134
-
135
- }
136
-
137
- public static function register_includes( $id ){
138
-
139
- $services = self::list_all( false );
140
-
141
- if( !self::check_callable( $id, 'includes' ) ){
142
- return '';
143
- }
144
-
145
- $service_includes = call_user_func( $services[ $id ][ 'callbacks' ][ 'includes' ] );
146
-
147
- WPSR_Includes::register( $service_includes );
148
-
149
- }
150
-
151
- public static function check_callable( $id, $callback ){
152
-
153
- $services = self::list_all( false );
154
-
155
- if( array_key_exists( $id, $services ) ){
156
- $service = $services[ $id ];
157
- if( array_key_exists( $callback, $service[ 'callbacks' ] ) && !empty( $service[ 'callbacks' ][ $callback ] ) && is_callable( $service[ 'callbacks' ][ $callback ] ) ){
158
- return 1;
159
- }
160
- }
161
-
162
- return 0;
163
-
164
- }
165
-
166
- public static function add_active_service( $id ){
167
-
168
- $services_active = self::$active_services;
169
-
170
- if( !empty( $id ) && !in_array( $id, self::$active_services ) ){
171
- array_push( self::$active_services, $id );
172
- }
173
-
174
- }
175
-
176
- public static function active_services(){
177
-
178
- return apply_filters( 'wpsr_mod_active_services_list', self::$active_services );
179
-
180
- }
181
- }
182
-
183
- WPSR_Services::init();
184
-
185
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/{share_counter.php → share-counter.php} RENAMED
@@ -4,13 +4,10 @@
4
  *
5
  */
6
 
 
 
7
  class WPSR_Share_Counter{
8
 
9
- public static $default_settings = array(
10
- 'counter_expiration' => 86400,
11
- 'counter_both_protocols' => 'no'
12
- );
13
-
14
  public static function init(){
15
 
16
  add_action( 'wp_ajax_wpsr_share_count', array( __CLASS__, 'ajax_count' ) );
@@ -25,10 +22,6 @@ class WPSR_Share_Counter{
25
  'name' => 'Facebook',
26
  'callback' => array( __CLASS__, 'facebook_count' )
27
  ),
28
- 'linkedin' => array(
29
- 'name' => 'Linked In',
30
- 'callback' => array( __CLASS__, 'linkedin_count' )
31
- ),
32
  'pinterest' => array(
33
  'name' => 'Pinterest',
34
  'callback' => array( __CLASS__, 'pinterest_count' )
@@ -62,7 +55,7 @@ class WPSR_Share_Counter{
62
  public static function service_count( $id, $url ){
63
 
64
  $counter_services = self::counter_services();
65
- $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Share_Counter::$default_settings );
66
 
67
  if( !array_key_exists( $id, $counter_services ) ){
68
  return 0;
@@ -78,6 +71,11 @@ class WPSR_Share_Counter{
78
  if( empty( $link_counts ) || !array_key_exists ( $id, $link_counts ) ){
79
  $count = call_user_func( $callback, $url );
80
 
 
 
 
 
 
81
  if( is_array( $link_counts ) ){
82
  $link_counts[ $id ] = $count;
83
  }else{
@@ -97,10 +95,10 @@ class WPSR_Share_Counter{
97
 
98
  public static function get_count( $id, $url ){
99
 
100
- $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Share_Counter::$default_settings );
101
  $count = 0;
102
 
103
- if( $gs[ 'counter_both_protocols' ] == 'yes' ){
104
 
105
  $url_https = str_replace('http://', 'https://', $url);
106
  $url_http = str_replace('https://', 'http://', $url_https);
@@ -154,7 +152,10 @@ class WPSR_Share_Counter{
154
 
155
  if( $data !== false && isset( $data[ 'url' ] ) && isset( $data[ 'services' ] ) ){
156
 
157
- ob_clean();
 
 
 
158
  $out = self::ajax_request( $data[ 'url' ], $data[ 'services' ] );
159
 
160
  header( 'Access-Control-Allow-Origin: ' . esc_url_raw( site_url() ) );
@@ -186,7 +187,7 @@ class WPSR_Share_Counter{
186
  return $ret;
187
  }*/
188
 
189
- foreach( $services as $sid ){
190
  $count = self::get_count( $sid, $url );
191
  $ret[ $sid ] = $count[ 'full' ];
192
  }
@@ -199,17 +200,12 @@ class WPSR_Share_Counter{
199
 
200
  $services = (array) $services;
201
 
202
- if( self::is_cached( $url, $services ) ){
 
 
 
203
  $count = self::total_count( $url, $services );
204
  return '<span data-wpsrs-cached="true">' . $count[ 'formatted' ] . '</span>';
205
- }else{
206
-
207
- if( is_singular() || is_admin() ){
208
- return '<span data-wpsrs="' . esc_attr( $url ) . '" data-wpsrs-svcs="' . join( ',', $services ) . '">0</span>';
209
- }else{
210
- return '<span data-wpsrs-iloop="true">0</span>';
211
- }
212
-
213
  }
214
 
215
  }
@@ -219,6 +215,7 @@ class WPSR_Share_Counter{
219
  $link_md5 = md5( $url );
220
  $transient_name = 'wpsr_count_' . $link_md5;
221
  $link_counts = get_transient( $transient_name );
 
222
 
223
  if( $link_counts === false ){
224
  return false;
@@ -229,31 +226,67 @@ class WPSR_Share_Counter{
229
  }
230
 
231
  foreach( $services as $sid ){
 
 
 
 
232
  if( !array_key_exists( $sid, $link_counts ) ){
233
  return false;
234
  }
235
  }
236
 
237
  return true;
238
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  }
240
 
241
  public static function facebook_count( $url ){
242
 
243
- $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Lists::defaults( 'gsettings_facebook' ) );
244
  $fb_app_id = $gs[ 'facebook_app_id' ];
245
  $fb_app_secret = $gs[ 'facebook_app_secret' ];
246
- $app_token = '';
247
 
248
  if( !empty( $fb_app_id ) && !empty( $fb_app_secret ) ){
249
- $app_token = $fb_app_id . '|' . $fb_app_secret;
 
 
250
  }
251
 
252
- $api = 'https://graph.facebook.com/?id=' . $url . '&fields=engagement&access_token=' . $app_token;
253
  $data = self::remote_request_json( $api );
254
 
255
  if( $data == false ){
256
- return 0;
257
  }else{
258
  $reaction_count = isset( $data->engagement->reaction_count ) ? intval( $data->engagement->reaction_count ) : 0;
259
  $comment_count = isset( $data->engagement->comment_count ) ? intval( $data->engagement->comment_count ) : 0;
@@ -264,26 +297,9 @@ class WPSR_Share_Counter{
264
 
265
  }
266
 
267
- public static function linkedin_count( $url ){
268
-
269
- $api = 'https://www.linkedin.com/countserv/count/share?format=json&url=' . $url;
270
- $data = self::remote_request_json( $api );
271
-
272
- if( $data == false ){
273
- return 0;
274
- }else{
275
- if( isset( $data->count ) ){
276
- return $data->count;
277
- }else{
278
- return 0;
279
- }
280
- }
281
-
282
- }
283
-
284
  public static function pinterest_count( $url ){
285
 
286
- $api = 'http://api.pinterest.com/v1/urls/count.json?callback=wpsr&url=' . $url;
287
  $response = wp_remote_get( $api );
288
 
289
  if( is_wp_error( $response ) ){
@@ -333,7 +349,27 @@ class WPSR_Share_Counter{
333
  }
334
  return json_decode( trim($jsonp,'();') );
335
  }
336
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
  }
338
 
339
  WPSR_Share_Counter::init();
4
  *
5
  */
6
 
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
  class WPSR_Share_Counter{
10
 
 
 
 
 
 
11
  public static function init(){
12
 
13
  add_action( 'wp_ajax_wpsr_share_count', array( __CLASS__, 'ajax_count' ) );
22
  'name' => 'Facebook',
23
  'callback' => array( __CLASS__, 'facebook_count' )
24
  ),
 
 
 
 
25
  'pinterest' => array(
26
  'name' => 'Pinterest',
27
  'callback' => array( __CLASS__, 'pinterest_count' )
55
  public static function service_count( $id, $url ){
56
 
57
  $counter_services = self::counter_services();
58
+ $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
59
 
60
  if( !array_key_exists( $id, $counter_services ) ){
61
  return 0;
71
  if( empty( $link_counts ) || !array_key_exists ( $id, $link_counts ) ){
72
  $count = call_user_func( $callback, $url );
73
 
74
+ // Some error while getting the count
75
+ if( $count == false ){
76
+ return 0;
77
+ }
78
+
79
  if( is_array( $link_counts ) ){
80
  $link_counts[ $id ] = $count;
81
  }else{
95
 
96
  public static function get_count( $id, $url ){
97
 
98
+ $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
99
  $count = 0;
100
 
101
+ if( $gs[ 'counter_both_protocols' ] == 'yes' ){ //TODO add general settings
102
 
103
  $url_https = str_replace('http://', 'https://', $url);
104
  $url_http = str_replace('https://', 'http://', $url_https);
152
 
153
  if( $data !== false && isset( $data[ 'url' ] ) && isset( $data[ 'services' ] ) ){
154
 
155
+ if(ob_get_length() > 0) {
156
+ ob_clean();
157
+ }
158
+
159
  $out = self::ajax_request( $data[ 'url' ], $data[ 'services' ] );
160
 
161
  header( 'Access-Control-Allow-Origin: ' . esc_url_raw( site_url() ) );
187
  return $ret;
188
  }*/
189
 
190
+ foreach( $services as $sid ){
191
  $count = self::get_count( $sid, $url );
192
  $ret[ $sid ] = $count[ 'full' ];
193
  }
200
 
201
  $services = (array) $services;
202
 
203
+ // Always get share count from ajax in if caching plugin is enabled
204
+ if( ( defined( 'WP_CACHE' ) && WP_CACHE ) || !self::is_cached( $url, $services ) ){
205
+ return '<span data-wpsrs="' . esc_attr( $url ) . '" data-wpsrs-svcs="' . join( ',', $services ) . '">0</span>';
206
+ }else{
207
  $count = self::total_count( $url, $services );
208
  return '<span data-wpsrs-cached="true">' . $count[ 'formatted' ] . '</span>';
 
 
 
 
 
 
 
 
209
  }
210
 
211
  }
215
  $link_md5 = md5( $url );
216
  $transient_name = 'wpsr_count_' . $link_md5;
217
  $link_counts = get_transient( $transient_name );
218
+ $counter_services = self::counter_services();
219
 
220
  if( $link_counts === false ){
221
  return false;
226
  }
227
 
228
  foreach( $services as $sid ){
229
+ if( !array_key_exists( $sid, $counter_services ) ){
230
+ continue;
231
+ }
232
+
233
  if( !array_key_exists( $sid, $link_counts ) ){
234
  return false;
235
  }
236
  }
237
 
238
  return true;
239
+
240
+ }
241
+
242
+ public static function total_count_html( $settings, $page_info ){
243
+
244
+ $default_values = array(
245
+ 'text' => 'Shares',
246
+ 'counter_color' => '#000',
247
+ 'add_services' => array(),
248
+ 'size' => '32px'
249
+ );
250
+
251
+ $settings = WPSR_Lists::set_defaults( $settings, $default_values );
252
+ $html = '';
253
+
254
+ $total_holder = self::placeholder( $page_info[ 'url' ], $settings[ 'add_services' ] );
255
+
256
+ $classes = array( 'wpsr-counter', 'wpsrc-sz-' . $settings[ 'size' ] );
257
+
258
+ $style = '';
259
+ if( $settings[ 'counter_color' ] != '' ){
260
+ $style = 'style="color:' . $settings['counter_color'] . '"';
261
+ }
262
+
263
+ $html .= '<div class="' . implode( ' ', $classes ) . '" ' . $style . '>';
264
+ $html .= '<span class="scount">' . $total_holder . '</span>';
265
+ $html .= '<small class="stext">' . $settings[ 'text' ] . '</small>';
266
+ $html .= '</div>';
267
+
268
+ return $html;
269
+
270
  }
271
 
272
  public static function facebook_count( $url ){
273
 
274
+ $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
275
  $fb_app_id = $gs[ 'facebook_app_id' ];
276
  $fb_app_secret = $gs[ 'facebook_app_secret' ];
277
+ $access_token = '';
278
 
279
  if( !empty( $fb_app_id ) && !empty( $fb_app_secret ) ){
280
+ $access_token = $fb_app_id . '|' . $fb_app_secret;
281
+ }else{
282
+ return false;
283
  }
284
 
285
+ $api = 'https://graph.facebook.com/?id=' . $url . '&fields=engagement&access_token=' . $access_token;
286
  $data = self::remote_request_json( $api );
287
 
288
  if( $data == false ){
289
+ return false;
290
  }else{
291
  $reaction_count = isset( $data->engagement->reaction_count ) ? intval( $data->engagement->reaction_count ) : 0;
292
  $comment_count = isset( $data->engagement->comment_count ) ? intval( $data->engagement->comment_count ) : 0;
297
 
298
  }
299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
  public static function pinterest_count( $url ){
301
 
302
+ $api = 'https://api.pinterest.com/v1/urls/count.json?callback=wpsr&url=' . $url;
303
  $response = wp_remote_get( $api );
304
 
305
  if( is_wp_error( $response ) ){
349
  }
350
  return json_decode( trim($jsonp,'();') );
351
  }
352
+
353
+ public static function admin_note(){
354
+
355
+ $counter_services = self::counter_services();
356
+ $services = array_keys( $counter_services );
357
+ $services_text = implode( ', ', $services );
358
+
359
+ $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
360
+ echo '<div class="note">';
361
+ echo '<ul>';
362
+ echo '<li>' . __( 'Share count is supported only for sites: ', 'wpsr' ) . '<b>' . $services_text . '</b>' . '</li>';
363
+ echo '<li>' . __( 'Share counts are cached for every page. You can review the cache configuration in the settings page if needed.', 'wpsr' ) . '</li>';
364
+ if( empty( $gs[ 'facebook_app_id' ] ) || empty( $gs[ 'facebook_app_secret' ] ) ){
365
+ echo '<li>' . __( '<b>Facebook API details are not set</b>: To display facebook like count, please fill in the facebook API information in the settings page.', 'wpsr' ) . '</li>';
366
+ }
367
+ echo '</ul>';
368
+ echo '<p><a href="' . admin_url( 'admin.php?page=wp_socializer&tab=general_settings' ) . '" target="_blank" class="button button-primary">' . __( 'Open settings', 'wpsr' ) . '</a></p>';
369
+ echo '</div>';
370
+
371
+ }
372
+
373
  }
374
 
375
  WPSR_Share_Counter::init();
core/shortcodes.php ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Shortcodes handler
4
+ *
5
+ **/
6
+
7
+ class WPSR_Shortcodes{
8
+
9
+ public static function init(){
10
+
11
+ add_shortcode( 'wpsr_share_icons', array( __class__, 'share_icons' ) );
12
+
13
+ add_shortcode( 'wpsr_follow_icons', array( __class__, 'follow_icons' ) );
14
+
15
+ add_shortcode( 'wpsr_share_link', array( __class__, 'share_link' ) );
16
+
17
+ }
18
+
19
+ public static function share_icons( $atts ){
20
+
21
+ // If template parameter is set then use the saved configuration
22
+ if( array_key_exists( 'template', $atts ) && !empty( $atts[ 'template' ] ) ){
23
+ $si_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_social_icons_settings' ), array(
24
+ 'ft_status' => 'enable',
25
+ 'tmpl' => array()
26
+ ));
27
+ $si_templates = $si_settings[ 'tmpl' ];
28
+
29
+ if( empty( $si_templates ) ){
30
+ $default_tmpl = WPSR_Options::default_values( 'share_icons' );
31
+ array_push( $si_templates, $default_tmpl );
32
+ }
33
+
34
+ $index = $atts[ 'template' ];
35
+ if( isset( $si_templates[ $index ] ) ) {
36
+ $template = $si_templates[ $index ];
37
+ $template = WPSR_Lists::set_defaults( $template, WPSR_Options::default_values( 'share_icons' ) );
38
+ $out = WPSR_Template_Share_Icons::html( $template );
39
+ return $out[ 'html' ];
40
+ }else{
41
+ return '<!-- Invalid template ID -->';
42
+ }
43
+
44
+ }
45
+
46
+ $default_values = WPSR_Options::default_values( 'share_icons' );
47
+
48
+ // Overwriting feature defaults
49
+ $default_values[ 'heading' ] = '';
50
+ $default_values[ 'icons' ] = 'facebook,twitter,linkedin,pinterest,email';
51
+
52
+ // Merge got attributes with the defaults
53
+ $atts = WPSR_Lists::set_defaults( $atts, $default_values );
54
+
55
+ // Prepare the value as needed by selected_icons
56
+ $icons = explode( ',', $atts[ 'icons' ] );
57
+ $icons_final = array();
58
+ foreach( $icons as $icon ){
59
+ $icon = trim( $icon );
60
+ $icon_prop = array();
61
+ $icon_prop[ $icon ] = array();
62
+ array_push( $icons_final, $icon_prop );
63
+ }
64
+
65
+ $atts[ 'selected_icons' ] = base64_encode( json_encode( $icons_final ) );
66
+
67
+ // Get the page metadata from the atts
68
+ $page_info = array();
69
+ foreach( $atts as $key => $val ){
70
+ if( substr( $key, 0, 5 ) === 'page_' ){
71
+ $meta_id = substr( $key, 5);
72
+ $page_info[ $meta_id ] = $val;
73
+ unset( $atts[ $key ] );
74
+ }
75
+ }
76
+
77
+ $out = WPSR_Template_Share_Icons::html( $atts, $page_info );
78
+ return $out[ 'html' ];
79
+
80
+ }
81
+
82
+ public static function follow_icons( $atts ){
83
+
84
+ // Filter out the social media icons from the atts
85
+ $social_icons = WPSR_Lists::social_icons();
86
+ $social_icon_ids = array_keys( $social_icons );
87
+ $atts_keys = array_keys( $atts );
88
+ $follow_icons = array_intersect( $atts_keys, $social_icon_ids );
89
+
90
+ if( empty( $follow_icons ) ){
91
+ return '<!-- No valid follow icon parameter provided -->';
92
+ }
93
+
94
+ // Overwrite certain default values
95
+ $default_values = WPSR_Options::default_values( 'follow_icons' );
96
+ $default_values['orientation'] = 'horizontal';
97
+
98
+ $atts = WPSR_Lists::set_defaults( $atts, $default_values );
99
+
100
+ $icons_final = array();
101
+ foreach( $follow_icons as $icon ){
102
+ $icon_prop = array();
103
+ $icon_prop[ $icon ] = array(
104
+ 'url' => $atts[ $icon ],
105
+ 'icon' => '',
106
+ 'text' => ''
107
+ );
108
+ array_push( $icons_final, $icon_prop );
109
+ }
110
+
111
+ $atts[ 'template' ] = base64_encode( json_encode( $icons_final ) );
112
+
113
+ return WPSR_Template_Follow_Icons::html( $atts, false );
114
+
115
+ }
116
+
117
+ public static function share_link( $atts, $enclosed_content = null ){
118
+
119
+ $atts = WPSR_Lists::set_defaults( $atts, array(
120
+ 'for' => '',
121
+ 'class' => '',
122
+ 'title' => '',
123
+ 'target' => '_blank'
124
+ ));
125
+
126
+ $social_icons = WPSR_Lists::social_icons();
127
+ $id = $atts[ 'for' ];
128
+
129
+ if( !array_key_exists( $id, $social_icons ) ){
130
+ return $enclosed_content;
131
+ }
132
+
133
+ $props = $social_icons[ $id ];
134
+
135
+ // Get the page metadata from the atts
136
+ $custom_page_info = array();
137
+ foreach( $atts as $key => $val ){
138
+ if( substr( $key, 0, 5 ) === 'page_' ){
139
+ $meta_id = substr( $key, 5);
140
+ $custom_page_info[ $meta_id ] = $val;
141
+ unset( $atts[ $key ] );
142
+ }
143
+ }
144
+
145
+ // Set default page info
146
+ $page_info = WPSR_Metadata::metadata();
147
+ $page_info = WPSR_Lists::set_defaults( $custom_page_info, $page_info );
148
+
149
+ $icon_link = $props[ 'link' ];
150
+ $url = WPSR_Metadata::replace_params( $icon_link, $page_info );
151
+
152
+ $link_attrs = array(
153
+ 'href' => esc_attr( $url ),
154
+ 'target' => esc_attr( $atts[ 'target' ] ),
155
+ 'class' => esc_attr( $atts[ 'class' ] ),
156
+ 'title' => esc_attr( $atts[ 'title' ] ),
157
+ 'rel' => 'nofollow'
158
+ );
159
+
160
+ $link_attr_text = '';
161
+ foreach( $link_attrs as $link_attr_name => $link_attr_val ){
162
+ if( empty( $link_attr_val ) ){
163
+ continue;
164
+ }
165
+ $link_attr_text .= $link_attr_name . '="' . $link_attr_val . '" ';
166
+ }
167
+
168
+ return '<a ' . $link_attr_text . '>' . $enclosed_content . '</a>';
169
+
170
+ }
171
+
172
+ }
173
+
174
+ WPSR_Shortcodes::init();
175
+
176
+ ?>
core/templates.php DELETED
@@ -1,1043 +0,0 @@
1
- <?php
2
- /**
3
- * Templates processor
4
- *
5
- */
6
-
7
- class WPSR_Template_Buttons{
8
-
9
- public static function init(){
10
-
11
- add_action( 'init', array( __CLASS__, 'output' ) );
12
-
13
- add_action( 'wp_ajax_wpsr_preview_template_buttons', array( __CLASS__, 'preview' ) );
14
-
15
- }
16
-
17
- public static function output(){
18
-
19
- $btn_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_button_settings' ), WPSR_Lists::defaults( 'buttons' ) );
20
- $btn_templates = $btn_settings[ 'tmpl' ];
21
-
22
- if($btn_settings[ 'ft_status' ] != 'disable'){
23
- foreach( $btn_templates as $tmpl ){
24
-
25
- $content_obj = new wpsr_template_button_handler( $tmpl, 'content', 'buttons' );
26
- $excerpt_obj = new wpsr_template_button_handler( $tmpl, 'excerpt', 'buttons' );
27
-
28
- add_filter( 'the_content', array( $content_obj, 'print_template' ), 10 );
29
- add_filter( 'the_excerpt', array( $excerpt_obj, 'print_template' ), 10 );
30
-
31
- }
32
- }
33
- }
34
-
35
- public static function html( $template, $page_info = array(), $resp_width = '0' ){
36
-
37
- $decoded = base64_decode( $template );
38
- $rows = json_decode( $decoded );
39
- $html = '';
40
- $row_buttons = array();
41
- $buttons = WPSR_Buttons::list_all();
42
-
43
- if( !is_object( $rows ) || empty( $rows ) )
44
- return array(
45
- 'html' => '',
46
- 'buttons' => ''
47
- );
48
-
49
- $resp_width = ( $resp_width > 0 ) ? ' data-respwidth="' . $resp_width . '" data-respclass="wpsr-mow" ' : '';
50
-
51
- // Apply filters on the template rows
52
- $rows = apply_filters( 'wpsr_mod_buttons_template', $rows );
53
- $row_id = 1;
54
-
55
- foreach( $rows as $row ){
56
- if( count( $row->buttons ) > 0 ){
57
- $html .= '<div class="wp-socializer wpsr-buttons wpsr-row-' . $row_id . '"' . $resp_width . '>';
58
- foreach( $row->buttons as $button ){
59
- $btn_id = key( ( array )$button );
60
- array_push( $row_buttons, $btn_id );
61
-
62
- if( !array_key_exists( $btn_id, $buttons ) ){
63
- continue;
64
- }
65
-
66
- $wrap_tag = 1;
67
- $btn_settings = $buttons[ $btn_id ][ 'settings' ];
68
- $service_id = $buttons[ $btn_id ][ 'service' ];
69
- if ( isset( $btn_settings[ '_wrap_tag' ] ) && $btn_settings[ '_wrap_tag' ] == 0 ){
70
- $wrap_tag = 0;
71
- }
72
-
73
- $classes = apply_filters( 'wpsr_mod_button_classes', array( 'wpsr-btn', 'wpsr-srvc-' . $service_id, 'wpsr-btn-' . $btn_id ) );
74
- $classes = join( ' ', $classes );
75
-
76
- $btn_html = WPSR_Buttons::get_button( $btn_id, $page_info );
77
- $html .= $wrap_tag ? '<div class="' . esc_attr( $classes ) . '">' . $btn_html . '</div>' : $btn_html;
78
- }
79
- $html .= '</div>';
80
- }
81
- $row_id += 1;
82
- }
83
-
84
- $out = array(
85
- 'html' => $html,
86
- 'buttons' => $row_buttons
87
- );
88
-
89
- return apply_filters( 'wpsr_mod_buttons_template_html', $out );
90
-
91
- }
92
-
93
- public static function preview( $template ){
94
-
95
- if( !isset( $_GET[ 'template' ] ) ){
96
- die(0);
97
- }
98
-
99
- $template = wp_kses_post( $_GET[ 'template' ] );
100
- $page_info = array(
101
- 'title' => 'Google',
102
- 'url' => 'https://www.google.com',
103
- 'excerpt' => 'Dummy excerpt for WP Socializer preview',
104
- 'short_url' => 'https://goo.gl/lightsaber',
105
- 'comments_count' => '45',
106
- 'post_id' => 1,
107
- 'post_image' => '',
108
- 'rss_url' => ''
109
- );
110
-
111
- // Generate HTML for the template
112
- $gen_out = self::html( $template, $page_info );
113
-
114
- echo '<!doctype html><html lang="en"><head><meta charset="utf-8"><title>' . __( 'WP Socializer template preview', 'wpsr' ) . '</title>';
115
-
116
- echo '</head><body>' . $gen_out[ 'html' ];
117
-
118
- WPSR_Includes::preview_print_includes();
119
-
120
- echo '</body></html>';
121
-
122
- die(0);
123
-
124
- }
125
-
126
- }
127
-
128
- class WPSR_Template_Sharebar{
129
-
130
- public static function init(){
131
-
132
- add_action( 'wp_footer', array( __CLASS__, 'output' ) );
133
-
134
- add_action( 'wp_ajax_wpsr_preview_template_sharebar', array( __CLASS__, 'preview' ) );
135
-
136
- }
137
-
138
- public static function output(){
139
-
140
- $sb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_sharebar_settings' ), WPSR_Lists::defaults( 'sharebar' ) );
141
- $loc_rules_answer = WPSR_Location_Rules::check_rule( $sb_settings[ 'loc_rules' ] );
142
-
143
- if( $sb_settings[ 'ft_status' ] != 'disable' && $loc_rules_answer ){
144
- $gen_out = self::html( $sb_settings );
145
- echo $gen_out[ 'html' ];
146
- do_action( 'wpsr_do_sharebar_print_template_end' );
147
- }
148
-
149
- }
150
-
151
- public static function html( $opts, $page_info = array() ){
152
-
153
- $html = '';
154
- $buttons = array();
155
- $classes = array();
156
- $styles = array();
157
-
158
- $decoded = base64_decode( $opts[ 'buttons' ] );
159
- $rows = json_decode( $decoded );
160
-
161
- if( !is_object( $rows ) || empty( $rows ) )
162
- return '';
163
-
164
- if( $opts[ 'type' ] == 'horizontal' ){
165
- array_push( $classes, 'wpsr-sb-hl-' . $opts[ 'hl_position' ] );
166
- #array_push( $styles, 'width:' . $opts[ 'hl_width' ] );
167
- array_push( $styles, ( $opts[ 'hl_position' ] == 'wbottom' ? 'bottom' : 'top' ) . ':' . $opts[ 'offset' ] );
168
- }else{
169
- array_push( $classes, 'wpsr-sb-vl-' . $opts[ 'vl_position' ] );
170
- array_push( $classes, 'wpsr-sb-vl-' . $opts[ 'vl_movement' ] );
171
- array_push( $classes, 'wpsr-sb-mobmode-' . $opts[ 'vl_mob_mode_pos' ]);
172
- array_push( $styles, ( $opts[ 'vl_position' ] == 'wleft' ? 'left' : ( $opts[ 'vl_position' ] == 'scontent' ) ? 'margin-left' : 'right' ) . ':' . $opts[ 'offset' ] );
173
- }
174
-
175
- array_push( $classes, 'wpsr-sb-' . ( $opts[ 'type' ] == 'horizontal' ? 'hl' : 'vl' ) );
176
- array_push( $classes, 'wpsr-sb-' . $opts[ 'theme' ] );
177
-
178
- $classes = array_merge( $classes, explode( ',', $opts[ 'css_class' ] ) );
179
-
180
- if( $opts[ 'bg_color' ] != '' )
181
- array_push( $styles, 'background-color:' . $opts[ 'bg_color' ] );
182
-
183
- if( $opts[ 'border_color' ] != '' )
184
- array_push( $styles, 'border-color:' . $opts[ 'border_color' ] );
185
-
186
- if( $opts[ 'init_state' ] == 'close' )
187
- array_push( $classes, 'wpsr-mow' );
188
-
189
- $classes = implode( ' ', $classes );
190
- $styles = implode( ';', $styles );
191
- $min_on_width = ( $opts[ 'min_on_width' ] > 0 ) ? ' data-respwidth="' . $opts[ 'min_on_width' ] . '" data-respclass="wpsr-mow" ' : '';
192
-
193
- // Apply filters
194
- $rows = apply_filters( 'wpsr_mod_sharebar_template', $rows );
195
-
196
- $open_icon = WPSR_Lists::public_icons( 'sb_open' );
197
- $close_icon = WPSR_Lists::public_icons( 'sb_close' );
198
-
199
- foreach( $rows as $row ){
200
- if( count( $row->buttons ) > 0 ){
201
- $html .= '<div class="wp-socializer wpsr-sharebar ' . esc_attr( $classes ) . '" style="' . esc_attr( $styles ) . '" data-stickto="' . esc_attr( $opts[ 'stick_element' ] ) . '"' . $min_on_width . '>';
202
- $html .= '<div class="wpsr-sb-inner">';
203
-
204
- foreach( $row->buttons as $button ){
205
- $btn = key( ( array )$button );
206
- array_push( $buttons, $btn );
207
- $html .= '<span class="wpsr-btn">' . WPSR_Buttons::get_button( $btn, $page_info ) . '</span>';
208
- }
209
- $html .= '</div>';
210
- $html .= '<div class="wpsr-sb-close" title="Open or close sharebar"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
211
- $html .= '</div>';
212
- }
213
- break;
214
- }
215
-
216
- $out = array(
217
- 'html' => $html,
218
- 'buttons' => $buttons
219
- );
220
-
221
- return apply_filters( 'wpsr_mod_sharebar_template_html', $out );
222
-
223
- }
224
-
225
- public static function preview(){
226
-
227
- $g = $_GET;
228
-
229
- $page_info = array(
230
- 'title' => 'Google',
231
- 'url' => 'https://www.google.com',
232
- 'excerpt' => 'Dummy excerpt for WP Socializer preview',
233
- 'short_url' => 'https://goo.gl/lightsaber',
234
- 'comments_count' => '45',
235
- 'post_id' => 1
236
- );
237
- $g[ 'stick_element' ] = '#main_content';
238
-
239
- // Generate HTML for the template
240
- $gen_out = self::html( $g, $page_info );
241
-
242
- echo '<!doctype html><html lang="en"><head><meta charset="utf-8"><title>WP Socializer template preview</title>';
243
- echo '<script src="' . WPSR_Lists::ext_res( 'jquery' ) . '"></script>';
244
- echo '<script src="' . WPSR_ADMIN_URL . 'js/sharebar_preview.js"></script>';
245
- echo '<link href="' . WPSR_ADMIN_URL . 'css/sharebar_preview.css" rel="stylesheet" type="text/css" media="all" />';
246
- echo '<meta name="viewport" content="width=device-width, initial-scale=1" />';
247
-
248
- $dmap = array(
249
- 'vertical' => array(
250
- 'tdec' => __( 'left', 'wpsr' ),
251
- 'tinc' => __( 'right', 'wpsr' ),
252
- ),
253
- 'horizontal' => array(
254
- 'tdec' => __( 'up', 'wpsr' ),
255
- 'tinc' => __( 'down', 'wpsr' )
256
- ),
257
- );
258
-
259
- $change_offset = '';
260
- $utext = array();
261
- if( $g[ 'type' ] == 'horizontal' ){
262
- $change_offset = ( $g[ 'hl_position' ] == 'wbottom' ) ? 'bottom' : 'top';
263
- $utext = $dmap[ 'horizontal' ];
264
- }else{
265
- $change_offset = ( $g[ 'vl_position' ] == 'wleft' ) ? 'left' : ( $g[ 'vl_position' ] == 'scontent' ) ? 'margin-left': 'right';
266
- $utext = $dmap[ 'vertical' ];
267
- }
268
-
269
- echo '</head>';
270
- echo '<body>' . $gen_out[ 'html' ];
271
- echo '
272
- <div id="main_content"></div>
273
- <div class="adjust_bar">
274
- <h3>' . __( 'Preview and Settings', 'wpsr' ) . '</h3>
275
- <h4>' . __( 'Adjust sharebar position from window', 'wpsr' ) . '</h4>
276
- <p>' . sprintf( __( 'Drag the slider below to adjust the sharebar position %s or %s', 'wpsr' ), $utext[ 'tdec' ], $utext[ 'tinc' ] ) . '</p>
277
- <div class="adj_btn_wrap"><input type="range" class="offset_drag" min="-500" max="500" step="1" width="100%" value="' . intval( $g[ 'offset' ] ) . '" data-coffset="' . $change_offset . '"/><input type="text" class="offset_val" value="' . intval( $g[ 'offset' ] ) . 'px" /></div>
278
- <div class="adj_footer"><button class="save_btn">' . __( 'Save and close', 'wpsr' ) . '</button> <button class="close_btn">' . __( 'Close without saving', 'wpsr' ) . '</button></div>
279
- </div>';
280
-
281
- WPSR_Includes::preview_print_includes();
282
-
283
- echo '</body></html>';
284
-
285
- die(0);
286
- }
287
-
288
- }
289
-
290
- class WPSR_Template_Followbar{
291
-
292
- public static function init(){
293
-
294
- add_action( 'wp_footer', array( __CLASS__, 'output' ) );
295
-
296
- }
297
-
298
- public static function output(){
299
-
300
- $fb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_followbar_settings' ), WPSR_Lists::defaults( 'followbar' ) );
301
- $loc_rules_answer = WPSR_Location_Rules::check_rule( $fb_settings[ 'loc_rules' ] );
302
-
303
- if( $fb_settings[ 'ft_status' ] != 'disable' && $loc_rules_answer ){
304
- $gen_html = self::html( $fb_settings );
305
- echo $gen_html;
306
- do_action( 'wpsr_do_followbar_print_template_end' );
307
- }
308
-
309
- }
310
-
311
- public static function html( $opts, $floating = True ){
312
-
313
- $opts = WPSR_Lists::set_defaults( $opts, WPSR_Lists::defaults( 'followbar' ) );
314
- $template = $opts[ 'template' ];
315
- $decoded = base64_decode( $template );
316
- $btns = json_decode( $decoded );
317
- $sb_sites = WPSR_Lists::social_icons();
318
- $html = '';
319
-
320
- if( !is_array( $btns ) || empty( $btns ) ){
321
- return '';
322
- }
323
-
324
- $styles = array();
325
- if ( $opts[ 'bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $opts[ 'bg_color' ] . ';border-color: ' . $opts[ 'bg_color' ] );
326
- if ( $opts[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $opts[ 'icon_color' ] );
327
- $style = join( ';', $styles );
328
-
329
- foreach( $btns as $btn_obj ){
330
-
331
- $btn_obj = apply_filters( 'wpsr_mod_followbar_button', $btn_obj );
332
-
333
- $id = key( (array) $btn_obj );
334
-
335
- if(!array_key_exists($id, $sb_sites)){
336
- continue;
337
- }
338
-
339
- $prop = $sb_sites[ $id ];
340
-
341
- $cicon = '';
342
- if ( $btn_obj->$id->icon != '' ){
343
- $cicon = 'sr-cicon';
344
- $style = '';
345
- }
346
-
347
- $iclasses = array( 'sr-' . $id, $cicon );
348
- $onclick = array_key_exists( 'onclick', $prop ) ? 'onclick="' . esc_attr( $prop[ 'onclick' ] ) . '"' : '';
349
- $title = ( ( $btn_obj->$id->text == '' ) ? $prop[ 'name' ] : urldecode( $btn_obj->$id->text ) );
350
-
351
- $html .= '<span class="' . esc_attr( join( ' ', $iclasses ) ) . '">';
352
- $html .= '<a rel="nofollow" href="' . esc_attr( $btn_obj->$id->url ) . '" target="_blank" title="' . esc_attr( $title ) . '" style="' . esc_attr( $style ) . '" ' . $onclick . '>';
353
-
354
- if( $btn_obj->$id->icon == '' ){
355
- $html .= '<i class="' . esc_attr( $prop[ 'icon' ] ) . '"></i>';
356
- }else{
357
- $html .= '<img src="' . esc_attr( $btn_obj->$id->icon ) . '" alt="' . esc_attr( $prop[ 'name' ] ) . '" />';
358
- }
359
-
360
- $html .= '</a>';
361
-
362
- $html .= '</span>';
363
-
364
- }
365
-
366
- $classes = array( 'socializer', 'sr-followbar', 'sr-' . $opts[ 'size' ] );
367
-
368
- if( $opts[ 'shape' ] != '' ) array_push( $classes, 'sr-' . $opts[ 'shape' ] );
369
- if( $opts[ 'hover' ] != '' ) array_push( $classes, 'sr-' . $opts[ 'hover' ] );
370
- if( $opts[ 'pad' ] != '' ) array_push( $classes, 'sr-' . $opts[ 'pad' ] );
371
- if( $opts[ 'orientation' ] == 'vertical' ) array_push( $classes, 'sr-vertical' );
372
- if( $opts[ 'open_popup' ] == '' ) array_push( $classes, 'sr-popup' );
373
- if( !$floating ) array_push( $classes, 'sr-multiline' );
374
-
375
- $classes = join( ' ', $classes );
376
-
377
- $html = '<div class="' . $classes . '">' . $html . '</div>';
378
-
379
- $open_icon = WPSR_Lists::public_icons( 'fb_open' );
380
- $close_icon = WPSR_Lists::public_icons( 'fb_close' );
381
-
382
- if( $floating ){
383
- $min_on_width = ( $opts[ 'min_on_width' ] > 0 ) ? ' data-respwidth="' . $opts[ 'min_on_width' ] . '" data-respclass="wpsr-mow" ' : '';
384
- $title = ( $opts[ 'title' ] != '' ) ? '<div class="sr-fb-title">' . $opts[ 'title' ] . '</div>' : '';
385
- $close_btn = '<div class="wpsr-fb-close" title="Open or close followbar"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
386
- $orientation = ( $opts[ 'orientation' ] == 'horizontal' ) ? 'sr-fb-hl' : 'sr-fb-vl';
387
- $fb_classes = array( 'wpsr-followbar', 'sr-fb-' . $opts[ 'position' ], $orientation );
388
-
389
- if( $opts[ 'init_state' ] == 'close' )
390
- array_push( $fb_classes, 'wpsr-mow' );
391
-
392
- $html = '<div class="' . esc_attr( join( ' ', $fb_classes ) ) . '"' . $min_on_width . '>' . $title . $html . $close_btn . '</div>';
393
- }
394
-
395
- if( !$floating && isset( $opts[ 'profile_text' ] ) && trim( $opts[ 'profile_text' ] ) != '' ){
396
- $html = '<p>' . $opts[ 'profile_text' ] . '</p>' . $html;
397
- }
398
-
399
- return $html;
400
-
401
- }
402
-
403
- }
404
-
405
- class WPSR_Template_Text_Sharebar{
406
-
407
- public static function init(){
408
-
409
- add_action( 'wp_footer', array( __CLASS__, 'output' ) );
410
-
411
- }
412
-
413
- public static function output(){
414
-
415
- $tsb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_text_sharebar_settings' ), WPSR_Lists::defaults( 'text_sharebar' ) );
416
- $loc_rules_answer = WPSR_Location_Rules::check_rule( $tsb_settings[ 'loc_rules' ] );
417
-
418
- if( $tsb_settings[ 'ft_status' ] != 'disable' && $loc_rules_answer && !wp_is_mobile() ){
419
- $gen_html = self::html( $tsb_settings );
420
- echo $gen_html;
421
- do_action( 'wpsr_do_text_sharebar_print_template_end' );
422
- }
423
-
424
- }
425
-
426
- public static function html( $opts ){
427
-
428
- $opts = WPSR_Lists::set_defaults( $opts, WPSR_Lists::defaults( 'text_sharebar' ) );
429
- $template = $opts[ 'template' ];
430
- $decoded = base64_decode( $template );
431
- $btns = json_decode( $decoded );
432
- $sb_sites = WPSR_Lists::social_icons();
433
- $page_info = WPSR_Metadata::metadata();
434
- $html = '';
435
-
436
- if( !is_array( $btns ) || empty( $btns ) ){
437
- return '';
438
- }
439
-
440
- foreach( $btns as $btn ){
441
- $sb_info = $sb_sites[ $btn ];
442
- $link = array_key_exists( 'link_tsb', $sb_info ) ? $sb_info[ 'link_tsb' ] : $sb_info[ 'link' ];
443
- $onclick = array_key_exists( 'onclick', $sb_info ) ? 'onclick="' . esc_attr( $sb_info[ 'onclick' ] ) . '"' : '';
444
-
445
- $html .= '<li><a href="#" title="' . esc_attr( $sb_info[ 'title' ] ) . '" data-link="' . esc_attr( $link ) . '" style="color: ' . esc_attr( $opts[ 'icon_color' ] ) . '" ' . $onclick . '><i class="' . esc_attr( $sb_info[ 'icon' ] ) . '"></i></a></li>';
446
- }
447
-
448
- $html = '<ul class="wpsr-text-sb wpsr-tsb-' . esc_attr( $opts[ 'size' ] ) . ' wpsr-clearfix" data-content="' . esc_attr( $opts[ 'content' ] ) . '" data-tcount="' . esc_attr( $opts[ 'text_count' ] ) . '" style="background-color: ' . esc_attr( $opts[ 'bg_color' ] ) . '" data-url="' . esc_attr( $page_info[ 'url' ] ) . '" data-title="' . esc_attr( $page_info[ 'title' ] ) . '" data-surl="' . esc_attr( $page_info[ 'short_url' ] ) . '" data-tuname="' . esc_attr( $page_info[ 'twitter_username' ] ) . '">' . $html . '</ul>';
449
-
450
- return $html;
451
-
452
- }
453
-
454
- }
455
-
456
- class WPSR_Template_Mobile_Sharebar{
457
-
458
- public static function init(){
459
-
460
- add_action( 'wp_footer', array( __CLASS__, 'output' ) );
461
-
462
- }
463
-
464
- public static function output(){
465
-
466
- $msb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_mobile_sharebar_settings' ), WPSR_Lists::defaults( 'mobile_sharebar' ) );
467
- $loc_rules_answer = WPSR_Location_Rules::check_rule( $msb_settings[ 'loc_rules' ] );
468
-
469
- if( $msb_settings[ 'ft_status' ] != 'disable' && $loc_rules_answer ){
470
- $gen_html = self::html( $msb_settings );
471
- echo $gen_html;
472
- do_action( 'wpsr_do_mobile_sharebar_print_template_end' );
473
- }
474
-
475
- }
476
-
477
- public static function html( $opts ){
478
-
479
- $opts = WPSR_Lists::set_defaults( $opts, WPSR_Lists::defaults( 'mobile_sharebar' ) );
480
- $template = $opts[ 'template' ];
481
- $decoded = base64_decode( $template );
482
- $btns = json_decode( $decoded );
483
- $sb_sites = WPSR_Lists::social_icons();
484
- $page_info = WPSR_Metadata::metadata();
485
- $is_mobile = wp_is_mobile();
486
- $html = '';
487
-
488
- if( !is_array( $btns ) || empty( $btns ) ){
489
- return '';
490
- }
491
-
492
- $styles = array();
493
- if ( $opts[ 'bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $opts[ 'bg_color' ] );
494
- if ( $opts[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $opts[ 'icon_color' ] );
495
- $style = join( ';', $styles );
496
-
497
- foreach( $btns as $id ){
498
-
499
- if(!array_key_exists($id, $sb_sites)){
500
- continue;
501
- }
502
-
503
- $sb_info = $sb_sites[ $id ];
504
-
505
- $icon_link = $sb_info[ 'link' ];
506
- if( $is_mobile && array_key_exists( 'link_mobile', $sb_info ) ){
507
- $icon_link = $sb_info[ 'link_mobile' ];
508
- }
509
-
510
- $link = WPSR_Metadata::replace_params( $icon_link, $page_info );
511
- $onclick = array_key_exists( 'onclick', $sb_info ) ? 'onclick="' . esc_attr( $sb_info[ 'onclick' ] ) . '"' : '';
512
-
513
- $html .= '<span class="sr-' . $id . '"><a rel="nofollow" target="_blank" href="' . esc_attr( $link ) . '" title="' . esc_attr( $sb_info[ 'title' ] ) . '" style="' . $style . '" ' . $onclick . '><i class="' . esc_attr( $sb_info[ 'icon' ] ) . '" tar></i></a></span>';
514
- }
515
-
516
- $classes = array( 'socializer', 'wpsr-mobile-sb', 'sr-' . $opts[ 'size' ], 'sr-fluid', 'sr-opacity', 'sr-popup' );
517
-
518
- if( $opts[ 'pad' ] != '' ) array_push( $classes, 'sr-' . $opts[ 'pad' ] );
519
- if( $opts[ 'hide_on_scroll' ] == 'yes' ) array_push( $classes, 'wpsr-mobile-hos' );
520
-
521
- $classes = join( ' ', $classes );
522
-
523
- $html = '<div class="' . $classes . '">' . $html . '</div>';
524
-
525
- return $html;
526
-
527
- }
528
-
529
- }
530
-
531
- class WPSR_Template_Social_Icons{
532
-
533
- public static function init(){
534
-
535
- add_action( 'init', array( __CLASS__, 'output' ) );
536
-
537
- }
538
-
539
- public static function output(){
540
-
541
- $si_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_social_icons_settings' ), WPSR_Lists::defaults( 'social_icons' ) );
542
- $si_templates = $si_settings[ 'tmpl' ];
543
-
544
- if( empty( $si_templates ) ){
545
- $default_tmpl = WPSR_Lists::defaults( 'social_icons' );
546
- array_push( $si_templates, $default_tmpl );
547
- }
548
-
549
- if($si_settings[ 'ft_status' ] != 'disable'){
550
- foreach( $si_templates as $tmpl ){
551
-
552
- $content_obj = new wpsr_template_button_handler( $tmpl, 'content', 'social_icons' );
553
- $excerpt_obj = new wpsr_template_button_handler( $tmpl, 'excerpt', 'social_icons' );
554
-
555
- add_filter( 'the_content', array( $content_obj, 'print_template' ), 10 );
556
- add_filter( 'the_excerpt', array( $excerpt_obj, 'print_template' ), 10 );
557
-
558
- }
559
- }
560
-
561
- }
562
-
563
- public static function html( $tmpl ){
564
-
565
- $social_icons = WPSR_Lists::social_icons();
566
- $page_info = WPSR_Metadata::metadata();
567
- $counter_services = WPSR_Share_Counter::counter_services();
568
- $selected_icons = json_decode( base64_decode( $tmpl[ 'selected_icons' ] ) );
569
- $is_mobile = wp_is_mobile();
570
-
571
- $classes = array( 'socializer', 'sr-popup' );
572
-
573
- if( $tmpl[ 'layout' ] != '' ){
574
- array_push( $classes, 'sr-' . $tmpl[ 'layout' ] );
575
- }
576
-
577
- if( $tmpl[ 'icon_size' ] != '' ){
578
- array_push( $classes, 'sr-' . $tmpl[ 'icon_size' ] );
579
- }
580
-
581
- if( $tmpl[ 'icon_shape' ] != '' && $tmpl[ 'layout' ] == '' ){
582
- array_push( $classes, 'sr-' . $tmpl[ 'icon_shape' ] );
583
- }
584
-
585
- if( $tmpl[ 'hover_effect' ] != '' ){
586
- array_push( $classes, 'sr-' . $tmpl[ 'hover_effect' ] );
587
- }
588
-
589
- if( $tmpl[ 'padding' ] != '' ){
590
- array_push( $classes, 'sr-' . $tmpl[ 'padding' ] );
591
- }
592
-
593
- $styles = array();
594
- if ( $tmpl[ 'icon_bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $tmpl[ 'icon_bg_color' ] );
595
- if ( $tmpl[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $tmpl[ 'icon_color' ] );
596
- $style = join( ';', $styles );
597
- $style = ( $style != '' ) ? ' style="' . $style . '"' : '';
598
-
599
- $icons_html = array();
600
-
601
- $counters_selected = array();
602
-
603
- if( empty( $selected_icons ) ){
604
- return array(
605
- 'html' => ''
606
- );
607
- }
608
-
609
- foreach( $selected_icons as $icon ){
610
-
611
- $id = key( $icon );
612
-
613
- if( !array_key_exists( $id, $social_icons ) ){
614
- continue;
615
- }
616
-
617
- $props = $social_icons[ $id ];
618
- $icon_classes = array( 'sr-' . $id );
619
-
620
- if( !array_key_exists( $id, $social_icons ) ){
621
- continue;
622
- }
623
-
624
- $settings = WPSR_Lists::set_defaults( (array) $icon->$id, array(
625
- 'icon' => '',
626
- 'text' => '',
627
- 'hover_text' => ''
628
- ));
629
-
630
- // If custom HTML button
631
- if( $id == 'html' ){
632
- $custom_html = WPSR_Metadata::replace_params( $settings[ 'html' ], $page_info );
633
- $ihtml = '<div class="sr-custom-html">' . do_shortcode( $custom_html ) . '</div>';
634
- array_push( $icons_html, $ihtml );
635
- continue;
636
- }
637
-
638
- $icon_link = $props[ 'link' ];
639
- if( $is_mobile && array_key_exists( 'link_mobile', $props ) ){
640
- $icon_link = $props[ 'link_mobile' ];
641
- }
642
-
643
- $url = WPSR_Metadata::replace_params( $icon_link, $page_info );
644
- $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
645
-
646
- $text = '';
647
- if( $settings[ 'text' ] != '' ){
648
- $text = '<span class="text">' . $settings[ 'text' ] . '</span>';
649
- array_push( $icon_classes, 'sr-text-in' );
650
- }
651
-
652
- $icon = '';
653
- if( $settings[ 'icon' ] == '' ){
654
- $icon = '<i class="' . esc_attr( $props[ 'icon' ] ) . '"></i>';
655
- }else{
656
- $icon_val = $settings[ 'icon' ];
657
- if (strpos( $settings[ 'icon' ], 'http' ) === 0) {
658
- $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $id ) . '" height="50%" />';
659
- }else{
660
- $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
661
- }
662
- }
663
-
664
- $title = '';
665
- if( $settings[ 'hover_text' ] == '' ){
666
- $title = $props[ 'title' ];
667
- }else{
668
- $title = $settings[ 'hover_text' ];
669
- }
670
-
671
- $count_tag = '';
672
- if( ( $tmpl[ 'share_counter' ] == 'individual' || $tmpl[ 'share_counter' ] == 'total-individual' ) && array_key_exists( $id, $counter_services) ){
673
- $count_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $id );
674
- $count_tag = '<span class="ctext">' . $count_holder . '</span>';
675
- array_push( $classes, 'sr-' . $tmpl[ 'sc_style' ] );
676
- if( $tmpl[ 'sc_style' ] != 'count-1' ){
677
- array_push( $icon_classes, 'sr-text-in' );
678
- }
679
- }
680
- array_push( $counters_selected, $id );
681
-
682
- $ihtml = '<span class="' . implode( ' ', $icon_classes ) . '"><a rel="nofollow" href="' . esc_attr( $url ) . '" target="_blank" ' . $onclick . ' title="' . esc_attr( $title ) . '" ' . $style . '>' . $icon . $text . $count_tag . '</a></span>';
683
- array_push( $icons_html, $ihtml );
684
-
685
- }
686
-
687
- if( intval( $tmpl[ 'more_icons' ] ) > 0 ){
688
- $more_count = intval( $tmpl[ 'more_icons' ] );
689
- $more_icons = array_slice( $icons_html, -$more_count, $more_count );
690
- $more_html = '<span class="sr-more"><a href="#" target="_blank" title="More sites" ' . $style . '><i class="fa fa-share-alt"></i></a><ul class="socializer">' . implode( "\n", $more_icons ) . '</ul></span>';
691
- $icons_html = array_slice( $icons_html, 0, -$more_count );
692
- array_push( $icons_html, $more_html );
693
- }
694
-
695
- $all_icons_html = '<div class="' . implode( " ", $classes ) . '">' . implode( "\n", $icons_html ) . '</div>';
696
-
697
- $all_icons_btn = '<div class="wpsr-btn">' . $all_icons_html . '</div>';
698
- $row_html = $all_icons_btn;
699
-
700
- $wrap_classes = '';
701
- $html = '';
702
-
703
- if( $tmpl[ 'share_counter' ] == 'total' || $tmpl[ 'share_counter' ] == 'total-individual' ){
704
- $total_counter = WPSR_Services::output( 'share_counter', array(
705
- 'text' => 'Shares',
706
- 'counter_color' => '#000',
707
- 'add_services' => $counters_selected,
708
- 'orientation' => 'vl',
709
- 'size' => $tmpl[ 'icon_size' ]
710
- ), $page_info);
711
-
712
- $total_counter_html = $total_counter[ 'html' ];
713
-
714
- if( $tmpl[ 'sc_total_position' ] == 'left' ){
715
- $row_html = '<div class="wpsr-btn">' . $total_counter_html . '</div>';
716
- $row_html .= $all_icons_btn;
717
- }else{
718
- $row_html = $all_icons_btn;
719
- $row_html .= '<div class="wpsr-btn">' . $total_counter_html . '</div>';
720
- }
721
-
722
- if( $tmpl[ 'layout' ] == 'fluid' ){
723
- $wrap_classes = 'wpsr-flex';
724
- }
725
-
726
- }
727
-
728
- if( $tmpl[ 'layout' ] == '' && $tmpl[ 'center_icons' ] == 'yes' ){
729
- $wrap_classes = 'wpsr-flex-center';
730
- }
731
-
732
- if( trim( $tmpl[ 'heading' ] ) != '' ){
733
- $html .= '<div class="wp-socializer wpsr-buttons ' . $wrap_classes . '">';
734
- $html .= $tmpl[ 'heading' ];
735
- $html .= '</div>';
736
- }
737
-
738
- if( trim( $tmpl[ 'custom_html_above' ] ) != '' ){
739
- $html .= $tmpl[ 'custom_html_above' ];
740
- }
741
-
742
- $html .= '<div class="wp-socializer wpsr-buttons ' . $wrap_classes . '">';
743
- $html .= $row_html;
744
- $html .= '</div>';
745
-
746
- if( trim( $tmpl[ 'custom_html_below' ] ) != '' ){
747
- $html .= $tmpl[ 'custom_html_below' ];
748
- }
749
-
750
- return array(
751
- 'html' => $html
752
- );
753
-
754
- }
755
-
756
- }
757
-
758
- class WPSR_Template_Floating_Sharebar{
759
-
760
- public static function init(){
761
-
762
- add_action( 'wp_footer', array( __CLASS__, 'output' ) );
763
-
764
- }
765
-
766
- public static function output(){
767
-
768
- $fsb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_floating_sharebar_settings' ), WPSR_Lists::defaults( 'floating_sharebar' ) );
769
- $loc_rules_answer = WPSR_Location_Rules::check_rule( $fsb_settings[ 'loc_rules' ] );
770
-
771
- if( $fsb_settings[ 'ft_status' ] != 'disable' && $loc_rules_answer ){
772
- $gen_html = self::html( $fsb_settings );
773
- echo $gen_html;
774
- do_action( 'wpsr_do_floating_sharebar_print_template_end' );
775
- }
776
-
777
- }
778
-
779
- public static function html( $o ){
780
-
781
- $social_icons = WPSR_Lists::social_icons();
782
- $page_info = WPSR_Metadata::metadata();
783
- $counter_services = WPSR_Share_Counter::counter_services();
784
- $selected_icons = json_decode( base64_decode( $o[ 'selected_icons' ] ) );
785
- $is_mobile = wp_is_mobile();
786
-
787
- $classes = array( 'socializer', 'sr-popup', 'sr-vertical' );
788
-
789
- if( $o[ 'icon_size' ] != '' ){
790
- array_push( $classes, 'sr-' . $o[ 'icon_size' ] );
791
- }
792
-
793
- if( $o[ 'icon_shape' ] != '' ){
794
- array_push( $classes, 'sr-' . $o[ 'icon_shape' ] );
795
- array_push( $classes, 'sr-pad' );
796
- }
797
-
798
- if( $o[ 'hover_effect' ] != '' ){
799
- array_push( $classes, 'sr-' . $o[ 'hover_effect' ] );
800
- }
801
-
802
- if( $o[ 'padding' ] != '' && $o[ 'icon_shape' ] == '' ){
803
- array_push( $classes, 'sr-' . $o[ 'padding' ] );
804
- }
805
-
806
- $styles = array();
807
- if ( $o[ 'icon_bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $o[ 'icon_bg_color' ] );
808
- if ( $o[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $o[ 'icon_color' ] );
809
- $style = join( ';', $styles );
810
- $style = ( $style != '' ) ? ' style="' . $style . '"' : '';
811
-
812
- $icons_html = array();
813
-
814
- $counters_selected = array();
815
-
816
- foreach( $selected_icons as $icon ){
817
-
818
- $id = key( $icon );
819
- $props = $social_icons[ $id ];
820
- $icon_classes = array( 'sr-' . $id );
821
-
822
- if( !array_key_exists( $id, $social_icons ) ){
823
- continue;
824
- }
825
-
826
- $settings = WPSR_Lists::set_defaults( (array) $icon->$id, array(
827
- 'icon' => '',
828
- 'text' => '',
829
- 'hover_text' => ''
830
- ));
831
-
832
- // If custom HTML button
833
- if( $id == 'html' ){
834
- $custom_html = WPSR_Metadata::replace_params( $settings[ 'html' ], $page_info );
835
- $ihtml = '<div class="sr-custom-html">' . do_shortcode( $custom_html ) . '</div>';
836
- array_push( $icons_html, $ihtml );
837
- continue;
838
- }
839
-
840
- $icon_link = $props[ 'link' ];
841
- if( $is_mobile && array_key_exists( 'link_mobile', $props ) ){
842
- $icon_link = $props[ 'link_mobile' ];
843
- }
844
-
845
- $url = WPSR_Metadata::replace_params( $icon_link, $page_info );
846
- $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
847
-
848
- $icon = '';
849
- if( $settings[ 'icon' ] == '' ){
850
- $icon = '<i class="' . esc_attr( $props[ 'icon' ] ) . '"></i>';
851
- }else{
852
- $icon_val = $settings[ 'icon' ];
853
- if (strpos( $settings[ 'icon' ], 'http' ) === 0) {
854
- $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $id ) . '" height="50%" />';
855
- }else{
856
- $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
857
- }
858
- }
859
-
860
- $title = '';
861
- if( $settings[ 'hover_text' ] == '' ){
862
- $title = $props[ 'title' ];
863
- }else{
864
- $title = $settings[ 'hover_text' ];
865
- }
866
-
867
- $count_tag = '';
868
- if( ( $o[ 'share_counter' ] == 'individual' || $o[ 'share_counter' ] == 'total-individual' ) && array_key_exists( $id, $counter_services) ){
869
- $count_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $id );
870
- $count_tag = '<span class="ctext">' . $count_holder . '</span>';
871
- array_push( $classes, 'sr-' . $o[ 'sc_style' ] );
872
- if( $o[ 'sc_style' ] != 'count-1' ){
873
- array_push( $icon_classes, 'sr-text-in' );
874
- }
875
- }
876
- array_push( $counters_selected, $id );
877
-
878
- $ihtml = '<span class="' . implode( ' ', $icon_classes ) . '"><a rel="nofollow" href="' . esc_attr( $url ) . '" target="_blank" ' . $onclick . ' title="' . esc_attr( $title ) . '" ' . $style . '>' . $icon . $count_tag . '</a></span>';
879
- array_push( $icons_html, $ihtml );
880
-
881
- }
882
-
883
- if( intval( $o[ 'more_icons' ] ) > 0 ){
884
- $more_count = intval( $o[ 'more_icons' ] );
885
- $more_icons = array_slice( $icons_html, -$more_count, $more_count );
886
- $more_html = '<span class="sr-more"><a href="#" target="_blank" title="More sites" ' . $style . '><i class="fa fa-share-alt"></i></a><ul class="socializer">' . implode( "\n", $more_icons ) . '</ul></span>';
887
- $icons_html = array_slice( $icons_html, 0, -$more_count );
888
- array_push( $icons_html, $more_html );
889
- }
890
-
891
- $all_icons_html = '<div class="' . implode( " ", $classes ) . '">' . implode( "\n", $icons_html ) . '</div>';
892
-
893
- $all_icons_btn = '<div class="wpsr-btn">' . $all_icons_html . '</div>';
894
- $row_html = $all_icons_btn;
895
- $html = '';
896
-
897
- if( $o[ 'share_counter' ] == 'total' || $o[ 'share_counter' ] == 'total-individual' ){
898
- $total_counter = WPSR_Services::output( 'share_counter', array(
899
- 'text' => 'Shares',
900
- 'counter_color' => $o['sc_total_color'],
901
- 'add_services' => $counters_selected,
902
- 'orientation' => 'vl',
903
- 'size' => $o[ 'icon_size' ]
904
- ), $page_info);
905
-
906
- $total_counter_html = $total_counter[ 'html' ];
907
-
908
- if( $o[ 'sc_total_position' ] == 'top' ){
909
- $row_html = '<div class="wpsr-btn">' . $total_counter_html . '</div>';
910
- $row_html .= $all_icons_btn;
911
- }else{
912
- $row_html = $all_icons_btn;
913
- $row_html .= '<div class="wpsr-btn">' . $total_counter_html . '</div>';
914
- }
915
-
916
- }
917
-
918
- $wrap_classes = array( 'wp-socializer wpsr-sharebar wpsr-sb-vl' );
919
- $wrap_styles = array();
920
-
921
- array_push( $wrap_classes, 'wpsr-sb-vl-' . $o[ 'sb_position' ] );
922
- array_push( $wrap_classes, 'wpsr-sb-vl-' . $o[ 'movement' ] );
923
-
924
- if( $o[ 'style' ] == 'enclosed' ){
925
- array_push( $wrap_classes, 'wpsr-sb-simple' );
926
- }
927
-
928
- if( $o[ 'init_state' ] == 'close' ){
929
- array_push( $wrap_classes, 'wpsr-mow' );
930
- }
931
-
932
- array_push( $wrap_classes, 'wpsr-sb-mobmode-' . ( $o[ 'sb_position' ] == 'wleft' || $o[ 'sb_position' ] == 'scontent' ? 'left' : 'right' ) );
933
-
934
- array_push( $wrap_styles, ( $o[ 'sb_position' ] == 'wleft' ? 'left' : ( $o[ 'sb_position' ] == 'scontent' ) ? 'margin-left' : 'right' ) . ':' . $o[ 'offset' ] );
935
-
936
- if($o['style'] == 'enclosed'){
937
- array_push( $wrap_styles, 'background-color: ' . $o[ 'sb_bg_color' ] );
938
- }
939
-
940
- $wrap_classes = implode( ' ', $wrap_classes );
941
- $wrap_styles = implode( ';', $wrap_styles );
942
-
943
- $open_icon = WPSR_Lists::public_icons( 'sb_open' );
944
- $close_icon = WPSR_Lists::public_icons( 'sb_close' );
945
-
946
- $resp_attr = '';
947
- if( $o[ 'responsive_width' ] != '0' ){
948
- $resp_action = $o[ 'responsive_action' ] == 'minimize' ? 'wpsr-mow' : 'wpsr-how';
949
- $resp_attr = 'data-respwidth="' . $o[ 'responsive_width' ] . '" data-respclass="' . $resp_action . '"';
950
- }
951
-
952
- $html .= '<div class="' . $wrap_classes . '" style="' . $wrap_styles . '" data-stickto="' . $o['stick_element'] . '" ' . $resp_attr . '>';
953
- $html .= '<div class="wpsr-sb-inner">';
954
- $html .= $row_html;
955
- $html .= '</div>';
956
- $html .= '<div class="wpsr-sb-close" title="Open or close sharebar"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
957
- $html .= '</div>';
958
-
959
- return $html;
960
-
961
- }
962
-
963
-
964
- }
965
-
966
- WPSR_Template_Buttons::init();
967
- WPSR_Template_Sharebar::init();
968
- WPSR_Template_Followbar::init();
969
- WPSR_Template_Text_Sharebar::init();
970
- WPSR_Template_Mobile_Sharebar::init();
971
- WPSR_Template_Social_Icons::init();
972
- WPSR_Template_Floating_Sharebar::init();
973
-
974
- class wpsr_template_button_handler{
975
-
976
- private $props;
977
- private $type;
978
-
979
- function __construct( $properties, $type, $for ){
980
-
981
- $this->type = $type;
982
- $this->for = $for;
983
-
984
- if( $this->for == 'buttons' ){
985
- $this->props = WPSR_Lists::set_defaults( $properties, WPSR_Lists::defaults( 'buttons_template' ) );
986
- }else{
987
- $this->props = WPSR_Lists::set_defaults( $properties, WPSR_Lists::defaults( 'social_icons_template' ) );
988
- }
989
-
990
- }
991
-
992
- function print_template( $content ){
993
-
994
- $call_from_excerpt = 0;
995
- $call_stack = debug_backtrace();
996
-
997
- foreach( $call_stack as $call ){
998
- if( $call['function'] == 'the_excerpt' || $call['function'] == 'get_the_excerpt' ){
999
- $call_from_excerpt = 1;
1000
- }
1001
- }
1002
-
1003
- $loc_rules_answer = WPSR_Location_Rules::check_rule( $this->props[ 'loc_rules' ] );
1004
- $rule_in_excerpt = ( $this->props[ 'in_excerpt' ] == 'show' );
1005
- $output = $content;
1006
-
1007
- if( $loc_rules_answer ){
1008
-
1009
- if( ( $this->type == 'content' && $call_from_excerpt != 1 ) || ( $this->type == 'excerpt' && $rule_in_excerpt == 1 ) ){
1010
-
1011
- if( $this->for == 'buttons' ){
1012
- $gen_out = WPSR_Template_Buttons::html( $this->props[ 'content' ], array(), $this->props[ 'min_on_width' ] );
1013
- }else{
1014
- $gen_out = WPSR_Template_Social_Icons::html( $this->props );
1015
- }
1016
-
1017
- if( !empty( $gen_out[ 'html' ] ) ){
1018
-
1019
- $final_template = $gen_out[ 'html' ];
1020
-
1021
- if( $this->props[ 'position' ] == 'above_below_posts' )
1022
- $output = $final_template . $content . $final_template;
1023
-
1024
- if( $this->props[ 'position' ] == 'above_posts' )
1025
- $output = $final_template . $content;
1026
-
1027
- if( $this->props[ 'position' ] == 'below_posts' )
1028
- $output = $content . $final_template;
1029
-
1030
- }
1031
- }
1032
-
1033
- do_action( 'wpsr_do_buttons_print_template_end' );
1034
-
1035
- }
1036
-
1037
- return $output;
1038
-
1039
- }
1040
-
1041
- }
1042
-
1043
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/templates/floating-sharebar.php ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Floating sharebar template
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Template_Floating_Sharebar{
10
+
11
+ public static function init(){
12
+
13
+ add_action( 'wp_footer', array( __CLASS__, 'output' ) );
14
+
15
+ }
16
+
17
+ public static function output(){
18
+
19
+ $fsb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_floating_sharebar_settings' ), WPSR_Options::default_values( 'floating_sharebar' ) );
20
+ $loc_rules_answer = WPSR_Location_Rules::check_rule( $fsb_settings[ 'loc_rules' ] );
21
+
22
+ if( $fsb_settings[ 'ft_status' ] != 'disable' && $loc_rules_answer ){
23
+ $gen_html = self::html( $fsb_settings );
24
+ echo $gen_html;
25
+ do_action( 'wpsr_do_floating_sharebar_print_template_end' );
26
+ }
27
+
28
+ }
29
+
30
+ public static function html( $o ){
31
+
32
+ $social_icons = WPSR_Lists::social_icons();
33
+ $page_info = WPSR_Metadata::metadata();
34
+
35
+ $counter_services = WPSR_Share_Counter::counter_services();
36
+ $selected_icons = json_decode( base64_decode( $o[ 'selected_icons' ] ) );
37
+
38
+ $classes = array( 'socializer', 'sr-popup', 'sr-vertical' );
39
+
40
+ if( $o[ 'icon_size' ] != '' ){
41
+ array_push( $classes, 'sr-' . $o[ 'icon_size' ] );
42
+ }
43
+
44
+ if( $o[ 'icon_shape' ] != '' ){
45
+ array_push( $classes, 'sr-' . $o[ 'icon_shape' ] );
46
+ array_push( $classes, 'sr-pad' );
47
+ }
48
+
49
+ if( $o[ 'hover_effect' ] != '' ){
50
+ array_push( $classes, 'sr-' . $o[ 'hover_effect' ] );
51
+ }
52
+
53
+ if( $o[ 'padding' ] != '' && $o[ 'icon_shape' ] == '' ){
54
+ array_push( $classes, 'sr-' . $o[ 'padding' ] );
55
+ }
56
+
57
+ $styles = array();
58
+ if ( $o[ 'icon_bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $o[ 'icon_bg_color' ] );
59
+ if ( $o[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $o[ 'icon_color' ] );
60
+ $style = join( ';', $styles );
61
+ $style = ( $style != '' ) ? ' style="' . $style . '"' : '';
62
+
63
+ $icons_html = array();
64
+
65
+ $counters_selected = array();
66
+
67
+ foreach( $selected_icons as $icon ){
68
+
69
+ $id = key( $icon );
70
+ $props = $social_icons[ $id ];
71
+ $icon_classes = array( 'sr-' . $id );
72
+
73
+ if( !array_key_exists( $id, $social_icons ) ){
74
+ continue;
75
+ }
76
+
77
+ $settings = WPSR_Lists::set_defaults( (array) $icon->$id, array(
78
+ 'icon' => '',
79
+ 'text' => '',
80
+ 'hover_text' => ''
81
+ ));
82
+
83
+ // If custom HTML button
84
+ if( $id == 'html' ){
85
+ $custom_html = WPSR_Metadata::replace_params( $settings[ 'html' ], $page_info );
86
+ $ihtml = '<div class="sr-custom-html">' . do_shortcode( $custom_html ) . '</div>';
87
+ array_push( $icons_html, $ihtml );
88
+ continue;
89
+ }
90
+
91
+ $url = WPSR_Metadata::replace_params( $props[ 'link' ], $page_info );
92
+ $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
93
+
94
+ $icon = '';
95
+ if( $settings[ 'icon' ] == '' ){
96
+ $icon = '<i class="' . esc_attr( $props[ 'icon' ] ) . '"></i>';
97
+ }else{
98
+ $icon_val = $settings[ 'icon' ];
99
+ if (strpos( $settings[ 'icon' ], 'http' ) === 0) {
100
+ $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $id ) . '" height="50%" />';
101
+ }else{
102
+ $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
103
+ }
104
+ }
105
+
106
+ $title = '';
107
+ if( $settings[ 'hover_text' ] == '' ){
108
+ $title = $props[ 'title' ];
109
+ }else{
110
+ $title = $settings[ 'hover_text' ];
111
+ }
112
+
113
+ $count_tag = '';
114
+ if( ( $o[ 'share_counter' ] == 'individual' || $o[ 'share_counter' ] == 'total-individual' ) && array_key_exists( $id, $counter_services) ){
115
+ $count_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $id );
116
+ $count_tag = '<span class="ctext">' . $count_holder . '</span>';
117
+ array_push( $classes, 'sr-' . $o[ 'sc_style' ] );
118
+ if( $o[ 'sc_style' ] != 'count-1' ){
119
+ array_push( $icon_classes, 'sr-text-in' );
120
+ }
121
+ }
122
+ array_push( $counters_selected, $id );
123
+
124
+ $data_attr = '';
125
+ if( $id == 'pinterest' ){
126
+ $data_attr = 'data-pin-custom="true"';
127
+ }
128
+
129
+ if( array_key_exists( 'link_mobile', $props ) ){
130
+ $mobile_link = WPSR_Metadata::replace_params( $props[ 'link_mobile' ], $page_info );
131
+ $data_attr .= ' data-mobile="' . $mobile_link . '"';
132
+ }
133
+
134
+ $ihtml = '<span class="' . implode( ' ', $icon_classes ) . '"><a rel="nofollow" href="' . esc_attr( $url ) . '" target="_blank" ' . $onclick . ' title="' . esc_attr( $title ) . '" ' . $style . ' ' . $data_attr . '>' . $icon . $count_tag . '</a></span>';
135
+ array_push( $icons_html, $ihtml );
136
+
137
+ }
138
+
139
+ if( intval( $o[ 'more_icons' ] ) > 0 ){
140
+ $more_count = intval( $o[ 'more_icons' ] );
141
+ $more_icons = array_slice( $icons_html, -$more_count, $more_count );
142
+ $more_html = '<span class="sr-more"><a href="#" target="_blank" title="More sites" ' . $style . '><i class="fa fa-share-alt"></i></a><ul class="socializer">' . implode( "\n", $more_icons ) . '</ul></span>';
143
+ $icons_html = array_slice( $icons_html, 0, -$more_count );
144
+ array_push( $icons_html, $more_html );
145
+ }
146
+
147
+ $all_icons_html = '<div class="' . implode( " ", $classes ) . '">' . implode( "\n", $icons_html ) . '</div>';
148
+ $row_html = $all_icons_html;
149
+ $html = '';
150
+
151
+ if( $o[ 'share_counter' ] == 'total' || $o[ 'share_counter' ] == 'total-individual' ){
152
+ $total_counter_html = WPSR_Share_Counter::total_count_html( array(
153
+ 'text' => 'Shares',
154
+ 'counter_color' => $o['sc_total_color'],
155
+ 'add_services' => $counters_selected,
156
+ 'size' => $o[ 'icon_size' ]
157
+ ), $page_info);
158
+
159
+ if( $o[ 'sc_total_position' ] == 'top' ){
160
+ $row_html = $total_counter_html;
161
+ $row_html .= $all_icons_html;
162
+ }else{
163
+ $row_html = $all_icons_html;
164
+ $row_html .= $total_counter_html;
165
+ }
166
+
167
+ }
168
+
169
+ $wrap_classes = array( 'wp-socializer wpsr-sharebar wpsr-sb-vl wpsr-hide' );
170
+ $wrap_styles = array();
171
+
172
+ array_push( $wrap_classes, 'wpsr-sb-vl-' . $o[ 'sb_position' ] );
173
+ array_push( $wrap_classes, 'wpsr-sb-vl-' . $o[ 'movement' ] );
174
+
175
+ if( $o[ 'style' ] == 'enclosed' ){
176
+ array_push( $wrap_classes, 'wpsr-sb-simple' );
177
+ }
178
+
179
+ array_push( $wrap_styles, ( $o[ 'sb_position' ] == 'wleft' ? 'left' : ( $o[ 'sb_position' ] == 'scontent' ) ? 'margin-left' : 'right' ) . ':' . $o[ 'offset' ] );
180
+
181
+ if($o['style'] == 'enclosed'){
182
+ array_push( $wrap_styles, 'background-color: ' . $o[ 'sb_bg_color' ] );
183
+ }
184
+
185
+ $wrap_classes = implode( ' ', $wrap_classes );
186
+ $wrap_styles = implode( ';', $wrap_styles );
187
+
188
+ $open_icon = WPSR_Lists::public_icons( 'sb_open' );
189
+ $close_icon = WPSR_Lists::public_icons( 'sb_close' );
190
+
191
+ $data_attrs = array(
192
+ 'stick-to' => esc_attr( $o[ 'stick_element' ] ),
193
+ 'lg-action' => esc_attr( $o[ 'lg_screen_action' ] ),
194
+ 'sm-action' => esc_attr( $o[ 'sm_screen_action' ] ),
195
+ 'sm-width' => esc_attr( $o[ 'sm_screen_width' ] ),
196
+ );
197
+ $data = '';
198
+ foreach( $data_attrs as $id => $val ){
199
+ if( empty( $val ) ) continue;
200
+ $data .= 'data-' . $id . '="' . $val . '" ';
201
+ }
202
+
203
+ $html .= '<div class="' . $wrap_classes . '" style="' . $wrap_styles . '" ' . $data . '>';
204
+ $html .= '<div class="wpsr-sb-inner">';
205
+ $html .= $row_html;
206
+ $html .= '</div>';
207
+ $html .= '<div class="wpsr-sb-close wpsr-close-btn" title="Open or close sharebar"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
208
+ $html .= '</div>';
209
+
210
+ return $html;
211
+
212
+ }
213
+
214
+
215
+ }
216
+
217
+ WPSR_Template_Floating_Sharebar::init();
218
+
219
+ ?>
core/templates/follow-icons.php ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Follow icons template
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Template_Follow_Icons{
10
+
11
+ public static function init(){
12
+
13
+ add_action( 'wp_footer', array( __CLASS__, 'output' ) );
14
+
15
+ }
16
+
17
+ public static function output(){
18
+
19
+ $fb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_followbar_settings' ), WPSR_Options::default_values( 'follow_icons' ) );
20
+ $loc_rules_answer = WPSR_Location_Rules::check_rule( $fb_settings[ 'loc_rules' ] );
21
+
22
+ if( $fb_settings[ 'ft_status' ] != 'disable' && $loc_rules_answer ){
23
+ $gen_html = self::html( $fb_settings );
24
+ echo $gen_html;
25
+ do_action( 'wpsr_do_followbar_print_template_end' );
26
+ }
27
+
28
+ }
29
+
30
+ public static function html( $opts, $floating = True ){
31
+
32
+ $opts = WPSR_Lists::set_defaults( $opts, WPSR_Options::default_values( 'follow_icons' ) );
33
+ $template = $opts[ 'template' ];
34
+ $decoded = base64_decode( $template );
35
+ $btns = json_decode( $decoded );
36
+ $sb_sites = WPSR_Lists::social_icons();
37
+ $html = '';
38
+
39
+ if( !is_array( $btns ) || empty( $btns ) ){
40
+ return '';
41
+ }
42
+
43
+ $styles = array();
44
+ if ( $opts[ 'bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $opts[ 'bg_color' ] . ';border-color: ' . $opts[ 'bg_color' ] );
45
+ if ( $opts[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $opts[ 'icon_color' ] );
46
+ $style = join( ';', $styles );
47
+
48
+ foreach( $btns as $btn_obj ){
49
+
50
+ $btn_obj = apply_filters( 'wpsr_mod_followbar_button', $btn_obj );
51
+
52
+ $id = key( (array) $btn_obj );
53
+
54
+ if(!array_key_exists($id, $sb_sites)){
55
+ continue;
56
+ }
57
+
58
+ $prop = $sb_sites[ $id ];
59
+
60
+ $cicon = '';
61
+ if ( $btn_obj->$id->icon != '' ){
62
+ $cicon = 'sr-cicon';
63
+ }
64
+
65
+ $iclasses = array( 'sr-' . $id, $cicon );
66
+ $onclick = array_key_exists( 'onclick', $prop ) ? 'onclick="' . esc_attr( $prop[ 'onclick' ] ) . '"' : '';
67
+ $title = ( ( $btn_obj->$id->text == '' ) ? $prop[ 'name' ] : urldecode( $btn_obj->$id->text ) );
68
+
69
+ $html .= '<span class="' . esc_attr( join( ' ', $iclasses ) ) . '">';
70
+ $html .= '<a rel="nofollow" href="' . esc_attr( $btn_obj->$id->url ) . '" target="_blank" title="' . esc_attr( $title ) . '" style="' . esc_attr( $style ) . '" ' . $onclick . '>';
71
+
72
+ if( $btn_obj->$id->icon == '' ){
73
+ $html .= '<i class="' . esc_attr( $prop[ 'icon' ] ) . '"></i>';
74
+ }else{
75
+ $html .= '<img src="' . esc_attr( $btn_obj->$id->icon ) . '" alt="' . esc_attr( $prop[ 'name' ] ) . '" />';
76
+ }
77
+
78
+ $html .= '</a>';
79
+
80
+ $html .= '</span>';
81
+
82
+ }
83
+
84
+ $classes = array( 'socializer', 'sr-followbar', 'sr-' . $opts[ 'size' ] );
85
+
86
+ if( $opts[ 'shape' ] != '' ) array_push( $classes, 'sr-' . $opts[ 'shape' ] );
87
+ if( $opts[ 'hover' ] != '' ) array_push( $classes, 'sr-' . $opts[ 'hover' ] );
88
+ if( $opts[ 'pad' ] != '' ) array_push( $classes, 'sr-' . $opts[ 'pad' ] );
89
+ if( $opts[ 'orientation' ] == 'vertical' ) array_push( $classes, 'sr-vertical' );
90
+ if( $opts[ 'open_popup' ] == '' ) array_push( $classes, 'sr-popup' );
91
+ if( !$floating ) array_push( $classes, 'sr-multiline' );
92
+
93
+ $classes = join( ' ', $classes );
94
+
95
+ $html = '<div class="' . $classes . '">' . $html . '</div>';
96
+
97
+ $open_icon = WPSR_Lists::public_icons( 'fb_open' );
98
+ $close_icon = WPSR_Lists::public_icons( 'fb_close' );
99
+
100
+ if( $floating ){
101
+ $title = ( $opts[ 'title' ] != '' ) ? '<div class="sr-fb-title">' . $opts[ 'title' ] . '</div>' : '';
102
+ $close_btn = '<div class="wpsr-fb-close wpsr-close-btn" title="Open or close follow icons"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
103
+ $orientation = ( $opts[ 'orientation' ] == 'horizontal' ) ? 'sr-fb-hl' : 'sr-fb-vl';
104
+ $fb_classes = array( 'wp-socializer wpsr-follow-icons', 'sr-fb-' . $opts[ 'position' ], $orientation );
105
+
106
+ $data_attrs = array(
107
+ 'lg-action' => esc_attr( $opts[ 'lg_screen_action' ] ),
108
+ 'sm-action' => esc_attr( $opts[ 'sm_screen_action' ] ),
109
+ 'sm-width' => esc_attr( $opts[ 'sm_screen_width' ] ),
110
+ );
111
+ $data = '';
112
+ foreach( $data_attrs as $id => $val ){
113
+ if( empty( $val ) ) continue;
114
+ $data .= 'data-' . $id . '="' . $val . '" ';
115
+ }
116
+
117
+ $html = '<div class="' . esc_attr( join( ' ', $fb_classes ) ) . '" ' . $data . '>' . $title . $html . $close_btn . '</div>';
118
+ }
119
+
120
+ if( !$floating && isset( $opts[ 'profile_text' ] ) && trim( $opts[ 'profile_text' ] ) != '' ){
121
+ $html = '<p>' . $opts[ 'profile_text' ] . '</p>' . $html;
122
+ }
123
+
124
+ return $html;
125
+
126
+ }
127
+
128
+ }
129
+
130
+ WPSR_Template_Follow_Icons::init();
131
+
132
+ ?>
core/templates/share-icons.php ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Share icons template
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Template_Share_Icons{
10
+
11
+ public static function init(){
12
+
13
+ add_action( 'init', array( __CLASS__, 'output' ) );
14
+
15
+ }
16
+
17
+ public static function output(){
18
+
19
+ $si_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_social_icons_settings' ), array(
20
+ 'ft_status' => 'enable',
21
+ 'tmpl' => array()
22
+ ));
23
+ $si_templates = $si_settings[ 'tmpl' ];
24
+
25
+ if( empty( $si_templates ) ){
26
+ $default_tmpl = WPSR_Options::default_values( 'share_icons' );
27
+ array_push( $si_templates, $default_tmpl );
28
+ }
29
+
30
+ if($si_settings[ 'ft_status' ] != 'disable'){
31
+ foreach( $si_templates as $tmpl ){
32
+
33
+ $content_obj = new wpsr_template_button_handler( $tmpl, 'content' );
34
+ $excerpt_obj = new wpsr_template_button_handler( $tmpl, 'excerpt' );
35
+
36
+ add_filter( 'the_content', array( $content_obj, 'print_template' ), 10 );
37
+ add_filter( 'the_excerpt', array( $excerpt_obj, 'print_template' ), 10 );
38
+
39
+ }
40
+ }
41
+
42
+ }
43
+
44
+ public static function html( $tmpl, $default_page_info = array() ){
45
+
46
+ $social_icons = WPSR_Lists::social_icons();
47
+ $page_info = WPSR_Metadata::metadata();
48
+ $page_info = WPSR_Lists::set_defaults( $default_page_info, $page_info );
49
+
50
+ $counter_services = WPSR_Share_Counter::counter_services();
51
+ $selected_icons = json_decode( base64_decode( $tmpl[ 'selected_icons' ] ) );
52
+
53
+ $classes = array( 'socializer', 'sr-popup' );
54
+
55
+ if( $tmpl[ 'layout' ] != '' ){
56
+ array_push( $classes, 'sr-' . $tmpl[ 'layout' ] );
57
+ }
58
+
59
+ if( $tmpl[ 'icon_size' ] != '' ){
60
+ array_push( $classes, 'sr-' . $tmpl[ 'icon_size' ] );
61
+ }
62
+
63
+ if( $tmpl[ 'icon_shape' ] != '' && $tmpl[ 'layout' ] == '' ){
64
+ array_push( $classes, 'sr-' . $tmpl[ 'icon_shape' ] );
65
+ }
66
+
67
+ if( $tmpl[ 'hover_effect' ] != '' ){
68
+ array_push( $classes, 'sr-' . $tmpl[ 'hover_effect' ] );
69
+ }
70
+
71
+ if( $tmpl[ 'padding' ] != '' ){
72
+ array_push( $classes, 'sr-' . $tmpl[ 'padding' ] );
73
+ }
74
+
75
+ $styles = array();
76
+ if ( $tmpl[ 'icon_bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $tmpl[ 'icon_bg_color' ] );
77
+ if ( $tmpl[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $tmpl[ 'icon_color' ] );
78
+ $style = join( ';', $styles );
79
+ $style = ( $style != '' ) ? ' style="' . $style . '"' : '';
80
+
81
+ $icons_html = array();
82
+
83
+ $counters_selected = array();
84
+
85
+ if( empty( $selected_icons ) ){
86
+ return array(
87
+ 'html' => ''
88
+ );
89
+ }
90
+
91
+ foreach( $selected_icons as $icon ){
92
+
93
+ $id = key( $icon );
94
+
95
+ if( !array_key_exists( $id, $social_icons ) ){
96
+ continue;
97
+ }
98
+
99
+ $props = $social_icons[ $id ];
100
+ $icon_classes = array( 'sr-' . $id );
101
+
102
+ if( !array_key_exists( $id, $social_icons ) ){
103
+ continue;
104
+ }
105
+
106
+ $settings = WPSR_Lists::set_defaults( (array) $icon->$id, array(
107
+ 'icon' => '',
108
+ 'text' => '',
109
+ 'hover_text' => ''
110
+ ));
111
+
112
+ // If custom HTML button
113
+ if( $id == 'html' ){
114
+ $custom_html = WPSR_Metadata::replace_params( $settings[ 'html' ], $page_info );
115
+ $ihtml = '<div class="sr-custom-html">' . do_shortcode( $custom_html ) . '</div>';
116
+ array_push( $icons_html, $ihtml );
117
+ continue;
118
+ }
119
+
120
+ $icon_link = $props[ 'link' ];
121
+ $url = WPSR_Metadata::replace_params( $icon_link, $page_info );
122
+ $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
123
+
124
+ $text = '';
125
+ if( $settings[ 'text' ] != '' ){
126
+ $text = '<span class="text">' . $settings[ 'text' ] . '</span>';
127
+ array_push( $icon_classes, 'sr-text-in' );
128
+ }
129
+
130
+ $icon = '';
131
+ if( $settings[ 'icon' ] == '' ){
132
+ $icon = '<i class="' . esc_attr( $props[ 'icon' ] ) . '"></i>';
133
+ }else{
134
+ $icon_val = $settings[ 'icon' ];
135
+ if (strpos( $settings[ 'icon' ], 'http' ) === 0) {
136
+ $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $id ) . '" height="50%" />';
137
+ }else{
138
+ $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
139
+ }
140
+ }
141
+
142
+ $title = '';
143
+ if( $settings[ 'hover_text' ] == '' ){
144
+ $title = $props[ 'title' ];
145
+ }else{
146
+ $title = $settings[ 'hover_text' ];
147
+ }
148
+
149
+ $count_tag = '';
150
+ if( ( $tmpl[ 'share_counter' ] == 'individual' || $tmpl[ 'share_counter' ] == 'total-individual' ) && array_key_exists( $id, $counter_services) ){
151
+ $count_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $id );
152
+ $count_tag = '<span class="ctext">' . $count_holder . '</span>';
153
+ array_push( $classes, 'sr-' . $tmpl[ 'sc_style' ] );
154
+ if( $tmpl[ 'sc_style' ] != 'count-1' ){
155
+ array_push( $icon_classes, 'sr-text-in' );
156
+ }
157
+ }
158
+ array_push( $counters_selected, $id );
159
+
160
+ $data_attr = '';
161
+ if( $id == 'pinterest' ){
162
+ $data_attr = 'data-pin-custom="true"';
163
+ }
164
+
165
+ if( array_key_exists( 'link_mobile', $props ) ){
166
+ $mobile_link = WPSR_Metadata::replace_params( $props[ 'link_mobile' ], $page_info );
167
+ $data_attr .= ' data-mobile="' . $mobile_link . '"';
168
+ }
169
+
170
+ $ihtml = '<span class="' . implode( ' ', $icon_classes ) . '"><a rel="nofollow" href="' . esc_attr( $url ) . '" target="_blank" ' . $onclick . ' title="' . esc_attr( $title ) . '" ' . $style . ' ' . $data_attr . '>' . $icon . $text . $count_tag . '</a></span>';
171
+ array_push( $icons_html, $ihtml );
172
+
173
+ }
174
+
175
+ if( intval( $tmpl[ 'more_icons' ] ) > 0 ){
176
+ $more_count = intval( $tmpl[ 'more_icons' ] );
177
+ $more_icons = array_slice( $icons_html, -$more_count, $more_count );
178
+ $more_html = '<span class="sr-more"><a href="#" target="_blank" title="More sites" ' . $style . '><i class="fa fa-share-alt"></i></a><ul class="socializer">' . implode( "\n", $more_icons ) . '</ul></span>';
179
+ $icons_html = array_slice( $icons_html, 0, -$more_count );
180
+ array_push( $icons_html, $more_html );
181
+ }
182
+
183
+ $all_icons_html = '<div class="' . implode( " ", $classes ) . '">' . implode( "\n", $icons_html ) . '</div>';
184
+ $row_html = $all_icons_html;
185
+
186
+ $wrap_classes = '';
187
+ $html = '';
188
+
189
+ if( $tmpl[ 'share_counter' ] == 'total' || $tmpl[ 'share_counter' ] == 'total-individual' ){
190
+ $total_counter_html = WPSR_Share_Counter::total_count_html( array(
191
+ 'text' => 'Shares',
192
+ 'counter_color' => '#000',
193
+ 'add_services' => $counters_selected,
194
+ 'size' => $tmpl[ 'icon_size' ]
195
+ ), $page_info);
196
+
197
+ if( $tmpl[ 'sc_total_position' ] == 'left' ){
198
+ $row_html = $total_counter_html;
199
+ $row_html .= $all_icons_html;
200
+ }else{
201
+ $row_html = $all_icons_html;
202
+ $row_html .= $total_counter_html;
203
+ }
204
+
205
+ }
206
+
207
+ if( $tmpl[ 'layout' ] == '' && $tmpl[ 'center_icons' ] == 'yes' ){
208
+ $wrap_classes = 'wpsr-flex-center';
209
+ }
210
+
211
+ $data_attrs = array(
212
+ 'lg-action' => esc_attr( $tmpl[ 'lg_screen_action' ] ),
213
+ 'sm-action' => esc_attr( $tmpl[ 'sm_screen_action' ] ),
214
+ 'sm-width' => esc_attr( $tmpl[ 'sm_screen_width' ] ),
215
+ );
216
+ $data = '';
217
+ foreach( $data_attrs as $id => $val ){
218
+ if( empty( $val ) ) continue;
219
+ $data .= 'data-' . $id . '="' . $val . '" ';
220
+ }
221
+
222
+ if( trim( $tmpl[ 'custom_html_above' ] ) != '' ){
223
+ $html .= $tmpl[ 'custom_html_above' ];
224
+ }
225
+
226
+ $html .= '<div class="wp-socializer wpsr-share-icons ' . $wrap_classes . '" ' . $data . '>';
227
+ if( trim( $tmpl[ 'heading' ] ) != '' ) $html .= $tmpl[ 'heading' ];
228
+ $html .= '<div class="wpsr-si-inner">' . $row_html . '</div>';
229
+ $html .= '</div>';
230
+
231
+ if( trim( $tmpl[ 'custom_html_below' ] ) != '' ){
232
+ $html .= $tmpl[ 'custom_html_below' ];
233
+ }
234
+
235
+ return array(
236
+ 'html' => $html
237
+ );
238
+
239
+ }
240
+
241
+ }
242
+
243
+ WPSR_Template_Share_Icons::init();
244
+
245
+ class wpsr_template_button_handler{
246
+
247
+ private $props;
248
+ private $type;
249
+
250
+ function __construct( $properties, $type ){
251
+
252
+ $this->type = $type;
253
+ $this->props = WPSR_Lists::set_defaults( $properties, WPSR_Options::default_values( 'share_icons' ) );
254
+
255
+ }
256
+
257
+ function print_template( $content ){
258
+
259
+ $call_from_excerpt = 0;
260
+ $call_stack = debug_backtrace();
261
+
262
+ foreach( $call_stack as $call ){
263
+ if( $call['function'] == 'the_excerpt' || $call['function'] == 'get_the_excerpt' ){
264
+ $call_from_excerpt = 1;
265
+ }
266
+ }
267
+
268
+ $loc_rules_answer = WPSR_Location_Rules::check_rule( $this->props[ 'loc_rules' ] );
269
+ $rule_in_excerpt = ( $this->props[ 'in_excerpt' ] == 'show' );
270
+ $output = $content;
271
+
272
+ if( $loc_rules_answer ){
273
+
274
+ if( ( $this->type == 'content' && $call_from_excerpt != 1 ) || ( $this->type == 'excerpt' && $rule_in_excerpt == 1 ) ){
275
+
276
+ $gen_out = WPSR_Template_Share_Icons::html( $this->props );
277
+
278
+ if( !empty( $gen_out[ 'html' ] ) ){
279
+
280
+ $final_template = $gen_out[ 'html' ];
281
+
282
+ if( $this->props[ 'position' ] == 'above_below_posts' )
283
+ $output = $final_template . $content . $final_template;
284
+
285
+ if( $this->props[ 'position' ] == 'above_posts' )
286
+ $output = $final_template . $content;
287
+
288
+ if( $this->props[ 'position' ] == 'below_posts' )
289
+ $output = $content . $final_template;
290
+
291
+ }
292
+ }
293
+
294
+ do_action( 'wpsr_do_buttons_print_template_end' );
295
+
296
+ }
297
+
298
+ return $output;
299
+
300
+ }
301
+
302
+ }
303
+
304
+ ?>
core/templates/text-sharebar.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Text sharebar template
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Template_Text_Sharebar{
10
+
11
+ public static function init(){
12
+
13
+ add_action( 'wp_footer', array( __CLASS__, 'output' ) );
14
+
15
+ }
16
+
17
+ public static function output(){
18
+
19
+ $tsb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_text_sharebar_settings' ), WPSR_Options::default_values( 'text_sharebar' ) );
20
+ $loc_rules_answer = WPSR_Location_Rules::check_rule( $tsb_settings[ 'loc_rules' ] );
21
+
22
+ if( $tsb_settings[ 'ft_status' ] != 'disable' && $loc_rules_answer && !wp_is_mobile() ){
23
+ $gen_html = self::html( $tsb_settings );
24
+ echo $gen_html;
25
+ do_action( 'wpsr_do_text_sharebar_print_template_end' );
26
+ }
27
+
28
+ }
29
+
30
+ public static function html( $opts ){
31
+
32
+ $opts = WPSR_Lists::set_defaults( $opts, WPSR_Options::default_values( 'text_sharebar' ) );
33
+ $template = $opts[ 'template' ];
34
+ $decoded = base64_decode( $template );
35
+ $btns = json_decode( $decoded );
36
+ $sb_sites = WPSR_Lists::social_icons();
37
+ $page_info = WPSR_Metadata::metadata();
38
+ $html = '';
39
+
40
+ if( !is_array( $btns ) || empty( $btns ) ){
41
+ return '';
42
+ }
43
+
44
+ foreach( $btns as $btn ){
45
+ $sb_info = $sb_sites[ $btn ];
46
+ $link = array_key_exists( 'link_tsb', $sb_info ) ? $sb_info[ 'link_tsb' ] : $sb_info[ 'link' ];
47
+ $onclick = array_key_exists( 'onclick', $sb_info ) ? 'onclick="' . esc_attr( $sb_info[ 'onclick' ] ) . '"' : '';
48
+
49
+ $html .= '<li><a href="#" title="' . esc_attr( $sb_info[ 'title' ] ) . '" data-link="' . esc_attr( $link ) . '" style="color: ' . esc_attr( $opts[ 'icon_color' ] ) . '" ' . $onclick . '><i class="' . esc_attr( $sb_info[ 'icon' ] ) . '"></i></a></li>';
50
+ }
51
+
52
+ $html = '<ul class="wpsr-text-sb wpsr-tsb-' . esc_attr( $opts[ 'size' ] ) . ' wpsr-clearfix" data-content="' . esc_attr( $opts[ 'content' ] ) . '" data-tcount="' . esc_attr( $opts[ 'text_count' ] ) . '" style="background-color: ' . esc_attr( $opts[ 'bg_color' ] ) . '" data-url="' . esc_attr( $page_info[ 'url' ] ) . '" data-title="' . esc_attr( $page_info[ 'title' ] ) . '" data-surl="' . esc_attr( $page_info[ 'short_url' ] ) . '" data-tuname="' . esc_attr( $page_info[ 'twitter_username' ] ) . '">' . $html . '</ul>';
53
+
54
+ return $html;
55
+
56
+ }
57
+
58
+ }
59
+
60
+ WPSR_Template_Text_Sharebar::init();
61
+
62
+ ?>
core/widgets.php CHANGED
@@ -4,92 +4,45 @@
4
  *
5
  */
6
 
 
 
7
  class WPSR_Widgets{
8
 
9
  private static $widgets = array();
10
 
11
  public static function init(){
12
-
 
 
13
  add_action( 'admin_enqueue_scripts', array( __class__, 'print_widget_scripts' ) );
14
-
15
  }
16
-
17
- public static function register( $id, $details ){
18
-
 
19
  $defaults = array(
20
  'name' => '',
21
- 'callbacks' => array(
22
- 'widget' => '',
23
- 'form' => '',
24
- 'update' => ''
25
- )
26
  );
27
-
28
- $details[ 'callbacks' ] = WPSR_Lists::set_defaults( $details[ 'callbacks' ], $defaults[ 'callbacks' ] );
29
- $details = WPSR_Lists::set_defaults( $details, $defaults );
30
-
31
- self::$widgets[ $id ] = $details;
32
-
33
- }
34
-
35
- public static function widget( $id, $args, $instance ){
36
-
37
- if( !self::check_callable( $id, 'widget' ) ){
38
- return '';
39
- }
40
-
41
- return call_user_func( self::$widgets[ $id ][ 'callbacks' ][ 'widget' ], $args, $instance );
42
-
43
- }
44
-
45
- public static function form( $id, $widget_obj, $instance ){
46
-
47
- if( !self::check_callable( $id, 'form' ) ){
48
- return '';
49
- }
50
-
51
- call_user_func( self::$widgets[ $id ][ 'callbacks' ][ 'form' ], $widget_obj, $instance );
52
-
53
- }
54
-
55
- public static function update( $id, $instance ){
56
-
57
- if( !self::check_callable( $id, 'update' ) ){
58
- return $instance;
59
- }
60
-
61
- return call_user_func( self::$widgets[ $id ][ 'callbacks' ][ 'update' ], $instance );
62
-
63
- }
64
-
65
- public static function check_callable( $id, $callback ){
66
-
67
- $widgets = self::$widgets;
68
-
69
- if( array_key_exists( $id, $widgets ) ){
70
- $widget = $widgets[ $id ];
71
- if( array_key_exists( $callback, $widget[ 'callbacks' ] ) && !empty( $widget[ 'callbacks' ][ $callback ] ) && is_callable( $widget[ 'callbacks' ][ $callback ] ) ){
72
- return 1;
73
  }
74
  }
75
-
76
- return 0;
77
-
78
  }
79
-
80
- public static function list_all(){
81
-
82
- $widgets_temp = self::$widgets;
83
-
84
- foreach( $widgets_temp as $id => $config ){
85
- unset( $widgets_temp[ $id ][ 'callbacks' ] );
86
- }
87
 
88
- return apply_filters( 'wpsr_mod_widgets_list', $widgets_temp );
89
 
90
  }
91
 
92
  public static function print_widget_scripts( $hook ){
 
93
  if( $hook == 'widgets.php' ){
94
 
95
  echo '<script>window.wpsr_ppe_ajax = "' . esc_attr( get_admin_url() . 'admin-ajax.php' ) . '"; </script>';
@@ -103,283 +56,24 @@ class WPSR_Widgets{
103
  wp_enqueue_style( 'wpsr_ipopup', WPSR_ADMIN_URL . 'css/ipopup.css' );
104
  wp_enqueue_script( 'wpsr_ipopup', WPSR_ADMIN_URL . 'js/ipopup.js' );
105
  }
106
- }
107
-
108
- }
109
-
110
- WPSR_Widgets::init();
111
 
112
- /**
113
- * Widget form API
114
- */
115
-
116
- class WPSR_Widget_Form_Fields{
117
-
118
- function __construct( $widget_obj, $instance ){
119
- $this->obj = $widget_obj;
120
- $this->instance = $instance;
121
- }
122
-
123
- function text( $id, $name, $opts = array() ){
124
-
125
- $opts = WPSR_Lists::set_defaults( $opts, array(
126
- 'class' => 'widefat',
127
- 'helper' => '',
128
- 'placeholder' => '',
129
- 'custom' => ''
130
- ));
131
-
132
- echo '<p>';
133
- echo '<label for="' . esc_attr( $this->obj->get_field_id( $id ) ) . '">' . $name . '</label>';
134
- echo WPSR_Admin::field( 'text', array(
135
- 'name' => $this->obj->get_field_name( $id ),
136
- 'id' => $this->obj->get_field_id( $id ),
137
- 'value' => $this->instance[ $id ],
138
- 'class' => $opts[ 'class' ],
139
- 'helper' => $opts[ 'helper' ],
140
- 'placeholder' => $opts[ 'placeholder' ],
141
- 'custom' => $opts[ 'custom' ]
142
- ));
143
- echo '</p>';
144
- }
145
-
146
- function select( $id, $name, $list, $opts = array() ){
147
-
148
- $opts = WPSR_Lists::set_defaults( $opts, array(
149
- 'class' => 'widefat',
150
- 'helper' => '',
151
- 'placeholder' => '',
152
- 'custom' => ''
153
- ));
154
-
155
- echo '<p>';
156
- echo '<label for="' . esc_attr( $this->obj->get_field_id( $id ) ) . '">' . $name . '</label>';
157
- echo WPSR_Admin::field( 'select', array(
158
- 'name' => $this->obj->get_field_name( $id ),
159
- 'id' => $this->obj->get_field_id( $id ),
160
- 'value' => $this->instance[ $id ],
161
- 'list' => $list,
162
- 'class' => $opts[ 'class' ],
163
- 'helper' => $opts[ 'helper' ],
164
- 'placeholder' => $opts[ 'placeholder' ],
165
- 'custom' => $opts[ 'custom' ]
166
- ));
167
- echo '</p>';
168
- }
169
-
170
- function number( $id, $name, $opts = array() ){
171
-
172
- $opts = WPSR_Lists::set_defaults( $opts, array(
173
- 'class' => 'smallfat',
174
- 'helper' => '',
175
- 'placeholder' => '',
176
- 'custom' => ''
177
- ));
178
-
179
- echo '<p>';
180
- echo '<label for="' . esc_attr( $this->obj->get_field_id( $id ) ) . '">' . $name . '</label>';
181
- echo WPSR_Admin::field( 'text', array(
182
- 'name' => $this->obj->get_field_name( $id ),
183
- 'id' => $this->obj->get_field_id( $id ),
184
- 'value' => $this->instance[ $id ],
185
- 'class' => $opts[ 'class' ],
186
- 'helper' => $opts[ 'helper' ],
187
- 'placeholder' => $opts[ 'placeholder' ],
188
- 'type' => 'number',
189
- 'custom' => $opts[ 'custom' ]
190
- ));
191
- echo '</p>';
192
  }
193
-
194
- }
195
 
196
- /**
197
- * Main WP Socializer widget
198
- *
199
- */
200
-
201
- class WPSR_Main_Widget extends WP_Widget{
202
-
203
- function __construct(){
204
- parent::__construct(
205
- 'wpsr_main_widget',
206
- 'WP Socializer',
207
- array( 'description' => esc_html__( 'Use this widget to add Facebook widget, Twitter widget, follow me icons, Google Plus widget &amp; social media buttons', 'wpsr' ), ),
208
- array('width' => 500, 'height' => 500)
209
- );
210
- }
211
-
212
- public function widget( $args, $instance ){
213
-
214
  echo $args[ 'before_widget' ];
215
  if ( !empty( $instance[ 'title' ] ) ) {
216
  echo $args[ 'before_title' ] . apply_filters( 'widget_title', $instance[ 'title' ] ) . $args[ 'after_title' ];
217
  }
218
-
219
- $widgets = WPSR_Widgets::list_all();
220
- $selected_widget = $instance[ 'widget' ];
221
-
222
- if( array_key_exists( $selected_widget, $widgets ) ){
223
- WPSR_Widgets::widget( $selected_widget, $args, $instance );
224
- }
225
-
226
- echo $args['after_widget'];
227
- }
228
-
229
- public function form( $instance ){
230
-
231
- $widgets = WPSR_Widgets::list_all();
232
- $instance = WPSR_Lists::set_defaults( $instance, array(
233
- 'title' => '',
234
- 'widget' => ''
235
- ));
236
-
237
- $selected_widget = $instance[ 'widget' ];
238
- $fields = new WPSR_Widget_Form_Fields( $this, $instance );
239
-
240
- $widgets_list = array( '' => 'Select a widget to display' );
241
- foreach( $widgets as $w_id => $w_info ){
242
- $widgets_list[ $w_id ] = $w_info[ 'name' ];
243
- }
244
-
245
- $fields->text( 'title', 'Title' );
246
- $fields->select( 'widget', 'Widget', $widgets_list, array( 'class' => 'widefat wpsr_widget_selector' ) );
247
-
248
- if( array_key_exists( $selected_widget, $widgets ) ){
249
- echo '<div class="wpsr_widget_wrap">';
250
- WPSR_Widgets::form( $selected_widget, $this, $instance );
251
- echo '</div>';
252
- }else{
253
- echo '<div class="notice notice-error inline"><p>' . __( 'Please select a widget and click "Save" to load settings', 'wpsr' ) . '</p></div>';
254
- }
255
-
256
- }
257
-
258
- public function update( $new_instance, $old_instance ){
259
-
260
- $widgets = WPSR_Widgets::list_all();
261
- $selected_widget = $new_instance[ 'widget' ];
262
-
263
- if( array_key_exists( $selected_widget, $widgets ) ){
264
- return WPSR_Widgets::update( $selected_widget, $new_instance );
265
- }else{
266
- return $new_instance;
267
- }
268
- }
269
-
270
- }
271
-
272
- function wpsr_register_main_widget(){
273
- register_widget( 'WPSR_Main_Widget' );
274
- }
275
- add_action( 'widgets_init', 'wpsr_register_main_widget' );
276
 
277
- /**
278
- * All social media buttons widget
279
- */
280
-
281
- class wpsr_widget_buttons{
282
-
283
- function __construct(){
284
-
285
- WPSR_Widgets::register( 'buttons_widget', array(
286
- 'name' => 'All social media buttons widget',
287
- 'banner' => WPSR_ADMIN_URL . '/images/widgets/share-buttons.png',
288
- 'description' => __( 'A widget to insert all kinds of native social share buttons to the sidebar.', 'wpsr' ),
289
- 'callbacks' => array(
290
- 'widget' => array( $this, 'widget' ),
291
- 'form' => array( $this, 'form' ),
292
- 'update' => array( $this, 'update' )
293
- )
294
- ));
295
-
296
- $this->defaults = array(
297
- 'buttons_template' => ''
298
- );
299
-
300
- // Custom widget template widget
301
- add_action( 'wp_ajax_wpsr_widget_buttons', array( $this, 'buttons_editor' ) );
302
-
303
- }
304
-
305
- function buttons_editor(){
306
-
307
- global $hook_suffix;
308
- $hook_suffix = WPSR_Admin::$pagehook;
309
- set_current_screen( $hook_suffix );
310
-
311
- iframe_header( 'WP Socializer Widget template editor' );
312
-
313
- if( !isset( $_GET[ 'template' ] ) || !isset( $_GET[ 'cnt_id' ] ) || !isset( $_GET[ 'prev_id' ] ) ){
314
- echo '<p align="center">Incomplete info to load editor !</p></body></html>';
315
- die( 0 );
316
- }
317
-
318
- $feature = array(
319
- 'name' => 'widgets',
320
- 'hide_services' => array()
321
- );
322
-
323
- WPSR_Buttons_Picker::print_buttons_picker($feature);
324
-
325
- echo '<div id="wpsr_pp_editor">';
326
- echo '<h3>WP Socializer - widget template editor</h3>';
327
-
328
- WPSR_Admin::box_wrap( 'open', __( 'Add buttons to the template', 'wpsr' ), __( 'Add buttons to the template using the add sharing button below. Click "+" to add a new row. Click and drag row to rearrange the order.', 'wpsr' ), '1' );
329
- WPSR_Admin::buttons_veditor( 'widget_buttons_template', esc_attr( $_GET[ 'template' ] ), true, 'wpsr_preview_template_buttons' );
330
- WPSR_Admin::box_wrap( 'close' );
331
-
332
- echo '<p class="wpsr_ppe_footer" align="center"><button class="button button-primary wpsr_ppe_save" data-mode="widget" data-cnt-id="' . esc_attr( $_GET[ 'cnt_id' ] ) . '" data-prev-id="' . esc_attr( $_GET[ 'prev_id' ] ) . '">Apply settings</button> <button class="button wpsr_ppe_cancel">Cancel</button></p>';
333
-
334
- echo '</div>';
335
-
336
- iframe_footer();
337
- die( 0 );
338
- }
339
-
340
- function widget( $args, $instance ){
341
-
342
- $instance = WPSR_Lists::set_defaults( $instance, $this->defaults );
343
-
344
- $out = WPSR_Template_Buttons::html( $instance[ 'buttons_template' ] );
345
- echo $out[ 'html' ];
346
-
347
- }
348
-
349
- function form( $obj, $instance ){
350
-
351
- echo '<h4>' . __( 'Social media buttons widget', 'wpsr' ) . '</h4>';
352
-
353
- $instance = WPSR_Lists::set_defaults( $instance, $this->defaults );
354
- $fields = new WPSR_Widget_Form_Fields( $obj, $instance );
355
-
356
- $wtmpl_val = esc_attr( $instance[ 'buttons_template' ] );
357
- $wtmpl_cnt_id = $obj->get_field_id( 'buttons_template' );
358
- $wtmpl_prev_id = $obj->get_field_id( 'wtmpl_prev' );
359
-
360
- echo '<div class="hidden">';
361
- $fields->text( 'buttons_template', '' );
362
- echo '</div>';
363
-
364
- echo '<div class="wpsr_wtmpl_wrap clearfix" id="' . $wtmpl_prev_id . '">';
365
- if( $wtmpl_val != '' ){
366
- WPSR_Admin::buttons_veditor( 'widget_buttons_template', $wtmpl_val, true, 'wpsr_wtmpl_dummy' );
367
- }else{
368
- echo '<p align="center">' . __( 'No buttons are added to template. Open the editor to add buttons', 'wpsr' ) . '</p>';
369
- }
370
- echo '</div>';
371
-
372
- echo '<br/>';
373
- echo '<p align="center"><button class="button button-primary wpsr_ppe_widget_open" data-wtmpl-cnt-id="' . $wtmpl_cnt_id . '" data-wtmpl-prev-id="' . $wtmpl_prev_id . '">' . __( 'Open editor', 'wpsr' ) . '</button></p>';
374
-
375
  }
376
-
377
- function update( $instance ){
378
- return $instance;
379
  }
380
-
381
  }
382
 
383
- // new wpsr_widget_buttons();
384
 
385
  ?>
4
  *
5
  */
6
 
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
  class WPSR_Widgets{
10
 
11
  private static $widgets = array();
12
 
13
  public static function init(){
14
+
15
+ add_action( 'widgets_init', array( __class__, 'register_widgets' ) );
16
+
17
  add_action( 'admin_enqueue_scripts', array( __class__, 'print_widget_scripts' ) );
18
+
19
  }
20
+
21
+ public static function register_widgets(){
22
+
23
+ $init_widgets = apply_filters( 'wpsr_register_widget', array() );
24
  $defaults = array(
25
  'name' => '',
26
+ 'widget_class' => ''
 
 
 
 
27
  );
28
+
29
+ foreach( $init_widgets as $id => $config ){
30
+ self::$widgets[ $id ] = WPSR_Lists::set_defaults( $config, $defaults );
31
+ if( !empty( $config[ 'widget_class' ] ) ){
32
+ register_widget( $config[ 'widget_class' ] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  }
34
  }
35
+
 
 
36
  }
37
+
38
+ public static function get_widgets(){
 
 
 
 
 
 
39
 
40
+ return apply_filters( 'wpsr_mod_widgets', self::$widgets );
41
 
42
  }
43
 
44
  public static function print_widget_scripts( $hook ){
45
+
46
  if( $hook == 'widgets.php' ){
47
 
48
  echo '<script>window.wpsr_ppe_ajax = "' . esc_attr( get_admin_url() . 'admin-ajax.php' ) . '"; </script>';
56
  wp_enqueue_style( 'wpsr_ipopup', WPSR_ADMIN_URL . 'css/ipopup.css' );
57
  wp_enqueue_script( 'wpsr_ipopup', WPSR_ADMIN_URL . 'js/ipopup.js' );
58
  }
 
 
 
 
 
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  }
 
 
61
 
62
+ public static function before_widget( $args, $instance ){
63
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  echo $args[ 'before_widget' ];
65
  if ( !empty( $instance[ 'title' ] ) ) {
66
  echo $args[ 'before_title' ] . apply_filters( 'widget_title', $instance[ 'title' ] ) . $args[ 'after_title' ];
67
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  }
70
+
71
+ public static function after_widget( $args, $instance ){
72
+ echo $args['after_widget'];
73
  }
74
+
75
  }
76
 
77
+ WPSR_Widgets::init();
78
 
79
  ?>
core/widgets/facebook.php ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Facebook widget
4
+ */
5
+
6
+ defined( 'ABSPATH' ) || exit;
7
+
8
+ class WPSR_Facebook_Widget extends WP_Widget {
9
+
10
+ public function __construct() {
11
+ parent::__construct(
12
+ 'WPSR_Facebook_Widget',
13
+ 'Facebook page widget',
14
+ array( 'description' => __( 'Display your Facebook page\'s posts using this widget.', 'wpsr' ), ),
15
+ array('width' => 500, 'height' => 500)
16
+ );
17
+ }
18
+
19
+ public static function init(){
20
+ add_filter( 'wpsr_register_widget', array( __class__, 'register' ) );
21
+ add_filter( 'wpsr_register_admin_page', array( __class__, 'register_admin_page' ) );
22
+ }
23
+
24
+ public static function register( $widgets ){
25
+
26
+ $widgets[ 'facebook' ] = array(
27
+ 'name' => __( 'Facebook widget', 'wpsr' ),
28
+ 'widget_class' => __class__
29
+ );
30
+
31
+ return $widgets;
32
+
33
+ }
34
+
35
+ public static function register_admin_page( $pages ){
36
+
37
+ $pages[ 'facebook-widget' ] = array(
38
+ 'name' => __( 'Facebook page widget', 'wpsr' ),
39
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/facebook-widget.svg',
40
+ 'link' => admin_url('widgets.php#wp-socializer:facebook'),
41
+ 'category' => 'widget',
42
+ 'type' => 'widget',
43
+ 'description' => __( 'If you have a facebook page, add a widget to display it\'s posts to the sidebar/footer.', 'wpsr' )
44
+ );
45
+
46
+ return $pages;
47
+
48
+ }
49
+
50
+ public static function defaults(){
51
+
52
+ return array(
53
+ 'title' => '',
54
+ 'fb_page_url' => '',
55
+ 'fb_page_tabs' => 'timeline',
56
+ 'fb_page_small_header' => 'false',
57
+ 'fb_page_hide_cover' => 'false',
58
+ 'fb_page_show_faces' => 'true',
59
+ );
60
+
61
+ }
62
+
63
+ function widget( $args, $instance ){
64
+
65
+ $instance = WPSR_Lists::set_defaults( $instance, self::defaults() );
66
+
67
+ WPSR_Widgets::before_widget( $args, $instance );
68
+
69
+ $instance = array_map( 'esc_attr', $instance );
70
+
71
+ echo '<div class="fb-page" data-href="' . $instance[ 'fb_page_url' ] . '" data-tabs="' . $instance[ 'fb_page_tabs' ] . '" data-width="" data-height="" data-small-header="' . $instance[ 'fb_page_small_header' ] . '" data-adapt-container-width="true" data-hide-cover="' . $instance[ 'fb_page_hide_cover' ] . '" data-show-facepile="' . $instance[ 'fb_page_show_faces' ] . '"><blockquote cite="' . $instance[ 'fb_page_url' ] . '" class="fb-xfbml-parse-ignore"><a href="' . $instance[ 'fb_page_url' ] . '">Facebook page</a></blockquote></div>';
72
+
73
+ WPSR_Includes::add_active_includes( array( 'facebook_js' ) );
74
+
75
+ WPSR_Widgets::after_widget( $args, $instance );
76
+
77
+ }
78
+
79
+ function form( $instance ){
80
+
81
+ $instance = WPSR_Lists::set_defaults( $instance, self::defaults() );
82
+ $fields = new WPSR_Widget_Form_Fields( $this, $instance );
83
+
84
+ echo '<div class="wpsr_widget_wrap">';
85
+
86
+ $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
87
+ if( empty( $gs[ 'facebook_app_id' ] ) ){
88
+ echo '<p>' . __( 'Note: Facebook app ID is not set and it is required for the facebook widget. Please set it in the settings page', 'wpsr' ) . '</p>';
89
+ echo '<p><a href="' . admin_url( 'admin.php?page=wp_socializer&tab=general_settings' ) . '" target="_blank" class="button button-primary">' . __( 'Open settings', 'wpsr' ) . '</a></p>';
90
+ }
91
+
92
+ $yes_no = array(
93
+ 'true' => __( 'Yes', 'wpsr' ),
94
+ 'false' => __( 'No', 'wpsr' )
95
+ );
96
+
97
+ $fields->text( 'title', 'Title' );
98
+ $fields->text( 'fb_page_url', 'Your facebook page URL', array( 'placeholder' => 'Example: https://facebook.com/aakashweb' ) );
99
+ $fields->text( 'fb_page_tabs', 'Tabs to display in the widget ( Enter tab names separated by comma. Example: timeline, events, messages )' );
100
+
101
+ $fields->select( 'fb_page_small_header', 'Display small header', $yes_no, array( 'class' => 'smallfat' ) );
102
+ $fields->select( 'fb_page_hide_cover', 'Hide cover photo', $yes_no, array( 'class' => 'smallfat' ) );
103
+ $fields->select( 'fb_page_show_faces', 'Show friend\'s faces', $yes_no, array( 'class' => 'smallfat' ) );
104
+
105
+ $fields->footer();
106
+
107
+ echo '</div>';
108
+
109
+ }
110
+
111
+ function update( $new_instance, $old_instance ){
112
+ return $new_instance;
113
+ }
114
+
115
+ }
116
+
117
+ WPSR_Facebook_Widget::init();
118
+
119
+ ?>
core/widgets/follow-icons.php ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Follow icons widget
4
+ */
5
+
6
+ defined( 'ABSPATH' ) || exit;
7
+
8
+ class WPSR_Follow_Icons_Widget extends WP_Widget {
9
+
10
+ public function __construct() {
11
+ parent::__construct(
12
+ 'wpsr_follow_icons_widget',
13
+ 'Follow icons widget',
14
+ array( 'description' => __( 'Add icons with links to social media profiles using this widget.', 'text_domain' ), ),
15
+ array('width' => 500, 'height' => 500)
16
+ );
17
+ }
18
+
19
+ public static function init(){
20
+ add_filter( 'wpsr_register_widget', array( __class__, 'register' ) );
21
+ add_filter( 'wpsr_register_admin_page', array( __class__, 'register_admin_page' ) );
22
+ }
23
+
24
+ public static function register( $widgets ){
25
+
26
+ $widgets[ 'follow_icons' ] = array(
27
+ 'name' => __( 'Follow icons', 'wpsr' ),
28
+ 'widget_class' => __class__
29
+ );
30
+
31
+ return $widgets;
32
+
33
+ }
34
+
35
+ public static function register_admin_page( $pages ){
36
+
37
+ $pages[ 'follow-icons-widget' ] = array(
38
+ 'name' => __( 'Follow icons widget', 'wpsr' ),
39
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/follow-icons-widget.svg',
40
+ 'link' => admin_url('widgets.php#wp-socializer:follow_icons'),
41
+ 'category' => 'widget',
42
+ 'type' => 'widget',
43
+ 'description' => __( 'Add links of your social media profiles to sidebar/footer using this widget.', 'wpsr' )
44
+ );
45
+
46
+ return $pages;
47
+
48
+ }
49
+
50
+ public static function defaults(){
51
+
52
+ return array(
53
+ 'title' => '',
54
+ 'template' => '',
55
+ 'orientation' => 'horizontal',
56
+ 'shape' => '',
57
+ 'size' => '32px',
58
+ 'bg_color' => '',
59
+ 'icon_color' => '#ffffff',
60
+ 'hover' => 'opacity',
61
+ 'pad' => 'pad',
62
+ 'profile_text' => ''
63
+ );
64
+
65
+ }
66
+
67
+ function widget( $args, $instance ){
68
+
69
+ $instance = WPSR_Lists::set_defaults( $instance, self::defaults() );
70
+
71
+ WPSR_Widgets::before_widget( $args, $instance );
72
+
73
+ echo WPSR_Template_Follow_Icons::html( $instance, False );
74
+
75
+ WPSR_Widgets::after_widget( $args, $instance );
76
+
77
+ }
78
+
79
+ function form( $instance ){
80
+
81
+ $instance = WPSR_Lists::set_defaults( $instance, self::defaults() );
82
+ $fields = new WPSR_Widget_Form_Fields( $this, $instance );
83
+
84
+ echo '<div class="wpsr_widget_wrap">';
85
+
86
+ $fields->text( 'title', 'Title' );
87
+
88
+ $tmpl_val = esc_attr( $instance[ 'template' ] );
89
+ $tmpl_cnt_id = $this->get_field_id( 'template' );
90
+ $tmpl_prev_id = $this->get_field_id( 'fbw_prev' );
91
+
92
+ echo '<div class="hidden">';
93
+ $fields->text( 'template', '' );
94
+ $fields->text( 'orientation', '' );
95
+ echo '</div>';
96
+
97
+ $fields->heading( __( 'Selected icons', 'wpsr' ) );
98
+ echo '<div class="clearfix" id="' . $tmpl_prev_id . '">';
99
+ $tmpl = WPSR_Admin_Follow_Icons::read_template( $tmpl_val );
100
+ echo $tmpl[ 'prev' ];
101
+ echo '</div>';
102
+
103
+ echo '<p align="center"><button class="button button-primary wpsr_ppe_fb_open" data-wtmpl-cnt-id="' . $tmpl_cnt_id . '" data-wtmpl-prev-id="' . $tmpl_prev_id . '"><i class="fa fa-pencil"></i> ' . __( 'Open editor', 'wpsr' ) . '</button></p>';
104
+
105
+ $fields->heading( __( 'Settings', 'wpsr' ) );
106
+ $fields->select( 'shape', 'Icon shape', array(
107
+ '' => 'Square',
108
+ 'circle' => 'Circle',
109
+ 'squircle' => 'Squircle',
110
+ 'squircle-2' => 'Squircle 2',
111
+ 'diamond' => 'Diamond',
112
+ 'ribbon' => 'Ribbon',
113
+ 'drop' => 'Drop',
114
+ ), array( 'class' => 'smallfat' ));
115
+
116
+ $fields->select( 'size', 'Icon size', array(
117
+ '32px' => '32px',
118
+ '40px' => '40px',
119
+ '48px' => '48px',
120
+ '64px' => '64px',
121
+ ), array( 'class' => 'smallfat' ));
122
+
123
+ $fields->text( 'bg_color', 'Icon background color', array( 'class' => 'smallfat wpsr-color-picker' ));
124
+
125
+ $fields->text( 'icon_color', 'Icon color', array( 'class' => 'smallfat wpsr-color-picker' ));
126
+
127
+ $fields->select( 'hover', 'Hover effect', array(
128
+ '' => __( 'None', 'wpsr' ),
129
+ 'opacity' => 'Fade',
130
+ 'rotate' => 'Rotate',
131
+ 'zoom' => 'Zoom',
132
+ 'shrink' => 'Shrink',
133
+ 'float' => 'Float',
134
+ 'sink' => 'Sink'
135
+ ), array( 'class' => 'smallfat' ));
136
+
137
+ $fields->select( 'pad', 'Add space between icons', array(
138
+ '' => 'No',
139
+ 'pad' => 'Yes'
140
+ ), array( 'class' => 'smallfat' ));
141
+
142
+ $fields->textarea( 'profile_text', 'Text above follow icons' );
143
+ echo '<span class="description">' . __( 'Add any text you like to see above the icons. HTML is allowed.', 'wpsr' ) . '</span>';
144
+
145
+ $fields->footer();
146
+
147
+ echo '</div>';
148
+
149
+ }
150
+
151
+ function update( $new_instance, $old_instance ){
152
+ return $new_instance;
153
+ }
154
+
155
+ }
156
+
157
+ WPSR_Follow_Icons_Widget::init();
158
+
159
+ ?>
core/widgets/twitter.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Twitter widget
4
+ */
5
+
6
+ defined( 'ABSPATH' ) || exit;
7
+
8
+ class WPSR_Twitter_Widget extends WP_Widget {
9
+
10
+ public function __construct() {
11
+ parent::__construct(
12
+ 'WPSR_Twitter_Widget',
13
+ 'Twitter tweets/timeline widget',
14
+ array( 'description' => __( 'Display your twitter tweets/timeline using this widget.', 'wpsr' ), ),
15
+ array( 'width' => 500, 'height' => 500 )
16
+ );
17
+ }
18
+
19
+ public static function init(){
20
+ add_filter( 'wpsr_register_widget', array( __class__, 'register' ) );
21
+ add_filter( 'wpsr_register_admin_page', array( __class__, 'register_admin_page' ) );
22
+ }
23
+
24
+ public static function register( $widgets ){
25
+
26
+ $widgets[ 'twitter' ] = array(
27
+ 'name' => __( 'Twitter widget', 'wpsr' ),
28
+ 'widget_class' => __class__
29
+ );
30
+
31
+ return $widgets;
32
+
33
+ }
34
+
35
+ public static function register_admin_page( $pages ){
36
+
37
+ $pages[ 'twitter-widget' ] = array(
38
+ 'name' => __( 'Twitter tweets widget', 'wpsr' ),
39
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/twitter-widget.svg',
40
+ 'link' => admin_url('widgets.php#wp-socializer:twitter'),
41
+ 'category' => 'widget',
42
+ 'type' => 'widget',
43
+ 'description' => __( 'Add a widget to sidebar/footer to display your twitter tweets.', 'wpsr' )
44
+ );
45
+
46
+ return $pages;
47
+
48
+ }
49
+
50
+ public static function defaults(){
51
+
52
+ return array(
53
+ 'title' => '',
54
+ 'twitter_widget_url' => '',
55
+ 'twitter_widget_height' => '600',
56
+ 'twitter_widget_theme' => 'light'
57
+ );
58
+
59
+ }
60
+
61
+ function widget( $args, $instance ){
62
+
63
+ $instance = WPSR_Lists::set_defaults( $instance, self::defaults() );
64
+
65
+ WPSR_Widgets::before_widget( $args, $instance );
66
+
67
+ $instance = array_map( 'esc_attr', $instance );
68
+
69
+ echo '<a class="twitter-timeline" data-height="' . $instance[ 'twitter_widget_height' ] . '" data-theme="' . $instance[ 'twitter_widget_theme' ] . '" href="' . $instance[ 'twitter_widget_url' ] . '">Twitter</a>';
70
+
71
+ WPSR_Includes::add_active_includes( array( 'twitter_js' ) );
72
+
73
+ WPSR_Widgets::after_widget( $args, $instance );
74
+
75
+ }
76
+
77
+ function form( $instance ){
78
+
79
+ $instance = WPSR_Lists::set_defaults( $instance, self::defaults() );
80
+ $fields = new WPSR_Widget_Form_Fields( $this, $instance );
81
+
82
+ echo '<div class="wpsr_widget_wrap">';
83
+
84
+ $fields->text( 'title', 'Title' );
85
+ $fields->text( 'twitter_widget_url', 'Enter a twitter URL', array( 'placeholder' => 'Ex: https://twitter.com/vaakash' ) );
86
+
87
+ echo '<h5>Examples:</h5>';
88
+ echo '<ul>';
89
+ echo '<li><code>Likes</code> - https://twitter.com/TwitterDev/likes</li>';
90
+ echo '<li><code>List</code> - https://twitter.com/TwitterDev/lists/national-parks</li>';
91
+ echo '<li><code>Profile</code> - https://twitter.com/TwitterDev</li>';
92
+ echo '<li><code>Collection</code> - https://twitter.com/TwitterDev/timelines/539487832448843776</li>';
93
+ echo '</ul>';
94
+
95
+ $fields->number( 'twitter_widget_height', 'Height ( in pixels )' );
96
+ $fields->select( 'twitter_widget_theme', 'Color scheme', array( 'light' => 'Light', 'dark' => 'Dark' ), array( 'class' => 'smallfat' ) );
97
+
98
+ $fields->footer();
99
+
100
+ echo '</div>';
101
+
102
+ }
103
+
104
+ function update( $new_instance, $old_instance ){
105
+ return $new_instance;
106
+ }
107
+
108
+ }
109
+
110
+ WPSR_Twitter_Widget::init();
111
+
112
+ ?>
public/css/wp-socializer.css CHANGED
@@ -3,25 +3,42 @@
3
  content: '';
4
  display: block;
5
  }
6
- .wpsr-buttons{
7
- display: block;
8
- margin: 0 0 1.5em 0;
 
9
  }
10
- .wpsr-buttons .wpsr-btn{
11
- float: left;
12
- margin: 0 1em 0 0;
13
- padding: 0;
14
- line-height: 0;
15
  }
16
- .wpsr-buttons .wpsr-btn:last-child {
 
 
 
 
 
 
17
  margin-right: 0;
18
  }
 
 
 
 
 
 
 
 
 
19
 
 
20
  .wpsr-sharebar{
21
  transition: all 0.5s;
22
  box-sizing: border-box;
23
  z-index: 99999;
24
  }
 
 
 
25
  .wpsr-sb-inner:after{
26
  content: '';
27
  display: block;
@@ -34,42 +51,27 @@
34
  transform: translateY(-50%);
35
  position: fixed;
36
  }
37
- .wpsr-sb-vl .wpsr-btn{
38
- margin-bottom: 1em;
39
- display: block;
40
- }
41
- .wpsr-sb-vl .wpsr-btn:last-child{
42
- margin: 0;
43
- }
44
- .wpsr-sb-vl-wleft{
45
- left: 0;
46
- }
47
- .wpsr-sb-vl-wright{
48
- right: 0;
49
  }
50
  .wpsr-sb-vl-static{
51
  position: absolute;
52
  }
53
 
54
  .wpsr-sb-hl{
55
- left: 50%;
56
- transform: translateX(-50%);
 
 
57
  position: fixed;
 
 
58
  }
59
- .wpsr-sb-hl .wpsr-btn{
60
- float: left;
61
- margin: 0 1em 0 0;
62
- padding: 0;
63
- line-height: 0;
64
- }
65
- .wpsr-sb-hl .wpsr-btn:last-child{
66
- margin: 0;
67
- }
68
- .wpsr-sb-hl-wtop{
69
- top: 0;
70
  }
71
- .wpsr-sb-hl-wbottom{
72
- bottom: 0;
73
  }
74
 
75
  /* Sharebar themes */
@@ -80,33 +82,14 @@
80
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
81
  border: 1px solid transparent;
82
  }
83
- .wpsr-sb-simple-sq{
84
- padding: 10px;
85
- text-align: center;
86
- box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
87
- border: 1px solid transparent;
88
- }
89
- .wpsr-sb-simple-ns{
90
- text-align: center;
91
- border: 1px solid transparent;
92
  }
93
 
94
- .wpsr-sharebar::-webkit-scrollbar{
95
- width: 5px;
96
- height: 5px;
97
- }
98
- .wpsr-sharebar::-webkit-scrollbar-thumb{
99
- background: #aaa;
100
- border-radius: 10px;
101
- }
102
  .wpsr-sharebar:hover .wpsr-sb-close{
103
  display: block;
104
  }
105
 
106
- .wpsr-sharebar.wpsr-how{
107
- display: none;
108
- }
109
-
110
  .wpsr-sb-close{
111
  position: absolute;
112
  cursor: pointer;
@@ -125,13 +108,11 @@
125
  left: 50%;
126
  }
127
  .wpsr-sb-hl .wpsr-sb-close{
128
- right: 0;
129
- transform: translate(100%, -50%);
130
- top: 50%;
131
  }
132
 
133
- /** When Sharebar is minimized **/
134
- .wpsr-mow.wpsr-sharebar{
135
  width: 48px;
136
  height: 48px;
137
  border-radius: 50%;
@@ -139,10 +120,10 @@
139
  border: none !important;
140
  box-shadow: none !important;
141
  }
142
- .wpsr-mow.wpsr-sharebar .wpsr-sb-inner{
143
  display: none;
144
  }
145
- .wpsr-mow.wpsr-sharebar .wpsr-sb-close{
146
  top: 0;
147
  margin-top: 0;
148
  transform: none;
@@ -159,10 +140,14 @@
159
  text-align: center;
160
  font-size: 10px;
161
  color: #000;
 
 
 
162
  }
163
  .wpsr-counter .scount{
164
  font-size: 2em;
165
  font-weight: bold;
 
166
  }
167
  .wpsr-counter .stext{
168
  display: block;
@@ -174,19 +159,6 @@
174
  opacity: 0.5;
175
  }
176
 
177
- .wpsr-counter.wpsrc-hl{
178
- line-height: 1em;
179
- font-size: 18px;
180
- }
181
- .wpsr-counter.wpsrc-hl .scount{
182
- font-size: 1em;
183
- margin-right: 0.25em;
184
- }
185
- .wpsr-counter.wpsrc-hl .stext{
186
- display: inline-block;
187
- font-size: 0.8em;
188
- }
189
-
190
  .wpsr-counter.wpsrc-sz-40px{
191
  font-size: 12.5px;
192
  }
@@ -215,8 +187,8 @@
215
  border: none;
216
  }
217
 
218
- /* Follow bar */
219
- .wpsr-followbar{
220
  position: fixed;
221
  z-index: 999999;
222
  line-height: 0;
@@ -258,11 +230,11 @@
258
  transform: translateY( -50% );
259
  }
260
 
261
- .wpsr-followbar div.sr-fb-title{
262
  font-size: 0.8em;
263
  margin: 0 0 0.8em 0;
264
  }
265
- .wpsr-followbar.sr-fb-hl .sr-fb-title{
266
  position: absolute;
267
  bottom: 0;
268
  transform: translateX(-100%);
@@ -270,11 +242,11 @@
270
  top: 50%;
271
  margin: 0;
272
  }
273
- .wpsr-followbar.sr-fb-vl{
274
  text-align: center;
275
  line-height: 1.5q;
276
  }
277
- .wpsr-followbar.sr-fb-vl .sr-fb-title{
278
  width: 5em;
279
  text-align: center;
280
  line-height: 1.5;
@@ -291,16 +263,16 @@
291
  .wpsr-fb-close:hover{
292
  opacity: 0.8;
293
  }
294
- .wpsr-followbar:hover .wpsr-fb-close{
295
  display: block;
296
  }
297
- .wpsr-mow.wpsr-followbar .sr-fb-title{
298
  display: none;
299
  }
300
- .wpsr-mow.wpsr-followbar .sr-followbar{
301
  display: none;
302
  }
303
- .wpsr-mow.wpsr-followbar .wpsr-fb-close{
304
  display: block;
305
  }
306
 
@@ -323,7 +295,7 @@
323
  .sr-fb-hl.sr-fb-tr .wpsr-fb-close {
324
  padding-right: 0;
325
  }
326
- .wpsr-mow.sr-fb-tl .wpsr-fb-close, .wpsr-mow.sr-fb-lm .wpsr-fb-close{
327
  right: -24px;
328
  transform: translateY(0%);
329
  }
@@ -402,27 +374,7 @@
402
  animation: wpsr-fadein 1s;
403
  }
404
 
405
- /* Mobile sharebar */
406
- .wpsr-mobile-sb{
407
- position: fixed;
408
- bottom: 0;
409
- left: 0;
410
- right: 0;
411
- line-height: 0;
412
- background: #fff;
413
- box-shadow: 0 3px 5px 3px #000;
414
- transition: margin 1s ease-out;
415
- margin-bottom: 0;
416
- z-index: 99999;
417
- }
418
- .wpsr-mobile-sb.wpsr-msb-hide{
419
- transition: margin 2s ease-out;
420
- margin-bottom: -68px;
421
- }
422
 
423
- .wpsr-mow.wpsr-buttons{
424
- display: none;
425
- }
426
 
427
  /* Collapse icon */
428
  .wpsr-bar-icon{
@@ -437,13 +389,13 @@
437
  .wpsr-bar-icon .i-open{
438
  display: none;
439
  }
440
- .wpsr-mow .wpsr-bar-icon .i-close{
441
  display: none;
442
  }
443
- .wpsr-mow .wpsr-bar-icon .i-open{
444
  display: block;
445
  }
446
- .wpsr-mow .wpsr-bar-icon{
447
  padding: 5px;
448
  }
449
 
@@ -453,21 +405,16 @@
453
  clear: both;
454
  content: '';
455
  }
456
- .wpsr-flex{
457
- display: flex;
458
  }
459
- .wpsr-flex-center{
460
- display: flex;
461
- justify-content: center;
462
  }
463
  .sr-custom-html {
464
  line-height: 1;
465
  }
466
 
467
- .wpsr-btn .fb_iframe_widget {
468
- margin-bottom: 0;
469
- }
470
-
471
  @keyframes wpsr-fadein {
472
  0% {opacity: 0;}
473
  100% {opacity: 1;}
@@ -476,82 +423,3 @@
476
  0% {opacity: 1;}
477
  100% {opacity: 0;}
478
  }
479
-
480
- @media only screen and (max-width : 800px){
481
- /* Sharebar - Horizontal on mobile */
482
- .wpsr-sb-hl{
483
- bottom: 0 !important;
484
- top: auto !important;
485
- left: -1px !important;
486
- right: -1px !important;
487
- border-radius: 0;
488
- overflow: auto;
489
- transform: none;
490
- padding-left: 60px;
491
- max-height: 84px;
492
- }
493
- .wpsr-sb-hl .wpsr-sb-inner{
494
- width: 100%;
495
- padding: 10px;
496
- }
497
- .wpsr-sb-hl .wpsr-sb-close {
498
- display: block;
499
- position: absolute;
500
- left: 0;
501
- top: 0;
502
- bottom: 0;
503
- width: 50px;
504
- transform: none;
505
- padding: 0;
506
- }
507
-
508
- /* Sharebar - Vertical on mobile */
509
- .wpsr-sb-vl{
510
- bottom: 0 !important;
511
- top: 0 !important;
512
- left: -1px !important;
513
- right: auto !important;
514
- margin-left: 0 !important;
515
- border-radius: 0;
516
- overflow: auto;
517
- transform: none;
518
- padding-top: 60px;
519
- }
520
- .wpsr-sb-vl .wpsr-sb-close {
521
- display: block;
522
- position: absolute;
523
- left: 0 !important;
524
- top: 0;
525
- right: 0;
526
- margin: 0 !important;
527
- transform: none;
528
- height: 50px;
529
- padding: 0;
530
- }
531
- .wpsr-sb-vl.wpsr-sb-mobmode-right{
532
- right: 0 !important;
533
- left: auto !important;
534
- }
535
- .wpsr-sb-simple-ns{
536
- background: #fff;
537
- border: 1px solid #dfdfdf;
538
- }
539
-
540
- /** Hidden sharebar -mobile **/
541
- .wpsr-mow.wpsr-sharebar {
542
- width: 50px;
543
- height: 50px;
544
- padding: 0;
545
- overflow: hidden;
546
- border-radius: 0;
547
- }
548
-
549
- /* Sharebar - Close button */
550
- .wpsr-sharebar .wpsr-bar-icon {
551
- position: absolute;
552
- top: 50%;
553
- left: 50%;
554
- transform: translate(-50%,-50%);
555
- }
556
-
557
- }
3
  content: '';
4
  display: block;
5
  }
6
+
7
+ /* Share icons */
8
+ .wp-socializer.wpsr-share-icons {
9
+ margin: 1.5em 0;
10
  }
11
+ .wp-socializer.wpsr-share-icons:last-child {
12
+ margin-bottom: 0;
 
 
 
13
  }
14
+ .wpsr-share-icons .wpsr-si-inner{
15
+ display: flex;
16
+ }
17
+ .wpsr-share-icons .wpsr-si-inner > *:first-child {
18
+ margin-left: 0;
19
+ }
20
+ .wpsr-share-icons .wpsr-si-inner > *:last-child {
21
  margin-right: 0;
22
  }
23
+ .wpsr-share-icons .socializer{
24
+ margin: 0 1em;
25
+ }
26
+ .wpsr-share-icons.wpsr-flex-center{
27
+ text-align: center;
28
+ }
29
+ .wpsr-share-icons.wpsr-flex-center .wpsr-si-inner{
30
+ justify-content: center;
31
+ }
32
 
33
+ /* Sharebar */
34
  .wpsr-sharebar{
35
  transition: all 0.5s;
36
  box-sizing: border-box;
37
  z-index: 99999;
38
  }
39
+ .wpsr-sharebar .socializer{
40
+ line-height: 0;
41
+ }
42
  .wpsr-sb-inner:after{
43
  content: '';
44
  display: block;
51
  transform: translateY(-50%);
52
  position: fixed;
53
  }
54
+ .wpsr-sb-vl .wpsr-counter{
55
+ margin-bottom: 1.5em;
 
 
 
 
 
 
 
 
 
 
56
  }
57
  .wpsr-sb-vl-static{
58
  position: absolute;
59
  }
60
 
61
  .wpsr-sb-hl{
62
+ bottom: 0;
63
+ left: 0 !important;
64
+ right: 0 !important;
65
+ margin: 0 !important;
66
  position: fixed;
67
+ background: #fff;
68
+ box-shadow: 0 -2px 4px -2px rgba(0, 0, 0, 0.5);
69
  }
70
+ .wpsr-sb-hl .wpsr-sb-inner{
71
+ display: flex;
 
 
 
 
 
 
 
 
 
72
  }
73
+ .wpsr-sb-hl .wpsr-counter{
74
+ padding: 0 1em;
75
  }
76
 
77
  /* Sharebar themes */
82
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
83
  border: 1px solid transparent;
84
  }
85
+ .wpsr-sb-simple.wpsr-sb-hl{
86
+ border-radius: 0;
 
 
 
 
 
 
 
87
  }
88
 
 
 
 
 
 
 
 
 
89
  .wpsr-sharebar:hover .wpsr-sb-close{
90
  display: block;
91
  }
92
 
 
 
 
 
93
  .wpsr-sb-close{
94
  position: absolute;
95
  cursor: pointer;
108
  left: 50%;
109
  }
110
  .wpsr-sb-hl .wpsr-sb-close{
111
+ display: none;
 
 
112
  }
113
 
114
+ /** When Sharebar is close **/
115
+ .wpsr-sharebar.wpsr-closed{
116
  width: 48px;
117
  height: 48px;
118
  border-radius: 50%;
120
  border: none !important;
121
  box-shadow: none !important;
122
  }
123
+ .wpsr-sharebar.wpsr-closed .wpsr-sb-inner{
124
  display: none;
125
  }
126
+ .wpsr-sharebar.wpsr-closed .wpsr-sb-close{
127
  top: 0;
128
  margin-top: 0;
129
  transform: none;
140
  text-align: center;
141
  font-size: 10px;
142
  color: #000;
143
+ display: flex;
144
+ flex-direction: column;
145
+ justify-content: center;
146
  }
147
  .wpsr-counter .scount{
148
  font-size: 2em;
149
  font-weight: bold;
150
+ margin-bottom: 0.25em;
151
  }
152
  .wpsr-counter .stext{
153
  display: block;
159
  opacity: 0.5;
160
  }
161
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  .wpsr-counter.wpsrc-sz-40px{
163
  font-size: 12.5px;
164
  }
187
  border: none;
188
  }
189
 
190
+ /* Follow icons */
191
+ .wpsr-follow-icons{
192
  position: fixed;
193
  z-index: 999999;
194
  line-height: 0;
230
  transform: translateY( -50% );
231
  }
232
 
233
+ .wpsr-follow-icons div.sr-fb-title{
234
  font-size: 0.8em;
235
  margin: 0 0 0.8em 0;
236
  }
237
+ .wpsr-follow-icons.sr-fb-hl .sr-fb-title{
238
  position: absolute;
239
  bottom: 0;
240
  transform: translateX(-100%);
242
  top: 50%;
243
  margin: 0;
244
  }
245
+ .wpsr-follow-icons.sr-fb-vl{
246
  text-align: center;
247
  line-height: 1.5q;
248
  }
249
+ .wpsr-follow-icons.sr-fb-vl .sr-fb-title{
250
  width: 5em;
251
  text-align: center;
252
  line-height: 1.5;
263
  .wpsr-fb-close:hover{
264
  opacity: 0.8;
265
  }
266
+ .wpsr-follow-icons:hover .wpsr-fb-close{
267
  display: block;
268
  }
269
+ .wpsr-closed.wpsr-follow-icons .sr-fb-title{
270
  display: none;
271
  }
272
+ .wpsr-closed.wpsr-follow-icons .sr-followbar{
273
  display: none;
274
  }
275
+ .wpsr-closed.wpsr-follow-icons .wpsr-fb-close{
276
  display: block;
277
  }
278
 
295
  .sr-fb-hl.sr-fb-tr .wpsr-fb-close {
296
  padding-right: 0;
297
  }
298
+ .wpsr-closed.sr-fb-tl .wpsr-fb-close, .wpsr-closed.sr-fb-lm .wpsr-fb-close{
299
  right: -24px;
300
  transform: translateY(0%);
301
  }
374
  animation: wpsr-fadein 1s;
375
  }
376
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
377
 
 
 
 
378
 
379
  /* Collapse icon */
380
  .wpsr-bar-icon{
389
  .wpsr-bar-icon .i-open{
390
  display: none;
391
  }
392
+ .wpsr-closed .wpsr-bar-icon .i-close{
393
  display: none;
394
  }
395
+ .wpsr-closed .wpsr-bar-icon .i-open{
396
  display: block;
397
  }
398
+ .wpsr-closed .wpsr-bar-icon{
399
  padding: 5px;
400
  }
401
 
405
  clear: both;
406
  content: '';
407
  }
408
+ .wpsr-hide{
409
+ display: none;
410
  }
411
+ .wpsr-close{
412
+ background: red;
 
413
  }
414
  .sr-custom-html {
415
  line-height: 1;
416
  }
417
 
 
 
 
 
418
  @keyframes wpsr-fadein {
419
  0% {opacity: 0;}
420
  100% {opacity: 1;}
423
  0% {opacity: 1;}
424
  100% {opacity: 0;}
425
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
public/css/wp-socializer.min.css CHANGED
@@ -1 +1 @@
1
- .wp-socializer:after{clear:both;content:'';display:block}.wpsr-buttons{display:block;margin:0 0 1.5em 0}.wpsr-buttons .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0}.wpsr-buttons .wpsr-btn:last-child{margin-right:0}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:99999;max-width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-btn{margin-bottom:1em;display:block}.wpsr-sb-vl .wpsr-btn:last-child{margin:0}.wpsr-sb-vl-wleft{left:0}.wpsr-sb-vl-wright{right:0}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{left:50%;transform:translateX(-50%);position:fixed}.wpsr-sb-hl .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0}.wpsr-sb-hl .wpsr-btn:last-child{margin:0}.wpsr-sb-hl-wtop{top:0}.wpsr-sb-hl-wbottom{bottom:0}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-sq{padding:10px;text-align:center;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-ns{text-align:center;border:1px solid transparent}.wpsr-sharebar::-webkit-scrollbar{width:5px;height:5px}.wpsr-sharebar::-webkit-scrollbar-thumb{background:#aaa;border-radius:10px}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sharebar.wpsr-how{display:none}.wpsr-sb-close{position:absolute;cursor:pointer;display:none;padding:10px}.wpsr-sb-close .wpsr-bar-icon{opacity:0.2}.wpsr-sb-close:hover .wpsr-bar-icon{opacity:0.8}.wpsr-sb-vl .wpsr-sb-close{bottom:0;transform:translate(-50%,100%);left:50%}.wpsr-sb-hl .wpsr-sb-close{right:0;transform:translate(100%,-50%);top:50%}.wpsr-mow.wpsr-sharebar{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-mow.wpsr-sharebar .wpsr-sb-inner{display:none}.wpsr-mow.wpsr-sharebar .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;line-height:48px;display:block;padding:0}.wpsr-counter{line-height:2em;text-align:center;font-size:10px;color:#000}.wpsr-counter .scount{font-size:2em;font-weight:bold}.wpsr-counter .stext{display:block;line-height:1em;color:inherit;text-transform:uppercase;font-size:1em;margin-top:-0.15em;opacity:0.5}.wpsr-counter.wpsrc-hl{line-height:1em;font-size:18px}.wpsr-counter.wpsrc-hl .scount{font-size:1em;margin-right:0.25em}.wpsr-counter.wpsrc-hl .stext{display:inline-block;font-size:0.8em}.wpsr-counter.wpsrc-sz-40px{font-size:12.5px}.wpsr-counter.wpsrc-sz-48px{font-size:15px}.wpsr-counter.wpsrc-sz-64px{font-size:20px}.wpsr-sharebar .wpsr-counter{font-size:8.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-40px{font-size:9.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-48px{font-size:11.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-64px{font-size:15.2px}.socializer span.sr-cicon a{background:none;border:none}.wpsr-followbar{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:20px;left:20px}.sr-fb-tm{top:20px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:20px;right:20px}.sr-fb-rm{top:50%;right:20px;transform:translateY( -50% )}.sr-fb-br{bottom:20px;right:20px}.sr-fb-bm{bottom:20px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:20px;left:20px}.sr-fb-lm{left:20px;top:50%;transform:translateY( -50% )}.wpsr-followbar div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-followbar.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-followbar.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-followbar.sr-fb-vl .sr-fb-title{width:5em;text-align:center;line-height:1.5}.wpsr-fb-close{position:absolute;right:0;cursor:pointer;display:none;line-height:0;padding:1em;opacity:0.2}.wpsr-fb-close:hover{opacity:0.8}.wpsr-followbar:hover .wpsr-fb-close{display:block}.wpsr-mow.wpsr-followbar .sr-fb-title{display:none}.wpsr-mow.wpsr-followbar .sr-followbar{display:none}.wpsr-mow.wpsr-followbar .wpsr-fb-close{display:block}.sr-fb-bm .wpsr-fb-close,.sr-fb-bl .wpsr-fb-close{right:0;transform:translate(100%,-100%);padding-bottom:0}.sr-fb-vl.sr-fb-br .wpsr-fb-close{left:0;bottom:0;transform:translateX(-100%);padding-bottom:0}.sr-fb-hl.sr-fb-br .wpsr-fb-close{top:0;right:0;transform:translateY(-100%)}.sr-fb-hl.sr-fb-tr .wpsr-fb-close{padding-right:0}.wpsr-mow.sr-fb-tl .wpsr-fb-close,.wpsr-mow.sr-fb-lm .wpsr-fb-close{right:-24px;transform:translateY(0%)}.wpsr-text-sb{background:#fff;margin:0;padding:0 10px;border-radius:5px;display:inline-block;position:absolute;transform:translate( -50%,-150% );margin-top:-10px;transition:margin-top 0.5s;display:none;animation:wpsr-fadeout 1s;box-shadow:0 3px 6px -3px #000;background-image:linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0));z-index:999}.wpsr-text-sb:before{position:absolute;content:'';display:block;background-color:inherit;width:10px;height:10px;bottom:-5px;transform:rotate(45deg) translateX(-50%);left:50%;z-index:-1;transform-origin:left;box-shadow:2px 2px 4px -2px #000}.wpsr-text-sb li{list-style:none;float:left;line-height:0}.wpsr-text-sb li a{text-align:center;display:inline-block}.wpsr-text-sb li a:hover{background-image:linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0))}.wpsr-tsb-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.wpsr-tsb-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.wpsr-tsb-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.wpsr-tsb-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.wpsr-text-sb.wpsr-tsb-active{margin-top:0;transition:margin-top 0.5s;display:block;animation:wpsr-fadein 1s}.wpsr-mobile-sb{position:fixed;bottom:0;left:0;right:0;line-height:0;background:#fff;box-shadow:0 3px 5px 3px #000;transition:margin 1s ease-out;margin-bottom:0;z-index:99999}.wpsr-mobile-sb.wpsr-msb-hide{transition:margin 2s ease-out;margin-bottom:-68px}.wpsr-mow.wpsr-buttons{display:none}.wpsr-bar-icon{line-height:0;background:#000;display:inline-block;padding:3px;border-radius:50%;vertical-align:middle;fill:#fff}.wpsr-bar-icon .i-open{display:none}.wpsr-mow .wpsr-bar-icon .i-close{display:none}.wpsr-mow .wpsr-bar-icon .i-open{display:block}.wpsr-mow .wpsr-bar-icon{padding:5px}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-flex{display:flex}.wpsr-flex-center{display:flex;justify-content:center}.sr-custom-html{line-height:1}.wpsr-btn .fb_iframe_widget{margin-bottom:0}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}@media only screen and (max-width:800px){.wpsr-sb-hl{bottom:0!important;top:auto!important;left:-1px!important;right:-1px!important;border-radius:0;overflow:auto;transform:none;padding-left:60px;max-height:84px}.wpsr-sb-hl .wpsr-sb-inner{width:100%;padding:10px}.wpsr-sb-hl .wpsr-sb-close{display:block;position:absolute;left:0;top:0;bottom:0;width:50px;transform:none;padding:0}.wpsr-sb-vl{bottom:0!important;top:0!important;left:-1px!important;right:auto!important;margin-left:0!important;border-radius:0;overflow:auto;transform:none;padding-top:60px}.wpsr-sb-vl .wpsr-sb-close{display:block;position:absolute;left:0!important;top:0;right:0;margin:0!important;transform:none;height:50px;padding:0}.wpsr-sb-vl.wpsr-sb-mobmode-right{right:0!important;left:auto!important}.wpsr-sb-simple-ns{background:#fff;border:1px solid #dfdfdf}.wpsr-mow.wpsr-sharebar{width:50px;height:50px;padding:0;overflow:hidden;border-radius:0}.wpsr-sharebar .wpsr-bar-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}}
1
+ .wp-socializer:after{clear:both;content:'';display:block}.wp-socializer.wpsr-share-icons{margin:1.5em 0}.wp-socializer.wpsr-share-icons:last-child{margin-bottom:0}.wpsr-share-icons .wpsr-si-inner{display:flex}.wpsr-share-icons .wpsr-si-inner > *:first-child{margin-left:0}.wpsr-share-icons .wpsr-si-inner > *:last-child{margin-right:0}.wpsr-share-icons .socializer{margin:0 1em}.wpsr-share-icons.wpsr-flex-center{text-align:center}.wpsr-share-icons.wpsr-flex-center .wpsr-si-inner{justify-content:center}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.wpsr-sharebar .socializer{line-height:0}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:99999;max-width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-counter{margin-bottom:1.5em}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{bottom:0;left:0!important;right:0!important;margin:0!important;position:fixed;background:#fff;box-shadow:0 -2px 4px -2px rgba(0,0,0,0.5)}.wpsr-sb-hl .wpsr-sb-inner{display:flex}.wpsr-sb-hl .wpsr-counter{padding:0 1em}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple.wpsr-sb-hl{border-radius:0}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sb-close{position:absolute;cursor:pointer;display:none;padding:10px}.wpsr-sb-close .wpsr-bar-icon{opacity:0.2}.wpsr-sb-close:hover .wpsr-bar-icon{opacity:0.8}.wpsr-sb-vl .wpsr-sb-close{bottom:0;transform:translate(-50%,100%);left:50%}.wpsr-sb-hl .wpsr-sb-close{display:none}.wpsr-sharebar.wpsr-closed{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-sharebar.wpsr-closed .wpsr-sb-inner{display:none}.wpsr-sharebar.wpsr-closed .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;line-height:48px;display:block;padding:0}.wpsr-counter{line-height:2em;text-align:center;font-size:10px;color:#000;display:flex;flex-direction:column;justify-content:center}.wpsr-counter .scount{font-size:2em;font-weight:bold;margin-bottom:0.25em}.wpsr-counter .stext{display:block;line-height:1em;color:inherit;text-transform:uppercase;font-size:1em;margin-top:-0.15em;opacity:0.5}.wpsr-counter.wpsrc-sz-40px{font-size:12.5px}.wpsr-counter.wpsrc-sz-48px{font-size:15px}.wpsr-counter.wpsrc-sz-64px{font-size:20px}.wpsr-sharebar .wpsr-counter{font-size:8.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-40px{font-size:9.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-48px{font-size:11.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-64px{font-size:15.2px}.socializer span.sr-cicon a{background:none;border:none}.wpsr-follow-icons{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:20px;left:20px}.sr-fb-tm{top:20px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:20px;right:20px}.sr-fb-rm{top:50%;right:20px;transform:translateY( -50% )}.sr-fb-br{bottom:20px;right:20px}.sr-fb-bm{bottom:20px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:20px;left:20px}.sr-fb-lm{left:20px;top:50%;transform:translateY( -50% )}.wpsr-follow-icons div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-follow-icons.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-follow-icons.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-follow-icons.sr-fb-vl .sr-fb-title{width:5em;text-align:center;line-height:1.5}.wpsr-fb-close{position:absolute;right:0;cursor:pointer;display:none;line-height:0;padding:1em;opacity:0.2}.wpsr-fb-close:hover{opacity:0.8}.wpsr-follow-icons:hover .wpsr-fb-close{display:block}.wpsr-closed.wpsr-follow-icons .sr-fb-title{display:none}.wpsr-closed.wpsr-follow-icons .sr-followbar{display:none}.wpsr-closed.wpsr-follow-icons .wpsr-fb-close{display:block}.sr-fb-bm .wpsr-fb-close,.sr-fb-bl .wpsr-fb-close{right:0;transform:translate(100%,-100%);padding-bottom:0}.sr-fb-vl.sr-fb-br .wpsr-fb-close{left:0;bottom:0;transform:translateX(-100%);padding-bottom:0}.sr-fb-hl.sr-fb-br .wpsr-fb-close{top:0;right:0;transform:translateY(-100%)}.sr-fb-hl.sr-fb-tr .wpsr-fb-close{padding-right:0}.wpsr-closed.sr-fb-tl .wpsr-fb-close,.wpsr-closed.sr-fb-lm .wpsr-fb-close{right:-24px;transform:translateY(0%)}.wpsr-text-sb{background:#fff;margin:0;padding:0 10px;border-radius:5px;display:inline-block;position:absolute;transform:translate( -50%,-150% );margin-top:-10px;transition:margin-top 0.5s;display:none;animation:wpsr-fadeout 1s;box-shadow:0 3px 6px -3px #000;background-image:linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0));z-index:999}.wpsr-text-sb:before{position:absolute;content:'';display:block;background-color:inherit;width:10px;height:10px;bottom:-5px;transform:rotate(45deg) translateX(-50%);left:50%;z-index:-1;transform-origin:left;box-shadow:2px 2px 4px -2px #000}.wpsr-text-sb li{list-style:none;float:left;line-height:0}.wpsr-text-sb li a{text-align:center;display:inline-block}.wpsr-text-sb li a:hover{background-image:linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0))}.wpsr-tsb-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.wpsr-tsb-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.wpsr-tsb-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.wpsr-tsb-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.wpsr-text-sb.wpsr-tsb-active{margin-top:0;transition:margin-top 0.5s;display:block;animation:wpsr-fadein 1s}.wpsr-bar-icon{line-height:0;background:#000;display:inline-block;padding:3px;border-radius:50%;vertical-align:middle;fill:#fff}.wpsr-bar-icon .i-open{display:none}.wpsr-closed .wpsr-bar-icon .i-close{display:none}.wpsr-closed .wpsr-bar-icon .i-open{display:block}.wpsr-closed .wpsr-bar-icon{padding:5px}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-hide{display:none}.wpsr-close{background:red}.sr-custom-html{line-height:1}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}
public/css/wpsr.min.css CHANGED
@@ -1,6 +1,6 @@
1
- .wp-socializer:after{clear:both;content:'';display:block}.wpsr-buttons{display:block;margin:0 0 1.5em 0}.wpsr-buttons .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0}.wpsr-buttons .wpsr-btn:last-child{margin-right:0}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:99999;max-width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-btn{margin-bottom:1em;display:block}.wpsr-sb-vl .wpsr-btn:last-child{margin:0}.wpsr-sb-vl-wleft{left:0}.wpsr-sb-vl-wright{right:0}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{left:50%;transform:translateX(-50%);position:fixed}.wpsr-sb-hl .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0}.wpsr-sb-hl .wpsr-btn:last-child{margin:0}.wpsr-sb-hl-wtop{top:0}.wpsr-sb-hl-wbottom{bottom:0}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-sq{padding:10px;text-align:center;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-ns{text-align:center;border:1px solid transparent}.wpsr-sharebar::-webkit-scrollbar{width:5px;height:5px}.wpsr-sharebar::-webkit-scrollbar-thumb{background:#aaa;border-radius:10px}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sharebar.wpsr-how{display:none}.wpsr-sb-close{position:absolute;cursor:pointer;display:none;padding:10px}.wpsr-sb-close .wpsr-bar-icon{opacity:0.2}.wpsr-sb-close:hover .wpsr-bar-icon{opacity:0.8}.wpsr-sb-vl .wpsr-sb-close{bottom:0;transform:translate(-50%,100%);left:50%}.wpsr-sb-hl .wpsr-sb-close{right:0;transform:translate(100%,-50%);top:50%}.wpsr-mow.wpsr-sharebar{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-mow.wpsr-sharebar .wpsr-sb-inner{display:none}.wpsr-mow.wpsr-sharebar .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;line-height:48px;display:block;padding:0}.wpsr-counter{line-height:2em;text-align:center;font-size:10px;color:#000}.wpsr-counter .scount{font-size:2em;font-weight:bold}.wpsr-counter .stext{display:block;line-height:1em;color:inherit;text-transform:uppercase;font-size:1em;margin-top:-0.15em;opacity:0.5}.wpsr-counter.wpsrc-hl{line-height:1em;font-size:18px}.wpsr-counter.wpsrc-hl .scount{font-size:1em;margin-right:0.25em}.wpsr-counter.wpsrc-hl .stext{display:inline-block;font-size:0.8em}.wpsr-counter.wpsrc-sz-40px{font-size:12.5px}.wpsr-counter.wpsrc-sz-48px{font-size:15px}.wpsr-counter.wpsrc-sz-64px{font-size:20px}.wpsr-sharebar .wpsr-counter{font-size:8.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-40px{font-size:9.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-48px{font-size:11.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-64px{font-size:15.2px}.socializer span.sr-cicon a{background:none;border:none}.wpsr-followbar{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:20px;left:20px}.sr-fb-tm{top:20px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:20px;right:20px}.sr-fb-rm{top:50%;right:20px;transform:translateY( -50% )}.sr-fb-br{bottom:20px;right:20px}.sr-fb-bm{bottom:20px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:20px;left:20px}.sr-fb-lm{left:20px;top:50%;transform:translateY( -50% )}.wpsr-followbar div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-followbar.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-followbar.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-followbar.sr-fb-vl .sr-fb-title{width:5em;text-align:center;line-height:1.5}.wpsr-fb-close{position:absolute;right:0;cursor:pointer;display:none;line-height:0;padding:1em;opacity:0.2}.wpsr-fb-close:hover{opacity:0.8}.wpsr-followbar:hover .wpsr-fb-close{display:block}.wpsr-mow.wpsr-followbar .sr-fb-title{display:none}.wpsr-mow.wpsr-followbar .sr-followbar{display:none}.wpsr-mow.wpsr-followbar .wpsr-fb-close{display:block}.sr-fb-bm .wpsr-fb-close,.sr-fb-bl .wpsr-fb-close{right:0;transform:translate(100%,-100%);padding-bottom:0}.sr-fb-vl.sr-fb-br .wpsr-fb-close{left:0;bottom:0;transform:translateX(-100%);padding-bottom:0}.sr-fb-hl.sr-fb-br .wpsr-fb-close{top:0;right:0;transform:translateY(-100%)}.sr-fb-hl.sr-fb-tr .wpsr-fb-close{padding-right:0}.wpsr-mow.sr-fb-tl .wpsr-fb-close,.wpsr-mow.sr-fb-lm .wpsr-fb-close{right:-24px;transform:translateY(0%)}.wpsr-text-sb{background:#fff;margin:0;padding:0 10px;border-radius:5px;display:inline-block;position:absolute;transform:translate( -50%,-150% );margin-top:-10px;transition:margin-top 0.5s;display:none;animation:wpsr-fadeout 1s;box-shadow:0 3px 6px -3px #000;background-image:linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0));z-index:999}.wpsr-text-sb:before{position:absolute;content:'';display:block;background-color:inherit;width:10px;height:10px;bottom:-5px;transform:rotate(45deg) translateX(-50%);left:50%;z-index:-1;transform-origin:left;box-shadow:2px 2px 4px -2px #000}.wpsr-text-sb li{list-style:none;float:left;line-height:0}.wpsr-text-sb li a{text-align:center;display:inline-block}.wpsr-text-sb li a:hover{background-image:linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0))}.wpsr-tsb-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.wpsr-tsb-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.wpsr-tsb-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.wpsr-tsb-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.wpsr-text-sb.wpsr-tsb-active{margin-top:0;transition:margin-top 0.5s;display:block;animation:wpsr-fadein 1s}.wpsr-mobile-sb{position:fixed;bottom:0;left:0;right:0;line-height:0;background:#fff;box-shadow:0 3px 5px 3px #000;transition:margin 1s ease-out;margin-bottom:0;z-index:99999}.wpsr-mobile-sb.wpsr-msb-hide{transition:margin 2s ease-out;margin-bottom:-68px}.wpsr-mow.wpsr-buttons{display:none}.wpsr-bar-icon{line-height:0;background:#000;display:inline-block;padding:3px;border-radius:50%;vertical-align:middle;fill:#fff}.wpsr-bar-icon .i-open{display:none}.wpsr-mow .wpsr-bar-icon .i-close{display:none}.wpsr-mow .wpsr-bar-icon .i-open{display:block}.wpsr-mow .wpsr-bar-icon{padding:5px}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-flex{display:flex}.wpsr-flex-center{display:flex;justify-content:center}.sr-custom-html{line-height:1}.wpsr-btn .fb_iframe_widget{margin-bottom:0}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}@media only screen and (max-width:800px){.wpsr-sb-hl{bottom:0!important;top:auto!important;left:-1px!important;right:-1px!important;border-radius:0;overflow:auto;transform:none;padding-left:60px;max-height:84px}.wpsr-sb-hl .wpsr-sb-inner{width:100%;padding:10px}.wpsr-sb-hl .wpsr-sb-close{display:block;position:absolute;left:0;top:0;bottom:0;width:50px;transform:none;padding:0}.wpsr-sb-vl{bottom:0!important;top:0!important;left:-1px!important;right:auto!important;margin-left:0!important;border-radius:0;overflow:auto;transform:none;padding-top:60px}.wpsr-sb-vl .wpsr-sb-close{display:block;position:absolute;left:0!important;top:0;right:0;margin:0!important;transform:none;height:50px;padding:0}.wpsr-sb-vl.wpsr-sb-mobmode-right{right:0!important;left:auto!important}.wpsr-sb-simple-ns{background:#fff;border:1px solid #dfdfdf}.wpsr-mow.wpsr-sharebar{width:50px;height:50px;padding:0;overflow:hidden;border-radius:0}.wpsr-sharebar .wpsr-bar-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}}
2
  /*!
3
  * Socializer - CSS library for social media buttons
4
  * Copyright (c) 2020 Aakash Chakravarthy - www.aakashweb.com
5
  * MIT license
6
- */.socializer{padding:0;margin:0;display:inline-block}.socializer>*{float:left;list-style:none;padding:0;margin:0;display:inline-block;position:relative}.socializer a{font-family:sans-serif!important;display:inline-block;border:0;text-align:center;text-decoration:none;width:16px;height:16px;line-height:18px;font-size:8px;border-style:solid;box-sizing:content-box;transition:all .5s;-webkit-transition:all .2s;transition-timing-function:ease-out;-webkit-transition-timing-function:ease-out}.socializer a>*{display:inline-block;vertical-align:middle;padding:0;margin:0}.socializer:after{content:'';clear:both;display:block}.sr-32px{min-height:32px}.sr-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.sr-32px.sr-font-sm a{font-size:10.6666666667px}.sr-32px.sr-font-lg a{font-size:21.3333333333px}.sr-40px{min-height:40px}.sr-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.sr-40px.sr-font-sm a{font-size:13.3333333333px}.sr-40px.sr-font-lg a{font-size:26.6666666667px}.sr-48px{min-height:48px}.sr-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.sr-48px.sr-font-sm a{font-size:16px}.sr-48px.sr-font-lg a{font-size:32px}.sr-64px{min-height:64px}.sr-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.sr-64px.sr-font-sm a{font-size:21.3333333333px}.sr-64px.sr-font-lg a{font-size:42.6666666667px}.socializer .sr-addtofavorites a,.socializer .sr-addtofavorites a:visited{color:#f9a600;border-color:#f9a600;background-color:#f9a600}.socializer .sr-behance a,.socializer .sr-behance a:visited{color:#1769ff;border-color:#1769ff;background-color:#1769ff}.socializer .sr-bitbucket a,.socializer .sr-bitbucket a:visited{color:#205081;border-color:#205081;background-color:#205081}.socializer .sr-blogger a,.socializer .sr-blogger a:visited{color:#ff6501;border-color:#ff6501;background-color:#ff6501}.socializer .sr-codepen a,.socializer .sr-codepen a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-comments a,.socializer .sr-comments a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-delicious a,.socializer .sr-delicious a:visited{color:#3274d1;border-color:#3274d1;background-color:#3274d1}.socializer .sr-deviantart a,.socializer .sr-deviantart a:visited{color:#475c4d;border-color:#475c4d;background-color:#475c4d}.socializer .sr-digg a,.socializer .sr-digg a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-dribbble a,.socializer .sr-dribbble a:visited{color:#ea4c89;border-color:#ea4c89;background-color:#ea4c89}.socializer .sr-email a,.socializer .sr-email a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-etsy a,.socializer .sr-etsy a:visited{color:#f1641e;border-color:#f1641e;background-color:#f1641e}.socializer .sr-facebook a,.socializer .sr-facebook a:visited{color:#3e5b98;border-color:#3e5b98;background-color:#3e5b98}.socializer .sr-fbmessenger a,.socializer .sr-fbmessenger a:visited{color:#2998ff;border-color:#2998ff;background-color:#2998ff}.socializer .sr-flickr a,.socializer .sr-flickr a:visited{color:#1c9be9;border-color:#1c9be9;background-color:#1c9be9}.socializer .sr-github a,.socializer .sr-github a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-google a,.socializer .sr-google a:visited{color:#3a7cec;border-color:#3a7cec;background-color:#3a7cec}.socializer .sr-googleplus a,.socializer .sr-googleplus a:visited{color:#db483b;border-color:#db483b;background-color:#db483b}.socializer .sr-hackernews a,.socializer .sr-hackernews a:visited{color:#ff6500;border-color:#ff6500;background-color:#ff6500}.socializer .sr-houzz a,.socializer .sr-houzz a:visited{color:#4dbc15;border-color:#4dbc15;background-color:#4dbc15}.socializer .sr-instagram a,.socializer .sr-instagram a:visited{color:#0d3c5f;border-color:#0d3c5f;background-color:#0d3c5f}.socializer .sr-line a,.socializer .sr-line a:visited{color:#00c300;border-color:#00c300;background-color:#00c300}.socializer .sr-linkedin a,.socializer .sr-linkedin a:visited{color:#0274b3;border-color:#0274b3;background-color:#0274b3}.socializer .sr-medium a,.socializer .sr-medium a:visited{color:#02b875;border-color:#02b875;background-color:#02b875}.socializer .sr-mix a,.socializer .sr-mix a:visited{color:#ff8226;border-color:#ff8226;background-color:#ff8226}.socializer .sr-odnoklassniki a,.socializer .sr-odnoklassniki a:visited{color:#f2720c;border-color:#f2720c;background-color:#f2720c}.socializer .sr-paypal a,.socializer .sr-paypal a:visited{color:#0070ba;border-color:#0070ba;background-color:#0070ba}.socializer .sr-pdf a,.socializer .sr-pdf a:visited{color:#e61b2e;border-color:#e61b2e;background-color:#e61b2e}.socializer .sr-phone a,.socializer .sr-phone a:visited{color:#1a73e8;border-color:#1a73e8;background-color:#1a73e8}.socializer .sr-pinterest a,.socializer .sr-pinterest a:visited{color:#cb2027;border-color:#cb2027;background-color:#cb2027}.socializer .sr-pocket a,.socializer .sr-pocket a:visited{color:#ef4056;border-color:#ef4056;background-color:#ef4056}.socializer .sr-print a,.socializer .sr-print a:visited{color:#6d9f00;border-color:#6d9f00;background-color:#6d9f00}.socializer .sr-reddit a,.socializer .sr-reddit a:visited{color:#ff5600;border-color:#ff5600;background-color:#ff5600}.socializer .sr-renren a,.socializer .sr-renren a:visited{color:#005eac;border-color:#005eac;background-color:#005eac}.socializer .sr-rss a,.socializer .sr-rss a:visited{color:#ff7b0a;border-color:#ff7b0a;background-color:#ff7b0a}.socializer .sr-shortlink a,.socializer .sr-shortlink a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-skype a,.socializer .sr-skype a:visited{color:#00aff0;border-color:#00aff0;background-color:#00aff0}.socializer .sr-snapchat a,.socializer .sr-snapchat a:visited{color:#fffc00;border-color:#fffc00;background-color:#fffc00}.socializer .sr-soundcloud a,.socializer .sr-soundcloud a:visited{color:#f50;border-color:#f50;background-color:#f50}.socializer .sr-stackoverflow a,.socializer .sr-stackoverflow a:visited{color:#f48024;border-color:#f48024;background-color:#f48024}.socializer .sr-stumbleupon a,.socializer .sr-stumbleupon a:visited{color:#eb4823;border-color:#eb4823;background-color:#eb4823}.socializer .sr-quora a,.socializer .sr-quora a:visited{color:#b92b27;border-color:#b92b27;background-color:#b92b27}.socializer .sr-telegram a,.socializer .sr-telegram a:visited{color:#179cde;border-color:#179cde;background-color:#179cde}.socializer .sr-tumblr a,.socializer .sr-tumblr a:visited{color:#314358;border-color:#314358;background-color:#314358}.socializer .sr-twitch a,.socializer .sr-twitch a:visited{color:#4b367c;border-color:#4b367c;background-color:#4b367c}.socializer .sr-twitter a,.socializer .sr-twitter a:visited{color:#4da7de;border-color:#4da7de;background-color:#4da7de}.socializer .sr-vimeo a,.socializer .sr-vimeo a:visited{color:#00adef;border-color:#00adef;background-color:#00adef}.socializer .sr-vkontakte a,.socializer .sr-vkontakte a:visited{color:#4c75a3;border-color:#4c75a3;background-color:#4c75a3}.socializer .sr-wechat a,.socializer .sr-wechat a:visited{color:#7bb32e;border-color:#7bb32e;background-color:#7bb32e}.socializer .sr-weibo a,.socializer .sr-weibo a:visited{color:#e6162d;border-color:#e6162d;background-color:#e6162d}.socializer .sr-whatsapp a,.socializer .sr-whatsapp a:visited{color:#60b82d;border-color:#60b82d;background-color:#60b82d}.socializer .sr-xing a,.socializer .sr-xing a:visited{color:#006567;border-color:#006567;background-color:#006567}.socializer .sr-yahoomail a,.socializer .sr-yahoomail a:visited{color:#4a00a1;border-color:#4a00a1;background-color:#4a00a1}.socializer .sr-youtube a,.socializer .sr-youtube a:visited{color:#cc181e;border-color:#cc181e;background-color:#cc181e}.socializer .sr-more>a,.socializer .sr-more>a:visited{color:green;border-color:green;background-color:green}.sr-text-in a{width:auto;padding:0 1em;overflow:hidden}.sr-text-in a>*{padding-right:.5em}.sr-text-in a>:last-child{padding-right:0}.sr-text-out a{vertical-align:middle}.sr-text-out .text{font-size:12px;margin-left:.5em;vertical-align:middle}.sr-text-below{text-align:center}.sr-text-below .text{display:block;font-size:12px;margin-top:.5em}.sr-text-hover .text{display:none;position:absolute;background:#000;color:#fff;font-size:12px;width:100px;top:-3em;border-radius:5px;text-align:center;line-height:2em;margin-left:-25%;z-index:9999}.sr-text-hover .text:before{position:absolute;content:'';border:.5em solid red;bottom:-1em;left:1em;width:0;height:0;border-color:#000 transparent transparent transparent}.sr-text-hover:hover>.text{display:block}.sr-bdr-sm.socializer a{border-width:1px}.sr-bdr-md.socializer a{border-width:2px}.sr-bdr-lg.socializer a{border-width:3px}.sr-bdr-none.socializer a{border-width:0}.sr-bdr-white.socializer a,.sr-bdr-white.socializer a:visited{border-color:#fff}.sr-bdr-dark.socializer a,.sr-bdr-dark.socializer a:visited{border-color:#000}.sr-bdr-grey.socializer a,.sr-bdr-grey.socializer a:visited{border-color:#ccc}.sr-bg-white.socializer a,.sr-bg-white.socializer a:visited{background-color:#fff}.sr-bg-dark.socializer a,.sr-bg-dark.socializer a:visited{background-color:#333}.sr-bg-grey.socializer a,.sr-bg-grey.socializer a:visited{background-color:#ccc}.sr-bg-none.socializer a,.sr-bg-none.socializer a:visited{background-color:transparent}.sr-icon-white.socializer a,.sr-icon-white.socializer a:visited{color:#fff}.sr-icon-dark.socializer a,.sr-icon-dark.socializer a:visited{color:#333}.sr-icon-grey.socializer a,.sr-icon-grey.socializer a:visited{color:#ccc}.sr-sw-1.socializer a{box-shadow:0 0 .2em rgba(0,0,0,.3)}.sr-sw-2.socializer a{box-shadow:inset 0 -.1em .1em rgba(0,0,0,.3)}.sr-sw-3.socializer a{box-shadow:0 -.1em .1em rgba(0,0,0,.3)}.sr-sw-icon-1.socializer a i{text-shadow:0 1px 1px rgba(0,0,0,.5)}.sr-count-1 span.ctext{background:#ff5722;position:absolute;top:-.6em;right:-.6em;border-radius:1em;font-size:.6em;line-height:1;padding:.3em .5em;z-index:99;color:#fff;box-shadow:0 1px 3px -1px #000}.sr-count-2 span.ctext{font-size:.8em;margin:0;padding:.5em;font-weight:700;line-height:.8em;background:rgba(0,0,0,.3);border-radius:1em}.sr-count-3 span.ctext{font-size:.8em;margin:0;font-weight:700;line-height:.8em;border-left:1px solid;padding:0 0 0 .8em}.sr-vertical.sr-count-2 a{height:auto}.sr-vertical.sr-count-2 span.ctext{display:block;font-size:.6em;border-radius:0;padding:.5em}.sr-vertical.sr-count-3 a{height:auto}.sr-vertical.sr-count-3 span.ctext{display:block;font-size:.6em;border-radius:0;border-top:1px solid;padding:.5em;border-left:0}.sr-bb-1 .sr-text-in{margin-right:3.5em}.sr-bb-1 a{position:relative;overflow:visible}.sr-bb-1 span.ctext{font-size:.8em;font-weight:700;background:#fff;border-radius:3px;color:#333;position:absolute;width:3em;top:0;bottom:0;padding:0;right:-3.5em;border:1px solid #dfdfdf}.sr-vertical.sr-bb-1 span.ctext{display:block;position:static;width:100%;margin:0;font-size:.7em;line-height:1;padding:.3em 0;margin-top:-.3em}.sr-circle a{border-radius:50%}.sr-circle .sr-text-in a,.sr-circle.sr-text-in a{border-radius:1em}.sr-squircle .sr-text-in a,.sr-squircle a,.sr-squircle.sr-text-in a{border-radius:.5em}.sr-squircle-2 .sr-text-in a,.sr-squircle-2 a,.sr-squircle-2.sr-text-in a{border-radius:0 .5em 0 .5em}.sr-diamond a{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sr-diamond a>*{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sr-drop a{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50% 50% 0 50%}.sr-drop a>*{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sr-ribbon a:after{content:'';display:block;position:absolute;left:0;right:0;border-style:solid;border-color:inherit;border-bottom-color:transparent;border-width:0 1em .5em 1em}.sr-fluid{display:table;width:100%;table-layout:fixed}.sr-fluid>*{display:table-cell;float:none;width:100%}.sr-fluid a{width:100%;box-sizing:border-box;overflow:hidden;padding:0 .5em}.sr-fluid.sr-pad{border-spacing:.25em}.sr-fluid .sr-text-in a>*,.sr-fluid.sr-text-in a>*{margin-right:.5em}.sr-fluid .sr-text-in a>:last-child,.sr-fluid.sr-text-in a>:last-child{margin-right:0}.sr-fluid .sr-text-in a:last-child,.sr-fluid.sr-text-in a:last-child{margin:0}.sr-fluid.sr-squircle a{border-radius:.5em}.sr-fluid.sr-squircle-2 a{border-radius:0 .5em 0 .5em}.sr-fluid .sr-more li{display:block;width:100%}.sr-vertical{width:16px}.sr-vertical.sr-32px{width:32px}.sr-vertical.sr-32px>*{width:32px}.sr-vertical.sr-40px{width:40px}.sr-vertical.sr-40px>*{width:40px}.sr-vertical.sr-48px{width:48px}.sr-vertical.sr-48px>*{width:48px}.sr-vertical.sr-64px{width:64px}.sr-vertical.sr-64px>*{width:64px}.sr-vertical.sr-pad>*{margin:0 0 .5em 0}.sr-vertical .sr-text-in{line-height:1}.sr-vertical .sr-text-in a{padding:0;width:inherit}.sr-vertical .sr-text-in a>*{padding:0}.sr-vertical .sr-text-in .text{display:none}.sr-opacity a:hover{opacity:.5}.sr-opacity a:active{opacity:.8}.sr-rotate a:hover{-webkit-transform:rotate(15deg);transform:rotate(15deg)}.sr-rotate a:active{-webkit-transform:rotate(0);transform:rotate(0)}.sr-zoom a:hover{-webkit-transform:scale(1.1);transform:scale(1.1);z-index:9999}.sr-zoom a:active{-webkit-transform:scale(.9);transform:scale(.9)}.sr-shrink a:hover{-webkit-transform:scale(.9);transform:scale(.9)}.sr-shrink a:active{-webkit-transform:scale(.7);transform:scale(.7)}.sr-float a:hover{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.sr-float a:active{-webkit-transform:translateY(0);transform:translateY(0)}.sr-sink a:hover{-webkit-transform:translateY(5px);transform:translateY(5px)}.sr-sink a:active{-webkit-transform:translateY(0);transform:translateY(0)}.sr-fade-white a:hover{color:#000;background-color:#fff}.sr-fade-white a:active{opacity:.2}.sr-fade-black a:hover{color:#fff;background-color:#000}.sr-fade-black a:active{opacity:.2}.sr-pad>*{margin-right:.5em}.sr-multiline>*{margin-bottom:.5em}.sr-no-icon i{display:none}.socializer.sr-pad>:last-child{margin:0}.sr-more .socializer{background:#fff;padding:.5em;position:absolute;display:none;box-shadow:0 2px 6px -2px;z-index:9999}.sr-more .socializer:before{content:'';display:inline-block;position:absolute;border:.25em solid;border-color:transparent transparent #fff transparent;top:-.5em;left:.5em}.sr-more .socializer:after{content:'';clear:both;display:block}.sr-more .socializer>*{margin:0 0 .5em 0}.sr-more .socializer>:last-child{margin-bottom:0}.sr-more:hover .socializer{display:block}.sr-sharebar{position:fixed;z-index:9999}.sr-sb-vl{top:50%;transform:translateY(-50%)}.sr-sb-left{left:30px}.sr-sb-right{right:30px}.sr-sb-hl{left:50%;transform:translateX(-50%)}.sr-sb-top{top:30px}.sr-sb-bottom{bottom:30px}.sr-sb-white{background:#fff;box-shadow:0 1px 4px -2px;padding:10px}.sr-sb-dark{background:#333;box-shadow:0 1px 4px -2px;padding:10px}.sr-sb-dark .text{color:#fff}
1
+ .wp-socializer:after{clear:both;content:'';display:block}.wp-socializer.wpsr-share-icons{margin:1.5em 0}.wp-socializer.wpsr-share-icons:last-child{margin-bottom:0}.wpsr-share-icons .wpsr-si-inner{display:flex}.wpsr-share-icons .wpsr-si-inner > *:first-child{margin-left:0}.wpsr-share-icons .wpsr-si-inner > *:last-child{margin-right:0}.wpsr-share-icons .socializer{margin:0 1em}.wpsr-share-icons.wpsr-flex-center{text-align:center}.wpsr-share-icons.wpsr-flex-center .wpsr-si-inner{justify-content:center}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.wpsr-sharebar .socializer{line-height:0}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:99999;max-width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-counter{margin-bottom:1.5em}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{bottom:0;left:0!important;right:0!important;margin:0!important;position:fixed;background:#fff;box-shadow:0 -2px 4px -2px rgba(0,0,0,0.5)}.wpsr-sb-hl .wpsr-sb-inner{display:flex}.wpsr-sb-hl .wpsr-counter{padding:0 1em}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple.wpsr-sb-hl{border-radius:0}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sb-close{position:absolute;cursor:pointer;display:none;padding:10px}.wpsr-sb-close .wpsr-bar-icon{opacity:0.2}.wpsr-sb-close:hover .wpsr-bar-icon{opacity:0.8}.wpsr-sb-vl .wpsr-sb-close{bottom:0;transform:translate(-50%,100%);left:50%}.wpsr-sb-hl .wpsr-sb-close{display:none}.wpsr-sharebar.wpsr-closed{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-sharebar.wpsr-closed .wpsr-sb-inner{display:none}.wpsr-sharebar.wpsr-closed .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;line-height:48px;display:block;padding:0}.wpsr-counter{line-height:2em;text-align:center;font-size:10px;color:#000;display:flex;flex-direction:column;justify-content:center}.wpsr-counter .scount{font-size:2em;font-weight:bold;margin-bottom:0.25em}.wpsr-counter .stext{display:block;line-height:1em;color:inherit;text-transform:uppercase;font-size:1em;margin-top:-0.15em;opacity:0.5}.wpsr-counter.wpsrc-sz-40px{font-size:12.5px}.wpsr-counter.wpsrc-sz-48px{font-size:15px}.wpsr-counter.wpsrc-sz-64px{font-size:20px}.wpsr-sharebar .wpsr-counter{font-size:8.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-40px{font-size:9.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-48px{font-size:11.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-64px{font-size:15.2px}.socializer span.sr-cicon a{background:none;border:none}.wpsr-follow-icons{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:20px;left:20px}.sr-fb-tm{top:20px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:20px;right:20px}.sr-fb-rm{top:50%;right:20px;transform:translateY( -50% )}.sr-fb-br{bottom:20px;right:20px}.sr-fb-bm{bottom:20px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:20px;left:20px}.sr-fb-lm{left:20px;top:50%;transform:translateY( -50% )}.wpsr-follow-icons div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-follow-icons.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-follow-icons.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-follow-icons.sr-fb-vl .sr-fb-title{width:5em;text-align:center;line-height:1.5}.wpsr-fb-close{position:absolute;right:0;cursor:pointer;display:none;line-height:0;padding:1em;opacity:0.2}.wpsr-fb-close:hover{opacity:0.8}.wpsr-follow-icons:hover .wpsr-fb-close{display:block}.wpsr-closed.wpsr-follow-icons .sr-fb-title{display:none}.wpsr-closed.wpsr-follow-icons .sr-followbar{display:none}.wpsr-closed.wpsr-follow-icons .wpsr-fb-close{display:block}.sr-fb-bm .wpsr-fb-close,.sr-fb-bl .wpsr-fb-close{right:0;transform:translate(100%,-100%);padding-bottom:0}.sr-fb-vl.sr-fb-br .wpsr-fb-close{left:0;bottom:0;transform:translateX(-100%);padding-bottom:0}.sr-fb-hl.sr-fb-br .wpsr-fb-close{top:0;right:0;transform:translateY(-100%)}.sr-fb-hl.sr-fb-tr .wpsr-fb-close{padding-right:0}.wpsr-closed.sr-fb-tl .wpsr-fb-close,.wpsr-closed.sr-fb-lm .wpsr-fb-close{right:-24px;transform:translateY(0%)}.wpsr-text-sb{background:#fff;margin:0;padding:0 10px;border-radius:5px;display:inline-block;position:absolute;transform:translate( -50%,-150% );margin-top:-10px;transition:margin-top 0.5s;display:none;animation:wpsr-fadeout 1s;box-shadow:0 3px 6px -3px #000;background-image:linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0));z-index:999}.wpsr-text-sb:before{position:absolute;content:'';display:block;background-color:inherit;width:10px;height:10px;bottom:-5px;transform:rotate(45deg) translateX(-50%);left:50%;z-index:-1;transform-origin:left;box-shadow:2px 2px 4px -2px #000}.wpsr-text-sb li{list-style:none;float:left;line-height:0}.wpsr-text-sb li a{text-align:center;display:inline-block}.wpsr-text-sb li a:hover{background-image:linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0))}.wpsr-tsb-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.wpsr-tsb-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.wpsr-tsb-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.wpsr-tsb-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.wpsr-text-sb.wpsr-tsb-active{margin-top:0;transition:margin-top 0.5s;display:block;animation:wpsr-fadein 1s}.wpsr-bar-icon{line-height:0;background:#000;display:inline-block;padding:3px;border-radius:50%;vertical-align:middle;fill:#fff}.wpsr-bar-icon .i-open{display:none}.wpsr-closed .wpsr-bar-icon .i-close{display:none}.wpsr-closed .wpsr-bar-icon .i-open{display:block}.wpsr-closed .wpsr-bar-icon{padding:5px}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-hide{display:none}.wpsr-close{background:red}.sr-custom-html{line-height:1}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}
2
  /*!
3
  * Socializer - CSS library for social media buttons
4
  * Copyright (c) 2020 Aakash Chakravarthy - www.aakashweb.com
5
  * MIT license
6
+ */.socializer{padding:0;margin:0;display:inline-block}.socializer>*{float:left;list-style:none;padding:0;margin:0;display:inline-block;position:relative}.socializer a{font-family:sans-serif!important;display:inline-block;border:0;text-align:center;text-decoration:none;width:16px;height:16px;line-height:18px;font-size:8px;border-style:solid;box-sizing:content-box;transition:all .5s;-webkit-transition:all .2s;transition-timing-function:ease-out;-webkit-transition-timing-function:ease-out}.socializer a>*{display:inline-block;vertical-align:middle;padding:0;margin:0}.socializer:after{content:'';clear:both;display:block}.sr-32px{min-height:32px}.sr-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.sr-32px.sr-font-sm a{font-size:10.6666666667px}.sr-32px.sr-font-lg a{font-size:21.3333333333px}.sr-40px{min-height:40px}.sr-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.sr-40px.sr-font-sm a{font-size:13.3333333333px}.sr-40px.sr-font-lg a{font-size:26.6666666667px}.sr-48px{min-height:48px}.sr-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.sr-48px.sr-font-sm a{font-size:16px}.sr-48px.sr-font-lg a{font-size:32px}.sr-64px{min-height:64px}.sr-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.sr-64px.sr-font-sm a{font-size:21.3333333333px}.sr-64px.sr-font-lg a{font-size:42.6666666667px}.socializer .sr-addtofavorites a,.socializer .sr-addtofavorites a:visited{color:#f9a600;border-color:#f9a600;background-color:#f9a600}.socializer .sr-behance a,.socializer .sr-behance a:visited{color:#1769ff;border-color:#1769ff;background-color:#1769ff}.socializer .sr-bitbucket a,.socializer .sr-bitbucket a:visited{color:#205081;border-color:#205081;background-color:#205081}.socializer .sr-blogger a,.socializer .sr-blogger a:visited{color:#ff6501;border-color:#ff6501;background-color:#ff6501}.socializer .sr-codepen a,.socializer .sr-codepen a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-comments a,.socializer .sr-comments a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-delicious a,.socializer .sr-delicious a:visited{color:#3274d1;border-color:#3274d1;background-color:#3274d1}.socializer .sr-deviantart a,.socializer .sr-deviantart a:visited{color:#475c4d;border-color:#475c4d;background-color:#475c4d}.socializer .sr-digg a,.socializer .sr-digg a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-dribbble a,.socializer .sr-dribbble a:visited{color:#ea4c89;border-color:#ea4c89;background-color:#ea4c89}.socializer .sr-email a,.socializer .sr-email a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-etsy a,.socializer .sr-etsy a:visited{color:#f1641e;border-color:#f1641e;background-color:#f1641e}.socializer .sr-facebook a,.socializer .sr-facebook a:visited{color:#1977f3;border-color:#1977f3;background-color:#1977f3}.socializer .sr-fbmessenger a,.socializer .sr-fbmessenger a:visited{color:#2998ff;border-color:#2998ff;background-color:#2998ff}.socializer .sr-flickr a,.socializer .sr-flickr a:visited{color:#1c9be9;border-color:#1c9be9;background-color:#1c9be9}.socializer .sr-github a,.socializer .sr-github a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-google a,.socializer .sr-google a:visited{color:#3a7cec;border-color:#3a7cec;background-color:#3a7cec}.socializer .sr-googleplus a,.socializer .sr-googleplus a:visited{color:#db483b;border-color:#db483b;background-color:#db483b}.socializer .sr-hackernews a,.socializer .sr-hackernews a:visited{color:#ff6500;border-color:#ff6500;background-color:#ff6500}.socializer .sr-houzz a,.socializer .sr-houzz a:visited{color:#4dbc15;border-color:#4dbc15;background-color:#4dbc15}.socializer .sr-instagram a,.socializer .sr-instagram a:visited{color:#e23367;border-color:#e23367;background-color:#e23367}.socializer .sr-line a,.socializer .sr-line a:visited{color:#00c300;border-color:#00c300;background-color:#00c300}.socializer .sr-linkedin a,.socializer .sr-linkedin a:visited{color:#0274b3;border-color:#0274b3;background-color:#0274b3}.socializer .sr-medium a,.socializer .sr-medium a:visited{color:#02b875;border-color:#02b875;background-color:#02b875}.socializer .sr-mix a,.socializer .sr-mix a:visited{color:#ff8226;border-color:#ff8226;background-color:#ff8226}.socializer .sr-odnoklassniki a,.socializer .sr-odnoklassniki a:visited{color:#f2720c;border-color:#f2720c;background-color:#f2720c}.socializer .sr-paypal a,.socializer .sr-paypal a:visited{color:#0070ba;border-color:#0070ba;background-color:#0070ba}.socializer .sr-pdf a,.socializer .sr-pdf a:visited{color:#e61b2e;border-color:#e61b2e;background-color:#e61b2e}.socializer .sr-phone a,.socializer .sr-phone a:visited{color:#1a73e8;border-color:#1a73e8;background-color:#1a73e8}.socializer .sr-pinterest a,.socializer .sr-pinterest a:visited{color:#cb2027;border-color:#cb2027;background-color:#cb2027}.socializer .sr-pocket a,.socializer .sr-pocket a:visited{color:#ef4056;border-color:#ef4056;background-color:#ef4056}.socializer .sr-print a,.socializer .sr-print a:visited{color:#6d9f00;border-color:#6d9f00;background-color:#6d9f00}.socializer .sr-reddit a,.socializer .sr-reddit a:visited{color:#ff5600;border-color:#ff5600;background-color:#ff5600}.socializer .sr-renren a,.socializer .sr-renren a:visited{color:#005eac;border-color:#005eac;background-color:#005eac}.socializer .sr-rss a,.socializer .sr-rss a:visited{color:#ff7b0a;border-color:#ff7b0a;background-color:#ff7b0a}.socializer .sr-shortlink a,.socializer .sr-shortlink a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-skype a,.socializer .sr-skype a:visited{color:#00aff0;border-color:#00aff0;background-color:#00aff0}.socializer .sr-snapchat a,.socializer .sr-snapchat a:visited{color:#fffc00;border-color:#fffc00;background-color:#fffc00}.socializer .sr-soundcloud a,.socializer .sr-soundcloud a:visited{color:#f50;border-color:#f50;background-color:#f50}.socializer .sr-stackoverflow a,.socializer .sr-stackoverflow a:visited{color:#f48024;border-color:#f48024;background-color:#f48024}.socializer .sr-stumbleupon a,.socializer .sr-stumbleupon a:visited{color:#eb4823;border-color:#eb4823;background-color:#eb4823}.socializer .sr-quora a,.socializer .sr-quora a:visited{color:#b92b27;border-color:#b92b27;background-color:#b92b27}.socializer .sr-telegram a,.socializer .sr-telegram a:visited{color:#179cde;border-color:#179cde;background-color:#179cde}.socializer .sr-tumblr a,.socializer .sr-tumblr a:visited{color:#314358;border-color:#314358;background-color:#314358}.socializer .sr-twitch a,.socializer .sr-twitch a:visited{color:#4b367c;border-color:#4b367c;background-color:#4b367c}.socializer .sr-twitter a,.socializer .sr-twitter a:visited{color:#1da1f2;border-color:#1da1f2;background-color:#1da1f2}.socializer .sr-vimeo a,.socializer .sr-vimeo a:visited{color:#00adef;border-color:#00adef;background-color:#00adef}.socializer .sr-vkontakte a,.socializer .sr-vkontakte a:visited{color:#4c75a3;border-color:#4c75a3;background-color:#4c75a3}.socializer .sr-wechat a,.socializer .sr-wechat a:visited{color:#7bb32e;border-color:#7bb32e;background-color:#7bb32e}.socializer .sr-weibo a,.socializer .sr-weibo a:visited{color:#e6162d;border-color:#e6162d;background-color:#e6162d}.socializer .sr-whatsapp a,.socializer .sr-whatsapp a:visited{color:#60b82d;border-color:#60b82d;background-color:#60b82d}.socializer .sr-xing a,.socializer .sr-xing a:visited{color:#006567;border-color:#006567;background-color:#006567}.socializer .sr-yahoomail a,.socializer .sr-yahoomail a:visited{color:#4a00a1;border-color:#4a00a1;background-color:#4a00a1}.socializer .sr-youtube a,.socializer .sr-youtube a:visited{color:red;border-color:red;background-color:red}.socializer .sr-more>a,.socializer .sr-more>a:visited{color:green;border-color:green;background-color:green}.sr-text-in a{width:auto;padding:0 1em;overflow:hidden}.sr-text-in a>*{padding-right:.5em}.sr-text-in a>:last-child{padding-right:0}.sr-text-out a{vertical-align:middle}.sr-text-out .text{font-size:12px;margin-left:.5em;vertical-align:middle}.sr-text-below{text-align:center}.sr-text-below .text{display:block;font-size:12px;margin-top:.5em}.sr-text-hover .text{display:none;position:absolute;background:#000;color:#fff;font-size:12px;width:100px;top:-3em;border-radius:5px;text-align:center;line-height:2em;margin-left:-25%;z-index:9999}.sr-text-hover .text:before{position:absolute;content:'';border:.5em solid red;bottom:-1em;left:1em;width:0;height:0;border-color:#000 transparent transparent transparent}.sr-text-hover:hover>.text{display:block}.sr-bdr-sm.socializer a{border-width:1px}.sr-bdr-md.socializer a{border-width:2px}.sr-bdr-lg.socializer a{border-width:3px}.sr-bdr-none.socializer a{border-width:0}.sr-bdr-white.socializer a,.sr-bdr-white.socializer a:visited{border-color:#fff}.sr-bdr-dark.socializer a,.sr-bdr-dark.socializer a:visited{border-color:#000}.sr-bdr-grey.socializer a,.sr-bdr-grey.socializer a:visited{border-color:#ccc}.sr-bg-white.socializer a,.sr-bg-white.socializer a:visited{background-color:#fff}.sr-bg-dark.socializer a,.sr-bg-dark.socializer a:visited{background-color:#333}.sr-bg-grey.socializer a,.sr-bg-grey.socializer a:visited{background-color:#ccc}.sr-bg-none.socializer a,.sr-bg-none.socializer a:visited{background-color:transparent}.sr-icon-white.socializer a,.sr-icon-white.socializer a:visited{color:#fff}.sr-icon-dark.socializer a,.sr-icon-dark.socializer a:visited{color:#333}.sr-icon-grey.socializer a,.sr-icon-grey.socializer a:visited{color:#ccc}.sr-sw-1.socializer a{box-shadow:0 0 .2em rgba(0,0,0,.3)}.sr-sw-2.socializer a{box-shadow:inset 0 -.1em .1em rgba(0,0,0,.3)}.sr-sw-3.socializer a{box-shadow:0 -.1em .1em rgba(0,0,0,.3)}.sr-sw-icon-1.socializer a i{text-shadow:0 1px 1px rgba(0,0,0,.5)}.sr-count-1 span.ctext{background:#ff5722;position:absolute;top:-.6em;right:-.6em;border-radius:1em;font-size:.6em;line-height:1;padding:.3em .5em;z-index:99;color:#fff;box-shadow:0 1px 3px -1px #000}.sr-count-2 span.ctext{font-size:.8em;margin:0;padding:.5em;font-weight:700;line-height:.8em;background:rgba(0,0,0,.3);border-radius:1em}.sr-count-3 span.ctext{font-size:.8em;margin:0;font-weight:700;line-height:.8em;border-left:1px solid;padding:0 0 0 .8em}.sr-vertical.sr-count-2 a{height:auto}.sr-vertical.sr-count-2 span.ctext{display:block;font-size:.6em;border-radius:0;padding:.5em}.sr-vertical.sr-count-3 a{height:auto}.sr-vertical.sr-count-3 span.ctext{display:block;font-size:.6em;border-radius:0;border-top:1px solid;padding:.5em;border-left:0}.sr-bb-1 .sr-text-in{margin-right:3.5em}.sr-bb-1 a{position:relative;overflow:visible}.sr-bb-1 span.ctext{font-size:.8em;font-weight:700;background:#fff;border-radius:3px;color:#333;position:absolute;width:3em;top:0;bottom:0;padding:0;right:-3.5em;border:1px solid #dfdfdf}.sr-vertical.sr-bb-1 span.ctext{display:block;position:static;width:100%;margin:0;font-size:.7em;line-height:1;padding:.3em 0;margin-top:-.3em}.sr-circle a{border-radius:50%}.sr-circle .sr-text-in a,.sr-circle.sr-text-in a{border-radius:1em}.sr-squircle .sr-text-in a,.sr-squircle a,.sr-squircle.sr-text-in a{border-radius:.5em}.sr-squircle-2 .sr-text-in a,.sr-squircle-2 a,.sr-squircle-2.sr-text-in a{border-radius:0 .5em 0 .5em}.sr-diamond a{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sr-diamond a>*{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sr-drop a{border-radius:50% 50% 0 50%}.sr-ribbon a:after{content:'';display:block;position:absolute;left:0;right:0;border-style:solid;border-color:inherit;border-bottom-color:transparent;border-width:0 1em .5em 1em}.sr-fluid{display:table;width:100%;table-layout:fixed}.sr-fluid>*{display:table-cell;float:none;width:100%}.sr-fluid a{width:100%;box-sizing:border-box;overflow:hidden;padding:0 .5em}.sr-fluid.sr-pad{border-spacing:.25em}.sr-fluid .sr-text-in a>*,.sr-fluid.sr-text-in a>*{margin-right:.5em}.sr-fluid .sr-text-in a>:last-child,.sr-fluid.sr-text-in a>:last-child{margin-right:0}.sr-fluid .sr-text-in a:last-child,.sr-fluid.sr-text-in a:last-child{margin:0}.sr-fluid.sr-squircle a{border-radius:.5em}.sr-fluid.sr-squircle-2 a{border-radius:0 .5em 0 .5em}.sr-fluid .sr-more li{display:block;width:100%}.sr-vertical{width:16px}.sr-vertical.sr-32px{width:32px}.sr-vertical.sr-32px>*{width:32px}.sr-vertical.sr-40px{width:40px}.sr-vertical.sr-40px>*{width:40px}.sr-vertical.sr-48px{width:48px}.sr-vertical.sr-48px>*{width:48px}.sr-vertical.sr-64px{width:64px}.sr-vertical.sr-64px>*{width:64px}.sr-vertical.sr-pad>*{margin:0 0 .5em 0}.sr-vertical .sr-text-in{line-height:1}.sr-vertical .sr-text-in a{padding:0;width:inherit}.sr-vertical .sr-text-in a>*{padding:0}.sr-vertical .sr-text-in .text{display:none}.sr-opacity a:hover{opacity:.5}.sr-opacity a:active{opacity:.8}.sr-rotate a:hover{-webkit-transform:rotate(15deg);transform:rotate(15deg)}.sr-rotate a:active{-webkit-transform:rotate(0);transform:rotate(0)}.sr-zoom a:hover{-webkit-transform:scale(1.1);transform:scale(1.1);z-index:9999}.sr-zoom a:active{-webkit-transform:scale(.9);transform:scale(.9)}.sr-shrink a:hover{-webkit-transform:scale(.9);transform:scale(.9)}.sr-shrink a:active{-webkit-transform:scale(.7);transform:scale(.7)}.sr-float a:hover{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.sr-float a:active{-webkit-transform:translateY(0);transform:translateY(0)}.sr-sink a:hover{-webkit-transform:translateY(5px);transform:translateY(5px)}.sr-sink a:active{-webkit-transform:translateY(0);transform:translateY(0)}.sr-fade-white a:hover{color:#000;background-color:#fff}.sr-fade-white a:active{opacity:.2}.sr-fade-black a:hover{color:#fff;background-color:#000}.sr-fade-black a:active{opacity:.2}.sr-pad>*{margin-right:.5em}.sr-multiline>*{margin-bottom:.5em}.sr-no-icon i{display:none}.socializer.sr-pad>:last-child{margin:0}.sr-more .socializer{background:#fff;padding:.5em;position:absolute;display:none;box-shadow:0 2px 6px -2px;z-index:9999}.sr-more .socializer:before{content:'';display:inline-block;position:absolute;border:.25em solid;border-color:transparent transparent #fff transparent;top:-.5em;left:.5em}.sr-more .socializer:after{content:'';clear:both;display:block}.sr-more .socializer>*{margin:0 0 .5em 0}.sr-more .socializer>:last-child{margin-bottom:0}.sr-more:hover .socializer{display:block}.sr-sharebar{position:fixed;z-index:9999}.sr-sb-vl{top:50%;transform:translateY(-50%)}.sr-sb-left{left:30px}.sr-sb-right{right:30px}.sr-sb-hl{left:50%;transform:translateX(-50%)}.sr-sb-top{top:30px}.sr-sb-bottom{bottom:30px}.sr-sb-white{background:#fff;box-shadow:0 1px 4px -2px;padding:10px}.sr-sb-dark{background:#333;box-shadow:0 1px 4px -2px;padding:10px}.sr-sb-dark .text{color:#fff}
public/js/wp-socializer.js CHANGED
@@ -19,6 +19,14 @@ window.wpsr_helpers = {
19
  return window.open( url, target, 'toolbar=no,location=no,menubar=no,scrollbars=yes,width='+w+',height='+h+',top='+top+',left='+left );
20
  },
21
 
 
 
 
 
 
 
 
 
22
  ajax: function( ajax_url, method, send, callback, props ){
23
 
24
  var request = new XMLHttpRequest();
@@ -59,56 +67,85 @@ window.wpsr_helpers = {
59
 
60
  return final_no;
61
 
62
- }
63
 
 
 
 
 
64
  };
65
 
66
  document.addEventListener( 'DOMContentLoaded', function(){
67
 
 
 
 
 
68
  // Socializer links
69
- scr_links = document.querySelectorAll( '.socializer.sr-popup a' );
70
-
71
- for( i=0; i<scr_links.length; i++ ){
72
- var atag = scr_links[i];
73
- atag.addEventListener( 'click', function(e){
74
  var href = this.getAttribute( 'href' );
75
- if( !( href == '#' || this.hasAttribute( 'onclick' ) ) ){
76
  wpsr_helpers.popup( href, '_blank', 800, 500 );
77
  }
78
  e.preventDefault();
79
  });
80
  }
81
 
 
 
 
 
 
 
 
 
 
 
82
  // Sharebar
83
  var the_sb = document.querySelector( '.wpsr-sharebar' );
84
 
85
  if( the_sb ){
86
-
87
- var hide_class = 'wpsr-mow';
88
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  var sb_resize = function(){
90
- vlsb = document.querySelector( '.wpsr-sb-vl-scontent' );
91
- if( vlsb ){
92
- stick = vlsb.getAttribute( 'data-stickto' );
93
  stick_ele = document.querySelector( stick );
94
  if( stick_ele ){
95
- vlsb.style.left = stick_ele.offsetLeft + 'px';
 
96
  }
97
  }
98
-
99
  }
100
 
101
  sb_resize();
102
  window.addEventListener( 'resize', sb_resize );
103
-
104
- sb_close_btn = the_sb.querySelector( '.wpsr-sb-close' );
105
- sb_close_btn.addEventListener( 'click', function(){
106
- if( the_sb.classList.contains( hide_class ) ){
107
- wpsr_helpers.removeClass( the_sb, hide_class );
108
- }else{
109
- wpsr_helpers.addClass( the_sb, hide_class );
110
- }
111
- });
112
  }
113
 
114
  // Text sharebar
@@ -243,65 +280,65 @@ document.addEventListener( 'DOMContentLoaded', function(){
243
  }
244
 
245
  }
246
-
247
- // Mobile sharebar
248
- msb = document.querySelector( '.wpsr-mobile-sb' );
249
- if( msb ){
250
- if( msb.classList.contains( 'wpsr-mobile-hos' ) ){
251
- var lastScrollTop = 0;
252
- window.addEventListener( 'scroll', function(){
253
- var st = window.pageYOffset || document.documentElement.scrollTop;
254
- if ( st > lastScrollTop ){
255
- wpsr_helpers.addClass( msb, 'wpsr-msb-hide' );
256
- } else {
257
- wpsr_helpers.removeClass( msb, 'wpsr-msb-hide' );
258
- }
259
- lastScrollTop = st;
260
- }, false );
261
- }
262
- }
263
-
264
- // Followbar
265
- var fwb = document.querySelector( '.wpsr-followbar' );
266
- if( fwb ){
267
- fb_close_btn = fwb.querySelector( '.wpsr-fb-close' );
268
- fb_close_btn.addEventListener( 'click', function(){
269
- if( fwb.classList.contains( 'wpsr-mow' ) ){
270
- wpsr_helpers.removeClass( fwb, 'wpsr-mow' );
271
- }else{
272
- wpsr_helpers.addClass( fwb, 'wpsr-mow' );
273
- }
274
- });
275
- }
276
-
277
- // Features with minimize on width enabled
278
- rspw = document.querySelectorAll( '[data-respwidth]' );
279
-
280
- var resp_resize = function( ele, window_width ){
281
- var resp_width = ele.getAttribute( 'data-respwidth' );
282
- if( resp_width > 0 ){
283
- var resp_class = ele.getAttribute( 'data-respclass' );
284
- if( window_width <= resp_width ){
285
- wpsr_helpers.addClass( ele, resp_class );
286
- }else{
287
- wpsr_helpers.removeClass( ele, resp_class );
288
- }
289
- }
290
- }
291
-
292
- if( rspw.length > 0 ){
293
 
294
- [ 'resize', 'load' ].forEach(function( the_event ){
295
- window.addEventListener( the_event, function(){
296
- for( i = 0; i < rspw.length; i++ ){
297
- var rspwEle = rspw[ i ];
298
- resp_resize( rspwEle, window.innerWidth );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  }
300
  });
301
  });
302
 
303
  }
304
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
  // Ajax share count
306
  if( wpsr_ajax_url ){
307
 
@@ -365,6 +402,7 @@ document.addEventListener( 'DOMContentLoaded', function(){
365
  }
366
 
367
  }
 
368
  });
369
 
370
  function socializer_addbookmark( e ){
19
  return window.open( url, target, 'toolbar=no,location=no,menubar=no,scrollbars=yes,width='+w+',height='+h+',top='+top+',left='+left );
20
  },
21
 
22
+ offset: function( el ){
23
+ var rect = el.getBoundingClientRect();
24
+ return {
25
+ top: rect.top + document.body.scrollTop,
26
+ left: rect.left + document.body.scrollLeft
27
+ }
28
+ },
29
+
30
  ajax: function( ajax_url, method, send, callback, props ){
31
 
32
  var request = new XMLHttpRequest();
67
 
68
  return final_no;
69
 
70
+ },
71
 
72
+ is_mobile: function(){
73
+ return /Mobi|Android/i.test(navigator.userAgent);
74
+ }
75
+
76
  };
77
 
78
  document.addEventListener( 'DOMContentLoaded', function(){
79
 
80
+ // Class names
81
+ var hide_class = 'wpsr-hide';
82
+ var closed_class = 'wpsr-closed';
83
+
84
  // Socializer links
85
+ var scr_links = document.querySelectorAll( '.socializer.sr-popup a' );
86
+
87
+ for( i = 0; i < scr_links.length; i++ ){
88
+ var link = scr_links[i];
89
+ link.addEventListener( 'click', function(e){
90
  var href = this.getAttribute( 'href' );
91
+ if( !( href == '#' || this.hasAttribute( 'onclick' ) || href == null ) ){
92
  wpsr_helpers.popup( href, '_blank', 800, 500 );
93
  }
94
  e.preventDefault();
95
  });
96
  }
97
 
98
+ // Change share URL if device is mobile
99
+ if(wpsr_helpers.is_mobile()){
100
+ var mobile_links = document.querySelectorAll( '.socializer a[data-mobile]' );
101
+ for( i = 0; i < mobile_links.length; i++ ){
102
+ var link = mobile_links[i];
103
+ var mobile_url = link.getAttribute( 'data-mobile' );
104
+ link.setAttribute( 'href', mobile_url );
105
+ }
106
+ }
107
+
108
  // Sharebar
109
  var the_sb = document.querySelector( '.wpsr-sharebar' );
110
 
111
  if( the_sb ){
112
+
113
+ var icons = the_sb.querySelector( '.socializer' );
114
+
115
+ the_sb.sm_action_call = function(ele){
116
+ wpsr_helpers.removeClass( this, 'wpsr-sb-vl' );
117
+ wpsr_helpers.addClass( this, 'wpsr-sb-hl' );
118
+
119
+ wpsr_helpers.removeClass( icons, 'sr-vertical' );
120
+ wpsr_helpers.addClass( icons, 'sr-horizontal' );
121
+ wpsr_helpers.addClass( icons, 'sr-fluid' );
122
+ }
123
+
124
+ the_sb.lg_action_call = function(){
125
+ wpsr_helpers.addClass( this, 'wpsr-sb-vl' );
126
+ wpsr_helpers.removeClass( this, 'wpsr-sb-hl' );
127
+
128
+ wpsr_helpers.addClass( icons, 'sr-vertical' );
129
+ wpsr_helpers.removeClass( icons, 'sr-horizontal' );
130
+ wpsr_helpers.removeClass( icons, 'sr-fluid' );
131
+ }
132
+
133
  var sb_resize = function(){
134
+ stick_sb = document.querySelector( '.wpsr-sb-vl-scontent' );
135
+ if( stick_sb ){
136
+ stick = stick_sb.getAttribute( 'data-stick-to' );
137
  stick_ele = document.querySelector( stick );
138
  if( stick_ele ){
139
+ stick_offset = wpsr_helpers.offset( stick_ele );
140
+ stick_sb.style.left = stick_offset.left + 'px';
141
  }
142
  }
143
+
144
  }
145
 
146
  sb_resize();
147
  window.addEventListener( 'resize', sb_resize );
148
+
 
 
 
 
 
 
 
 
149
  }
150
 
151
  // Text sharebar
280
  }
281
 
282
  }
283
+
284
+ // Respond to screen size
285
+ var wpsr = document.querySelectorAll( '.wp-socializer' );
286
+ if( wpsr.length > 0 ){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
287
 
288
+ [ 'resize', 'load' ].forEach(function(e){
289
+ window.addEventListener(e, function(){
290
+ for( var i = 0; i < wpsr.length; i++ ){
291
+
292
+ var wpsr_ele = wpsr[ i ];
293
+ var lg_action = wpsr_ele.getAttribute( 'data-lg-action' );
294
+ var sm_action = wpsr_ele.getAttribute( 'data-sm-action' );
295
+ var sm_width = wpsr_ele.getAttribute( 'data-sm-width' );
296
+ var current_action = (window.innerWidth <= sm_width) ? sm_action : lg_action;
297
+
298
+ if(current_action == 'close'){
299
+ wpsr_helpers.addClass(wpsr_ele, closed_class);
300
+ }else{
301
+ wpsr_helpers.removeClass(wpsr_ele, closed_class);
302
+ }
303
+ if(current_action == 'hide'){
304
+ wpsr_helpers.addClass(wpsr_ele, hide_class);
305
+ }else{
306
+ wpsr_helpers.removeClass(wpsr_ele, hide_class);
307
+ }
308
+
309
+ if(typeof wpsr_ele.sm_action_call === 'function' && current_action == sm_action){
310
+ wpsr_ele.sm_action_call();
311
+ }
312
+
313
+ if(typeof wpsr_ele.lg_action_call === 'function' && current_action == lg_action){
314
+ wpsr_ele.lg_action_call();
315
+ }
316
+
317
  }
318
  });
319
  });
320
 
321
  }
322
 
323
+ // Close button event
324
+ var close_btns = document.querySelectorAll( '.wpsr-close-btn' );
325
+ if( close_btns.length > 0 ){
326
+ for( i = 0; i < close_btns.length; i++ ){
327
+ var close_btn = close_btns[i];
328
+
329
+ close_btn.addEventListener( 'click', function(){
330
+ var parent = this.parentNode;
331
+ if( parent.classList.contains( closed_class ) ){
332
+ wpsr_helpers.removeClass( parent, closed_class );
333
+ }else{
334
+ wpsr_helpers.addClass( parent, closed_class );
335
+ }
336
+ });
337
+
338
+ }
339
+
340
+ }
341
+
342
  // Ajax share count
343
  if( wpsr_ajax_url ){
344
 
402
  }
403
 
404
  }
405
+
406
  });
407
 
408
  function socializer_addbookmark( e ){
public/js/wp-socializer.min.js CHANGED
@@ -1 +1 @@
1
- function socializer_addbookmark(t){var e=navigator.userAgent.toLowerCase(),s=-1!=e.indexOf("mac"),r="";t.preventDefault(),r=(s?"Command/Cmd":"CTRL")+" + D",alert("Press "+r+" to bookmark this page")}function socializer_shortlink(t,e){t.preventDefault(),link=e.getAttribute("href"),"#"!=link&&prompt("Short link",link)}window.wpsr_helpers={addClass:function(t,e){t.classList?t.classList.add(e):t.className+=" "+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},popup:function(t,e,s,r){var n=screen.width/2-s/2,a=screen.height/2-r/2;return window.open(t,e,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+a+",left="+n)},ajax:function(t,e,s,r,n){var a=new XMLHttpRequest;a.props=n,a.open(e,t,!0),"POST"==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.onreadystatechange=function(){if(4==a.readyState&&200==a.status)return r(a)},a.send(s)},format_num:function(t){if(t<1e3)return t;for(var e=["k","m","b","t"],s=t,r=0;r<e.length;r++)if(!((t/=1e3)>1e3)){s=Math.round(100*t)/100+e[r];break}return s}},document.addEventListener("DOMContentLoaded",function(){for(scr_links=document.querySelectorAll(".socializer.sr-popup a"),u=0;u<scr_links.length;u++){var t=scr_links[u];t.addEventListener("click",function(t){var e=this.getAttribute("href");"#"==e||this.hasAttribute("onclick")||wpsr_helpers.popup(e,"_blank",800,500),t.preventDefault()})}var e=document.querySelector(".wpsr-sharebar");if(e){var s=function(){vlsb=document.querySelector(".wpsr-sb-vl-scontent"),vlsb&&(stick=vlsb.getAttribute("data-stickto"),stick_ele=document.querySelector(stick),stick_ele&&(vlsb.style.left=stick_ele.offsetLeft+"px"))};s(),window.addEventListener("resize",s),sb_close_btn=e.querySelector(".wpsr-sb-close"),sb_close_btn.addEventListener("click",function(){e.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(e,"wpsr-mow"):wpsr_helpers.addClass(e,"wpsr-mow")})}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0};var r={ptitle:tsb.getAttribute("data-title"),purl:tsb.getAttribute("data-url"),psurl:tsb.getAttribute("data-surl"),ptuname:tsb.getAttribute("data-tuname"),cnt_sel:tsb.getAttribute("data-content"),word_count:tsb.getAttribute("data-tcount")},n=function(){var t="";return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(t=document.selection.createRange().text),t},a=function(t,e){tsb.style.left=t+"px",tsb.style.top=e+"px",wpsr_helpers.addClass(tsb,"wpsr-tsb-active")},o=function(){wpsr_helpers.removeClass(tsb,"wpsr-tsb-active")},i=function(){var t=wpsr_tsb.stext,e=parseInt(r.word_count);return 0==e?t:t.split(" ").slice(0,e).join(" ")},l=function(t){var e={"{title}":escape(r.ptitle),"{url}":r.purl,"{s-url}":r.psurl,"{twitter-username}":r.ptuname,"{excerpt}":escape(i())};for(var s in e)e.hasOwnProperty(s)&&(t=t.replace(RegExp(s,"g"),e[s]));return t};if(""!=r.cnt_sel)for(var p=r.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),c=document.querySelectorAll(p),u=0;u<c.length;u++){var d=c[u];d.addEventListener("mousedown",function(t){wpsr_tsb.startx=t.pageX,wpsr_tsb.starty=t.pageY}),d.addEventListener("mouseup",function(t){var e=n();""!=e?(tsb_x=(t.pageX+parseInt(wpsr_tsb.startx))/2,tsb_y=Math.min(wpsr_tsb.starty,t.pageY),e!=wpsr_tsb.stext?(a(tsb_x,tsb_y),wpsr_tsb.stext=e):o()):o()})}document.body.addEventListener("mousedown",function(t){o()}),tsb.addEventListener("mousedown",function(t){t.stopPropagation()});for(var w=tsb.querySelectorAll("a"),u=0;u<w.length;u++){var t=w[u];t.addEventListener("click",function(t){var e=this.getAttribute("data-link");"#"!=e&&(rep_link=l(e),wpsr_helpers.popup(rep_link,800,500)),t.preventDefault()})}}if(msb=document.querySelector(".wpsr-mobile-sb"),msb&&msb.classList.contains("wpsr-mobile-hos")){var b=0;window.addEventListener("scroll",function(){var t=window.pageYOffset||document.documentElement.scrollTop;t>b?wpsr_helpers.addClass(msb,"wpsr-msb-hide"):wpsr_helpers.removeClass(msb,"wpsr-msb-hide"),b=t},!1)}var f=document.querySelector(".wpsr-followbar");f&&(fb_close_btn=f.querySelector(".wpsr-fb-close"),fb_close_btn.addEventListener("click",function(){f.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(f,"wpsr-mow"):wpsr_helpers.addClass(f,"wpsr-mow")})),rspw=document.querySelectorAll("[data-respwidth]");var v=function(t,e){var s=t.getAttribute("data-respwidth");if(s>0){var r=t.getAttribute("data-respclass");e<=s?wpsr_helpers.addClass(t,r):wpsr_helpers.removeClass(t,r)}};if(rspw.length>0&&["resize","load"].forEach(function(t){window.addEventListener(t,function(){for(u=0;u<rspw.length;u++){var t=rspw[u];v(t,window.innerWidth)}})}),wpsr_ajax_url){var m=document.querySelectorAll("[data-wpsrs]");if(m.length>0){var _={},h=wpsr_ajax_url+"?action=wpsr_share_count";for(u=0;u<m.length;u++){var g=m[u],y=g.getAttribute("data-wpsrs"),k=g.getAttribute("data-wpsrs-svcs").split(",");y in _||(_[y]=[]);for(j=0;j<k.length;j++)-1===_[y].indexOf(k[j])&&_[y].push(k[j])}var L=function(t){var e=JSON.parse(t.responseText),s=document.querySelectorAll('[data-wpsrs="'+t.props.forURL+'"]');for(u=0;u<s.length;u++){var r=s[u],n=r.getAttribute("data-wpsrs-svcs").split(","),a=0;for(j=0;j<n.length;j++){var o=n[j];o in e&&(a+=parseInt(e[o])||0)}r.innerHTML=wpsr_helpers.format_num(a)}};for(var y in _)_.hasOwnProperty(y)&&(send_data={url:y,services:_[y]},to_send="data="+JSON.stringify(send_data),wpsr_helpers.ajax(h,"POST",to_send,L,{forURL:y}))}}});
1
+ function socializer_addbookmark(t){var e=navigator.userAgent.toLowerCase(),s=-1!=e.indexOf("mac"),r="";t.preventDefault(),r=(s?"Command/Cmd":"CTRL")+" + D",alert("Press "+r+" to bookmark this page")}function socializer_shortlink(t,e){t.preventDefault(),link=e.getAttribute("href"),"#"!=link&&prompt("Short link",link)}window.wpsr_helpers={addClass:function(t,e){t.classList?t.classList.add(e):t.className+=" "+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},popup:function(t,e,s,r){var n=screen.width/2-s/2,a=screen.height/2-r/2;return window.open(t,e,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+a+",left="+n)},offset:function(t){var e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},ajax:function(t,e,s,r,n){var a=new XMLHttpRequest;a.props=n,a.open(e,t,!0),"POST"==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.onreadystatechange=function(){if(4==a.readyState&&200==a.status)return r(a)},a.send(s)},format_num:function(t){if(t<1e3)return t;for(var e=["k","m","b","t"],s=t,r=0;r<e.length;r++)if(!((t/=1e3)>1e3)){s=Math.round(100*t)/100+e[r];break}return s},is_mobile:function(){return/Mobi|Android/i.test(navigator.userAgent)}},document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll(".socializer.sr-popup a");for(_=0;_<t.length;_++){var e=t[_];e.addEventListener("click",function(t){var e=this.getAttribute("href");"#"==e||this.hasAttribute("onclick")||null==e||wpsr_helpers.popup(e,"_blank",800,500),t.preventDefault()})}if(wpsr_helpers.is_mobile()){var s=document.querySelectorAll(".socializer a[data-mobile]");for(_=0;_<s.length;_++){var e=s[_],r=e.getAttribute("data-mobile");e.setAttribute("href",r)}}var n=document.querySelector(".wpsr-sharebar");if(n){var a=n.querySelector(".socializer");n.sm_action_call=function(t){wpsr_helpers.removeClass(this,"wpsr-sb-vl"),wpsr_helpers.addClass(this,"wpsr-sb-hl"),wpsr_helpers.removeClass(a,"sr-vertical"),wpsr_helpers.addClass(a,"sr-horizontal"),wpsr_helpers.addClass(a,"sr-fluid")},n.lg_action_call=function(){wpsr_helpers.addClass(this,"wpsr-sb-vl"),wpsr_helpers.removeClass(this,"wpsr-sb-hl"),wpsr_helpers.addClass(a,"sr-vertical"),wpsr_helpers.removeClass(a,"sr-horizontal"),wpsr_helpers.removeClass(a,"sr-fluid")};var o=function(){stick_sb=document.querySelector(".wpsr-sb-vl-scontent"),stick_sb&&(stick=stick_sb.getAttribute("data-stick-to"),stick_ele=document.querySelector(stick),stick_ele&&(stick_offset=wpsr_helpers.offset(stick_ele),stick_sb.style.left=stick_offset.left+"px"))};o(),window.addEventListener("resize",o)}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0};var l={ptitle:tsb.getAttribute("data-title"),purl:tsb.getAttribute("data-url"),psurl:tsb.getAttribute("data-surl"),ptuname:tsb.getAttribute("data-tuname"),cnt_sel:tsb.getAttribute("data-content"),word_count:tsb.getAttribute("data-tcount")},i=function(){var t="";return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(t=document.selection.createRange().text),t},p=function(t,e){tsb.style.left=t+"px",tsb.style.top=e+"px",wpsr_helpers.addClass(tsb,"wpsr-tsb-active")},c=function(){wpsr_helpers.removeClass(tsb,"wpsr-tsb-active")},u=function(){var t=wpsr_tsb.stext,e=parseInt(l.word_count);return 0==e?t:t.split(" ").slice(0,e).join(" ")},d=function(t){var e={"{title}":escape(l.ptitle),"{url}":l.purl,"{s-url}":l.psurl,"{twitter-username}":l.ptuname,"{excerpt}":escape(u())};for(var s in e)e.hasOwnProperty(s)&&(t=t.replace(RegExp(s,"g"),e[s]));return t};if(""!=l.cnt_sel)for(var w=l.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),f=document.querySelectorAll(w),_=0;_<f.length;_++){var h=f[_];h.addEventListener("mousedown",function(t){wpsr_tsb.startx=t.pageX,wpsr_tsb.starty=t.pageY}),h.addEventListener("mouseup",function(t){var e=i();""!=e?(tsb_x=(t.pageX+parseInt(wpsr_tsb.startx))/2,tsb_y=Math.min(wpsr_tsb.starty,t.pageY),e!=wpsr_tsb.stext?(p(tsb_x,tsb_y),wpsr_tsb.stext=e):c()):c()})}document.body.addEventListener("mousedown",function(t){c()}),tsb.addEventListener("mousedown",function(t){t.stopPropagation()});for(var b=tsb.querySelectorAll("a"),_=0;_<b.length;_++){b[_].addEventListener("click",function(t){var e=this.getAttribute("data-link");"#"!=e&&(rep_link=d(e),wpsr_helpers.popup(rep_link,800,500)),t.preventDefault()})}}var v=document.querySelectorAll(".wp-socializer");v.length>0&&["resize","load"].forEach(function(t){window.addEventListener(t,function(){for(var t=0;t<v.length;t++){var e=v[t],s=e.getAttribute("data-lg-action"),r=e.getAttribute("data-sm-action"),n=e.getAttribute("data-sm-width"),a=window.innerWidth<=n?r:s;"close"==a?wpsr_helpers.addClass(e,"wpsr-closed"):wpsr_helpers.removeClass(e,"wpsr-closed"),"hide"==a?wpsr_helpers.addClass(e,"wpsr-hide"):wpsr_helpers.removeClass(e,"wpsr-hide"),"function"==typeof e.sm_action_call&&a==r&&e.sm_action_call(),"function"==typeof e.lg_action_call&&a==s&&e.lg_action_call()}})});var m=document.querySelectorAll(".wpsr-close-btn");if(m.length>0)for(_=0;_<m.length;_++){var g=m[_];g.addEventListener("click",function(){var t=this.parentNode;t.classList.contains("wpsr-closed")?wpsr_helpers.removeClass(t,"wpsr-closed"):wpsr_helpers.addClass(t,"wpsr-closed")})}if(wpsr_ajax_url){var y=document.querySelectorAll("[data-wpsrs]");if(y.length>0){var k={},A=wpsr_ajax_url+"?action=wpsr_share_count";for(_=0;_<y.length;_++){var C=y[_],x=C.getAttribute("data-wpsrs"),L=C.getAttribute("data-wpsrs-svcs").split(",");x in k||(k[x]=[]);for(j=0;j<L.length;j++)-1===k[x].indexOf(L[j])&&k[x].push(L[j])}var S=function(t){var e=JSON.parse(t.responseText),s=document.querySelectorAll('[data-wpsrs="'+t.props.forURL+'"]');for(_=0;_<s.length;_++){var r=s[_],n=r.getAttribute("data-wpsrs-svcs").split(","),a=0;for(j=0;j<n.length;j++){var o=n[j];o in e&&(a+=parseInt(e[o])||0)}r.innerHTML=wpsr_helpers.format_num(a)}};for(var x in k)k.hasOwnProperty(x)&&(send_data={url:x,services:k[x]},to_send="data="+JSON.stringify(send_data),wpsr_helpers.ajax(A,"POST",to_send,S,{forURL:x}))}}});
readme.txt CHANGED
@@ -1,128 +1,133 @@
1
- === Social Media Share Icons, Buttons & Widgets - WP Socializer ===
2
  Contributors: vaakash
3
  Donate link: https://www.paypal.me/vaakash/6
4
- Tags: sharing, social media icons, share icons, share buttons, follow buttons, widgets, floating share buttons, profile buttons, mobile sharebar, profile icons, social bar, share counter, excerpt, shortcode, linkedin, pinterest, pocket, reddit, sharethis, addthis, whatsapp, tweet, vkontakte, socializer, wp socializer, weibo, line, mix, odnoklassniki, renren, skype
5
  Requires at least: 4.6
6
- Tested up to: 5.4.1
7
- Stable tag: 5.2.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Requires PHP: 5.3
11
 
12
- Simple & easy way to add social media sharing icons, follow social profile icons, floating, text & mobile sharebar easily with services like Facebook, Twitter, LinkedIn, Pinterest, Instagram etc.
13
 
14
  == Description ==
15
 
16
- WP Socializer is a complete social media plugin to add social media icons, floating sharebar, follow social profile icons, mobile sharebar and selected text share popups easily with **TONS** of customization.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
- = Key features =
19
-
20
- * **Drag & drop** social icons, buttons builder.
21
- * Display the icons, buttons only on the required posts, pages using the advanced **conditional rules builder system**.
22
- * Insert **50 social share icons** which are highly scalable.
23
- * Insert **51 follow me icons** in floating bar and widgets.
24
- * Insert **text sharebar** with 11 social network support.
25
- * Add **mobile sharebar** which supports icons of 50 networks.
26
- * Has inbuilt system to **display share counts**.
27
- * Has support for **shortcodes**.
28
- * Has support for native **social media sidebar widgets**.
29
- * Extensive options with **no restrictions** to customize.
30
- * Set **custom icon image** for social icons.
31
-
32
- = Faster page loads =
33
-
34
- WP Socializer **loads webpages faster** since scripts required by buttons are loaded only once and also when necessary. This increases the page load faster even when multiple buttons are used in the same page.
35
-
36
-
37
- = Mobile ready with responsiveness & app linking =
38
-
39
- WP Socializer is 100% mobile ready and looks beautiful in any device with options to set the responsiveness to mobile devices.
40
-
41
- * It has the social networks to share with mobile apps like WhatsApp, Facebook messenger, Telegram, WeChat
42
- * Dedicated mobile sharebar.
43
- * Social icons are **retina ready** and displays sharp icons even deep zoom in mobile devices.
44
- * Faster on both mobile and desktop devices as resources are loaded conditionally.
45
- * Apps like WhatsApp and Facebook messenger open directly when users share page.
46
-
47
-
48
- = Create your own design for your website =
49
-
50
- With WP Socializer, you can create your own design for the social icons which are placed before and after posts and pages. With the advanced social icons builder system, you can easily customize your website social media features. You can select custom icon color, background color, size, and icon designs. Below icons designs are available out of the box.
51
 
52
- * Square, Circle
53
- * Squircle, Squircle type 2
54
- * Diamond, Drop & Ribbon
55
 
56
- = Share counters =
57
 
58
- WP Socializer supports share counter can be either displayed individually over icons or as a total count like in popular news sites. Share counter is supported for below networks,
59
 
60
- * Facebook like counts
61
- * LinkedIn share counts
62
- * Pinterest counts
63
- * Total share counts
64
 
 
65
 
66
- = Conditional display =
 
 
 
 
67
 
68
- Social buttons can be placed conditionally by creating rules which allows it to display only on the desired posts. There is a wide selection of rules which gives complete control on where to display what kind of buttons. You can create rules like below,
69
 
70
- * Show in all pages
71
- * Hide in all pages
72
- * Show in selected pages
73
- * Hide in selected pages
74
- * Show/hide on specific pages Single posts, pages, home, front, 404 pages, category, date, tag archives, post formats and custom post types.
75
- * Show/hide on desktop, mobile devices.
76
 
 
77
 
78
- = Follow us icons and selected text sharebar =
 
 
79
 
80
- There is also support for follow us / profile icons which can placed in widget or near the sides of the window. In addition to this, popups can also be added to share selected text which allows visitors to share the quoted text.
81
 
82
 
83
- = Sidebar widgets =
84
 
85
- WP Socializer can also be used to insert widgets to WordPress sidebar. Below list of widgets can be added.
86
 
87
- * Twitter timeline
88
- * Facebook page & messenger widget
89
- * Follow us buttons
90
 
 
91
 
92
- = Supported social media icons =
93
 
94
- Add to favorites, Behance, Bitbucket, Blogger, CodePen, Comments, Delicious, DeviantArt, Digg, Dribbble, Email, Facebook, Facebook messenger, Flickr, Github, Google, Hacker News, Instagram, LinkedIn, Medium, PayPal, PDF, Pinterest, Pocket, Print, Reddit, RSS, Short link, Snapchat, Soundcloud, StackOverflow, Quora, Telegram, Tumblr, Twitter, Vimeo, VKontakte, wechat, WhatsApp, Xing, Yahoo! Mail, Youtube, Weibo, Line, Mix, Odnoklassniki, Renren, Skype, Telephone/call button, Houzz, Etsy.
95
 
 
96
 
97
- = More links =
98
 
99
- * [Support Forum](https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/)
100
- * [Homepage](https://www.aakashweb.com/wordpress-plugins/wp-socializer/)
101
 
 
102
 
103
- == Installation ==
104
 
105
- 1. Upload the plugin files to the `/wp-content/plugins/wp-socializer` directory, or install the plugin through the WordPress plugins screen directly.
106
- 1. Activate the plugin through the 'Plugins' screen in WordPress
107
- 1. Use the Settings -> WP Socializer screen to configure the plugin
108
 
 
109
 
 
110
 
111
- == Frequently Asked Questions ==
112
 
113
  = Why are the share icons not aligned properly ? =
114
 
115
  Share icons are aligned using CSS. This alignment can sometimes be disturbed by the active theme used. This can be corrected by CSS. Please refer [this image](https://goo.gl/Ge7riC#css-classes) for the list of CSS classes used by plugin to modify it or else please post your issue in the [support forum](https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/) I'll try my best to give a quick CSS fix for the misalignment.
116
 
117
- = Social icons are not displayed in the page ! =
118
 
119
- Social icons or other feature may be hidden if the option "Hide in all pages" option is selected in "Conditions to display" section. Please select "Show in all pages" option to display the buttons. If the buttons are still not displayed, please raise an issue in the Support forum.
120
 
121
  = How to disable a feature in specific page alone ? =
122
 
123
  WP Socializer has a feature called "conditional display" where a feature can be made to shown only at desired places by creating rules. Please look for the section "Conditions to display the template" under every feature page to add rules as per the requirement.
124
 
125
- = How to disable/hide share buttons in all pages ? =
126
 
127
  Please select "Hide in all pages" option under "conditions to display the template" section in all the templates to hide them being displayed. For other features like floating sharebar, follow bar, text sharebar and mobile sharebar can be hidden by "disabling" them from the top most section available at their respective pages.
128
 
@@ -130,26 +135,45 @@ Please select "Hide in all pages" option under "conditions to display the templa
130
 
131
  Custom share buttons can be added using the "Custom HTML" service. Paste your button generation script in the text box and use that custom HTML button in the template.
132
 
133
- Please refer [this page](https://goo.gl/Ge7riC) for the full list of FAQs.
134
 
 
135
 
136
 
137
- == Screenshots ==
138
 
139
- 1. WP Socializer admin home page.
140
- 2. Social icons in action.
141
- 3. Floating sharebar in action.
142
- 4. Follow us icons in action.
143
- 5. Mobile sharebar in action.
144
- 6. Text sharebar in action.
145
- 7. Different type of social media widgets in action.
146
- 8. Social icons admin settings page .
147
- 9. Powerful options to conditionally display the social media features.
148
 
 
 
 
 
 
 
 
 
 
149
 
150
 
151
  == Changelog ==
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  = 5.2.1 =
154
  * Fix: Bug where `is_mobile` is undefined. Floating sharebar not opening after it is closed.
155
  * Fix: Minor changes to admin UI.
@@ -173,80 +197,7 @@ Please refer [this page](https://goo.gl/Ge7riC) for the full list of FAQs.
173
  * Fix: 40px size was not working for text sharebar.
174
  * New: Social share buttons in widgets feature has been removed.
175
 
176
- = 4.2 =
177
- * New: Added Etsy button for follow bar.
178
- * Fix: Sharebar and mobile sharebar are hidden by other elements on page sometimes.
179
- * Fix: Update to latest FontAwesome icons v5.12.0.
180
- * Fix: Minor admin UI fixes.
181
-
182
- = 4.1.9 =
183
- * Fix: Mobile sharebar some link parameters not being resolved.
184
- * Fix: Text sharebar sometimes goes behind main content.
185
- * Fix: Title with special characters are not escaped correctly for text sharebar.
186
- * Fix: Quotes text is not passed correctly to certain social icons in text sharebar.
187
- * Fix: Admin page style issues with WordPress 5.3.
188
- * Fix: Added widgets link to admin navigation menu.
189
- * New: Added WhatsApp to text sharebar.
190
-
191
- = 4.1.8 =
192
- * Fix: Improved the look of "floating sharebar" editor based on the sharebar type.
193
- * New: Added option to select floating sharebar position when in mobile mode.
194
- * New: Added support to execute shortcodes in "Custom HTML" button.
195
-
196
- = 4.1.7 =
197
- * Fix: Setup templates with transparent background were not retained after button settings were saved.
198
- * Fix: Page title with hashtag was not forwarded properly to share sites.
199
- * New: Added support for Houzz.
200
- * Fix: Updated to latest FontAwesome icons v5.9.0.
201
-
202
- = 4.1.6 =
203
- * Fix: Facebook share count is 0
204
- * New: Load both HTTP and HTTPS share count of the page.
205
-
206
- = 4.1.5 =
207
- * Fix: Google Plus icon, buttons, social count removed.
208
- * Fix: Social icons advanced settings not applied properly.
209
- * Fix: Refine UI for social icon settings
210
- * Fix: Refine UI for location rules settings
211
- * New: Added post id selection sub category for post type location rule.
212
- * New: Added ID to class names for share buttons and template rows.
213
-
214
- = 4.1.4 =
215
- * Fix: Twitter share button was not working.
216
- * Fix: Help text given to follow bar editing page.
217
-
218
- = 4.1.3 =
219
- * Fix: Location rules template was not populated in PHP 7.3.
220
- * Fix: Line icon was incorrect for fontawesome 4.
221
- * Fix: Revert back to normal URL instead of short URL for twitter.
222
- * Fix: Couple of PHP notices for undefined keys are handled.
223
- * Fix: Updated to latest FontAwesome icons v5.7.2.
224
-
225
- = 4.1.2 =
226
- * Fix: Updated LinkedIn share URL to latest.
227
- * Fix: Updated to latest FontAwesome icons v5.6.1.
228
-
229
- = 4.1.1 =
230
- * New: Call/phone icon is added to follow bar.
231
- * Fix: Social icons settings does not save when UTF-8 characters were set as icon title.
232
-
233
- = 4.1 =
234
- * Fix: Issue where social icons are not seen after upgrade to 4.0.
235
- * Fix: Old admin resources were loaded after upgrade.
236
- * New: Added support for UTF-8 characters in social icons and follow bar titles.
237
-
238
- = 4.0 =
239
- * New: Brand new admin interface.
240
- * New: CSS resources are combined and optimized.
241
- * New: Support for font awesome 5 icons.
242
- * New: Weibo, Renren, Odnoklassniki, Line, Skype, Mix social icons added.
243
- * New: Custom colors can be selected for share icons.
244
- * New: Added new options for Floating sharebar, mobile sharebar
245
- * New: Enhanced existing developer APIs and added new filters.
246
-
247
-
248
 
249
  == Upgrade Notice ==
250
 
251
- WP Socializer v3 is re-written from scratch with attractive lot more features.Please upgrade to the latest version ( 3.0+ ) to experience all the new features.
252
- Please watch [this video](https://goo.gl/4jZJji) for more details.
1
+ === Social Media Share Buttons & Follow me icons - WP Socializer ===
2
  Contributors: vaakash
3
  Donate link: https://www.paypal.me/vaakash/6
4
+ Tags: social media, share, buttons, share icons, share buttons, social profile, social widget, icons, sharing icons, sharing buttons, social share, sharing, social sharing, shortcode, widget, twitter tweets, facebook page, share count, whatsapp icon, whatsapp button, instagram icon, sticky share, floating share bar
5
  Requires at least: 4.6
6
+ Tested up to: 5.5
7
+ Stable tag: 6.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Requires PHP: 5.3
11
 
12
+ Add social media sharing icons to posts, sticky/floating share bar, follow my profile icons easily for Facebook, Twitter, WhatsApp, Pinterest, Instagram and more.
13
 
14
  == Description ==
15
 
16
+ WP Socializer is one of the best social media sharing plugin to add social sharing icons, sticky/floating share bar, follow my social profile icons, mobile share bar and selected text share popups easily to your WordPress site.
17
+
18
+ Plugin is really fast, simple and easy to use. It works excellently on mobile devices as it is completely responsive and adapts to small screens devices out of the box.
19
+
20
+ It supports all the latest and popular social media platforms (50+) like Facebook, Twitter, Instagram, WhatsApp, LinkedIn and much more. It also displays share count for Facebook and Pinterest.
21
+
22
+ = ⚡ What makes WP Socializer stand out from others ? =
23
+
24
+ * Totally free !
25
+ * Beautiful, powerful yet easy to use.
26
+ * Lightweight and very fast. Does not affect website performance.
27
+ * Mobile ready, responsive and has app linking.
28
+ * Works with any theme.
29
+ * Add social icons anywhere using **Shortcodes**
30
+ * Lots of icon styles, effects and change icons to any color you want.
31
+ * Display share count.
32
+ * Recover old share count.
33
+ * Support for widgets.
34
+ * Add your own icon/image !
35
+ * Create rules on where to display the icons.
36
+ * GDPR complaint.
37
+ * Works with Gutenberg.
38
+ * Works with Woocommerce.
39
+ * Works with custom post types.
40
+ * No registration required and completely local.
41
+ * Friendly support.
42
+ * No-nonsense !
43
+
44
+ = ✨ Features =
45
+
46
+ * Social sharing icons for posts and pages (50+ platforms)
47
+ * Sticky/floating share bar.
48
+ * Mobile share bar.
49
+ * Follow my profile icons (25+ icons - Sticky).
50
+ * Selected text share bar aka tooltip.
51
+ *
52
+ * Shortcode to create social sharing icons.
53
+ * Shortcode to add social profile icons.
54
+ * Shortcode to create social share links.
55
+ *
56
+ * Widget for Social profile icons.
57
+ * Widget for Facebook page.
58
+ * Widget for Twitter tweets.
59
 
60
+ = Supported social media icons =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
+ You can add social media sharing icons and follow my profile icons for the below platforms.
 
 
63
 
64
+ Add to favorites, Behance, Bitbucket, Blogger, CodePen, Comments, Delicious, DeviantArt, Digg, Dribbble, Email, Facebook, Facebook messenger, Flickr, Github, Google, Hacker News, Instagram, LinkedIn, Medium, PayPal, PDF, Pinterest, Pocket, Print, Reddit, RSS, Short link, Snapchat, Soundcloud, StackOverflow, Quora, Telegram, Tumblr, Twitter, Vimeo, VKontakte, wechat, WhatsApp, Xing, Yahoo! Mail, Youtube, Weibo, Line, Mix, Odnoklassniki, Renren, Skype, Telephone/call button, Houzz, Etsy
65
 
66
+ = Supported icon styles =
67
 
68
+ You can select any of the following styles for the social sharing icons.
 
 
 
69
 
70
+ Square, Circle, Squircle, Squircle type 2, Diamond, Drop & Ribbon
71
 
72
+ = Plugin links =
73
+ * [Live demo](https://wpdemos.aakashweb.com/blog/wp-socializer/)
74
+ * [Support Forum](https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/)
75
+ * [Documentation](https://www.aakashweb.com/docs/)
76
+ * [Homepage](https://www.aakashweb.com/wordpress-plugins/wp-socializer/)
77
 
 
78
 
 
 
 
 
 
 
79
 
80
+ == Installation ==
81
 
82
+ 1. Upload the plugin files to the `/wp-content/plugins/wp-socializer` directory, or install the plugin through the WordPress plugins screen directly.
83
+ 1. Activate the plugin through the 'Plugins' screen in WordPress
84
+ 1. Use the Settings -> WP Socializer screen to configure the plugin
85
 
 
86
 
87
 
88
+ == Frequently Asked Questions ==
89
 
90
+ = Can I insert share icons anywhere in a custom location ? =
91
 
92
+ Yes, you can use Shortcodes. WP Socializer has shortcodes for share icons, profile icons and for share links. Using those shortcodes you can add social sharing features anywhere in your site.
 
 
93
 
94
+ = Is it possible to change the icon to custom image if I don't like ? =
95
 
96
+ Yes. In case you didn't like any icon, you can create or used other image and provide the image URL.
97
 
98
+ = Is this plugin GDPR complaint ? =
99
 
100
+ Yes, WP Socializer does not collect any personal information of you or your visitors. If you have any concerns please do let me know.
101
 
102
+ = Can I add twitter timeline/tweets to the sidebar ? =
103
 
104
+ Yes, the plugin has out of the box widgets for Facebook, Twitter and social profile links. You can use them and add those widgets to the sidebar.
 
105
 
106
+ = Does the plugin slow down my website ? =
107
 
108
+ No. WP socializer is very lite an fast plugin. Except font icons, no external resources are loaded. Also the JS are loaded dynamically only when needed. Since all the resources are loaded locally, if you have a minify plugin you can merge JS/CSS files with other resources of your theme.
109
 
110
+ = Is it possible to automatically hide share icons in small screens upon resize ? =
 
 
111
 
112
+ Yes. WP Socializer uses JS to detect the screen size so you can resize the window to see how responsive the icons are on desktop and mobile devices.
113
 
114
+ = Some icons are not displayed correctly and a empty square is seen =
115
 
116
+ This happens when the font icon used by the theme and the plugin are of different fontawesome icon versions (v4 and v5). You can try going to WP Socializer --> Settings --> Font icon and select a different font icon version (or) you can disable font icon being loaded completely by `fa_icons` to "CSS/JS to not to load in any page". Please raise a support topic if issue still exists.
117
 
118
  = Why are the share icons not aligned properly ? =
119
 
120
  Share icons are aligned using CSS. This alignment can sometimes be disturbed by the active theme used. This can be corrected by CSS. Please refer [this image](https://goo.gl/Ge7riC#css-classes) for the list of CSS classes used by plugin to modify it or else please post your issue in the [support forum](https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/) I'll try my best to give a quick CSS fix for the misalignment.
121
 
122
+ = Share icons are not displayed in the page ! =
123
 
124
+ Share icons or other feature may be hidden if the option "Hide in all pages" option is selected in "Conditions to display" section. Please select "Show in all pages" option to display the buttons. If the buttons are still not displayed, please raise an issue in the Support forum.
125
 
126
  = How to disable a feature in specific page alone ? =
127
 
128
  WP Socializer has a feature called "conditional display" where a feature can be made to shown only at desired places by creating rules. Please look for the section "Conditions to display the template" under every feature page to add rules as per the requirement.
129
 
130
+ = How to disable/hide share icons in all pages ? =
131
 
132
  Please select "Hide in all pages" option under "conditions to display the template" section in all the templates to hide them being displayed. For other features like floating sharebar, follow bar, text sharebar and mobile sharebar can be hidden by "disabling" them from the top most section available at their respective pages.
133
 
135
 
136
  Custom share buttons can be added using the "Custom HTML" service. Paste your button generation script in the text box and use that custom HTML button in the template.
137
 
 
138
 
139
+ Please refer [this page](https://www.aakashweb.com/docs/) for the full list of FAQs.
140
 
141
 
 
142
 
143
+ == Screenshots ==
 
 
 
 
 
 
 
 
144
 
145
+ 1. Plugin home page.
146
+ 2. Share icons added to both above and below the post content.
147
+ 3. Floating/sticky share bar next to the post content.
148
+ 4. Floating sharebar switching to mobile mode on smaller screens.
149
+ 5. Text sharebar in action.
150
+ 6. Shortcodes being used in posts.
151
+ 7. Widgets in action.
152
+ 8. One of the feature settings page.
153
+ 9. Options to change mobile responsiveness and create rules on where to display the icons.
154
 
155
 
156
  == Changelog ==
157
 
158
+ = 6.0 =
159
+ * New: Brand new version with major improvements and new features.
160
+ * New: Redesigned administration page and is now easy to use.
161
+ * New: Plugin code is now 50% lighter and takes less footprint.
162
+ * New: Shortcodes.
163
+ * New: Mobile ready with new responsive options for different screen size.
164
+ * New: Updated brand icon colors for Facebook, Twitter, Instagram and YouTube.
165
+ * New: Mobile sharebar feature is merged with "Floating share bar".
166
+ * New: App linking for platforms like WhatsApp and Facebook Messenger.
167
+ * Fix: Share buttons widget has been removed since the availability of shortcodes.
168
+ * Fix: Facebook share count not working.
169
+ * Fix: Drop icon style design.
170
+ * Fix: Deprecated features are removed.
171
+ * Note: Old features like "share buttons" and "sharebar" are removed and replaced with "share icons" and "floating sharebar" features.
172
+
173
+ = 5.2.2 =
174
+ * Fix: Stick to element not working in some cases.
175
+ * Fix: Pinterest button being replaced when pinterest script is used.
176
+
177
  = 5.2.1 =
178
  * Fix: Bug where `is_mobile` is undefined. Floating sharebar not opening after it is closed.
179
  * Fix: Minor changes to admin UI.
197
  * Fix: 40px size was not working for text sharebar.
198
  * New: Social share buttons in widgets feature has been removed.
199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
 
201
  == Upgrade Notice ==
202
 
203
+ WP Socializer v6 is a brand new upgrade with exciting new features making the plugin easy to use and lightweight. Please read changelog for more information.
 
services/facebook.php DELETED
@@ -1,344 +0,0 @@
1
- <?php
2
- /**
3
- * Facebook service for WP Socializer
4
- *
5
- */
6
-
7
- class wpsr_service_facebook{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_service', array( $this, 'register' ) );
12
-
13
- $this->default_values = array(
14
- 'type' => 'like',
15
- 'like_type' => 'box_count',
16
- 'like_share_btn' => 'false',
17
- 'like_size' => 'small',
18
- 'like_width' => '',
19
- 'like_action' => 'like',
20
- 'like_faces' => 'false',
21
- 'share_type' => 'box_count'
22
- );
23
-
24
- }
25
-
26
- function register( $services ){
27
-
28
- $services[ 'facebook' ] = array(
29
- 'name' => 'Facebook',
30
- 'icons' => WPSR_ADMIN_URL . '/images/icons/facebook.png',
31
- 'desc' => __( 'Create Facebook like, share and send buttons', 'wpsr' ),
32
- 'settings' => array( 'size' => '500x450' ),
33
- 'callbacks' => array(
34
- 'output' => array( $this, 'output' ),
35
- 'includes' => array( $this, 'includes' ),
36
- 'settings' => array( $this, 'settings' ),
37
- 'validation' => array( $this, 'validation' ),
38
- 'general_settings' => array( $this, 'general_settings' ),
39
- 'general_settings_validation' => array( $this, 'general_settings_validation' ),
40
- 'templates' => array( $this, 'templates' )
41
- )
42
- );
43
-
44
- return $services;
45
-
46
- }
47
-
48
- function output( $settings = array(), $page_info = array() ){
49
-
50
- $out = array();
51
- $html = '';
52
- $settings = WPSR_Lists::set_defaults( $settings, $this->default_values );
53
-
54
- if( $settings[ 'type' ] == 'like' ){
55
- $html = '<div class="fb-like" data-href="' . esc_attr( $page_info[ 'url' ] ) . '" data-width="' . esc_attr( $settings[ 'like_width' ] ) . '" data-layout="' . esc_attr( $settings[ 'like_type' ] ) . '" data-action="' . esc_attr( $settings[ 'like_action' ] ) . '" data-show-faces="' . esc_attr( $settings[ 'like_faces' ] ) . '" data-share="' . esc_attr( $settings[ 'like_share_btn' ] ) . '" data-size="' . esc_attr( $settings[ 'like_size' ] ) . '"></div>';
56
- }
57
-
58
- if( $settings[ 'type' ] == 'share' ){
59
- $html = '<div class="fb-share-button" data-href="' . esc_attr( $page_info[ 'url' ] ) . '" data-layout="' . esc_attr( $settings[ 'share_type' ] ) . '"></div>';
60
- }
61
-
62
- if( $settings[ 'type' ] == 'send' ){
63
- $html = '<div class="fb-send" data-href="' . esc_attr( $page_info[ 'url' ] ) . '"></div>';
64
- }
65
-
66
- $out['html'] = $html;
67
-
68
- $out['includes'] = array( 'facebook_main_js' );
69
- return $out;
70
-
71
- }
72
-
73
- function includes(){
74
-
75
- $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Lists::defaults( 'gsettings_facebook' ) );
76
- $lang_code = $gs[ 'facebook_lang' ];
77
-
78
- $includes = array(
79
- 'facebook_main_js' => array(
80
- 'type' => 'js',
81
- 'code' => '<div id="fb-root"></div>
82
- <script>(function(d, s, id) {
83
- var js, fjs = d.getElementsByTagName(s)[0];
84
- if (d.getElementById(id)) return;
85
- js = d.createElement(s); js.id = id;
86
- js.src = "//connect.facebook.net/' . $lang_code . '/sdk.js#xfbml=1&version=v2.8";
87
- fjs.parentNode.insertBefore(js, fjs);
88
- }(document, "script", "facebook-jssdk"));</script>'
89
- )
90
- );
91
-
92
- return $includes;
93
-
94
- }
95
-
96
- function settings( $values ){
97
-
98
- $values = WPSR_Lists::set_defaults( $values, $this->default_values );
99
-
100
- $yes_no = array(
101
- 'true' => __( 'Yes', 'wpsr' ),
102
- 'false' => __( 'No', 'wpsr' )
103
- );
104
-
105
- $section1 = array(
106
- array( __( 'Button type', 'wpsr' ), WPSR_Admin::field( 'select', array(
107
- 'name' => 'o[type]',
108
- 'value' => $values['type'],
109
- 'class' => 'fb_btn_type',
110
- 'list' => array(
111
- 'like' => __( 'Like button', 'wpsr' ),
112
- 'share' => __( 'Share button', 'wpsr' ),
113
- 'send' => __( 'Send button', 'wpsr' )
114
- )
115
- ))),
116
- );
117
-
118
- WPSR_Admin::build_table( $section1, '', '', true);
119
-
120
- $section_like = array(
121
-
122
- array( __( 'Like button type', 'wpsr' ), WPSR_Admin::field( 'select', array(
123
- 'name' => 'o[like_type]',
124
- 'value' => $values['like_type'],
125
- 'list' => array(
126
- 'box_count' => 'Box count',
127
- 'button_count' => 'Button count',
128
- 'button' => 'Button',
129
- 'standard' => 'Standard',
130
- ),
131
- 'tip' => WPSR_ADMIN_URL . '/images/tips/fb-types.png'
132
- ))),
133
-
134
- array( __( 'Show share button', 'wpsr' ), WPSR_Admin::field( 'radio', array(
135
- 'name' => 'o[like_share_btn]',
136
- 'value' => $values['like_share_btn'],
137
- 'list' => $yes_no,
138
- ))),
139
-
140
- array( __( 'Button size', 'wpsr' ), WPSR_Admin::field( 'select', array(
141
- 'name' => 'o[like_size]',
142
- 'value' => $values['like_size'],
143
- 'list' => array( 'small' => 'Normal', 'large' => 'Large')
144
- ))),
145
-
146
- array( __( 'Width of the button', 'wpsr' ), WPSR_Admin::field( 'text', array(
147
- 'type' => 'number',
148
- 'name' => 'o[like_width]',
149
- 'value' => $values['like_width'],
150
- 'placeholder' => __( 'Width in pixels', 'wpsr' )
151
- ))),
152
-
153
- array( __( 'Action type', 'wpsr' ), WPSR_Admin::field( 'select', array(
154
- 'name' => 'o[like_action]',
155
- 'value' => $values['like_action'],
156
- 'list' => array( 'like' => 'Like', 'recommend' => 'Recommend'),
157
- ))),
158
-
159
- array( __( 'Show Friends` faces', 'wpsr' ), WPSR_Admin::field( 'radio', array(
160
- 'name' => 'o[like_faces]',
161
- 'value' => $values['like_faces'],
162
- 'list' => $yes_no,
163
- ))),
164
-
165
- );
166
-
167
- echo '<div data-conditioner data-condr-input=".fb_btn_type" data-condr-value="like" data-condr-action="simple?show:hide" data-condr-events="click">';
168
- echo '<h4>' . __( 'Like button settings', 'wpsr' ) . '</h4>';
169
- WPSR_Admin::build_table( $section_like, '', '', true);
170
- echo '</div>';
171
-
172
-
173
- $section_share = array(
174
- array( __( 'Share button type', 'wpsr' ), WPSR_Admin::field( 'select', array(
175
- 'name' => 'o[share_type]',
176
- 'value' => $values['share_type'],
177
- 'list' => array(
178
- 'box_count' => 'Box count',
179
- 'button_count' => 'Button count',
180
- 'button' => 'Button'
181
- )
182
- ))),
183
- );
184
-
185
- echo '<div data-conditioner data-condr-input=".fb_btn_type" data-condr-value="share" data-condr-action="simple?show:hide" data-condr-events="click">';
186
- echo '<h4>' . __( 'Share button settings', 'wpsr' ) . '</h4>';
187
- WPSR_Admin::build_table( $section_share, '', '', true);
188
- echo '</div>';
189
-
190
- echo '<script>if( jQuery.fn.conditioner ) jQuery("[data-conditioner]").conditioner();</script>';
191
- }
192
-
193
- function validation( $values ){
194
-
195
- return $values;
196
-
197
- }
198
-
199
- function general_settings( $values ){
200
-
201
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'gsettings_facebook' ) );
202
-
203
- $section1 = array(
204
-
205
- array( __( 'Facebook App ID', 'wpsr' ), WPSR_Admin::field( 'text', array(
206
- 'name' => 'facebook_app_id',
207
- 'value' => $values['facebook_app_id'],
208
- ))),
209
-
210
- array( __( 'Facebook App secret', 'wpsr' ), WPSR_Admin::field( 'text', array(
211
- 'name' => 'facebook_app_secret',
212
- 'value' => $values['facebook_app_secret'],
213
- 'helper' => 'You can find your facebook app ID and secret in <a href="https://developers.facebook.com/apps/" target="_blank">this page</a> under your app --> Settings --> Basic. Please create a new facebook app if there are no apps. This is used to retrieve facebook share/like count on the URLs.'
214
- ))),
215
-
216
- array( __( 'Facebook SDK language', 'wpsr' ), WPSR_Admin::field( 'select', array(
217
- 'name' => 'facebook_lang',
218
- 'value' => $values['facebook_lang'],
219
- 'list' => WPSR_Lists::lang_codes( 'facebook' )
220
- ))),
221
- );
222
-
223
- WPSR_Admin::build_table( $section1, 'Facebook settings');
224
-
225
- }
226
-
227
- function general_settings_validation( $values ){
228
- return $values;
229
- }
230
-
231
- function templates(){
232
-
233
- return array(
234
- 'fb_hl'=> array(
235
- 'desc' => 'Small facebook like button with counter',
236
- 'settings'=> array(
237
- 'like_type'=> 'button_count'
238
- )
239
- ),
240
- 'fb_vl'=> array(
241
- 'desc' => 'Tall facebook like button with counter',
242
- 'settings'=> array(
243
- 'like_type'=> 'box_count'
244
- )
245
- ),
246
- 'fb_hl_lg'=> array(
247
- 'desc' => 'Large facebook like button with counter',
248
- 'settings'=> array(
249
- 'like_type'=> 'button_count',
250
- 'like_size'=> 'large'
251
- )
252
- ),
253
- 'fb_hl_nc'=> array(
254
- 'desc' => 'Small facebook like button without counter',
255
- 'settings'=> array(
256
- 'like_type'=> 'button'
257
- )
258
- )
259
- );
260
-
261
- }
262
-
263
- }
264
-
265
- new wpsr_service_facebook();
266
-
267
- /**
268
- * Facebook widget
269
- */
270
-
271
- class wpsr_widget_facebook{
272
-
273
- function __construct(){
274
-
275
- WPSR_Widgets::register( 'facebook', array(
276
- 'name' => 'Facebook & messenger widget',
277
- 'banner' => WPSR_ADMIN_URL . '/images/widgets/facebook.png',
278
- 'description' => __( 'The native Facebook widget to promote a Facebook page', 'wpsr' ),
279
- 'callbacks' => array(
280
- 'widget' => array( $this, 'widget' ),
281
- 'form' => array( $this, 'form' ),
282
- 'update' => array( $this, 'update' )
283
- )
284
- ));
285
-
286
- $this->defaults = array(
287
- 'fb_page_url' => '',
288
- 'fb_page_tabs' => 'timeline',
289
- 'fb_page_width' => '400',
290
- 'fb_page_height' => '400',
291
- 'fb_page_small_header' => 'false',
292
- 'fb_page_hide_cover' => 'false',
293
- 'fb_page_show_faces' => 'true',
294
- );
295
-
296
- }
297
-
298
- function widget( $args, $instance ){
299
-
300
- $instance = WPSR_Lists::set_defaults( $instance, $this->defaults );
301
-
302
- echo '<div class="fb-page" data-href="' . $instance[ 'fb_page_url' ] . '"
303
- data-tabs="' . $instance[ 'fb_page_tabs' ] . '"
304
- data-width="' . $instance[ 'fb_page_width' ] . '"
305
- data-height="' . $instance[ 'fb_page_height' ] . '"
306
- data-hide-cover="' . $instance[ 'fb_page_hide_cover' ] . '"
307
- data-show-facepile="' . $instance[ 'fb_page_show_faces' ] . '"
308
- data-small-header="' . $instance[ 'fb_page_small_header' ] . '"></div>';
309
-
310
- WPSR_Includes::add_active_includes( array( 'facebook_main_js' ) );
311
-
312
- }
313
-
314
- function form( $obj, $instance ){
315
-
316
- $instance = WPSR_Lists::set_defaults( $instance, $this->defaults );
317
- $fields = new WPSR_Widget_Form_Fields( $obj, $instance );
318
-
319
- $yesno = array(
320
- 'true' => __( 'Yes', 'wpsr' ),
321
- 'false' => __( 'No', 'wpsr' )
322
- );
323
-
324
- echo '<h4>' . __( 'Facebook Widget settings', 'wpsr' ) . '</h4>';
325
- $fields->text( 'fb_page_url', 'Facebook page URL', array( 'placeholder' => 'Ex: https://facebook.com/facebook' ) );
326
- $fields->text( 'fb_page_tabs', 'Tabs to display ( Enter tab names separated by comma. Example: timeline,events,messages )' );
327
- $fields->number( 'fb_page_width', 'Widget width ( in pixels )' );
328
- $fields->number( 'fb_page_height', 'Widget height ( in pixels )' );
329
-
330
- $fields->select( 'fb_page_small_header', 'Display small header', $yesno, array( 'class' => 'smallfat' ) );
331
- $fields->select( 'fb_page_hide_cover', 'Hide cover photo', $yesno, array( 'class' => 'smallfat' ) );
332
- $fields->select( 'fb_page_show_faces', 'Show friend\'s faces', $yesno, array( 'class' => 'smallfat' ) );
333
-
334
- }
335
-
336
- function update( $instance ){
337
- return $instance;
338
- }
339
-
340
- }
341
-
342
- new wpsr_widget_facebook();
343
-
344
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
services/html.php DELETED
@@ -1,159 +0,0 @@
1
- <?php
2
- /**
3
- * HTML service for WP Socializer
4
- *
5
- */
6
-
7
- class wpsr_service_html{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_service', array( $this, 'register' ) );
12
-
13
- $this->default_values = array(
14
- 'html' => '<h3>' . __( 'Share this article', 'wpsr' ) . '</h3>',
15
- '_wrap_tag' => 0
16
- );
17
-
18
- }
19
-
20
- function register( $services ){
21
-
22
- $services[ 'html' ] = array(
23
- 'name' => 'Custom HTML',
24
- 'icons' => WPSR_ADMIN_URL . '/images/icons/html.png',
25
- 'desc' => __( 'Add custom HTML snippets like "heading" within the template', 'wpsr' ),
26
- 'settings' => array( 'size' => 'popup' ),
27
- 'callbacks' => array(
28
- 'output' => array( $this, 'output' ),
29
- 'includes' => array( $this, 'includes' ),
30
- 'settings' => array( $this, 'settings' ),
31
- 'validation' => array( $this, 'validation' ),
32
- 'general_settings' => array( $this, 'general_settings' ),
33
- 'general_settings_validation' => array( $this, 'general_settings_validation' ),
34
- 'templates' => array( $this, 'templates' )
35
- )
36
- );
37
-
38
- return $services;
39
-
40
- }
41
-
42
- function output( $settings = array(), $page_info = array() ){
43
-
44
- $out = array();
45
- $settings = WPSR_Lists::set_defaults( $settings, $this->default_values );
46
-
47
- $tags = array();
48
- $replace_with = array();
49
- foreach( $page_info as $id => $val ){
50
- array_push( $tags, '{' . $id . '}' );
51
- array_push( $replace_with, $val );
52
- }
53
- $html = do_shortcode( $settings[ 'html' ] );
54
- $final_html = str_replace( $tags, $replace_with, $html );
55
-
56
- $out['html'] = balanceTags( $final_html );
57
- $out['includes'] = array();
58
- return $out;
59
-
60
- }
61
-
62
- function includes(){
63
-
64
- $includes = array();
65
-
66
- return $includes;
67
-
68
- }
69
-
70
- function settings( $values ){
71
-
72
- $values = WPSR_Lists::set_defaults( $values, $this->default_values );
73
-
74
- echo '<p>' . __( 'Enter custom HTML below', 'wpsr' ) . '</p>';
75
- echo '<textarea class="custom_html_editor" name="o[html]" rows="10" >' . $values[ 'html' ] . '</textarea>';
76
- echo '<button class="toggle_html_editor_btn button" data-state="0" data-warning="' . __( 'Switching to HTML editor can strip off the script tags sometimes. Continue ?', 'wpsr' ) . '">' . __( 'Toggle HTML editor', 'wpsr' ) . '</button>';
77
-
78
- echo '
79
- <script>
80
- wpsr_load_css( "wpsr_tbg_css", "' . WPSR_ADMIN_URL . 'js/trumbowyg/trumbowyg.min.css" );
81
- wpsr_load_js( "wpsr_tbg_js", "' . WPSR_ADMIN_URL . 'js/trumbowyg/trumbowyg.min.js", function(){
82
- jQuery.trumbowyg.svgPath = "' . WPSR_ADMIN_URL . 'js/trumbowyg/icons.svg";
83
- jQuery( ".toggle_html_editor_btn" ).click(function(e){
84
- e.preventDefault();
85
- if( jQuery(this).data( "state" ) == "0" ){
86
-
87
- var html = jQuery( ".custom_html_editor" ).val();
88
- var do_switch = true;
89
-
90
- if( html.search( /script/g ) != -1 ){
91
- do_switch = confirm( jQuery(this).data( "warning" ) );
92
- }
93
-
94
- if( do_switch ){
95
- jQuery( ".custom_html_editor" ).trumbowyg({
96
- autogrow: true,
97
- btns: [
98
- ["formatting"],
99
- "btnGrp-semantic",
100
- ["superscript", "subscript"],
101
- ["link"],
102
- ["insertImage"],
103
- "btnGrp-justify",
104
- "btnGrp-lists",
105
- ["horizontalRule"],
106
- ["removeformat"]
107
- ]
108
- });
109
- jQuery(this).data( "state", "1" );
110
- }
111
- }else{
112
- jQuery( ".custom_html_editor" ).trumbowyg( "destroy" );
113
- jQuery(this).data( "state", "0" );
114
- }
115
- });
116
-
117
- });
118
- </script>
119
- ';
120
-
121
- echo '<h4>' . __( 'Note', 'wpsr' ) . ':</h4>';
122
- echo '<p>' . __( 'Placeholders <code>{url}</code> and <code>{title}</code> can be used in the HTML to replace them with post URL and title respectively', 'wpsr' ) . '</p>';
123
- echo '<p>' . __( 'Supports shortcodes.', 'wpsr' ) . '</p>';
124
-
125
- }
126
-
127
- function validation( $values ){
128
- $values[ '_wrap_tag' ] = 0;
129
- return $values;
130
-
131
- }
132
-
133
-
134
- function general_settings( $values ){
135
-
136
- }
137
-
138
- function general_settings_validation( $values ){
139
- return $values;
140
- }
141
-
142
- function templates(){
143
-
144
- return array(
145
- 'html'=> array(
146
- 'settings'=> array(
147
- 'html'=> '<h3>Share and enjoy !</h3>',
148
- '_wrap_tag'=> '0'
149
- )
150
- )
151
- );
152
-
153
- }
154
-
155
- }
156
-
157
- new wpsr_service_html();
158
-
159
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
services/linkedin.php DELETED
@@ -1,139 +0,0 @@
1
- <?php
2
- /**
3
- * LinkedIn service for WP Socializer
4
- *
5
- */
6
-
7
- class wpsr_service_linkedin{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_service', array( $this, 'register' ) );
12
-
13
- $this->default_values = array(
14
- 'type' => 'right'
15
- );
16
-
17
- }
18
-
19
- function register( $services ){
20
-
21
- $services[ 'linkedin' ] = array(
22
- 'name' => 'LinkedIn',
23
- 'icons' => WPSR_ADMIN_URL . '/images/icons/linkedin.png',
24
- 'desc' => __( 'Create LinkedIn buttons', 'wpsr' ),
25
- 'settings' => array( 'size' => '500x200' ),
26
- 'callbacks' => array(
27
- 'output' => array( $this, 'output' ),
28
- 'includes' => array( $this, 'includes' ),
29
- 'settings' => array( $this, 'settings' ),
30
- 'validation' => array( $this, 'validation' ),
31
- 'general_settings' => array( $this, 'general_settings' ),
32
- 'general_settings_validation' => array( $this, 'general_settings_validation' ),
33
- 'templates' => array( $this, 'templates' )
34
- )
35
- );
36
-
37
- return $services;
38
-
39
- }
40
-
41
- function output( $settings = array(), $page_info = array() ){
42
-
43
- $out = array();
44
- $settings = WPSR_Lists::set_defaults( $settings, $this->default_values );
45
-
46
- $out['html'] = '<script type="IN/Share" data-url="' . esc_attr( $page_info[ 'url' ] ) . '" data-counter="' . esc_attr( $settings[ 'type' ] ) . '"></script>';
47
- $out['includes'] = array( 'linkedin_main_js' );
48
- return $out;
49
-
50
- }
51
-
52
- function includes(){
53
-
54
- $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Lists::defaults( 'gsettings_linkedin' ) );
55
- $lang_code = $gs[ 'linkedin_lang' ];
56
-
57
- $includes = array(
58
- 'linkedin_main_js' => array(
59
- 'type' => 'js',
60
- 'code' => '<script src="//platform.linkedin.com/in.js" type="text/javascript">lang: ' . $lang_code . '</script>'
61
- )
62
- );
63
-
64
- return $includes;
65
-
66
- }
67
-
68
- function settings( $values ){
69
-
70
- $values = WPSR_Lists::set_defaults( $values, $this->default_values );
71
-
72
- $section1 = array(
73
- array( __( 'Counter position', 'wpsr' ), WPSR_Admin::field( 'select', array(
74
- 'name' => 'o[type]',
75
- 'value' => $values['type'],
76
- 'list' => array(
77
- 'right' => __( 'Horizontal', 'wpsr' ),
78
- 'top' => __( 'Top', 'wpsr' ),
79
- 'none' => __( 'No count', 'wpsr' ),
80
- )
81
- ))),
82
- );
83
-
84
- WPSR_Admin::build_table( $section1, '', '', true);
85
-
86
- }
87
-
88
- function validation( $values ){
89
-
90
- return $values;
91
-
92
- }
93
-
94
-
95
- function general_settings( $values ){
96
-
97
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'gsettings_linkedin' ) );
98
-
99
- $section1 = array(
100
- array( __( 'LinkedIn language', 'wpsr' ), WPSR_Admin::field( 'select', array(
101
- 'name' => 'linkedin_lang',
102
- 'value' => $values['linkedin_lang'],
103
- 'list' => WPSR_Lists::lang_codes( 'linkedin' )
104
- ))),
105
- );
106
-
107
- WPSR_Admin::build_table( $section1, 'LinkedIn settings');
108
-
109
- }
110
-
111
- function general_settings_validation( $values ){
112
- return $values;
113
- }
114
-
115
- function templates(){
116
-
117
- return array(
118
- 'linkedin_hl'=> array(
119
- 'settings'=> array()
120
- ),
121
- 'linkedin_vl'=> array(
122
- 'settings'=> array(
123
- 'type'=> 'top'
124
- )
125
- ),
126
- 'linkedin_hl_nc'=> array(
127
- 'settings'=> array(
128
- 'type'=> 'none'
129
- )
130
- )
131
- );
132
-
133
- }
134
-
135
- }
136
-
137
- new wpsr_service_linkedin();
138
-
139
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
services/pinterest.php DELETED
@@ -1,196 +0,0 @@
1
- <?php
2
- /**
3
- * Pinterest service for WP Socializer
4
- *
5
- */
6
-
7
- class wpsr_service_pinterest{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_service', array( $this, 'register' ) );
12
-
13
- $this->default_values = array(
14
- 'type' => 'save',
15
- 'save_shape' => 'normal',
16
- 'save_size' => 'normal'
17
- );
18
-
19
- }
20
-
21
- function register( $services ){
22
-
23
- $services[ 'pinterest' ] = array(
24
- 'name' => 'Pinterest',
25
- 'icons' => WPSR_ADMIN_URL . '/images/icons/pinterest.png',
26
- 'desc' => 'A simple description for the Pinterest button',
27
- 'settings' => array( 'size' => '500x300' ),
28
- 'callbacks' => array(
29
- 'output' => array( $this, 'output' ),
30
- 'includes' => array( $this, 'includes' ),
31
- 'settings' => array( $this, 'settings' ),
32
- 'validation' => array( $this, 'validation' ),
33
- 'general_settings' => array( $this, 'general_settings' ),
34
- 'general_settings_validation' => array( $this, 'general_settings_validation' ),
35
- 'templates' => array( $this, 'templates' )
36
- )
37
- );
38
-
39
- return $services;
40
-
41
- }
42
-
43
- function output( $settings = array(), $page_info = array() ){
44
-
45
- $out = array();
46
- $settings = WPSR_Lists::set_defaults( $settings, $this->default_values );
47
- $html = '';
48
-
49
- $btn_type = $settings[ 'type' ];
50
- $out['includes'] = array();
51
-
52
- if ( $btn_type == 'save' ){
53
- $pin_save = ( $settings[ 'save_shape' ] == 'round' ) ? ' data-pin-round="true" data-pin-save="false"' : ' data-pin-save="true"';
54
- $pin_size = ( $settings[ 'save_size' ] == 'large' ) ? ' data-pin-tall="true"' : '';
55
-
56
- $html = '<a data-pin-do="buttonBookmark" ' . $pin_save . $pin_size . ' href="https://www.pinterest.com/pin/create/button/"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_round_red_16.png" /></a>';
57
-
58
- $out['includes'] = array( 'pinterest_main_js' );
59
- }
60
-
61
- if ( $btn_type == 'follow' ){
62
- $html = '<a data-pin-do="buttonFollow" href="' . esc_attr( $settings[ 'follow_url' ] ) . '">' . $settings[ 'follow_name' ] . '</a>';
63
- $out['includes'] = array( 'pinterest_main_js' );
64
- }
65
-
66
- if ( $btn_type == 'image_hover' ){
67
- $html = '';
68
- $out['includes'] = array( 'pinterest_image_hover_js' );
69
- }
70
-
71
- $out['html'] = $html;
72
- return $out;
73
-
74
- }
75
-
76
- function includes(){
77
-
78
- $includes = array(
79
- 'pinterest_main_js' => array(
80
- 'type' => 'js',
81
- 'code' => '<script async defer src="//assets.pinterest.com/js/pinit.js"></script>'
82
- ),
83
- 'pinterest_image_hover_js' => array(
84
- 'type' => 'js',
85
- 'code' => '<script async defer data-pin-hover="true" data-pin-round="true" data-pin-save="false" src="//assets.pinterest.com/js/pinit.js"></script>'
86
- )
87
- );
88
-
89
- return $includes;
90
-
91
- }
92
-
93
- function settings( $values ){
94
-
95
- $values = WPSR_Lists::set_defaults( $values, $this->default_values );
96
-
97
- $section1 = array(
98
- array( 'Button type', WPSR_Admin::field( 'select', array(
99
- 'name' => 'o[type]',
100
- 'value' => $values['type'],
101
- 'list' => array(
102
- 'save' => 'Save Button',
103
- 'follow' => 'Follow button',
104
- 'image_hover' => 'Image hover button',
105
- ),
106
- 'class' => 'pt_btn_type'
107
- ))),
108
- );
109
-
110
- WPSR_Admin::build_table( $section1, '', '', true);
111
-
112
- echo '<div data-conditioner data-condr-input=".pt_btn_type" data-condr-value="save" data-condr-action="simple?show:hide" data-condr-events="click">';
113
-
114
- $section2 = array(
115
- array( 'Save button size', WPSR_Admin::field( 'select', array(
116
- 'name' => 'o[save_size]',
117
- 'value' => $values['save_size'],
118
- 'list' => array(
119
- 'normal' => 'Normal',
120
- 'large' => 'Large'
121
- ),
122
- ))),
123
-
124
- array( 'Save button Shape', WPSR_Admin::field( 'select', array(
125
- 'name' => 'o[save_shape]',
126
- 'value' => $values['save_shape'],
127
- 'list' => array(
128
- 'normal' => 'Normal',
129
- 'round' => 'Round'
130
- ),
131
- ))),
132
-
133
- );
134
-
135
- WPSR_Admin::build_table( $section2, '', '', true);
136
-
137
- echo '</div>';
138
-
139
- echo '<div data-conditioner data-condr-input=".pt_btn_type" data-condr-value="follow" data-condr-action="simple?show:hide" data-condr-events="click">';
140
-
141
- $section3 = array(
142
- array( 'Pinterest URL', WPSR_Admin::field( 'text', array(
143
- 'name' => 'o[follow_url]',
144
- 'value' => $values['follow_url'],
145
- 'placeholder' => 'URL of the pinterest profile'
146
- ))),
147
-
148
- array( 'Name on button', WPSR_Admin::field( 'text', array(
149
- 'name' => 'o[follow_name]',
150
- 'value' => $values['follow_name'],
151
- 'placeholder' => 'Name to be displayed on follow button'
152
- ))),
153
-
154
- );
155
-
156
- WPSR_Admin::build_table( $section3, '', '', true);
157
-
158
- echo '</div>';
159
-
160
- echo '<script>if( jQuery.fn.conditioner ) jQuery("[data-conditioner]").conditioner();</script>';
161
- }
162
-
163
- function validation( $values ){
164
-
165
- return $values;
166
-
167
- }
168
-
169
- function general_settings( $values ){
170
-
171
- }
172
-
173
- function general_settings_validation( $values ){
174
- return $values;
175
- }
176
-
177
- function templates(){
178
-
179
- return array(
180
- 'pinterest_hl'=> array(
181
- 'settings'=> array()
182
- ),
183
- 'pinterest_hl_lg'=> array(
184
- 'settings'=> array(
185
- 'save_size'=> 'large'
186
- )
187
- )
188
- );
189
-
190
- }
191
-
192
- }
193
-
194
- new wpsr_service_pinterest();
195
-
196
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
services/pocket.php DELETED
@@ -1,123 +0,0 @@
1
- <?php
2
- /**
3
- * Pocket service for WP Socializer
4
- *
5
- */
6
-
7
- class wpsr_service_pocket{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_service', array( $this, 'register' ) );
12
-
13
- $this->default_values = array(
14
- 'type' => 'horizontal',
15
- );
16
-
17
- }
18
-
19
- function register( $services ){
20
-
21
- $services[ 'pocket' ] = array(
22
- 'name' => 'Pocket',
23
- 'icons' => WPSR_ADMIN_URL . '/images/icons/pocket.png',
24
- 'desc' => __( 'Create Pocket buttons', 'wpsr' ),
25
- 'settings' => array( 'size' => '500x200' ),
26
- 'callbacks' => array(
27
- 'output' => array( $this, 'output' ),
28
- 'includes' => array( $this, 'includes' ),
29
- 'settings' => array( $this, 'settings' ),
30
- 'validation' => array( $this, 'validation' ),
31
- 'general_settings' => array( $this, 'general_settings' ),
32
- 'general_settings_validation' => array( $this, 'general_settings_validation' ),
33
- 'templates' => array( $this, 'templates' )
34
- )
35
- );
36
-
37
- return $services;
38
-
39
- }
40
-
41
- function output( $settings = array(), $page_info = array() ){
42
-
43
- $out = array();
44
- $settings = WPSR_Lists::set_defaults( $settings, $this->default_values );
45
- $html = '';
46
-
47
- $html = '<a data-pocket-label="pocket" data-pocket-count="' . esc_attr( $settings[ 'type' ] ) . '" class="pocket-btn" data-save-url="' . esc_attr( $page_info[ 'url' ] ) . '" data-lang="en">Pocket</a>';
48
- $html .= '<script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script>';
49
-
50
- $out['html'] = $html;
51
-
52
- $out['includes'] = array();
53
- return $out;
54
-
55
- }
56
-
57
- function includes(){
58
-
59
- $includes = array();
60
-
61
- return $includes;
62
-
63
- }
64
-
65
- function settings( $values ){
66
-
67
- $values = WPSR_Lists::set_defaults( $values, $this->default_values );
68
-
69
- $section1 = array(
70
- array( __( 'Button type', 'wpsr' ), WPSR_Admin::field( 'select', array(
71
- 'name' => 'o[type]',
72
- 'value' => $values['type'],
73
- 'list' => array(
74
- 'horizontal' => 'Horizontal counter',
75
- 'vertical' => 'Vertical counter',
76
- 'none' => 'No counter',
77
- ),
78
- ))),
79
- );
80
-
81
- WPSR_Admin::build_table( $section1, '', '', true);
82
-
83
- }
84
-
85
- function validation( $values ){
86
-
87
- return $values;
88
-
89
- }
90
-
91
- function general_settings( $values ){
92
-
93
- }
94
-
95
- function general_settings_validation( $values ){
96
- return $values;
97
- }
98
-
99
- function templates(){
100
-
101
- return array(
102
- 'pocket_hl'=> array(
103
- 'settings'=> array()
104
- ),
105
- 'pocket_vl'=> array(
106
- 'settings'=> array(
107
- 'type'=> 'vertical'
108
- )
109
- ),
110
- 'pocket_hl_nc'=> array(
111
- 'settings'=> array(
112
- 'type'=> 'none'
113
- )
114
- )
115
- );
116
-
117
- }
118
-
119
- }
120
-
121
- new wpsr_service_pocket();
122
-
123
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
services/reddit.php DELETED
@@ -1,118 +0,0 @@
1
- <?php
2
- /**
3
- * Reddit service for WP Socializer
4
- *
5
- */
6
-
7
- class wpsr_service_reddit{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_service', array( $this, 'register' ) );
12
-
13
- $this->default_values = array(
14
- 'type' => 'button1',
15
- );
16
-
17
- }
18
-
19
- function register( $services ){
20
-
21
- $services[ 'reddit' ] = array(
22
- 'name' => 'Reddit',
23
- 'icons' => WPSR_ADMIN_URL . '/images/icons/reddit.png',
24
- 'desc' => __( 'Create Reddit share buttons', 'wpsr' ),
25
- 'settings' => array( 'size' => '500x200' ),
26
- 'callbacks' => array(
27
- 'output' => array( $this, 'output' ),
28
- 'includes' => array( $this, 'includes' ),
29
- 'settings' => array( $this, 'settings' ),
30
- 'validation' => array( $this, 'validation' ),
31
- 'general_settings' => array( $this, 'general_settings' ),
32
- 'general_settings_validation' => array( $this, 'general_settings_validation' ),
33
- 'templates' => array( $this, 'templates' )
34
- )
35
- );
36
-
37
- return $services;
38
-
39
- }
40
-
41
- function output( $settings = array(), $page_info = array() ){
42
-
43
- $out = array();
44
- $settings = WPSR_Lists::set_defaults( $settings, $this->default_values );
45
- $html = '';
46
-
47
- $html = '<script type="text/javascript">reddit_url = "' . esc_attr( $page_info[ 'url' ] ) . '"; reddit_title = "' . esc_attr( $page_info[ 'title' ] ) . '"; reddit_newwindow="1"</script>';
48
- $html .= '<script type="text/javascript" src="//www.redditstatic.com/button/' . esc_attr( $settings[ 'type' ] ) . '.js"></script>';
49
-
50
- $out['html'] = $html;
51
- $out['includes'] = array( '' );
52
- return $out;
53
-
54
- }
55
-
56
- function includes(){
57
-
58
- $includes = array();
59
-
60
- return $includes;
61
-
62
- }
63
-
64
- function settings( $values ){
65
-
66
- $values = WPSR_Lists::set_defaults( $values, $this->default_values );
67
-
68
- $section1 = array(
69
- array( __( 'Button type', 'wpsr' ), WPSR_Admin::field( 'select', array(
70
- 'name' => 'o[type]',
71
- 'value' => $values['type'],
72
- 'list' => array(
73
- 'button1' => 'Horizontal',
74
- 'button2' => 'Vertical - Type 1',
75
- 'button3' => 'Vertical - Type 2',
76
- ),
77
- 'tip' => WPSR_ADMIN_URL . '/images/tips/reddit-types.png'
78
- ))),
79
- );
80
-
81
- WPSR_Admin::build_table( $section1, '', '', true);
82
-
83
- }
84
-
85
- function validation( $values ){
86
-
87
- return $values;
88
-
89
- }
90
-
91
- function general_settings( $values ){
92
-
93
- }
94
-
95
- function general_settings_validation( $values ){
96
- return $values;
97
- }
98
-
99
- function templates(){
100
-
101
- return array(
102
- 'reddit_hl'=> array(
103
- 'settings'=> array()
104
- ),
105
- 'reddit_vl'=> array(
106
- 'settings'=> array(
107
- 'type'=> 'button2'
108
- )
109
- )
110
- );
111
-
112
- }
113
-
114
- }
115
-
116
- new wpsr_service_reddit();
117
-
118
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
services/share_counter.php DELETED
@@ -1,208 +0,0 @@
1
- <?php
2
- /**
3
- * Share counter service for WP Socializer
4
- *
5
- */
6
-
7
- class wpsr_service_share_counter{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_service', array( $this, 'register' ) );
12
-
13
- $this->default_values = array(
14
- 'text' => 'Shares',
15
- 'counter_color' => '#000',
16
- 'add_services' => array(),
17
- 'orientation' => 'vl',
18
- 'size' => '32px'
19
- );
20
-
21
- }
22
-
23
- function register( $services ){
24
-
25
- $services[ 'share_counter' ] = array(
26
- 'name' => 'Share Counter',
27
- 'icons' => WPSR_ADMIN_URL . '/images/icons/share_counter.png',
28
- 'desc' => __( 'Display share counter', 'wpsr' ),
29
- 'settings' => array( 'size' => '500x350' ),
30
- 'callbacks' => array(
31
- 'output' => array( $this, 'output' ),
32
- 'includes' => array( $this, 'includes' ),
33
- 'settings' => array( $this, 'settings' ),
34
- 'validation' => array( $this, 'validation' ),
35
- 'general_settings' => array( $this, 'general_settings' ),
36
- 'general_settings_validation' => array( $this, 'general_settings_validation' ),
37
- 'templates' => array( $this, 'templates' )
38
- )
39
- );
40
-
41
- return $services;
42
-
43
- }
44
-
45
- function output( $settings = array(), $page_info = array() ){
46
-
47
- $out = array();
48
- $settings = WPSR_Lists::set_defaults( $settings, $this->default_values );
49
- $html = '';
50
-
51
- $total_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $settings[ 'add_services' ] );
52
-
53
- $classes = array( 'wpsr-counter', 'wpsrc-sz-' . $settings[ 'size' ] );
54
-
55
- if( $settings[ 'orientation' ] == 'hl' ){
56
- array_push( $classes, 'wpsrc-hl' );
57
- }
58
-
59
- $style = '';
60
- if( $settings[ 'counter_color' ] != '' ){
61
- $style = 'style="color:' . $settings['counter_color'] . '"';
62
- }
63
-
64
- $html .= '<div class="' . implode( ' ', $classes ) . '" ' . $style . '>';
65
- $html .= '<span class="scount">' . $total_holder . '</span>';
66
- $html .= '<small class="stext">' . $settings[ 'text' ] . '</small>';
67
- $html .= '</div>';
68
-
69
- $out['html'] = $html;
70
- $out['includes'] = array( '' );
71
- return $out;
72
-
73
- }
74
-
75
- function includes(){
76
-
77
- $includes = array();
78
-
79
- return $includes;
80
-
81
- }
82
-
83
- function settings( $values ){
84
-
85
- $values = WPSR_Lists::set_defaults( $values, $this->default_values );
86
-
87
- $counter_services = WPSR_Share_Counter::counter_services();
88
- $available_counters = array();
89
-
90
- foreach( $counter_services as $cid => $cprop ){
91
- $available_counters[ $cid ] = $cprop[ 'name' ];
92
- }
93
-
94
- $section1 = array(
95
- array( __( 'Share counts to add', 'wpsr' ), WPSR_Admin::field( 'checkboxes', array(
96
- 'name' => 'o[add_services]',
97
- 'value' => $values['add_services'],
98
- 'list' => $available_counters
99
- ))),
100
-
101
- array( __( 'Counter text', 'wpsr' ), WPSR_Admin::field( 'text', array(
102
- 'name' => 'o[text]',
103
- 'value' => $values['text']
104
- ))),
105
-
106
- array( __( 'Counter color', 'wpsr' ), WPSR_Admin::field( 'text', array(
107
- 'name' => 'o[counter_color]',
108
- 'value' => $values['counter_color'],
109
- 'class' => 'wp-color'
110
- ))),
111
-
112
- array( 'Counter orientation', WPSR_Admin::field( 'select', array(
113
- 'name' => 'o[orientation]',
114
- 'value' => $values['orientation'],
115
- 'list' => array(
116
- 'vl' => 'Vertical',
117
- 'hl' => 'Horizontal'
118
- ),
119
- ))),
120
-
121
- );
122
-
123
- WPSR_Admin::build_table( $section1, '', '', true);
124
-
125
- }
126
-
127
- function validation( $values ){
128
-
129
- return $values;
130
-
131
- }
132
-
133
- function general_settings( $values ){
134
-
135
- $values = WPSR_Lists::set_defaults( $values, WPSR_Share_Counter::$default_settings );
136
-
137
- $section1 = array(
138
- array( __( 'Counter cache expiration duration', 'wpsr' ), WPSR_Admin::field( 'text', array(
139
- 'name' => 'counter_expiration',
140
- 'value' => $values['counter_expiration'],
141
- 'helper' => __( 'Enter the number of seconds to cache the social service counter in DB. Note: If duration is small, counter synchronization will be frequent and site can slow down. Ideal duration to cache the entries would be 86400 seconds ( 1 day ). Min duration which can be set is 1800 secs ( 1/2 hrs )', 'wpsr' ),
142
- ))),
143
-
144
- array( __( 'Load share count for both http and https URL of the page ?', 'wpsr' ), WPSR_Admin::field( 'select', array(
145
- 'name' => 'counter_both_protocols',
146
- 'value' => $values['counter_both_protocols'],
147
- 'list' => array(
148
- 'no' => 'No',
149
- 'yes' => 'Yes'
150
- ),
151
- 'helper' => __( 'Note: This may slow down the first ajax request made by the page after the counter cache has expired as per the above setting', 'wpsr' )
152
- ))),
153
-
154
- );
155
-
156
- WPSR_Admin::build_table( $section1, 'Counter settings' );
157
-
158
- }
159
-
160
- function general_settings_validation( $values ){
161
-
162
- if( intval( $values[ 'counter_expiration' ] ) < 1800 ){
163
- $values[ 'counter_expiration' ] = 1800;
164
- }
165
-
166
- return $values;
167
- }
168
-
169
- function templates(){
170
-
171
- return array(
172
- 'share_counter_vl'=> array(
173
- 'settings'=> array(
174
- 'add_services'=> [
175
- 'facebook',
176
- 'googleplus',
177
- 'linkedin',
178
- 'pinterest',
179
- 'stumbleupon'
180
- ],
181
- 'text'=> 'Shares',
182
- 'counter_color'=> '#000'
183
- )
184
- ),
185
-
186
- 'share_counter_hl'=> array(
187
- 'settings'=> array(
188
- 'add_services'=> [
189
- 'facebook',
190
- 'googleplus',
191
- 'linkedin',
192
- 'pinterest',
193
- 'stumbleupon'
194
- ],
195
- 'text'=> 'Shares',
196
- 'counter_color'=> '#000',
197
- 'orientation'=> 'hl'
198
- )
199
- )
200
- );
201
-
202
- }
203
-
204
- }
205
-
206
- new wpsr_service_share_counter();
207
-
208
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
services/sharethis.php DELETED
@@ -1,112 +0,0 @@
1
- <?php
2
- /**
3
- * Share this service for WP Socializer
4
- *
5
- */
6
-
7
- class wpsr_service_sharethis{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_service', array( $this, 'register' ) );
12
-
13
- }
14
-
15
- function register( $services ){
16
-
17
- $services[ 'sharethis' ] = array(
18
- 'name' => 'Share this',
19
- 'icons' => WPSR_ADMIN_URL . '/images/icons/sharethis.png',
20
- 'desc' => __( 'Create Sharethis buttons like social icons with counter', 'wpsr' ),
21
- 'settings' => array( 'size' => '500x300' ),
22
- 'callbacks' => array(
23
- 'output' => array( $this, 'output' ),
24
- 'includes' => array( $this, 'includes' ),
25
- 'settings' => array( $this, 'settings' ),
26
- 'validation' => array( $this, 'validation' ),
27
- 'general_settings' => array( $this, 'general_settings' ),
28
- 'general_settings_validation' => array( $this, 'general_settings_validation' ),
29
- 'templates' => array( $this, 'templates' )
30
- )
31
- );
32
-
33
- return $services;
34
-
35
- }
36
-
37
- function output( $settings = array(), $page_info = array() ){
38
-
39
- $html = '<div class="sharethis-inline-share-buttons" data-url="' . $page_info[ 'url' ] . '" data-title="' . $page_info[ 'title' ] . '" data-description="' . $page_info[ 'excerpt' ] . '" data-image="' . $page_info[ 'post_image' ] . '"></div>';
40
-
41
- $out['html'] = $html;
42
- $out['includes'] = array( 'sharethis_main_js' );
43
- return $out;
44
-
45
- }
46
-
47
- function includes(){
48
-
49
- $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Lists::defaults( 'gsettings_sharethis' ) );
50
- $prop_id = esc_attr( $gs[ 'st_prop_id' ] );
51
-
52
- $includes = array(
53
- 'sharethis_main_js' => array(
54
- 'type' => 'js',
55
- 'code' => '<script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=' . $prop_id . '&product=inline-share-buttons" async="async"></script>'
56
- )
57
- );
58
-
59
- return $includes;
60
-
61
- }
62
-
63
- function settings( $values ){
64
-
65
- $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Lists::defaults( 'gsettings_sharethis' ) );
66
- $prop_id = esc_attr( $gs[ 'st_prop_id' ] );
67
-
68
- echo '<div class="notice notice-warning"><p>' . __( 'Note: Sharethis is upgraded to the latest version. Old sharethis buttons are deprecated by Sharethis itself. Customize the new Sharethis button below.', 'wpsr' ) . '</p></div>';
69
-
70
- if( trim( $prop_id ) == '' ){
71
- echo '<div class="notice notice-error"><p>' . __( 'Note: Sharethis property ID is empty. Please update it <a href="admin.php?page=wp_socializer&tab=general_settings">in this page</a>', 'wpsr' ) . '</p></div>';
72
- }
73
-
74
- echo '<br/><p align="center"><a class="button button-primary" href="https://platform.sharethis.com/inline-share-buttons" target="_blank"><i class="fa fa-cog"></i> ' . __( 'Click here to customize Sharethis inline buttons' ) . '</a></p>';
75
- }
76
-
77
- function validation( $values ){
78
-
79
- return $values;
80
-
81
- }
82
-
83
- function general_settings( $values ){
84
-
85
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'gsettings_sharethis' ) );
86
-
87
- $section1 = array(
88
- array( __( 'Property ID', 'wpsr' ), WPSR_Admin::field( 'text', array(
89
- 'name' => 'st_prop_id',
90
- 'value' => $values['st_prop_id'],
91
- 'helper' => sprintf( __( 'Property ID can be found <a href="%s" target="_blank">in this page</a>.','wpsr' ), 'https://platform.sharethis.com/settings' )
92
- )))
93
- );
94
-
95
- WPSR_Admin::build_table( $section1, 'Sharethis settings');
96
- }
97
-
98
- function general_settings_validation( $values ){
99
- return $values;
100
- }
101
-
102
- function templates(){
103
-
104
- return array();
105
-
106
- }
107
-
108
- }
109
-
110
- new wpsr_service_sharethis();
111
-
112
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
services/social_icons.php DELETED
@@ -1,611 +0,0 @@
1
- <?php
2
- /**
3
- * social icons service for WP Socializer
4
- *
5
- */
6
-
7
- class wpsr_service_social_icons{
8
-
9
- var $sites;
10
-
11
- function __construct(){
12
-
13
- add_filter( 'wpsr_register_service', array( $this, 'register' ) );
14
-
15
- $this->sites = WPSR_Lists::social_icons();
16
-
17
- $this->default_values = array(
18
- 'selected_sites' => '',
19
- 'sr-sizes' => '32px',
20
- 'sr-shapes' => '',
21
- 'sr-hover' => 'opacity',
22
- 'sr-layout' => '',
23
- 'sr-font-size' => '',
24
- 'sr-icon-display' => '',
25
- 'sr-border-width' => '',
26
- 'sr-count-style' => 'count-1',
27
- 'sr-shadow' => '',
28
- 'sr-pad' => '',
29
- 'text-styles' => '',
30
- 'icon_color' => '#fff',
31
- 'bg_color' => '',
32
- 'border_color' => '',
33
- 'more_sites' => '0',
34
- 'open_popup' => ''
35
- );
36
-
37
- }
38
-
39
- function register( $services ){
40
-
41
- $services[ 'social_icons' ] = array(
42
- 'name' => 'Social Icons',
43
- 'icons' => WPSR_ADMIN_URL . '/images/icons/social_icons.png',
44
- 'desc' => __( 'Create social icons with 35 sites and combiniations of different shape, size and colors.', 'wpsr' ),
45
- 'settings' => array( 'size' => 'popup' ),
46
- 'callbacks' => array(
47
- 'output' => array( $this, 'output' ),
48
- 'includes' => array( $this, 'includes' ),
49
- 'settings' => array( $this, 'settings' ),
50
- 'validation' => array( $this, 'validation' ),
51
- 'general_settings' => array( $this, 'general_settings' ),
52
- 'general_settings_validation' => array( $this, 'general_settings_validation' ),
53
- 'templates' => array( $this, 'templates' )
54
- )
55
- );
56
-
57
- return $services;
58
-
59
- }
60
-
61
- function output( $settings = array(), $page_info = array() ){
62
-
63
- $out = array();
64
- $settings = WPSR_Lists::set_defaults( $settings, $this->default_values );
65
-
66
- $classes = array( 'socializer' );
67
- foreach( $settings as $key => $val ){
68
- if( substr( $key, 0, 3 ) == 'sr-' && $val != '' ){
69
- array_push( $classes, 'sr-' . $val );
70
- }
71
- }
72
-
73
- $sites_clist = array();
74
- $sel_sites = json_decode( base64_decode( $settings[ 'selected_sites' ] ) );
75
- $is_mobile = wp_is_mobile();
76
- $text_style = $settings[ 'text-styles' ];
77
- $def_site_options = array(
78
- 'count' => 0,
79
- 'icon' => '',
80
- 'text' => 0,
81
- 'custom_text' => '',
82
- 'custom_url' => '',
83
- 'custom_hover_text' => ''
84
- );
85
-
86
- $styles = array();
87
- if ( $settings[ 'bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $settings[ 'bg_color' ] );
88
- if ( $settings[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $settings[ 'icon_color' ] );
89
- if ( $settings[ 'border_color' ] != '' ) array_push( $styles, 'border-color: ' . $settings[ 'border_color' ] );
90
- $style = join( ';', $styles );
91
-
92
- $style = ( $style != '' ) ? ' style="' . $style . '"' : '';
93
-
94
- foreach( $sel_sites as $site ){
95
- $id = key( $site );
96
-
97
- if(!array_key_exists($id, $this->sites)){
98
- continue;
99
- }
100
-
101
- if( $id == 'googleplus' ){
102
- continue;
103
- }
104
-
105
- $opts = WPSR_Lists::set_defaults( (array) $site->$id, $def_site_options );
106
- $props = $this->sites[ $id ];
107
-
108
- if( !$is_mobile && in_array( 'mobile_only', $props[ 'features' ] ) )
109
- continue;
110
-
111
- $temp_url = ( $opts[ 'custom_url' ] == '' ) ? $props[ 'link' ] : urldecode( $opts[ 'custom_url' ] );
112
- $url = WPSR_Metadata::replace_params( $temp_url, $page_info );
113
-
114
- $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
115
-
116
- $text_class = '';
117
- $count_tag = '';
118
-
119
- if( $opts[ 'count' ] == 1 && in_array( 'count', $props[ 'options' ] ) ){
120
- $count_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $id );
121
- $count_tag = '<span class="ctext">' . $count_holder . '</span>';
122
- $text_class = ( isset( $settings['sr-count-style'] ) && $settings['sr-count-style'] == 'count-1' ) ? '' : 'sr-text-in';
123
- }
124
-
125
- $text_in = '';
126
- $text_out = '';
127
- $the_text = '';
128
-
129
- if( intval( $opts[ 'text' ] ) == 1 ){
130
- $the_text = empty( $opts[ 'custom_text' ] ) ? $props[ 'name' ] : urldecode($opts[ 'custom_text' ]);
131
- $text_class = 'sr-text-' . $text_style;
132
- if( $text_style == 'in' ){
133
- $text_in = '<span class="text">' . $the_text . '</span>';
134
- }else{
135
- $text_out = '<span class="text">' . $the_text . '</span>';
136
- }
137
- }
138
-
139
- $icon = '';
140
- if( $opts[ 'icon' ] == '' ){
141
- $icon = '<i class="' . esc_attr( $props[ 'icon' ] ) . '"></i>';
142
- }else{
143
- $icon_val = urldecode( $opts[ 'icon' ] );
144
- if (strpos( $opts[ 'icon' ], 'http' ) === 0) {
145
- $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $id ) . '" height="50%" />';
146
- }else{
147
- $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
148
- }
149
- }
150
-
151
- $title = '';
152
- if( $opts[ 'custom_hover_text' ] == '' ){
153
- $title = $props[ 'title' ];
154
- }else{
155
- $title = urldecode( $opts[ 'custom_hover_text' ] );
156
- }
157
-
158
- $chtml = '<span class="sr-' . esc_attr( $id ) . ' ' . esc_attr( $text_class ) . '"><a rel="nofollow" href="' . esc_attr( $url ) . '" target="_blank" ' . $onclick . ' title="' . esc_attr( $title ) . '" ' . $style . '>' . $icon . $text_in . $count_tag . '</a>' . $text_out . '</span>';
159
-
160
- array_push( $sites_clist, $chtml );
161
- }
162
-
163
- $more_html = '';
164
- if( intval( $settings[ 'more_sites' ] ) > 0 ){
165
- $more_count = intval( $settings[ 'more_sites' ] );
166
- $more_sites = array_slice( $sites_clist, -$more_count, $more_count );
167
- $more_html = '<span class="sr-more"><a href="#" target="_blank" title="More sites" ' . $style . '><i class="fa fa-share-alt"></i></a><ul class="socializer">' . implode( "\n", $more_sites ) . '</ul></span>';
168
- $sites_clist = array_slice( $sites_clist, 0, -$more_count );
169
- array_push( $sites_clist, $more_html );
170
- }
171
-
172
- if( $settings[ 'open_popup' ] == '' ){
173
- array_push( $classes, 'sr-popup' );
174
- }
175
-
176
- $html = '<div class="' . implode( " ", $classes ) . '">' . implode( "\n", $sites_clist ) . '</div>';
177
-
178
- return $out = array(
179
- 'html' => $html,
180
- 'includes' => array( 'sb_css', 'sb_fa_css' )
181
- );
182
-
183
- }
184
-
185
- function includes(){
186
-
187
- return array(
188
- 'sb_icon_css' => WPSR_Lists::get_font_icon()['prop']
189
- );
190
-
191
- }
192
-
193
- function settings( $values ){
194
-
195
- $values = WPSR_Lists::set_defaults( $values, $this->default_values );
196
-
197
- if( is_array( $values ) ){
198
- extract( $values );
199
- }
200
-
201
- $site_options = array(
202
- 'count' => array(
203
- 'type' => 'checkbox',
204
- 'helper' => __( 'Show sharing count', 'wpsr' ),
205
- 'placeholder' => __( 'Select to show the share count of the service', 'wpsr' )
206
- ),
207
- 'icon' => array(
208
- 'type' => 'text',
209
- 'helper' => __( 'Icon', 'wpsr' ),
210
- 'placeholder' => __( 'Enter a custom icon URL for this site, starting with <code>http://</code>. You can also use class name of the icon font Example: <code>fa fa-star</code> Leave blank to use default icon', 'wpsr' )
211
- ),
212
- 'text' => array(
213
- 'type' => 'checkbox',
214
- 'helper' => __( 'Show name of the site', 'wpsr' ),
215
- 'placeholder' => __( 'Select to show name of the site next to the icon', 'wpsr' )
216
- ),
217
- 'custom_text' => array(
218
- 'type' => 'text',
219
- 'helper' => __( 'Name of the site', 'wpsr' ),
220
- 'placeholder' => __( 'Enter custom text to appear to next to the icon. This text will be shown if "Show name of the site" is enabled. Leave blank to use the default site text.', 'wpsr' )
221
- ),
222
- 'custom_url' => array(
223
- 'type' => 'text',
224
- 'helper' => __( 'Share URL', 'wpsr' ),
225
- 'placeholder' => __( 'Enter custom URL for this site, starting with <code>http://</code>. Leave blank to use default. Use <code>{url}</code>, <code>{title}</code> to use active page details in URL if needed.', 'wpsr' )
226
- ),
227
- 'custom_hover_text' => array(
228
- 'type' => 'text',
229
- 'helper' => __( 'Hover text', 'wpsr' ),
230
- 'placeholder' => __( 'Enter custom text to appear when the icon is hovered.', 'wpsr' )
231
- ),
232
- );
233
-
234
- $site_features = array(
235
- 'all' => array(
236
- 'title' => __( 'All social icons', 'wpsr' ),
237
- 'desc' => __( 'All social media icons', 'wpsr' )
238
- ),
239
- 'for_share' => array(
240
- 'title' => __( 'Link sharing social icons', 'wpsr' ),
241
- 'desc' => __( 'Social icons used for sharing page links', 'wpsr' )
242
- ),
243
- 'for_profile' => array(
244
- 'title' => __( 'Social profile icons', 'wpsr' ),
245
- 'desc' => __( 'Icons used for sharing social media profiles', 'wpsr' )
246
- ),
247
- 'mobile_only' => array(
248
- 'title' => __( 'Mobile only icons', 'wpsr' ),
249
- 'desc' => __( 'Icons which will be displayed only on mobile devices', 'wpsr' )
250
- ),
251
- );
252
-
253
- $saved = array();
254
- $sel_sites = json_decode( base64_decode( $values[ 'selected_sites' ] ) );
255
-
256
- foreach( $sel_sites as $site ){
257
- $id = key( $site );
258
- $opts = (array) $site->$id;
259
- array_push( $saved, array( $id => $opts ) );
260
- }
261
-
262
- ?>
263
-
264
- <h3><?php _e( 'Select social icons', 'wpsr' ); ?></h3>
265
- <button class="mini_section_select"><i class="fa fa-plus"></i> <?php _e( 'Click to open the list of buttons', 'wpsr' ); ?><i class="fa fa-chevron-down fright"></i></button>
266
-
267
- <div class="mini_section">
268
- <p><?php _e( 'Drag and drop social icons into the box below', 'wpsr' ); ?></p>
269
- <div class="mini_filters"><select class="sb_features_list" data-list=".list_available" ><?php
270
- foreach( $site_features as $k=>$v ){ echo '<option value="' . $k . '">' . $v[ 'title' ] . '</options>'; }
271
- ?></select><input type="text" class="list_search" data-list=".list_available" placeholder="<?php _e( 'Search', 'wpsr' ); ?> ..." /></div>
272
-
273
- <ul class="mini_btn_list list_available clearfix">
274
- <?php
275
- foreach( $this->sites as $site => $config ){
276
- $datas = ' data-id="' . $site . '" data-opt_text="false" data-opt_custom_url="" data-opt_icon="" data-opt_custom_text="" data-opt_custom_hover_text=""';
277
-
278
- foreach( $config[ 'options' ] as $opt ){
279
- $datas .= 'data-opt_' . $opt . '="false"';
280
- }
281
-
282
- echo '<li' . $datas . ' style="background-color: ' . $config[ 'colors' ][0] . ';" data-features="' . implode( ',', $config[ 'features' ] ) . '">';
283
- echo '<i class="' . $config[ 'icon' ] . ' item_icon" ></i> ';
284
- echo '<span>' . $config[ 'name' ] . '</span>';
285
- echo '<i class="fa fa-trash-alt item_action item_delete" title="' . __( 'Delete icon', 'wpsr' ) . '"></i> ';
286
- echo '<i class="fa fa-cog item_action item_settings" title="' . __( 'Advanced icon settings', 'wpsr' ) . '"></i> ';
287
- echo '</li>';
288
- }
289
- ?>
290
- </ul>
291
- </div>
292
-
293
- <ul class="mini_btn_list list_selected clearfix" data-callback="wpsr_sb_process_list" data-input=".sb_selected_list"><?php
294
-
295
- foreach( $saved as $i ){
296
- foreach( $i as $site => $opts ){
297
-
298
- if( !array_key_exists( $site, $this->sites ) ){
299
- continue;
300
- }
301
-
302
- $datas = ' data-id="' . $site . '"';
303
- $site_prop = $this->sites[ $site ];
304
-
305
- foreach( $opts as $k => $v ){
306
- $datas .= ' data-opt_' . $k . '="' . urldecode($v) . '"';
307
- }
308
-
309
- echo '<li' . $datas . ' style="background-color: ' . $site_prop[ 'colors' ][0] . ';">';
310
- echo '<i class="' . $site_prop[ 'icon' ] . ' item_icon"></i>';
311
- echo '<span>' . $site_prop[ 'name' ] . '</span>';
312
- echo '<i class="fa fa-trash-alt item_action item_delete" title="' . __( 'Delete icon', 'wpsr' ) . '"></i>';
313
- echo '<i class="fa fa-cog item_action item_settings" title="' . __( 'Advanced icon settings', 'wpsr' ) . '"></i>';
314
- echo '</li>';
315
-
316
- }
317
-
318
- }
319
- ?></ul>
320
-
321
- <input type="hidden" name="o[selected_sites]" class="sb_selected_list" value="<?php echo $values[ 'selected_sites' ]; ?>" />
322
-
323
- <div class="item_popup">
324
- <h4></h4>
325
- <i class="fa fa-times item_popup_close" title="<?php _e( 'Close', 'wpsr' ); ?>"></i>
326
- <div class="item_popup_cnt"></div>
327
- <button class="button button-primary item_popup_save"><?php _e( 'Save icon settings', 'wpsr' ); ?></button>
328
- </div>
329
-
330
- <script>
331
- var sb_sites = <?php echo json_encode( $this->sites ); ?>;
332
- var sb_site_options = <?php echo json_encode( $site_options ); ?>;
333
- wpsr_list_selector_init( 'wpsr_sb_process_list', '.sb_selected_list' );
334
- if( jQuery ){
335
- jQuery(function() {
336
- jQuery( '.sb_features_list' ).val( 'for_share' ).trigger( 'change' );
337
- });
338
- }
339
- </script>
340
-
341
- <!--
342
- <textarea cols="130">
343
- <?php
344
-
345
- $a[ $values['title'] ] = array(
346
- 'service' => 'social_icons',
347
- 'settings'=> $values
348
- );
349
- echo json_encode( $a );
350
-
351
- ?>
352
- </textarea>
353
- -->
354
-
355
- <h3>Settings</h3>
356
- <?php
357
-
358
- $section1 = array(
359
-
360
- array(__( 'Icon size', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
361
- 'name' => 'o[sr-sizes]',
362
- 'value' => $values['sr-sizes'],
363
- 'list' => array(
364
- '32px' => array( '32px', 'size.svg', '32px' ),
365
- '40px' => array( '40px', 'size.svg', '40px' ),
366
- '48px' => array( '48px', 'size.svg', '48px' ),
367
- '64px' => array( '64px', 'size.svg', '64px' ),
368
- ),
369
- 'custom' => 'data-scr-settings="sizes"'
370
- ))),
371
-
372
- array( __( 'Icon shape', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
373
- 'name' => 'o[sr-shapes]',
374
- 'value' => $values['sr-shapes'],
375
- 'list' => array(
376
- '' => array( 'Sqaure', 'shape-square.svg', '32px' ),
377
- 'circle' => array( 'Circle', 'shape-circle.svg', '32px' ),
378
- 'squircle' => array( 'Squircle', 'shape-squircle.svg', '32px' ),
379
- 'squircle-2' => array( 'Squircle 2', 'shape-squircle-2.svg', '32px' ),
380
- 'diamond' => array( 'Diamond', 'shape-diamond.svg', '32px' ),
381
- 'ribbon' => array( 'Ribbon', 'shape-ribbon.svg', '32px' ),
382
- 'drop' => array( 'Drop', 'shape-drop.svg', '32px' ),
383
- ),
384
- 'custom' => 'data-scr-settings="shapes"'
385
- ))),
386
-
387
- array( __( 'Hover effects', 'wpsr' ), WPSR_Admin::field( 'select', array(
388
- 'name' => 'o[sr-hover]',
389
- 'value' => $values['sr-hover'],
390
- 'list' => array(
391
- '' => __( 'None', 'wpsr' ),
392
- 'opacity' => 'Opacity',
393
- 'rotate' => 'Rotate',
394
- 'zoom' => 'Zoom',
395
- 'shrink' => 'Shrink',
396
- 'float' => 'Float',
397
- 'sink' => 'Sink',
398
- 'fade-white' => 'Fade to white',
399
- 'fade-black' => 'Fade to black'
400
- ),
401
- 'custom' => 'data-scr-settings="hover"'
402
- ))),
403
-
404
- );
405
-
406
- $section2 = array(
407
-
408
- array( __( 'Button layout', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
409
- 'name' => 'o[sr-layout]',
410
- 'value' => $values['sr-layout'],
411
- 'list' => array(
412
- '' => array( 'Horizontal', 'layout-horizontal.svg', '64px' ),
413
- 'fluid' => array( 'Fluid', 'layout-fluid.svg', '64px' ),
414
- 'vertical' => array( 'Vertical', 'layout-vertical.svg', '64px' ),
415
- ),
416
- 'custom' => 'data-scr-settings="layouts"'
417
- ))),
418
-
419
- array( __( 'Text styles', 'wpsr' ), WPSR_Admin::field( 'select', array(
420
- 'name' => 'o[text-styles]',
421
- 'value' => $values['text-styles'],
422
- 'list' => array(
423
- 'in' => __( 'Besides icon', 'wpsr' ),
424
- 'out' => __( 'Besides icon 2', 'wpsr' ),
425
- 'below' => __( 'Below icon', 'wpsr' ),
426
- 'hover' => __( 'Text on hover', 'wpsr' )
427
- ),
428
- 'custom' => 'data-scr-settings="text-styles"',
429
- 'tip' => WPSR_ADMIN_URL . '/images/tips/btn-text-types.png'
430
- ))),
431
-
432
- array( __( 'Font size', 'wpsr' ), WPSR_Admin::field( 'select', array(
433
- 'name' => 'o[sr-font-size]',
434
- 'value' => $values['sr-font-size'],
435
- 'list' => array(
436
- '' => 'Normal',
437
- 'font-sm' => 'Small',
438
- 'font-lg' => 'Large'
439
- ),
440
- 'custom' => 'data-scr-settings="font-size"'
441
- ))),
442
-
443
- array( __( 'Icon display', 'wpsr' ), WPSR_Admin::field( 'select', array(
444
- 'name' => 'o[sr-icon-display]',
445
- 'value' => $values['sr-icon-display'],
446
- 'list' => array(
447
- '' => __( 'Show icon', 'wpsr' ),
448
- 'no-icon' => __( 'Hide icon', 'wpsr' )
449
- )
450
- ))),
451
-
452
- );
453
-
454
- $section3 = array(
455
-
456
- array( __( 'Icon color', 'wpsr' ), WPSR_Admin::field( 'text', array(
457
- 'name' => 'o[icon_color]',
458
- 'value' => $values['icon_color'],
459
- 'class' => 'wp-color',
460
- 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
461
- ))),
462
-
463
- array( __( 'Background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
464
- 'name' => 'o[bg_color]',
465
- 'value' => $values['bg_color'],
466
- 'class' => 'wp-color',
467
- 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
468
- ))),
469
-
470
- array( __( 'Border color', 'wpsr' ), WPSR_Admin::field( 'text', array(
471
- 'name' => 'o[border_color]',
472
- 'value' => $values['border_color'],
473
- 'class' => 'wp-color',
474
- 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
475
- ))),
476
-
477
- array( __( 'Border width', 'wpsr' ), WPSR_Admin::field( 'select', array(
478
- 'name' => 'o[sr-border-width]',
479
- 'value' => $values['sr-border-width'],
480
- 'list' => array(
481
- '' => 'No border',
482
- 'bdr-sm' => 'Small size border',
483
- 'bdr-md' => 'Medium size border',
484
- 'bdr-lg' => 'Large size border'
485
- ),
486
- 'custom' => 'data-scr-settings="border-width"'
487
- ))),
488
-
489
- array( __( 'Share counter style', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
490
- 'name' => 'o[sr-count-style]',
491
- 'value' => $values['sr-count-style'],
492
- 'list' => array(
493
- 'count-1' => array( 'Style 1', 'counter-1.svg', '60px' ),
494
- 'count-2' => array( 'Style 2', 'counter-2.svg', '70px' ),
495
- 'count-3' => array( 'Style 3', 'counter-3.svg', '70px' ),
496
- 'bb-1' => array( 'Bubble style 1', 'bb-1.svg', '70px' ),
497
- ),
498
- 'custom' => 'data-scr-settings="count-style"',
499
- 'helper' => __( 'To show count, in the same page under icons list, select an icon and enable gear icon &gt; show count', 'wpsr' )
500
- ))),
501
-
502
- array( __( 'Shadow type', 'wpsr' ), WPSR_Admin::field( 'select', array(
503
- 'name' => 'o[sr-shadow]',
504
- 'value' => $values['sr-shadow'],
505
- 'list' => array(
506
- '' => 'No shadow',
507
- 'sw-1' => 'Type 1',
508
- 'sw-2' => 'Type 2',
509
- 'sw-3' => 'Type 3',
510
- 'sw-icon-1' => 'Icon shadow 1'
511
- ),
512
- 'custom' => 'data-scr-settings="shadow"'
513
- ))),
514
-
515
- );
516
-
517
- $section4 = array(
518
-
519
- array( __( 'Gutters', 'wpsr' ), WPSR_Admin::field( 'select', array(
520
- 'name' => 'o[sr-pad]',
521
- 'value' => $values['sr-pad'],
522
- 'list' => array(
523
- '' => 'No',
524
- 'pad' => 'yes'
525
- ),
526
- 'helper' => __( 'Select to add space between icons', 'wpsr' ),
527
- 'custom' => 'data-scr-settings="pad"'
528
- ))),
529
-
530
- array( __( 'No of icons in the last to group', 'wpsr' ), WPSR_Admin::field( 'select', array(
531
- 'name' => 'o[more_sites]',
532
- 'value' => $values['more_sites'],
533
- 'list' => array(
534
- '0' => 'No grouping',
535
- '1' => '1',
536
- '2' => '2',
537
- '3' => '3',
538
- '4' => '4',
539
- '5' => '5',
540
- '6' => '6',
541
- '7' => '7',
542
- '8' => '8',
543
- '9' => '9',
544
- '10' => '10',
545
- ),
546
- 'helper' => __( 'The last icons grouped will be displayed in a "More" icons menu', 'wpsr' )
547
- ))),
548
-
549
- array( __( 'Open links in popup', 'wpsr' ), WPSR_Admin::field( 'select', array(
550
- 'name' => 'o[open_popup]',
551
- 'value' => $values['open_popup'],
552
- 'list' => array(
553
- '' => 'yes',
554
- 'no' => 'No',
555
- ),
556
- ))),
557
-
558
- );
559
-
560
- echo '<div class="scr_swrap">';
561
- echo '<h4 class="collapse_head">' . __( 'Size, shape and hover effects', 'wpsr' ) . '</h4>';
562
- WPSR_Admin::build_table( $section1, '', '', true);
563
-
564
- echo '<h4 class="collapse_head">' . __( 'Layouts, text and icon', 'wpsr' ) . '</h4>';
565
- WPSR_Admin::build_table( $section2, '', '', true);
566
-
567
- echo '<h4 class="collapse_head">' . __( 'Styles and colors', 'wpsr' ) . '</h4>';
568
- WPSR_Admin::build_table( $section3, '', '', true);
569
-
570
- echo '<h4 class="collapse_head">' . __( 'Other settings', 'wpsr' ) . '</h4>';
571
- WPSR_Admin::build_table( $section4, '', '', true);
572
- echo '</div>';
573
- }
574
-
575
- function validation( $values ){
576
-
577
- return $values;
578
-
579
- }
580
-
581
- function general_settings( $values ){
582
-
583
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'gsettings_socialbuttons' ) );
584
-
585
- $section1 = array(
586
- array( __( 'ID or class name of the comment section', 'wpsr' ), WPSR_Admin::field( 'text', array(
587
- 'name' => 'sb_comment_sec',
588
- 'value' => $values['sb_comment_sec'],
589
- 'placeholder' => 'Ex: #comments',
590
- 'helper' => __( 'Enter the class name or ID of the comment section in the page.', 'wpsr' ),
591
- 'qtip' => 'https://www.youtube.com/watch?v=GQ1YO0xZ7WA'
592
- )))
593
- );
594
-
595
- WPSR_Admin::build_table( $section1, 'Social icons settings' );
596
-
597
- }
598
-
599
- function general_settings_validation( $values ){
600
- return $values;
601
- }
602
-
603
- function templates(){
604
- return WPSR_Lists::load_json('buttons');
605
- }
606
-
607
- }
608
-
609
- new wpsr_service_social_icons();
610
-
611
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
services/twitter.php DELETED
@@ -1,270 +0,0 @@
1
- <?php
2
- /**
3
- * Twitter service for WP Socializer
4
- *
5
- */
6
-
7
- class wpsr_service_twitter{
8
-
9
- function __construct(){
10
-
11
- add_filter( 'wpsr_register_service', array( $this, 'register' ) );
12
-
13
- $gs = get_option( 'wpsr_general_settings' );
14
- $gs = WPSR_Lists::set_defaults( $gs, WPSR_Lists::defaults( 'gsettings_twitter' ) );
15
-
16
- $this->default_values = array(
17
- 'type' => 'share',
18
- 'count' => 'false',
19
- 'username' => $gs[ 'twitter_username' ],
20
- 'recommend' => '',
21
- 'hashtag' => '',
22
- 'size' => 'small'
23
- );
24
-
25
- }
26
-
27
- function register( $services ){
28
-
29
- $services[ 'twitter' ] = array(
30
- 'name' => 'Twitter',
31
- 'icons' => WPSR_ADMIN_URL . '/images/icons/twitter.png',
32
- 'desc' => __( 'Create Twitter buttons like share, follow, hashtag and mention', 'wpsr' ),
33
- 'settings' => array( 'size' => '500x350' ),
34
- 'callbacks' => array(
35
- 'output' => array( $this, 'output' ),
36
- 'includes' => array( $this, 'includes' ),
37
- 'settings' => array( $this, 'settings' ),
38
- 'validation' => array( $this, 'validation' ),
39
- 'general_settings' => array( $this, 'general_settings' ),
40
- 'general_settings_validation' => array( $this, 'general_settings_validation' ),
41
- 'templates' => array( $this, 'templates' )
42
- )
43
- );
44
-
45
- return $services;
46
-
47
- }
48
-
49
- function output( $settings = array(), $page_info = array() ){
50
-
51
- $out = array();
52
- $settings = WPSR_Lists::set_defaults( $settings, $this->default_values );
53
- $href = '';
54
- $count = '';
55
- $text = '';
56
-
57
- if( $settings[ 'type' ] == 'share' ){
58
- $href = 'https://twitter.com/share';
59
- $text = 'Tweet';
60
- }
61
-
62
- if( $settings[ 'type' ] == 'follow' ){
63
- $href = 'https://twitter.com/' . $settings[ 'username' ];
64
- $text = ( $settings[ 'username' ] != '' ) ? 'Follow @' . $settings[ 'username' ] : 'Follow';
65
- }
66
-
67
- if( $settings[ 'type' ] == 'hashtag' ){
68
- $href = 'https://twitter.com/intent/tweet?button_hashtag=' . $settings[ 'hashtag' ];
69
- $text = ( $settings[ 'hashtag' ] != '' ) ? 'Tweet #' . $settings[ 'hashtag' ] : 'Tweet';
70
- }
71
-
72
- if( $settings[ 'type' ] == 'mention' ){
73
- $href = 'https://twitter.com/intent/tweet?screen_name=' . $settings[ 'username' ];
74
- $text = ( $settings[ 'username' ] != '' ) ? 'Tweet to @' . $settings[ 'username' ] : 'Tweet';
75
- }
76
-
77
- $out['html'] = '<a href="' . esc_attr( $href ) . '" class="twitter-' . $settings[ 'type' ] . '-button" data-show-count="' . esc_attr( $settings[ 'count' ] ) . '" data-related="' . esc_attr( $settings[ 'recommend' ] ) . '" data-url="' . esc_attr( $page_info[ 'url' ] ) . '" data-size="' . esc_attr( $settings[ 'size' ] ) . '" data-via="' . esc_attr( $settings[ 'username' ] ) . '" data-hashtags="' . esc_attr( $settings[ 'hashtag' ] ) . '">' . $text . '</a>';
78
-
79
- $out['includes'] = array( 'twitter_main_js' );
80
- return $out;
81
-
82
- }
83
-
84
- function includes(){
85
-
86
- $includes = array(
87
- 'twitter_main_js' => array(
88
- 'type' => 'js',
89
- 'code' => "<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>"
90
- )
91
- );
92
-
93
- return $includes;
94
-
95
- }
96
-
97
- function settings( $values ){
98
-
99
- $values = WPSR_Lists::set_defaults( $values, $this->default_values );
100
-
101
- $section1 = array(
102
- array( __( 'Button type', 'wpsr' ), WPSR_Admin::field( 'select', array(
103
- 'name' => 'o[type]',
104
- 'value' => $values['type'],
105
- 'list' => array(
106
- 'share' => 'Share button',
107
- 'follow' => 'Follow button',
108
- 'hashtag' => 'Hashtag button',
109
- 'mention' => 'Mention button'
110
- )
111
- ))),
112
-
113
- /*
114
- array( 'Show count', WPSR_Admin::field( 'select', array(
115
- 'name' => 'o[count]',
116
- 'value' => $values['count'],
117
- 'list' => array(
118
- 'true' => 'Yes',
119
- 'false' => 'No'
120
- )
121
- ))),
122
- */
123
-
124
- array( __( 'Twitter username', 'wpsr' ), WPSR_Admin::field( 'text', array(
125
- 'name' => 'o[username]',
126
- 'value' => $values['username'],
127
- 'helper' => __( 'Your twitter username without @ sign', 'wpsr' )
128
- ))),
129
-
130
- array( 'Recommend', WPSR_Admin::field( 'text', array(
131
- 'name' => 'o[recommend]',
132
- 'value' => $values['recommend'],
133
- 'helper' => __( 'Enter other twitter accounts to recommend without @ sign separated by comma.', 'wpsr' )
134
- ))),
135
-
136
- array( 'Hashtag in tweet', WPSR_Admin::field( 'text', array(
137
- 'name' => 'o[hashtag]',
138
- 'value' => $values['hashtag'],
139
- 'helper' => __( 'Enter hashtag to place in tweet without # sign.', 'wpsr' )
140
- ))),
141
-
142
- array( __( 'Button size', 'wpsr' ), WPSR_Admin::field( 'select', array(
143
- 'name' => 'o[size]',
144
- 'value' => $values['size'],
145
- 'list' => array( 'small' => 'Normal', 'large' => 'Large')
146
- ))),
147
-
148
- );
149
-
150
- WPSR_Admin::build_table( $section1, '', '', true);
151
-
152
- echo '<script>if( jQuery.fn.conditioner ) jQuery("[data-conditioner]").conditioner();</script>';
153
-
154
- }
155
-
156
- function validation( $values ){
157
-
158
- $values['color'] .= 'formatted';
159
- return $values;
160
-
161
- }
162
-
163
- function general_settings( $values ){
164
-
165
- $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'gsettings_twitter' ) );
166
-
167
- $section1 = array(
168
- array( __( 'Twitter username', 'wpsr' ), WPSR_Admin::field( 'text', array(
169
- 'name' => 'twitter_username',
170
- 'value' => $values['twitter_username'],
171
- 'helper' => __( 'Your twitter username without @ sign', 'wpsr' ),
172
- ))),
173
- );
174
-
175
- WPSR_Admin::build_table( $section1, 'Twitter settings');
176
-
177
- }
178
-
179
- function general_settings_validation( $values ){
180
- return $values;
181
- }
182
-
183
- function templates(){
184
-
185
- return array(
186
- 'twitter_hl'=> array(
187
- 'settings'=> array()
188
- ),
189
- 'twitter_hl_lg'=> array(
190
- 'settings'=> array(
191
- 'size'=> 'large'
192
- )
193
- )
194
- );
195
-
196
- }
197
-
198
- }
199
-
200
- new wpsr_service_twitter();
201
-
202
- /**
203
- * Twitter widget
204
- */
205
-
206
- class wpsr_widget_twitter{
207
-
208
- function __construct(){
209
-
210
- WPSR_Widgets::register( 'twitter', array(
211
- 'name' => 'Twitter timeline widget',
212
- 'banner' => WPSR_ADMIN_URL . '/images/widgets/twitter.png',
213
- 'description' => __( 'The native Twitter timeline widget to display Twitter feed and other Twitter features.', 'wpsr' ),
214
- 'callbacks' => array(
215
- 'widget' => array( $this, 'widget' ),
216
- 'form' => array( $this, 'form' ),
217
- 'update' => array( $this, 'update' )
218
- )
219
- ));
220
-
221
- $this->defaults = array(
222
- 'twitter_widget_url' => '',
223
- 'twitter_widget_height' => '600',
224
- 'twitter_widget_theme' => 'light',
225
- 'twitter_widget_link_color' => '#2B7BB9',
226
- );
227
-
228
- }
229
-
230
- function widget( $args, $instance ){
231
-
232
- $instance = WPSR_Lists::set_defaults( $instance, $this->defaults );
233
-
234
- echo '<a class="twitter-timeline" data-height="' . $instance[ 'twitter_widget_height' ] . '" data-theme="' . $instance[ 'twitter_widget_theme' ] . '" data-link-color="' . $instance[ 'twitter_widget_link_color' ] . '" href="' . $instance[ 'twitter_widget_url' ] . '">Twitter</a>';
235
-
236
- WPSR_Includes::add_active_includes( array( 'twitter_main_js' ) );
237
-
238
- }
239
-
240
- function form( $obj, $instance ){
241
-
242
- $instance = WPSR_Lists::set_defaults( $instance, $this->defaults );
243
- $fields = new WPSR_Widget_Form_Fields( $obj, $instance );
244
-
245
- echo '<h4>' . __( 'Twitter Widget settings', 'wpsr' ) . '</h4>';
246
- $fields->text( 'twitter_widget_url', 'Enter a twitter URL to embed', array( 'placeholder' => 'Ex: https://twitter.com/vaakash' ) );
247
-
248
- echo '<h5>Examples:</h5>';
249
- echo '<ul>';
250
- echo '<li><code>Likes</code> - https://twitter.com/TwitterDev/likes</li>';
251
- echo '<li><code>List</code> - https://twitter.com/TwitterDev/lists/national-parks</li>';
252
- echo '<li><code>Profile</code> - https://twitter.com/TwitterDev</li>';
253
- echo '<li><code>Collection</code> - https://twitter.com/TwitterDev/timelines/539487832448843776</li>';
254
- echo '</ul>';
255
-
256
- $fields->number( 'twitter_widget_height', 'Widget height ( in pixels )' );
257
- $fields->select( 'twitter_widget_theme', 'Widget theme', array( 'light' => 'Light', 'dark' => 'Dark' ), array( 'class' => 'smallfat' ) );
258
- $fields->text( 'twitter_widget_link_color', 'Link color', array( 'class' => 'smallfat wpsr-color-picker' ) );
259
-
260
- }
261
-
262
- function update( $instance ){
263
- return $instance;
264
- }
265
-
266
- }
267
-
268
- new wpsr_widget_twitter();
269
-
270
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wpsr.php CHANGED
@@ -2,20 +2,19 @@
2
  /**
3
  * Plugin Name: WP Socializer
4
  * Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
- * Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
6
- * Version: 5.2.1
7
  * Author: Aakash Chakravarthy
8
  * Author URI: https://www.aakashweb.com
9
  * Text Domain: wpsr
10
  * Domain Path: /languages
11
  */
12
 
13
- define( 'WPSR_VERSION', '5.2.1' );
14
  define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
17
  define( 'WPSR_BASE_NAME', plugin_basename( __FILE__ ) );
18
- define( 'WPSR_SETUP_VERSION', '1.0' );
19
 
20
  //error_reporting(E_ALL);
21
 
@@ -32,44 +31,43 @@ final class WP_Socializer{
32
  function includes(){
33
 
34
  // Core
35
- include_once( WPSR_PATH . 'core/services.php' );
36
  include_once( WPSR_PATH . 'core/lists.php' );
 
37
  include_once( WPSR_PATH . 'core/metadata.php' );
38
- include_once( WPSR_PATH . 'core/buttons.php' );
39
- include_once( WPSR_PATH . 'core/templates.php' );
40
- include_once( WPSR_PATH . 'core/location_rules.php' );
41
  include_once( WPSR_PATH . 'core/includes.php' );
42
- include_once( WPSR_PATH . 'core/share_counter.php' );
 
43
  include_once( WPSR_PATH . 'core/widgets.php' );
44
- include_once( WPSR_PATH . 'core/import_export.php' );
45
-
46
- // Services
47
- include_once( WPSR_PATH . 'services/twitter.php' );
48
- include_once( WPSR_PATH . 'services/social_icons.php' );
49
- include_once( WPSR_PATH . 'services/facebook.php' );
50
- include_once( WPSR_PATH . 'services/linkedin.php' );
51
- include_once( WPSR_PATH . 'services/reddit.php' );
52
- include_once( WPSR_PATH . 'services/sharethis.php' );
53
- include_once( WPSR_PATH . 'services/pinterest.php' );
54
- include_once( WPSR_PATH . 'services/pocket.php' );
55
- include_once( WPSR_PATH . 'services/html.php' );
56
- include_once( WPSR_PATH . 'services/share_counter.php' );
57
-
58
  // Admin
59
  include_once( WPSR_PATH . 'admin/admin.php' );
60
- include_once( WPSR_PATH . 'admin/social_icons.php' );
61
- include_once( WPSR_PATH . 'admin/floating_sharebar.php' );
62
- include_once( WPSR_PATH . 'admin/followbar.php' );
63
- include_once( WPSR_PATH . 'admin/text_sharebar.php' );
64
- include_once( WPSR_PATH . 'admin/mobile_sharebar.php' );
65
  include_once( WPSR_PATH . 'admin/widgets.php' );
66
- include_once( WPSR_PATH . 'admin/buttons.php' );
67
- include_once( WPSR_PATH . 'admin/sharebar.php' );
68
- include_once( WPSR_PATH . 'admin/import_export.php' );
69
- include_once( WPSR_PATH . 'admin/general_settings.php' );
70
- include_once( WPSR_PATH . 'admin/buttons_picker.php' );
71
- include_once( WPSR_PATH . 'admin/icons_editor.php' );
72
-
 
 
 
 
73
  }
74
 
75
  function load_text_domain(){
2
  /**
3
  * Plugin Name: WP Socializer
4
  * Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
+ * Description: Add various social media sharing features to posts/pages/widgets like social media share icons, floating/sticky share bar, follow my profile icons and more.
6
+ * Version: 6.0
7
  * Author: Aakash Chakravarthy
8
  * Author URI: https://www.aakashweb.com
9
  * Text Domain: wpsr
10
  * Domain Path: /languages
11
  */
12
 
13
+ define( 'WPSR_VERSION', '6.0' );
14
  define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
17
  define( 'WPSR_BASE_NAME', plugin_basename( __FILE__ ) );
 
18
 
19
  //error_reporting(E_ALL);
20
 
31
  function includes(){
32
 
33
  // Core
 
34
  include_once( WPSR_PATH . 'core/lists.php' );
35
+ include_once( WPSR_PATH . 'core/options.php' );
36
  include_once( WPSR_PATH . 'core/metadata.php' );
37
+ include_once( WPSR_PATH . 'core/location-rules.php' );
 
 
38
  include_once( WPSR_PATH . 'core/includes.php' );
39
+ include_once( WPSR_PATH . 'core/share-counter.php' );
40
+ include_once( WPSR_PATH . 'core/shortcodes.php' );
41
  include_once( WPSR_PATH . 'core/widgets.php' );
42
+ include_once( WPSR_PATH . 'core/import-export.php' );
43
+
44
+ // Templates
45
+ include_once( WPSR_PATH . 'core/templates/share-icons.php' );
46
+ include_once( WPSR_PATH . 'core/templates/floating-sharebar.php' );
47
+ include_once( WPSR_PATH . 'core/templates/follow-icons.php' );
48
+ include_once( WPSR_PATH . 'core/templates/text-sharebar.php' );
49
+
50
+ // Widgets
51
+ include_once( WPSR_PATH . 'core/widgets/follow-icons.php' );
52
+ include_once( WPSR_PATH . 'core/widgets/facebook.php' );
53
+ include_once( WPSR_PATH . 'core/widgets/twitter.php' );
54
+
 
55
  // Admin
56
  include_once( WPSR_PATH . 'admin/admin.php' );
57
+ include_once( WPSR_PATH . 'admin/form.php' );
58
+ include_once( WPSR_PATH . 'admin/icons-editor.php' );
 
 
 
59
  include_once( WPSR_PATH . 'admin/widgets.php' );
60
+ include_once( WPSR_PATH . 'admin/tools.php' );
61
+
62
+ // Admin pages
63
+ include_once( WPSR_PATH . 'admin/pages/share-icons.php' );
64
+ include_once( WPSR_PATH . 'admin/pages/floating-sharebar.php' );
65
+ include_once( WPSR_PATH . 'admin/pages/follow-icons.php' );
66
+ include_once( WPSR_PATH . 'admin/pages/text-sharebar.php' );
67
+ include_once( WPSR_PATH . 'admin/pages/shortcodes.php' );
68
+ include_once( WPSR_PATH . 'admin/pages/import-export.php' );
69
+ include_once( WPSR_PATH . 'admin/pages/general-settings.php' );
70
+
71
  }
72
 
73
  function load_text_domain(){