1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php /** * Social buttons class. */
$list_social = array( 'facebook', 'twitter', 'google_plus', 'pinterest', 'linkedin', 'tumblr', 'reddit', 'stumbleupon','whatsapp','telegram','email','digg','vk','line','viber' );
$option_prefix = 'penci_hide_single_share_';
foreach ( $list_social as $k => $item ) { if ( penci_get_setting( $option_prefix . $item ) ) { unset( $list_social[ $k ] ); } }
$class_social_buttons = 'penci-social-buttons penci-social-share-footer';
if ( is_single() && penci_get_theme_mod( 'penci_single_soshare_center' ) || is_page() && penci_get_theme_mod( 'penci_page_soshare_center' ) ) { $class_social_buttons .= ' penci-social-share-center'; }
echo '<span class="' . $class_social_buttons . '">';
if ( ! penci_get_setting( $option_prefix . 'text' ) ) { echo '<span class="penci-social-share-text">' . penci_get_tran_setting( 'penci-social-share-text' ) . '</span>'; }
// Like if ( ! penci_get_setting( $option_prefix . 'post_like' ) && function_exists( 'penci_get_post_like_link' ) ) { penci_get_post_like_link( get_the_ID(), true, 'single-like-button penci-social-item like' ); }
$total_share = penci_get_theme_mod( $option_prefix . 'total_share' );
if( $total_share ){ $list_social[''] = 'total_share'; }
Penci_Social_Share::get_social_share( $list_social, true, $total_share );
echo '</span>';
|