From bb8be830987481807c9a1f4689f4c71d65fc8909 Mon Sep 17 00:00:00 2001 From: fovoc Date: Tue, 22 Jul 2014 10:13:39 +0300 Subject: [PATCH] bugfix Social Share Networks http://shoestrap.org/forums/topic/social-share/ --- .../includes/class-Shoestrap_Social.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/framework/bootstrap/includes/class-Shoestrap_Social.php b/framework/bootstrap/includes/class-Shoestrap_Social.php index 50901f3b6e..67cf421ba3 100755 --- a/framework/bootstrap/includes/class-Shoestrap_Social.php +++ b/framework/bootstrap/includes/class-Shoestrap_Social.php @@ -97,7 +97,7 @@ function get_social_shares() { $networks = null; - if ( isset( $nets['fb'] ) ) { + if ( $nets['fb'] == 1 ) { $networks['facebook'] = array( 'icon' => 'facebook', 'fullname' => 'Facebook', @@ -105,7 +105,7 @@ function get_social_shares() { ); } - if ( isset( $nets['tw'] ) ) { + if ( $nets['tw'] == 1 ) { $networks['twitter'] = array( 'icon' => 'twitter', 'fullname' => 'Twitter', @@ -120,7 +120,7 @@ function get_social_shares() { } } - if ( isset( $nets['rd'] ) ) { + if ( $nets['rd'] == 1 ) { $networks['reddit'] = array( 'icon' => 'reddit', 'fullname' => 'Reddit', @@ -128,7 +128,7 @@ function get_social_shares() { ); } - if ( isset( $nets['li'] ) ) { + if ( $nets['li'] == 1 ) { $networks['linkedin'] = array( 'icon' => 'linkedin', 'fullname' => 'LinkedIn', @@ -136,7 +136,7 @@ function get_social_shares() { ); } - if ( isset( $nets['gp'] ) ) { + if ( $nets['gp'] == 1 ) { $networks['googleplus'] = array( 'icon' => 'googleplus', 'fullname' => 'Google+', @@ -144,7 +144,7 @@ function get_social_shares() { ); } - if ( isset( $nets['tu'] ) ) { + if ( $nets['tu'] == 1 ) { $networks['tumblr'] = array( 'icon' => 'tumblr', 'fullname' => 'Tumblr', @@ -152,7 +152,7 @@ function get_social_shares() { ); } - if ( isset( $nets['pi'] ) ) { + if ( $nets['pi'] == 1 ) { $networks['pinterest'] = array( 'icon' => 'pinterest', 'fullname' => 'Pinterest', @@ -160,7 +160,7 @@ function get_social_shares() { ); } - if ( isset( $nets['em'] ) ) { + if ( $nets['em'] == 1 ) { $networks['email'] = array( 'icon' => 'envelope', 'fullname' => 'Email',