Genesis Simple Share - Version 1.0.9

Version Description

  • Fixed: Facebook count continues to work after recent Facebook API changes.
Download this release

Release Info

Developer Nick_theGeek
Plugin Icon 128x128 Genesis Simple Share
Version 1.0.9
Comparing to
See all releases

Code changes from version 1.0.8 to 1.0.9

lib/admin.php CHANGED
@@ -8,10 +8,10 @@
8
  * @author copyblogger
9
  * @license http://www.opensource.org/licenses/gpl-license.php GPL-2.0+
10
  */
11
-
12
  //* Prevent direct access to the plugin
13
  if ( ! defined( 'ABSPATH' ) ) {
14
- die( __( 'Sorry, you are not allowed to access this page directly.', 'genesis-simple-share' ) );
15
  }
16
 
17
 
@@ -24,9 +24,9 @@ if ( ! defined( 'ABSPATH' ) ) {
24
  * @since 0.1.0
25
  */
26
  class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
27
-
28
  var $sort_text;
29
-
30
  /**
31
  * Create an admin menu item and settings page.
32
  *
@@ -36,11 +36,11 @@ class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
36
  *
37
  */
38
  function __construct() {
39
-
40
  $this->sort_text = sprintf( '%s', __( 'You can change button position by reordering these boxes:', 'genesis-simple-share' ) );
41
-
42
  $settings_field = 'genesis_simple_share';
43
-
44
  $default_settings = apply_filters(
45
  'genesis_simple_share_defaults',
46
  array(
@@ -56,28 +56,28 @@ class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
56
  'stumbleupon' => 1,
57
  )
58
  );
59
-
60
  $menu_ops = array(
61
- 'submenu' => array(
62
  /** Do not use without 'main_menu' */
63
  'parent_slug' => 'genesis',
64
  'page_title' => __( 'Genesis Simple Share Settings', 'genesis-simple-share' ),
65
- 'menu_title' => __( 'Simple Share', 'genesis-simple-share' )
66
- )
67
  );
68
-
69
  $page_ops = array();
70
  /** Just use the defaults */
71
-
72
  $this->create( 'genesis_simple_share_settings', $menu_ops, $page_ops, $settings_field, $default_settings );
73
-
74
  add_action( 'genesis_settings_sanitizer_init', array( $this, 'sanitizer_filters' ) );
75
-
76
  add_filter( "update_user_metadata", array( $this, 'user_meta_save' ), 10, 4 );
77
  add_filter( "get_user_option_meta-box-order_genesis_page_genesis_simple_share_settings", array( $this, 'user_meta_return' ) );
78
-
79
  }
80
-
81
  /**
82
  * Register each of the settings with a sanitization filter type.
83
  *
@@ -88,23 +88,23 @@ class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
88
  * @see \Genesis_Settings_Sanitizer::add_filter() Add sanitization filters to options.
89
  */
90
  function sanitizer_filters() {
91
-
92
  $one_zero = array(
93
- 'googlePlus',
94
- 'facebook',
95
- 'twitter',
96
- 'pinterest',
97
- 'linkedin',
98
- 'stumbleupon',
99
- 'general_show_archive',
100
- );
101
-
102
  $post_types = get_post_types( array( 'public' => true, ) );
103
-
104
  foreach( $post_types as $post_type ){
105
  $one_zero[] = 'general_' . $post_type;
106
  }
107
-
108
  genesis_add_option_filter(
109
  'one_zero',
110
  $this->settings_field,
@@ -129,9 +129,9 @@ class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
129
  'image_url',
130
  )
131
  );
132
-
133
  }
134
-
135
  /**
136
  * Loads required scripts.
137
  *
@@ -139,44 +139,61 @@ class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
139
  *
140
  */
141
  function scripts() {
142
-
 
 
143
  wp_enqueue_script( 'common' );
144
  wp_enqueue_script( 'wp-lists' );
145
  wp_enqueue_script( 'postbox' );
146
-
147
  //use wp_enqueue_script() and wp_enqueue_style() to load scripts and styles
148
- wp_enqueue_script( 'genesis-simple-share-plugin-js',
149
- plugins_url( 'sharrre/jquery.sharrre.min.js', __FILE__ ),
150
- array( 'jquery' ),
151
- '0.1.0'
152
- );
153
-
154
- wp_enqueue_style( 'genesis-simple-share-plugin-css',
155
- plugins_url( 'css/share.css', __FILE__ ),
156
- array(),
157
- '0.1.0'
158
- );
159
-
160
- wp_enqueue_style( 'genesis-simple-share-genericons-css',
161
- plugins_url( 'css/genericons.css', __FILE__ ),
162
- array(),
163
- '0.1.0'
164
- );
165
-
166
- wp_enqueue_script( 'genesis-simple-share-admin-js',
167
- plugins_url( 'js/admin.js', __FILE__ ),
168
- array( 'jquery' ),
169
- '0.1.0'
170
- );
171
-
172
- wp_enqueue_style( 'genesis-simple-share-admin-css',
173
- plugins_url( 'css/admin.css', __FILE__ ),
174
- array(),
175
- '0.1.0'
176
- );
177
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  }
179
-
180
  /**
181
  * Hijacks meta save and switches to the option save for the meta box order on the simple share settings page
182
  *
@@ -190,13 +207,13 @@ class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
190
  * return boolean
191
  */
192
  function user_meta_save( $check, $object_id, $meta_key, $meta_value ) {
193
-
194
  if( 'meta-box-order_genesis_page_genesis_simple_share_settings' == $meta_key )
195
  return update_option( 'genesis_simple_share_sort', $meta_value );
196
-
197
  return $check;
198
  }
199
-
200
  /**
201
  * Hijacks user meta check for the meta box order on simple share settings page
202
  *
@@ -207,228 +224,228 @@ class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
207
  * return array
208
  */
209
  function user_meta_return( $result ) {
210
-
211
  if( $new_result = get_option( 'genesis_simple_share_sort' ) )
212
  return $new_result;
213
-
214
  return $result;
215
  }
