C:\xampp\htdocs\landing\wp-content\updraft\plugins-old\penci-pennews-amp\templates\social-share.php


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
<?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 'penciamp_hide_share_';

foreach ( 
$list_social as $k => $item ) {
    if ( 
penci_amp_get_setting$option_prefix $item ) ) {
        unset( 
$list_social$k ] );
    }
}
if( empty( 
$list_social ) ) {
    return;
}

echo 
'<span class="penci-social-buttons penci-social-share-footer">';
echo 
'<span class="penci-social-share-text">' penci_amp_get_setting'penci-social-share-text' ) . '</span>';
$link     get_permalink( );
$text     get_the_title();
$img_link get_the_post_thumbnail_url();


Penci_AMP_Social_Share::get_social_share$list_social );

echo 
'</span>';
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586