";
echo "";
}
add_action('wp_head', 'uzzal_head_materials');
// Function with sharing links
function ar_simple_social_share($content){
$img_url = plugins_url()."/".IMG_DIR;
$share_url = get_permalink();
$share_title = get_the_title();
$content .= '
- '.get_option("ar_title_id", "Share on Social Netwrorks.").'
';
if(get_option('show_facebook', 'true') == "true"){
$content .= '
';
}
if(get_option('show_twitter', 'true') == "true"){
$content .= '
';
}
if(get_option('show_pinterest', 'true') == "true"){
$content .= '
';
}
if(get_option('show_google_plus', 'true') == "true"){
$content .= '
';
}
if(get_option('show_reddit', 'true') == "true"){
$content .= '
';
}
if(get_option('show_stumbleupon', 'true') == "true"){
$content .= '
';
}
$content .= '
';
return $content;
}
if(get_option('to_excerpt', 'true') == "true"){
add_filter('excerpt_more', 'ar_simple_social_share');
}
function include_in_post_content(){
if(get_option('to_single', 'true') == "true"){
if(is_single()){
add_filter('the_content', 'ar_simple_social_share');
} else {
echo '';
}
}
}
add_action('template_redirect','include_in_post_content');
function include_in_page_content(){
if(get_option('to_page', 'true') == "true"){
if(is_page()){
add_filter('the_content', 'ar_simple_social_share');
} else {
echo '';
}
}
}
add_action('template_redirect','include_in_page_content');
// Create The Shortcode
add_shortcode('ar-simple-social-share', 'ar_simple_social_share');
?>