216
-
217
  /**
218
- * Register meta boxes.
219
- *
220
- *
221
- * @since 0.1.0
222
- *
223
- */
224
  function metaboxes() {
225
-
226
  //var_dump( $current_screen );
227
-
228
  add_action( 'genesis_simple_share_admin_table_before_rows', array( $this, 'live_preview' ) );
229
  add_action( $this->pagehook . '_settings_page_boxes' , array( $this, 'general_settings' ), 0 );
230
  add_action( $this->pagehook . '_settings_page_boxes' , array( $this, 'sort_text' ), 0 );
231
-
232
  add_meta_box( 'genesis_simple_share_google_plus', __( 'Google+', 'genesis-simple-share' ), array( $this, 'google_plus' ), $this->pagehook, 'main' );
233
  add_meta_box( 'genesis_simple_share_facebook', __( 'Facebook', 'genesis-simple-share' ), array( $this, 'facebook' ), $this->pagehook, 'main' );
234
  add_meta_box( 'genesis_simple_share_twitter', __( 'Twitter', 'genesis-simple-share' ), array( $this, 'twitter' ), $this->pagehook, 'main' );
235
  add_meta_box( 'genesis_simple_share_pinterest', __( 'Pinterest', 'genesis-simple-share' ), array( $this, 'pinterest' ), $this->pagehook, 'main' );
236
  add_meta_box( 'genesis_simple_share_linkedin', __( 'Linkedin', 'genesis-simple-share' ), array( $this, 'linkedin' ), $this->pagehook, 'main' );
237
  add_meta_box( 'genesis_simple_share_stumbleupon', __( 'StumbleUpon', 'genesis-simple-share' ), array( $this, 'stumbleupon' ), $this->pagehook, 'main' );
238
-
239
-
240
-
241
  }
242
-
243
  /**
244
- * Create General settings metabox output
245
- *
246
- *
247
- * @since 0.1.0
248
- *
249
- */
250
  function general_settings() {
251
-
252
  $id = 'general';
253
-
254
- ?>
255
-
256
- <div class="wrap gss-clear">
257
-
258
  <table class="form-table">
259
  <tbody>
260
-
261
  <?php
262
- do_action( 'genesis_simple_share_admin_table_before_rows' );
263
-
264
- $this->select_field( $id . '_size', __( 'Icon Size', 'genesis-simple-share' ), array(
265
- 'small' => __( 'Small Bar' , 'genesis-simple-share' ),
266
- 'medium' => __( 'Medium Bar', 'genesis-simple-share' ),
267
- 'tall' => __( 'Box' , 'genesis-simple-share' ),
268
- ) );
269
-
270
- $this->select_field( $id . '_appearance', __( 'Icon Appearance', 'genesis-simple-share' ), array(
271
- 'outlined' => __( 'Outlined', 'genesis-simple-share' ),
272
- 'filled' => __( 'Filled' , 'genesis-simple-share' ),
273
- ) );
274
-
275
- $this->position( $id );
276
- $this->post_type_checkbox( $id );
277
-
278
- do_action( 'genesis_simple_share_admin_table_after_rows' );
279
- ?>
280
  </tbody>
281
  </table>
282
  </div>
283
-
284
  <?php
285
-
286
  }
287
-
288
  function live_preview() {
289
- ?>
290
  <tr valign="top" class="share-preview-row">
291
  <th scope="row">Live Preview</th>
292
  <td>
293
  <?php
294
-
295
- require_once( GENESIS_SIMPLE_SHARE_LIB . 'admin-icon-preview.php' );
296
- genesis_share_icon_preview_output( 'preview' );
297
-
298
- ?>
299
  </td>
300
  </tr>
301
  <?php
302
  }
303
-
304
  function sort_text() {
305
  printf( '<br /><br /><h3>%s</h3>', $this->sort_text );
306
  }
307
-
308
  /**
309
- * Create Google+ settings metabox output
310
- *
311
- *
312
- * @since 0.1.0
313
- *
314
- */
315
  function google_plus() {
316
-
317
  $id = 'googlePlus';
318
 
319
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
320
-
321
  //echo $this->sort_text;
322
-
323
  }
324
-
325
  /**
326
- * Create Facebook settings metabox output
327
- *
328
- *
329
- * @since 0.1.0
330
- *
331
- */
332
  function facebook() {
333
-
334
  $id = 'facebook';
335
-
336
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
337
-
338
  //echo $this->sort_text;
339
-
340
  }
341
-
342
  /**
343
- * Create Twitter settings metabox output
344
- *
345
- *
346
- * @since 0.1.0
347
- *
348
- */
349
  function twitter() {
350
-
351
  $id = 'twitter';
352
-
353
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
354
-
355
  ?><p>
356
  <label for="<?php echo $this->get_field_id( 'twitter_id' ); ?>"><?php _e( 'Enter Twitter ID for @via to be added to default tweet text:', 'genesis-simple-share' ); ?></label>
357
  <input type="text" name="<?php echo $this->get_field_name( 'twitter_id' ); ?>" id="<?php echo $this->get_field_id( 'twitter_id' ); ?>" value="<?php echo esc_attr( str_replace( '@', '', $this->get_field_value( 'twitter_id' ) ) ); ?>" size="27" />
358
  </p><?php
359
-
360
-
361
  }
362
-
363
  /**
364
- * Create StumbleUpon settings metabox output
365
- *
366
- *
367
- * @since 0.1.0
368
- *
369
- */
370
  function stumbleupon() {
371
-
372
  $id = 'stumbleupon';
373
-
374
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
375
-
376
  }
377
-
378
  /**
379
- * Create Pinterest settings metabox output
380
- *
381
- *
382
- * @since 0.1.0
383
- *
384
- */
385
  function pinterest() {
386
-
387
  $id = 'pinterest';
388
-
389
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
390
-
391
  ?><p>
392
  <label for="<?php echo $this->get_field_id( 'image_url' ); ?>"><?php _e( 'Enter Default Image URL if there is no image available in content being shared:', 'genesis-simple-share' ); ?></label>
393
  <input type="text" name="<?php echo $this->get_field_name( 'image_url' ); ?>" id="<?php echo $this->get_field_id( 'image_url' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'image_url' ) ); ?>" size="27" />
394
  </p><?php
395
-
396
  }
