debugging
-
can anybody debug the following coding
function kopa_social_sharing_links() {
$display_facebook_sharing_button = kopa_get_option(‘kopa_theme_options_post_sharing_button_facebook’, ‘show’);
$display_twitter_sharing_button = kopa_get_option(‘kopa_theme_options_post_sharing_button_twitter’, ‘show’);
$display_google_sharing_button = kopa_get_option(‘kopa_theme_options_post_sharing_button_google’, ‘show’);
$display_linkedin_sharing_button = kopa_get_option(‘kopa_theme_options_post_sharing_button_linkedin’, ‘show’);
$display_pinterest_sharing_button = kopa_get_option(‘kopa_theme_options_post_sharing_button_pinterest’, ‘show’);if ( $display_facebook_sharing_button == ‘show’ ||
$display_twitter_sharing_button == ‘show’ ||
$display_google_sharing_button == ‘show’ ||
$display_linkedin_sharing_button == ‘show’ ||
$display_pinterest_sharing_button == ‘show’ ) :
?><div class=”link-social-2″>
<?php if ($display_facebook_sharing_button == ‘show’) :
$facebook_url = ‘https://www.facebook.com/share.php?u=’ . get_permalink();
?>
” title=”Facebook” target=”_blank”><i class=”fa fa-facebook”></i><?php echo __(‘ Facebook ‘, kopa_get_domain()); ?>
<?php endif; ?><?php if ($display_twitter_sharing_button == ‘show’) :
$twitter_url = ‘https://twitter.com/home?status=’ . get_the_title().’:+’ . get_permalink();
?>
” title=”Twitter” target=”_blank”><i class=”fa fa-twitter”></i><?php echo __(‘ Twitter ‘, kopa_get_domain()); ?>
<?php endif; ?><?php if ($display_google_sharing_button == ‘show’) :
$gplus_url = ‘https://plus.google.com/share?url=’ . get_permalink();
?>
” title=”Google” target=”_blank”><i class=”fa fa-google-plus”></i><?php echo __(‘ Google +’, kopa_get_domain()); ?>
<?php endif; ?><?php if ($display_linkedin_sharing_button == ‘show’) :
$linkedin_url = ‘”https://www.linkedin.com/shareArticle??mini=true&url=’ . get_permalink();
?>
” title=”Linkedin”><i class=”fa fa-linkedin”></i><?php echo __(‘ Linkedin’, kopa_get_domain()); ?>
<?php endif; ?><?php if ($display_pinterest_sharing_button == ‘show’) :
$pinterest_url = ‘https://pinterest.com/pin/create/button/?url=’ . get_permalink();
?>
” title=”Pinterest”><i class=”fa fa-pinterest”></i><?php echo __(‘ Pinterest’, kopa_get_domain()); ?>
<?php endif; ?></div>
<?php
endif;
}
- The topic ‘debugging’ is closed to new replies.