Social Media Share Buttons | MashShare - Version 3.1.1

Version Description

  • Fix: When using shortcode [mashshare] without an "services" argument the number of large buttons is wrong.
Download this release

Release Info

Developer ReneHermi
Plugin Icon 128x128 Social Media Share Buttons | MashShare
Version 3.1.1
Comparing to
See all releases

Code changes from version 3.1.0 to 3.1.1

Files changed (3) hide show
  1. includes/template-functions.php +10 -5
  2. mashshare.php +2 -2
  3. readme.txt +4 -1
includes/template-functions.php CHANGED
@@ -543,8 +543,7 @@ function mashshareShortcodeShow( $args ) {
543
  //!empty($mashsb_options['visible_services']) ? $visible_services = $mashsb_options['visible_services'] : $visible_services = 1;
544
  //$sharecount_title = !empty( $mashsb_options['sharecount_title'] ) ? $mashsb_options['sharecount_title'] : __( 'SHARES', 'mashsb' );
545
 
546
- $services = !empty( $mashsb_options['visible_services'] ) ? $mashsb_options['visible_services'] : 1;
547
- $visible_services = ($services === 'all') ? 'all' : ($services + 1); // plus 1 to get networks correct counted (array's starting counting from zero)
548
 
549
  $sharecount = '';
550
 
@@ -555,12 +554,18 @@ function mashshareShortcodeShow( $args ) {
555
  'cache' => '3600',
556
  'shares' => 'true',
557
  'buttons' => 'true',
558
- 'services' => $visible_services + 1, //default is by admin option - plus 1 because array starts counting from zero
559
  'align' => 'left',
560
  'text' => '', // $text
561
  'url' => '' // $url
562
  ), $args ) );
563
-
 
 
 
 
 
 
564
  // Define custom url var to share
565
  $mashsb_custom_url = empty( $url ) ? mashsb_get_url() : $url;
566
 
@@ -580,7 +585,7 @@ function mashshareShortcodeShow( $args ) {
580
  '<div class="mashsb-box">'
581
  . $sharecount .
582
  '<div class="mashsb-buttons">'
583
- . mashsb_getNetworks( true, $services ) .
584
  '</div></div>
585
  <div style="clear:both;"></div>'
586
  . mashsb_subscribe_content()
543
  //!empty($mashsb_options['visible_services']) ? $visible_services = $mashsb_options['visible_services'] : $visible_services = 1;
544
  //$sharecount_title = !empty( $mashsb_options['sharecount_title'] ) ? $mashsb_options['sharecount_title'] : __( 'SHARES', 'mashsb' );
545
 
546
+
 
547
 
548
  $sharecount = '';
549
 
554
  'cache' => '3600',
555
  'shares' => 'true',
556
  'buttons' => 'true',
557
+ 'services' => '0', //default is by admin option - plus 1 because array starts counting from zero
558
  'align' => 'left',
559
  'text' => '', // $text
560
  'url' => '' // $url
561
  ), $args ) );
562
+
563
+ // Visible services
564
+ //$services = !empty( $mashsb_options['visible_services'] ) ? $mashsb_options['visible_services'] : 0;
565
+ //$visible_services = ($services === 'all') ? 'all' : ($services + 1); // plus 1 to get networks correct counted (array's starting counting from zero)
566
+ $count_services = !empty($services) ? $services : 0;
567
+
568
+
569
  // Define custom url var to share
570
  $mashsb_custom_url = empty( $url ) ? mashsb_get_url() : $url;
571
 
585
  '<div class="mashsb-box">'
586
  . $sharecount .
587
  '<div class="mashsb-buttons">'
588
+ . mashsb_getNetworks( true, $count_services ) .
589
  '</div></div>
590
  <div style="clear:both;"></div>'
591
  . mashsb_subscribe_content()
mashshare.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Mashshare is a Share functionality inspired by the the great website Mashable for Facebook and Twitter. More networks available.
7
  * Author: René Hermenau
8
  * Author URI: https://www.mashshare.net
9
- * Version: 3.1.0
10
  * Text Domain: mashsb
11
  * Domain Path: languages
12
  * Credits: Thanks go to Pippin Williamson and the edd team. When we started with Mashshare we decided to use the EDD code base and
@@ -37,7 +37,7 @@ if( !defined( 'ABSPATH' ) )
37
 
38
  // Plugin version
39
  if( !defined( 'MASHSB_VERSION' ) ) {
40
- define( 'MASHSB_VERSION', '3.1.0' );
41
  }
42
 
43
  // Debug mode
6
  * Description: Mashshare is a Share functionality inspired by the the great website Mashable for Facebook and Twitter. More networks available.
7
  * Author: René Hermenau
8
  * Author URI: https://www.mashshare.net
9
+ * Version: 3.1.1
10
  * Text Domain: mashsb
11
  * Domain Path: languages
12
  * Credits: Thanks go to Pippin Williamson and the edd team. When we started with Mashshare we decided to use the EDD code base and
37
 
38
  // Plugin version
39
  if( !defined( 'MASHSB_VERSION' ) ) {
40
+ define( 'MASHSB_VERSION', '3.1.1' );
41
  }
42
 
43
  // Debug mode
readme.txt CHANGED
@@ -9,7 +9,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: Share buttons, Social Sharing, social media, Facebook, Twitter, Subscribe, Traffic posts, pages, widget, social share buttons, analytics, email
10
  Requires at least: 3.6+
11
  Tested up to: 4.5.2
12
- Stable tag: 3.1.0
13
 
14
  Social Media Share Buttons for Twitter, Facebook and other social networks. Highly customizable Social Media ecosystem
15
 
@@ -317,6 +317,9 @@ Read here more FAQ: [https://www.mashshare.net/faq/](https://www.mashshare.net/f
317
 
318
  == Changelog ==
319
 
 
 
 
320
  = 3.1.0 =
321
  * Fix: Undefined var $mashsb_options
322
  * Fix: Default caching method async cache not working after update 2.5 > 3.x when settings were not saved manually
9
  Tags: Share buttons, Social Sharing, social media, Facebook, Twitter, Subscribe, Traffic posts, pages, widget, social share buttons, analytics, email
10
  Requires at least: 3.6+
11
  Tested up to: 4.5.2
12
+ Stable tag: 3.1.1
13
 
14
  Social Media Share Buttons for Twitter, Facebook and other social networks. Highly customizable Social Media ecosystem
15
 
317
 
318
  == Changelog ==
319
 
320
+ = 3.1.1 =
321
+ * Fix: When using shortcode [mashshare] without an "services" argument the number of large buttons is wrong.
322
+
323
  = 3.1.0 =
324
  * Fix: Undefined var $mashsb_options
325
  * Fix: Default caching method async cache not working after update 2.5 > 3.x when settings were not saved manually