397
-
398
  /**
399
- * Create Linkedin settings metabox output
400
- *
401
- *
402
- * @since 0.1.0
403
- *
404
- */
405
  function linkedin() {
406
-
407
  $id = 'linkedin';
408
-
409
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
410
 
411
  }
412
-
413
  /**
414
  * Outputs select field to select position for the icon
415
  *
416
  * @since 0.1.0
417
  *
418
  * @param string $id ID base to use when building select box.
419
- *
420
  */
421
  function position( $id ){
422
-
423
  $this->select_field( $id . '_position', __( 'Icon Display Position' , 'genesis-simple-share' ), array(
424
- 'off' => __( 'Select display position to enable icons.', 'genesis-simple-share' ),
425
- 'before_content' => __( 'Before the Content' , 'genesis-simple-share' ),
426
- 'after_content' => __( 'After the Content' , 'genesis-simple-share' ),
427
- 'both' => __( 'Before and After the Content' , 'genesis-simple-share' ),
428
- ) );
429
-
430
  }
431
-
432
  /**
433
  * Outputs select field
434
  *
@@ -441,27 +458,27 @@ class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
441
  */
442
  function select_field( $id, $name, $options = array() ){
443
  $current = $this->get_field_value( $id );
444
- ?>
445
  <tr valign="top">
446
  <th scope="row"><label for="<?php echo $this->get_field_id( $name ); ?>"><?php echo $name ?></label></th>
447
  <td><select name="<?php echo $this->get_field_name( $id ); ?>" class="<?php echo 'genesis_simple_share_' . $id; ?>" id="<?php echo $this->get_field_id( $id ); ?>">
448
  <?php
449
- if ( ! empty( $options ) ) {
450
- foreach ( (array) $options as $option => $title ) {
451
-
452
- printf( '<option value="%s"%s>%s</option>',
453
- esc_attr( $option ),
454
- selected( $current, $option, false ),
455
- esc_html( $title )
456
- );
457
-
458
- }
459
- }
460
- ?>
461
  </select></td>
462
  </tr><?php
463
  }
464
-
465
  /**
466
  * Outputs checkbox fields for public post types.
467
  *
@@ -471,22 +488,22 @@ class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
471
  *
472
  */
473
  function post_type_checkbox( $id ){
474
-
475
  $post_types = get_post_types( array( 'public' => true, ) );
476
-
477
  printf( '<tr valign="top"><th scope="row">%s</th>', __( 'Enable on:', 'genesis-simple-share' ) );
478
-
479
  echo '<td>';
480
-
481
  foreach( $post_types as $post_type )
482
  $this->checkbox( $id . '_' . $post_type, $post_type );
483
-
484
  $this->checkbox( $id . '_show_archive', __( 'Show on Archive Pages', 'genesis-simple-share' ) );
485
-
486
  echo '</td></tr>';
487
-
488
  }
489
-
490
  /**
491
  * Outputs checkbox field.
492
  *
@@ -498,16 +515,16 @@ class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
498
  */
499
  function checkbox( $id, $name ){
500
  printf( '<label for="%s"><input type="checkbox" name="%s" id="%s" value="1"%s /> %s </label> ',
501
- $this->get_field_id( $id ),
502
- $this->get_field_name( $id ),
503
- $this->get_field_id( $id ),
504
- checked( $this->get_field_value( $id ), 1, false ),
505
- $name
506
  );
507
  echo '<br />';
508
  }
509
-
510
-
511
  }
512
 
513
  global $genesis_simple_share;
8
  * @author copyblogger
9
  * @license http://www.opensource.org/licenses/gpl-license.php GPL-2.0+
10
  */
11
+
12
  //* Prevent direct access to the plugin
13
  if ( ! defined( 'ABSPATH' ) ) {
14
+ die( __( 'Sorry, you are not allowed to access this page directly.', 'genesis-simple-share' ) );
15
  }
16
 
17
 
24
  * @since 0.1.0
25
  */
26
  class Genesis_Simple_Share_Boxes extends Genesis_Admin_Boxes {
27
+
28
  var $sort_text;
29
+
30
  /**
31
  * Create an admin menu item and settings page.
32
  *
36
  *
37
  */
38
  function __construct() {
39
+
40
  $this->sort_text = sprintf( '%s', __( 'You can change button position by reordering these boxes:', 'genesis-simple-share' ) );
41
+
42
  $settings_field = 'genesis_simple_share';
43
+
44
  $default_settings = apply_filters(
45
  'genesis_simple_share_defaults',
46
  array(
56
  'stumbleupon' => 1,
57
  )
58
  );
59
+
60
  $menu_ops = array(
61
+ 'submenu' => array(
62
  /** Do not use without 'main_menu' */
63
  'parent_slug' => 'genesis',
64
  'page_title' => __( 'Genesis Simple Share Settings', 'genesis-simple-share' ),
65
+ 'menu_title' => __( 'Simple Share', 'genesis-simple-share' )
66
+ )
67
  );
68
+
69
  $page_ops = array();
70
  /** Just use the defaults */
71
+
72
  $this->create( 'genesis_simple_share_settings', $menu_ops, $page_ops, $settings_field, $default_settings );
73
+
74
  add_action( 'genesis_settings_sanitizer_init', array( $this, 'sanitizer_filters' ) );
75
+
76
  add_filter( "update_user_metadata", array( $this, 'user_meta_save' ), 10, 4 );
77
  add_filter( "get_user_option_meta-box-order_genesis_page_genesis_simple_share_settings", array( $this, 'user_meta_return' ) );
78
+
79
  }
80
+
81
  /**
82
  * Register each of the settings with a sanitization filter type.
83
  *
88
  * @see \Genesis_Settings_Sanitizer::add_filter() Add sanitization filters to options.
89
  */
90
  function sanitizer_filters() {
91
+
92
  $one_zero = array(
93
+ 'googlePlus',
94
+ 'facebook',
95
+ 'twitter',
96
+ 'pinterest',
97
+ 'linkedin',
98
+ 'stumbleupon',
99
+ 'general_show_archive',
100
+ );
101
+
102
  $post_types = get_post_types( array( 'public' => true, ) );
103
+
104
  foreach( $post_types as $post_type ){
105
  $one_zero[] = 'general_' . $post_type;
106
  }
107
+
108
  genesis_add_option_filter(
109
  'one_zero',
110
  $this->settings_field,
129
  'image_url',
130
  )
131
  );
132
+
133
  }
