function ssba_facebook($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) { // facebook share link $htmlShareButtons = '<a data-site="" class="ssba_facebook_share" href="http://www.facebook.com/sharer.php?u=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow"' : NULL) . '>'; // if not using custom if ($arrSettings['ssba_image_set'] != 'custom') { // show selected ssba image $htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/facebook.png" title="Facebook" class="ssba ssba-img" alt="Share on Facebook" />'; } else { // show custom image $htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_facebook'] . '" title="Facebook" class="ssba ssba-img" alt="Share on Facebook" />'; } // close href $htmlShareButtons .= '</a>'; // if show share count is set to Y if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) { $htmlShareButtons .= '<span class="ssba_sharecount">' . getFacebookShareCount($urlCurrentPage) . '</span>'; // add to our db updateSharedCount('facebook', $urlCurrentPage); } // return share buttons return $htmlShareButtons; }
function ssba_facebook($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) { // facebook share link $htmlShareButtons .= '<a id="ssba_facebook_share" href="http://www.facebook.com/sharer.php?u=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? 'target="_blank"' : NULL) . '>'; // if not using custom if ($arrSettings['ssba_image_set'] != 'custom') { // show selected ssba image $htmlShareButtons .= '<img title="Facebook" class="ssba" alt="Facebook" src="' . WP_PLUGIN_URL . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/facebook.png" />'; } else { // show custom image $htmlShareButtons .= '<img title="Facebook" class="ssba" src="' . $arrSettings['ssba_custom_facebook'] . '" alt="Facebook" />'; } // close href $htmlShareButtons .= '</a>'; // if show share count is set to Y if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) { $htmlShareButtons .= '<span class="ssba_sharecount">' . getFacebookShareCount($urlCurrentPage) . '</span>'; } // return share buttons return $htmlShareButtons; }
function ssba_facebook($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) { // if the sharethis terms have been accepted if ($arrSettings['accepted_sharethis_terms'] == 'Y' && $arrSettings['facebook_app_id'] != '') { // facebook share link $htmlShareButtons = '<a data-site="" data-facebook="mobile" class="ssba_facebook_share" data-href="' . $urlCurrentPage . '" href="https://www.facebook.com/dialog/share?app_id=' . $arrSettings['facebook_app_id'] . '&display=popup&href=' . $urlCurrentPage . '&redirect_uri=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow"' : NULL) . '>'; } else { // facebook share link $htmlShareButtons = '<a data-site="" class="ssba_facebook_share" href="http://www.facebook.com/sharer.php?u=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow"' : NULL) . '>'; } // if not using custom if ($arrSettings['ssba_image_set'] != 'custom') { // show selected ssba image $htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/facebook.png" title="Facebook" class="ssba ssba-img" alt="Share on Facebook" />'; } else { // show custom image $htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_facebook'] . '" title="Facebook" class="ssba ssba-img" alt="Share on Facebook" />'; } // close href $htmlShareButtons .= '</a>'; // if show share count is set to Y if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) { // get and add facebook share count $htmlShareButtons .= '<span class="ssba_sharecount">' . getFacebookShareCount($urlCurrentPage, $arrSettings) . '</span>'; } // return share buttons return $htmlShareButtons; }
"><?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago'; ?> </a><li></ul> <h2><a href="<?php echo $post_link; ?> "><?php echo get_the_title($post_id); ?> </a></h2> <ul class="nav nav-align-right nav-padding-none interative"><li><a href="<?php echo $post_link; ?> "><?php echo getTwitterShareCount($post_link) + getFacebookShareCount($post_link); ?> <?php _E('Shares'); ?> </a></li><li class="divider">/</li><li><a href="<?php echo get_permalink(get_the_ID()); ?> "><?php echo getPostViews(get_the_ID()); ?> </a></li><li class="divider">/</li><li><a href="<?php echo $post_link; ?> "><?php echo get_comments_number();
/** * Create Facebook Share Button **/ function sssp_facebook($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) { $var_btn_cls = $booShowShareCount ? 's3d facebook' : 's3d facebook no-counter'; $htmlShareButtons = '<a class="' . $var_btn_cls . '" href="http://www.facebook.com/sharer.php?u=' . $urlCurrentPage . '" ' . ($arrSettings['sssp_share_new_window'] == 'yes' ? ' target="_blank" ' : NULL) . ($arrSettings['sssp_rel_nofollow'] == 'yes' ? ' rel="nofollow"' : NULL) . '>'; $htmlShareButtons .= '<span><i class="fa fa-facebook"></i></span><span class="counter">'; if ($booShowShareCount) { $htmlShareButtons .= '' . number_format(getFacebookShareCount($urlCurrentPage)) . ''; } $htmlShareButtons .= '</span></a>'; return $htmlShareButtons; }
} ?> <?php } ?> </div> <h1 class="story-title"><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h1> <ul class="nav nav-align-right nav-interative-social"> <li class="hidden-xs social-share-count"><span><?php echo getRedditShareCount(get_permalink()) + getPinterestShareCount(get_permalink()) + getTwitterShareCount(get_permalink()) + getFacebookShareCount(get_permalink()); ?> </span> <b>Shares</b></li> <li class="social-fb"><a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?> " target='_blank'><span class="fa fa-facebook"></span><span class="hidden-xs"> like</span></a></li> <li class="social-twitter"><a href="https://twitter.com/intent/tweet?url=<?php the_permalink(); ?> " target='_blank'><span class="fa fa-twitter"></span><span class="hidden-xs"> tweet</span></a></li> <li class="social-reddit"><a href="http://www.reddit.com/submit?url=<?php the_permalink(); ?> " target='_blank'><span class="fa fa-reddit"></span><span class="hidden-xs"> submit</span></a></li> <li class="social-pinterest"><a href="http://www.pinterest.com/pin/create/button/?url=<?php