Skip to content

Commit

Permalink
bugfix Social Share Networks
Browse files Browse the repository at this point in the history
  • Loading branch information
fovoc committed Jul 22, 2014
1 parent f12d828 commit bb8be83
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions framework/bootstrap/includes/class-Shoestrap_Social.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ function get_social_shares() {

$networks = null;

if ( isset( $nets['fb'] ) ) {
if ( $nets['fb'] == 1 ) {
$networks['facebook'] = array(
'icon' => 'facebook',
'fullname' => 'Facebook',
'url' => 'http://www.facebook.com/sharer.php?u=' . get_permalink() . '&title=' . urlencode( html_entity_decode( get_the_title(),ENT_QUOTES,'UTF-8' ) )
);
}

if ( isset( $nets['tw'] ) ) {
if ( $nets['tw'] == 1 ) {
$networks['twitter'] = array(
'icon' => 'twitter',
'fullname' => 'Twitter',
Expand All @@ -120,47 +120,47 @@ function get_social_shares() {
}
}

if ( isset( $nets['rd'] ) ) {
if ( $nets['rd'] == 1 ) {
$networks['reddit'] = array(
'icon' => 'reddit',
'fullname' => 'Reddit',
'url' => 'http://reddit.com/submit?url=' .get_permalink() . '&title=' . urlencode( html_entity_decode( strip_tags( get_the_title() ),ENT_QUOTES,'UTF-8' ) )
);
}

if ( isset( $nets['li'] ) ) {
if ( $nets['li'] == 1 ) {
$networks['linkedin'] = array(
'icon' => 'linkedin',
'fullname' => 'LinkedIn',
'url' => 'http://linkedin.com/shareArticle?mini=true&url=' .get_permalink() . '&title=' . urlencode( html_entity_decode( strip_tags( get_the_title() ),ENT_QUOTES,'UTF-8' ) )
);
}

if ( isset( $nets['gp'] ) ) {
if ( $nets['gp'] == 1 ) {
$networks['googleplus'] = array(
'icon' => 'googleplus',
'fullname' => 'Google+',
'url' => 'https://plus.google.com/share?url=' . get_permalink()
);
}

if ( isset( $nets['tu'] ) ) {
if ( $nets['tu'] == 1 ) {
$networks['tumblr'] = array(
'icon' => 'tumblr',
'fullname' => 'Tumblr',
'url' => 'http://www.tumblr.com/share/link?url=' . urlencode( get_permalink() ) . '&name=' . urlencode( html_entity_decode( strip_tags( get_the_title() ),ENT_QUOTES,'UTF-8' ) ) . "&description=" . urlencode( get_the_excerpt() )
);
}

if ( isset( $nets['pi'] ) ) {
if ( $nets['pi'] == 1 ) {
$networks['pinterest'] = array(
'icon' => 'pinterest',
'fullname' => 'Pinterest',
'url' => 'http://pinterest.com/pin/create/button/?url=' . get_permalink()
);
}

if ( isset( $nets['em'] ) ) {
if ( $nets['em'] == 1 ) {
$networks['email'] = array(
'icon' => 'envelope',
'fullname' => 'Email',
Expand Down

0 comments on commit bb8be83

Please sign in to comment.