134
+
135
  /**
136
  * Loads required scripts.
137
  *
139
  *
140
  */
141
  function scripts() {
142
+
143
+ global $wp_styles;
144
+
145
  wp_enqueue_script( 'common' );
146
  wp_enqueue_script( 'wp-lists' );
147
  wp_enqueue_script( 'postbox' );
148
+
149
  //use wp_enqueue_script() and wp_enqueue_style() to load scripts and styles
150
+ wp_enqueue_script(
151
+ 'genesis-simple-share-plugin-js',
152
+ plugins_url( 'sharrre/jquery.sharrre.min.js', __FILE__ ),
153
+ array( 'jquery' ),
154
+ '0.1.0'
155
+ );
156
+
157
+ wp_enqueue_style(
158
+ 'genesis-simple-share-plugin-css',
159
+ plugins_url( 'css/share.css', __FILE__ ),
160
+ array(),
161
+ '0.1.0'
162
+ );
163
+
164
+ wp_enqueue_style(
165
+ 'genesis-simple-share-genericons-css',
166
+ plugins_url( 'css/genericons.css', __FILE__ ),
167
+ array(),
168
+ '0.1.0'
169
+ );
170
+
171
+ wp_enqueue_script(
172
+ 'genesis-simple-share-admin-js',
173
+ plugins_url( 'js/admin.js', __FILE__ ),
174
+ array( 'jquery' ),
175
+ '0.1.0'
176
+ );
177
+
178
+ wp_enqueue_style(
179
+ 'genesis-simple-share-admin-css',
180
+ plugins_url( 'css/admin.css', __FILE__ ),
181
+ array(),
182
+ '0.1.0'
183
+ );
184
+
185
+ wp_enqueue_style(
186
+ 'genesis-simple-share-admin-css-ie',
187
+ plugins_url( 'css/admin-ie.css', __FILE__ ),
188
+ array( 'genesis-simple-share-admin-css' ),
189
+ '0.1.0'
190
+ );
191
+
192
+ //* Add IE Styles
193
+ $wp_styles->add_data( 'genesis-simple-share-admin-css-ie', 'conditional', 'lt IE 10' );
194
+
195
  }
196
+
197
  /**
198
  * Hijacks meta save and switches to the option save for the meta box order on the simple share settings page
199
  *
207
  * return boolean
208
  */
209
  function user_meta_save( $check, $object_id, $meta_key, $meta_value ) {
210
+
211
  if( 'meta-box-order_genesis_page_genesis_simple_share_settings' == $meta_key )
212
  return update_option( 'genesis_simple_share_sort', $meta_value );
213
+
214
  return $check;
215
  }
216
+
217
  /**
218
  * Hijacks user meta check for the meta box order on simple share settings page
219
  *
224
  * return array
225
  */
226
  function user_meta_return( $result ) {
227
+
228
  if( $new_result = get_option( 'genesis_simple_share_sort' ) )
229
  return $new_result;
230
+
231
  return $result;
232
  }
233
+
234
  /**
235
+ * Register meta boxes.
236
+ *
237
+ *
238
+ * @since 0.1.0
239
+ *
240
+ */
241
  function metaboxes() {
242
+
243
  //var_dump( $current_screen );
244
+
245
  add_action( 'genesis_simple_share_admin_table_before_rows', array( $this, 'live_preview' ) );
246
  add_action( $this->pagehook . '_settings_page_boxes' , array( $this, 'general_settings' ), 0 );
247
  add_action( $this->pagehook . '_settings_page_boxes' , array( $this, 'sort_text' ), 0 );
248
+
249
  add_meta_box( 'genesis_simple_share_google_plus', __( 'Google+', 'genesis-simple-share' ), array( $this, 'google_plus' ), $this->pagehook, 'main' );
250
  add_meta_box( 'genesis_simple_share_facebook', __( 'Facebook', 'genesis-simple-share' ), array( $this, 'facebook' ), $this->pagehook, 'main' );
251
  add_meta_box( 'genesis_simple_share_twitter', __( 'Twitter', 'genesis-simple-share' ), array( $this, 'twitter' ), $this->pagehook, 'main' );
252
  add_meta_box( 'genesis_simple_share_pinterest', __( 'Pinterest', 'genesis-simple-share' ), array( $this, 'pinterest' ), $this->pagehook, 'main' );
253
  add_meta_box( 'genesis_simple_share_linkedin', __( 'Linkedin', 'genesis-simple-share' ), array( $this, 'linkedin' ), $this->pagehook, 'main' );
254
  add_meta_box( 'genesis_simple_share_stumbleupon', __( 'StumbleUpon', 'genesis-simple-share' ), array( $this, 'stumbleupon' ), $this->pagehook, 'main' );
255
+
256
+
257
+
258
  }
259
+
260
  /**
261
+ * Create General settings metabox output
262
+ *
263
+ *
264
+ * @since 0.1.0
265
+ *
266
+ */
267
  function general_settings() {
268
+
269
  $id = 'general';
270
+
271
+ ?>
272
+
273
+ <div class="wrap gss-clear">
274
+
275
  <table class="form-table">
276
  <tbody>
277
+
278
  <?php
279
+ do_action( 'genesis_simple_share_admin_table_before_rows' );
280
+
281
+ $this->select_field( $id . '_size', __( 'Icon Size', 'genesis-simple-share' ), array(
282
+ 'small' => __( 'Small Bar' , 'genesis-simple-share' ),
283
+ 'medium' => __( 'Medium Bar', 'genesis-simple-share' ),
284
+ 'tall' => __( 'Box' , 'genesis-simple-share' ),
285
+ ) );
286
+
287
+ $this->select_field( $id . '_appearance', __( 'Icon Appearance', 'genesis-simple-share' ), array(
288
+ 'outlined' => __( 'Outlined', 'genesis-simple-share' ),
289
+ 'filled' => __( 'Filled' , 'genesis-simple-share' ),
290
+ ) );
291
+
292
+ $this->position( $id );
293
+ $this->post_type_checkbox( $id );
294
+
295
+ do_action( 'genesis_simple_share_admin_table_after_rows' );
296
+ ?>
297
  </tbody>
298
  </table>
299
  </div>
300
+
301
  <?php
302
+
303
  }
