";
echo "
";
}
add_action('wp_head', 'uzzal_head_materials');
// Function with sharing links
function ar_simple_social_share($content){
$style= get_option('s-style', '');
$img_url = plugins_url()."/".IMG_DIR."/style-$style";
$blog_title = get_bloginfo("name");
$share_url = get_permalink();
$share_title = get_the_title();
$effect = get_option('effect', '');
if($effect == "Hover"){
$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 .= '
';
}
if(get_option('show_digg', 'true') == "true"){
$content .= '
';
}
if(get_option('show_tumblr', 'true') == "true"){
$content .= '
';
}
if(get_option('show_linkedin', 'true') == "true"){
$content .= '
';
}
if(get_option('show_blogger', 'true') == "true"){
$content .= '
';
}
if(get_option('show_delicious', 'true') == "true"){
$content .= '
';
}
$content .= '
';
} elseif( $effect == "Direct"){
$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 .= '
';
}
if(get_option('show_digg', 'true') == "true"){
$content .= '
';
}
if(get_option('show_tumblr', 'true') == "true"){
$content .= '
';
}
if(get_option('show_linkedin', 'true') == "true"){
$content .= '
';
}
if(get_option('show_blogger', 'true') == "true"){
$content .= '
';
}
if(get_option('show_delicious', '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');
/* Facebook Like Box Addon Shortcode */
function ar_facebook_likebox( $atts ) {
extract( shortcode_atts( array(
'username' => 'arwpthemes',
'width' => '250',
'height' => '350',
'colorscheme' => 'light',
'show_faces' => 'true',
'show_stream' => 'true',
'show_header' => 'true',
'show_border' => 'true',
'appid' => '481092295342350',
), $atts ) );
return '';
}
add_shortcode( 'ar-fblike', 'ar_facebook_likebox' );
// Just end of the plugin :D
//This plugin was coded by Abdul Awal Uzzal. Catch me at facebook: http://facebook.com/webdesignerbd
//Thanks for using this plugin
?>