304
+
305
  function live_preview() {
306
+ ?>
307
  <tr valign="top" class="share-preview-row">
308
  <th scope="row">Live Preview</th>
309
  <td>
310
  <?php
311
+
312
+ require_once( GENESIS_SIMPLE_SHARE_LIB . 'admin-icon-preview.php' );
313
+ genesis_share_icon_preview_output( 'preview' );
314
+
315
+ ?>
316
  </td>
317
  </tr>
318
  <?php
319
  }
320
+
321
  function sort_text() {
322
  printf( '<br /><br /><h3>%s</h3>', $this->sort_text );
323
  }
324
+
325
  /**
326
+ * Create Google+ settings metabox output
327
+ *
328
+ *
329
+ * @since 0.1.0
330
+ *
331
+ */
332
  function google_plus() {
333
+
334
  $id = 'googlePlus';
335
 
336
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
337
+
338
  //echo $this->sort_text;
339
+
340
  }
341
+
342
  /**
343
+ * Create Facebook settings metabox output
344
+ *
345
+ *
346
+ * @since 0.1.0
347
+ *
348
+ */
349
  function facebook() {
350
+
351
  $id = 'facebook';
352
+
353
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
354
+
355
  //echo $this->sort_text;
356
+
357
  }
358
+
359
  /**
360
+ * Create Twitter settings metabox output
361
+ *
362
+ *
363
+ * @since 0.1.0
364
+ *
365
+ */
366
  function twitter() {
367
+
368
  $id = 'twitter';
369
+
370
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
371
+
372
  ?><p>
373
  <label for="<?php echo $this->get_field_id( 'twitter_id' ); ?>"><?php _e( 'Enter Twitter ID for @via to be added to default tweet text:', 'genesis-simple-share' ); ?></label>
374
  <input type="text" name="<?php echo $this->get_field_name( 'twitter_id' ); ?>" id="<?php echo $this->get_field_id( 'twitter_id' ); ?>" value="<?php echo esc_attr( str_replace( '@', '', $this->get_field_value( 'twitter_id' ) ) ); ?>" size="27" />
375
  </p><?php
376
+
377
+
378
  }
379
+
380
  /**
381
+ * Create StumbleUpon settings metabox output
382
+ *
383
+ *
384
+ * @since 0.1.0
385
+ *
386
+ */
387
  function stumbleupon() {
388
+
389
  $id = 'stumbleupon';
390
+
391
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
392
+
393
  }
394
+
395
  /**
396
+ * Create Pinterest settings metabox output
397
+ *
398
+ *
399
+ * @since 0.1.0
400
+ *
401
+ */
402
  function pinterest() {
403
+
404
  $id = 'pinterest';
405
+
406
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
407
+
408
  ?><p>
409
  <label for="<?php echo $this->get_field_id( 'image_url' ); ?>"><?php _e( 'Enter Default Image URL if there is no image available in content being shared:', 'genesis-simple-share' ); ?></label>
410
  <input type="text" name="<?php echo $this->get_field_name( 'image_url' ); ?>" id="<?php echo $this->get_field_id( 'image_url' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'image_url' ) ); ?>" size="27" />
411
  </p><?php
412
+
413
  }
414
+
415
  /**
416
+ * Create Linkedin settings metabox output
417
+ *
418
+ *
419
+ * @since 0.1.0
420
+ *
421
+ */
422
  function linkedin() {
423
+
424
  $id = 'linkedin';
425
+
426
  $this->checkbox( $id , __( 'Use this button?', 'genesis-simple-share' ) );
427
 
428
  }
429
+
430
  /**
431
  * Outputs select field to select position for the icon
432
  *
433
  * @since 0.1.0
434
  *
435
  * @param string $id ID base to use when building select box.
436
+ *
437
  */
438
  function position( $id ){
439
+
440
  $this->select_field( $id . '_position', __( 'Icon Display Position' , 'genesis-simple-share' ), array(
441
+ 'off' => __( 'Select display position to enable icons.', 'genesis-simple-share' ),
442
+ 'before_content' => __( 'Before the Content' , 'genesis-simple-share' ),
443
+ 'after_content' => __( 'After the Content' , 'genesis-simple-share' ),
444
+ 'both' => __( 'Before and After the Content' , 'genesis-simple-share' ),
445
+ ) );
446
+
447
  }
448
+
449
  /**
450
  * Outputs select field
451
  *
458
  */
459
  function select_field( $id, $name, $options = array() ){
460
  $current = $this->get_field_value( $id );
461
+ ?>
462
  <tr valign="top">
463
  <th scope="row"><label for="<?php echo $this->get_field_id( $name ); ?>"><?php echo $name ?></label></th>
464
  <td><select name="<?php echo $this->get_field_name( $id ); ?>" class="<?php echo 'genesis_simple_share_' . $id; ?>" id="<?php echo $this->get_field_id( $id ); ?>">
465
  <?php
466
+ if ( ! empty( $options ) ) {
467
+ foreach ( (array) $options as $option => $title ) {
468
+
469
+ printf( '<option value="%s"%s>%s</option>',
470
+ esc_attr( $option ),
471
+ selected( $current, $option, false ),
472
+ esc_html( $title )
473
+ );
474
+
475
+ }
476
+ }
477
+ ?>
478
  </select></td>
479
  </tr><?php
480
  }
481
+
482
  /**
483
  * Outputs checkbox fields for public post types.
484
  *
488
  *
489
  */
490
  function post_type_checkbox( $id ){
491
+
492
  $post_types = get_post_types( array( 'public' => true, ) );
493
+
494
  printf( '<tr valign="top"><th scope="row">%s</th>', __( 'Enable on:', 'genesis-simple-share' ) );
495
+
496
  echo '<td>';
497
+
498
  foreach( $post_types as $post_type )
499
  $this->checkbox( $id . '_' . $post_type, $post_type );
500
+
501
  $this->checkbox( $id . '_show_archive', __( 'Show on Archive Pages', 'genesis-simple-share' ) );
502
+
503
  echo '</td></tr>';
504
+
505
  }
506
+
507
  /**
508
  * Outputs checkbox field.
509
  *
515
  */
516
  function checkbox( $id, $name ){
517
  printf( '<label for="%s"><input type="checkbox" name="%s" id="%s" value="1"%s /> %s </label> ',
518
+ $this->get_field_id( $id ),
519
+ $this->get_field_name( $id ),
520
+ $this->get_field_id( $id ),
521
+ checked( $this->get_field_value( $id ), 1, false ),
522
+ $name
523
  );
524
  echo '<br />';
525
  }
526
+
527
+
528
  }
529
 
530
  global $genesis_simple_share;
lib/css/admin.css CHANGED
@@ -22,11 +22,25 @@
22
  margin-bottom: 20px;
23
  }
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  .genesis_page_genesis_simple_share_settings .meta-box-sortables .postbox,
26
  .genesis_page_genesis_simple_share_settings .meta-box-sortables .sortable-placeholder {
27
- display: block;
28
  float: left;
29
- height: 240px;
30
  margin: 5px;
31
  width: 260px;
32
  }
22
  margin-bottom: 20px;
23
  }
24
 
25
+ #main-sortables {
26
+ display: -webkit-box;
27
+ display: -webkit-flex;
28
+ display: -ms-flexbox;
29
+ display: flex;
30
+ -webkit-flex-wrap: wrap;
31
+ -ms-flex-wrap: wrap;
32
+ flex-wrap: wrap;
33
+ -webkit-box-orient: horizontal;
34
+ -webkit-box-direction: normal;
35
+ -webkit-flex-direction: row;
36
+ -ms-flex-direction: row;
37
+ flex-direction: row;
38
+ }
39
+
40
  .genesis_page_genesis_simple_share_settings .meta-box-sortables .postbox,
41
  .genesis_page_genesis_simple_share_settings .meta-box-sortables .sortable-placeholder {
42
+ min-height: 240px;
43
  float: left;
 
44
  margin: 5px;
45
  width: 260px;
46
  }
lib/css/share.css CHANGED
@@ -358,12 +358,12 @@
358
  .share-outlined .stumbleupon .count:hover { border: 1px solid #eb4923; color: #eb4923; }
359
 
360
  .share-outlined.share-small .share,
361
- .share-outlined.share-medium .share { border-right: none !important; }
362
 
363
  .share-outlined.share-small .twitter .share,
364
- .share-outlined.share-medium .twitter .share { border-right: 1px solid #09b0ed !important; }
365
 
366
- .share-outlined.share-tall .share { border-top: none !important; }
367
 
368
  .share-outlined .twitter:hover .share,
369
  .share-outlined .twitter:hover .count { background: #09b0ed; }
358
  .share-outlined .stumbleupon .count:hover { border: 1px solid #eb4923; color: #eb4923; }
359
 
360
  .share-outlined.share-small .share,
361
+ .share-outlined.share-medium .share { border-right: none; }
362
 
363
  .share-outlined.share-small .twitter .share,
364
+ .share-outlined.share-medium .twitter .share { border-right: 1px solid #09b0ed; }
365
 
366
+ .share-outlined.share-tall .share { border-top: none; }
367
 
368
  .share-outlined .twitter:hover .share,
369
  .share-outlined .twitter:hover .count { background: #09b0ed; }
lib/sharrre/jquery.sharrre.js CHANGED
@@ -101,8 +101,8 @@
101
  googlePlus: "",
102
 
103
  //new FQL method by Sire
104
- facebook: "https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url=%27{url}%27&callback=?",
105
- //old method facebook: "//graph.facebook.com/?id={url}&callback=?",
106
  //facebook : "//api.ak.facebook.com/restserver.php?v=1.0&method=links.getStats&urls={url}&format=json"
107
 
108
  twitter: "//cdn.api.twitter.com/1/urls/count.json?url={url}&callback=?",
@@ -473,8 +473,8 @@
473
  count += parseInt(temp, 10);
474
  }
475
  //get the FB total count (shares, likes and more)
476
- else if(json.data && json.data.length > 0 && typeof json.data[0].total_count !== "undefined"){ //Facebook total count
477
- count += parseInt(json.data[0].total_count, 10);
478
  }
479
  else if(typeof json[0] !== "undefined"){ //Delicious
480
  count += parseInt(json[0].total_posts, 10);
101
  googlePlus: "",
102
 
103
  //new FQL method by Sire
104
+ //facebook: "https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url=%27{url}%27&callback=?",
105
+ facebook: "//graph.facebook.com/?id={url}&callback=?",
106
  //facebook : "//api.ak.facebook.com/restserver.php?v=1.0&method=links.getStats&urls={url}&format=json"
107
 
108
  twitter: "//cdn.api.twitter.com/1/urls/count.json?url={url}&callback=?",
473
  count += parseInt(temp, 10);
474
  }
475
  //get the FB total count (shares, likes and more)
476
+ else if( typeof json.share !== "undefined" && typeof json.share.share_count !== "undefined"){ //Facebook total count
477
+ count += parseInt(json.share.share_count, 10);
478
  }
479
  else if(typeof json[0] !== "undefined"){ //Delicious
480
  count += parseInt(json[0].total_posts, 10);
lib/sharrre/jquery.sharrre.min.js CHANGED
@@ -1,4 +1,4 @@
1
- ;(function($,window,document,undefined){var pluginName='sharrre',defaults={className:'sharrre',share:{googlePlus:false,facebook:false,twitter:false,digg:false,delicious:false,stumbleupon:false,linkedin:false,pinterest:false},shareTotal:0,template:'',title:'',url:document.location.href,text:document.title,urlCurl:'sharrre.php',count:{},total:0,shorterTotal:true,enableHover:true,enableCounter:true,enableTracking:false,hover:function(){},hide:function(){},click:function(){},render:function(){},buttons:{googlePlus:{url:'',urlCount:false,size:'medium',lang:'en-US',annotation:''},facebook:{url:'',urlCount:false,action:'like',layout:'button_count',width:'',send:'false',faces:'false',colorscheme:'',font:'',lang:'en_US'},twitter:{url:'',urlCount:false,count:'horizontal',hashtags:'',via:'',related:'',lang:'en'},digg:{url:'',urlCount:false,type:'DiggCompact'},delicious:{url:'',urlCount:false,size:'medium'},stumbleupon:{url:'',urlCount:false,layout:'1'},linkedin:{url:'',urlCount:false,counter:''},pinterest:{url:'',media:'',description:'',layout:'horizontal'}}},urlJson={googlePlus:"",facebook:"https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url=%27{url}%27&callback=?",twitter:"//cdn.api.twitter.com/1/urls/count.json?url={url}&callback=?",digg:"//services.digg.com/2.0/story.getInfo?links={url}&type=javascript&callback=?",delicious:'//feeds.delicious.com/v2/json/urlinfo/data?url={url}&callback=?',stumbleupon:"",linkedin:"",pinterest:"//api.pinterest.com/v1/urls/count.json?url={url}&callback=?"},loadButton={googlePlus:function(self){var sett=self.options.buttons.googlePlus;$(self.element).find('.buttons').append('<div class="button googleplus"><div class="g-plusone" data-size="'+sett.size+'" data-href="'+(sett.url!==''?sett.url:self.options.url)+'" data-annotation="'+sett.annotation+'"></div></div>');window.___gcfg={lang:self.options.buttons.googlePlus.lang};var loading=0;if(typeof gapi==='undefined'&&loading==0){loading=1;(function(){var po=document.createElement('script');po.type='text/javascript';po.async=true;po.src='//apis.google.com/js/plusone.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s);})();}
2
  else{gapi.plusone.go();}},facebook:function(self){var sett=self.options.buttons.facebook;$(self.element).find('.buttons').append('<div class="button facebook"><div id="fb-root"></div><div class="fb-like" data-href="'+(sett.url!==''?sett.url:self.options.url)+'" data-send="'+sett.send+'" data-layout="'+sett.layout+'" data-width="'+sett.width+'" data-show-faces="'+sett.faces+'" data-action="'+sett.action+'" data-colorscheme="'+sett.colorscheme+'" data-font="'+sett.font+'" data-via="'+sett.via+'"></div></div>');var loading=0;if(typeof FB==='undefined'&&loading==0){loading=1;(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}
3
  js=d.createElement(s);js.id=id;js.src='//connect.facebook.net/'+sett.lang+'/all.js#xfbml=1';fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));}
4
  else{FB.XFBML.parse();}},twitter:function(self){var sett=self.options.buttons.twitter;$(self.element).find('.buttons').append('<div class="button twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'+(sett.url!==''?sett.url:self.options.url)+'" data-count="'+sett.count+'" data-text="'+self.options.text+'" data-via="'+sett.via+'" data-hashtags="'+sett.hashtags+'" data-related="'+sett.related+'" data-lang="'+sett.lang+'">Tweet</a></div>');var loading=0;if(typeof twttr==='undefined'&&loading==0){loading=1;(function(){var twitterScriptTag=document.createElement('script');twitterScriptTag.type='text/javascript';twitterScriptTag.async=true;twitterScriptTag.src='//platform.twitter.com/widgets.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(twitterScriptTag,s);})();}
@@ -18,7 +18,7 @@ else{this.loadButtons();}
18
  $(this.element).hover(function(){if($(this).find('.buttons').length===0&&self.options.enableHover===true){self.loadButtons();}
19
  self.options.hover(self,self.options);},function(){self.options.hide(self,self.options);});$(this.element).click(function(){self.options.click(self,self.options);return false;});};Plugin.prototype.loadButtons=function(){var self=this;$(this.element).append('<div class="buttons"></div>');$.each(self.options.share,function(name,val){if(val==true){loadButton[name](self);if(self.options.enableTracking===true){tracking[name]();}}});};Plugin.prototype.getSocialJson=function(name){var self=this,count=0,url=urlJson[name].replace('{url}',encodeURIComponent(this.options.url));if('twitter'==name){self.options.hideCount=1;self.renderer();self.options.count[name]=0;self.rendererPerso();}else{self.options.hideCount=0;if(this.options.buttons[name].urlCount===true&&this.options.buttons[name].url!==''){url=urlJson[name].replace('{url}',this.options.buttons[name].url);}
20
  if(url!=''&&self.options.urlCurl!==''){$.getJSON(url,function(json){if(null!=json){if(typeof json.count!=="undefined"){var temp=json.count+'';temp=temp.replace('\u00c2\u00a0','');count+=parseInt(temp,10);}
21
- else if(json.data&&json.data.length>0&&typeof json.data[0].total_count!=="undefined"){count+=parseInt(json.data[0].total_count,10);}
22
  else if(typeof json[0]!=="undefined"){count+=parseInt(json[0].total_posts,10);}
23
  else if(typeof json[0]!=="undefined"){}
24
  self.options.count[name]=count;self.options.total+=count;self.renderer();self.rendererPerso();}
1
+ ;(function($,window,document,undefined){var pluginName='sharrre',defaults={className:'sharrre',share:{googlePlus:false,facebook:false,twitter:false,digg:false,delicious:false,stumbleupon:false,linkedin:false,pinterest:false},shareTotal:0,template:'',title:'',url:document.location.href,text:document.title,urlCurl:'sharrre.php',count:{},total:0,shorterTotal:true,enableHover:true,enableCounter:true,enableTracking:false,hover:function(){},hide:function(){},click:function(){},render:function(){},buttons:{googlePlus:{url:'',urlCount:false,size:'medium',lang:'en-US',annotation:''},facebook:{url:'',urlCount:false,action:'like',layout:'button_count',width:'',send:'false',faces:'false',colorscheme:'',font:'',lang:'en_US'},twitter:{url:'',urlCount:false,count:'horizontal',hashtags:'',via:'',related:'',lang:'en'},digg:{url:'',urlCount:false,type:'DiggCompact'},delicious:{url:'',urlCount:false,size:'medium'},stumbleupon:{url:'',urlCount:false,layout:'1'},linkedin:{url:'',urlCount:false,counter:''},pinterest:{url:'',media:'',description:'',layout:'horizontal'}}},urlJson={googlePlus:"",facebook:"//graph.facebook.com/?id={url}&callback=?",twitter:"//cdn.api.twitter.com/1/urls/count.json?url={url}&callback=?",digg:"//services.digg.com/2.0/story.getInfo?links={url}&type=javascript&callback=?",delicious:'//feeds.delicious.com/v2/json/urlinfo/data?url={url}&callback=?',stumbleupon:"",linkedin:"",pinterest:"//api.pinterest.com/v1/urls/count.json?url={url}&callback=?"},loadButton={googlePlus:function(self){var sett=self.options.buttons.googlePlus;$(self.element).find('.buttons').append('<div class="button googleplus"><div class="g-plusone" data-size="'+sett.size+'" data-href="'+(sett.url!==''?sett.url:self.options.url)+'" data-annotation="'+sett.annotation+'"></div></div>');window.___gcfg={lang:self.options.buttons.googlePlus.lang};var loading=0;if(typeof gapi==='undefined'&&loading==0){loading=1;(function(){var po=document.createElement('script');po.type='text/javascript';po.async=true;po.src='//apis.google.com/js/plusone.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s);})();}
2
  else{gapi.plusone.go();}},facebook:function(self){var sett=self.options.buttons.facebook;$(self.element).find('.buttons').append('<div class="button facebook"><div id="fb-root"></div><div class="fb-like" data-href="'+(sett.url!==''?sett.url:self.options.url)+'" data-send="'+sett.send+'" data-layout="'+sett.layout+'" data-width="'+sett.width+'" data-show-faces="'+sett.faces+'" data-action="'+sett.action+'" data-colorscheme="'+sett.colorscheme+'" data-font="'+sett.font+'" data-via="'+sett.via+'"></div></div>');var loading=0;if(typeof FB==='undefined'&&loading==0){loading=1;(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}
3
  js=d.createElement(s);js.id=id;js.src='//connect.facebook.net/'+sett.lang+'/all.js#xfbml=1';fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));}
4
  else{FB.XFBML.parse();}},twitter:function(self){var sett=self.options.buttons.twitter;$(self.element).find('.buttons').append('<div class="button twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'+(sett.url!==''?sett.url:self.options.url)+'" data-count="'+sett.count+'" data-text="'+self.options.text+'" data-via="'+sett.via+'" data-hashtags="'+sett.hashtags+'" data-related="'+sett.related+'" data-lang="'+sett.lang+'">Tweet</a></div>');var loading=0;if(typeof twttr==='undefined'&&loading==0){loading=1;(function(){var twitterScriptTag=document.createElement('script');twitterScriptTag.type='text/javascript';twitterScriptTag.async=true;twitterScriptTag.src='//platform.twitter.com/widgets.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(twitterScriptTag,s);})();}
18
  $(this.element).hover(function(){if($(this).find('.buttons').length===0&&self.options.enableHover===true){self.loadButtons();}
19
  self.options.hover(self,self.options);},function(){self.options.hide(self,self.options);});$(this.element).click(function(){self.options.click(self,self.options);return false;});};Plugin.prototype.loadButtons=function(){var self=this;$(this.element).append('<div class="buttons"></div>');$.each(self.options.share,function(name,val){if(val==true){loadButton[name](self);if(self.options.enableTracking===true){tracking[name]();}}});};Plugin.prototype.getSocialJson=function(name){var self=this,count=0,url=urlJson[name].replace('{url}',encodeURIComponent(this.options.url));if('twitter'==name){self.options.hideCount=1;self.renderer();self.options.count[name]=0;self.rendererPerso();}else{self.options.hideCount=0;if(this.options.buttons[name].urlCount===true&&this.options.buttons[name].url!==''){url=urlJson[name].replace('{url}',this.options.buttons[name].url);}
20
  if(url!=''&&self.options.urlCurl!==''){$.getJSON(url,function(json){if(null!=json){if(typeof json.count!=="undefined"){var temp=json.count+'';temp=temp.replace('\u00c2\u00a0','');count+=parseInt(temp,10);}
21
+ else if(typeof json.share!=="undefined"&&typeof json.share.share_count!=="undefined"){count+=parseInt(json.share.share_count, 10);}
22
  else if(typeof json[0]!=="undefined"){count+=parseInt(json[0].total_posts,10);}
23
  else if(typeof json[0]!=="undefined"){}
24
  self.options.count[name]=count;self.options.total+=count;self.renderer();self.rendererPerso();}
plugin.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI:
5
 
6
  Description: A simple sharing plugin using the Share script.
7
 
8
- Version: 1.0.8
9
 
10
  Author: Rainmaker Digital LLC
11
  Author URI: http://www.copyblogger.com
5
 
6
  Description: A simple sharing plugin using the Share script.
7
 
8
+ Version: 1.0.9
9
 
10
  Author: Rainmaker Digital LLC
11
  Author URI: http://www.copyblogger.com
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: nathanrice, studiopress, wpmuguru, nick_thegeek, bgardner
3
  Tags: genesis, share, share buttons, facebook, twitter, pinterest, stumbleupon, linkedin, social
4
  Requires at least: 3.7
5
- Tested up to: 4.5.2
6
- Stable tag: 1.0.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -31,6 +31,9 @@ https://github.com/copyblogger/genesis-simple-share/wiki/Usage-Tips
31
 
32
  == Changelog ==
33
 
 
 
 
34
  = 1.0.8 =
35
  * Fixed: LinkedIn button works with recent change to LinkedIn API. Note, the button now uses the sharrre.php file to fetch results, which can cause problems accessing share counts with some hosts depending on settings.
36
 
2
  Contributors: nathanrice, studiopress, wpmuguru, nick_thegeek, bgardner
3
  Tags: genesis, share, share buttons, facebook, twitter, pinterest, stumbleupon, linkedin, social
4
  Requires at least: 3.7
5
+ Tested up to: 4.6
6
+ Stable tag: 1.0.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
31
 
32
  == Changelog ==
33
 
34
+ = 1.0.9 =
35
+ * Fixed: Facebook count continues to work after recent Facebook API changes.
36
+
37
  = 1.0.8 =
38
  * Fixed: LinkedIn button works with recent change to LinkedIn API. Note, the button now uses the sharrre.php file to fetch results, which can cause problems accessing share counts with some hosts depending on settings.
39