Current Path : /var/test/www/html/37thanniversary/wp-content/themes/crowdngo/template-parts/ |
Current File : /var/test/www/html/37thanniversary/wp-content/themes/crowdngo/template-parts/sharebox.php |
<?php global $post; $args = array( 'position' => 'top', 'animation' => 'true' ); ?> <div class="apus-social-share"> <div class="bo-social-icons bo-sicolor social-radius-rounded"> <span class="title"><?php echo esc_html__('Share Link:','crowdngo'); ?> </span> <?php if ( crowdngo_get_config('facebook_share', 1) ): ?> <a class="bo-social-facebook" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" href="http://www.facebook.com/sharer.php?s=100&p[url]=<?php the_permalink(); ?>&p[title]=<?php the_title(); ?>" target="_blank" title="<?php esc_attr_e('Share on facebook', 'crowdngo'); ?>"> <span class="bo-social-text"><?php echo esc_html__('facebook','crowdngo'); ?></span> <i class="fa fa-facebook"></i> </a> <?php endif; ?> <?php if ( crowdngo_get_config('twitter_share', 1) ): ?> <a class="bo-social-twitter" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" href="http://twitter.com/home?status=<?php the_title(); ?> <?php the_permalink(); ?>" target="_blank" title="<?php esc_attr_e('Share on Twitter', 'crowdngo'); ?>"> <span class="bo-social-text"><?php echo esc_html__('twitter','crowdngo'); ?></span> <i class="fa fa-twitter"></i> </a> <?php endif; ?> <?php if ( crowdngo_get_config('linkedin_share', 1) ): ?> <a class="bo-social-linkedin" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" href="http://linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" target="_blank" title="<?php esc_attr_e('Share on LinkedIn', 'crowdngo'); ?>"> <span class="bo-social-text"><?php echo esc_html__('linkedin','crowdngo'); ?></span> <i class="fa fa-linkedin"></i> </a> <?php endif; ?> <?php if ( crowdngo_get_config('tumblr_share', 1) ): ?> <a class="bo-social-tumblr" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" href="http://www.tumblr.com/share/link?url=<?php echo urlencode(get_permalink()); ?>&name=<?php echo urlencode($post->post_title); ?>&description=<?php echo urlencode(get_the_excerpt()); ?>" target="_blank" title="<?php esc_attr_e('Share on Tumblr', 'crowdngo'); ?>"> <span class="bo-social-text"><?php echo esc_html__('tumblr','crowdngo'); ?></span> <i class="fa fa-tumblr"></i> </a> <?php endif; ?> <?php if ( crowdngo_get_config('google_share', 1) ): ?> <a class="bo-social-google" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" href="https://plus.google.com/share?url=<?php the_permalink(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" target="_blank" title="<?php esc_attr_e('Share on Google plus', 'crowdngo'); ?>"> <span class="bo-social-text"><?php echo esc_html__('google +','crowdngo'); ?></span> <i class="fa fa-google-plus"></i> </a> <?php endif; ?> <?php if ( crowdngo_get_config('pinterest_share', 1) ): ?> <?php $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); ?> <a class="bo-social-pinterest" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" href="http://pinterest.com/pin/create/button/?url=<?php echo urlencode(get_permalink()); ?>&description=<?php echo urlencode($post->post_title); ?>&media=<?php echo urlencode($full_image[0]); ?>" target="_blank" title="<?php esc_attr_e('Share on Pinterest', 'crowdngo'); ?>"> <span class="bo-social-text"><?php echo esc_html__('pinterest','crowdngo'); ?></span> <i class="fa fa-pinterest"></i> </a> <?php endif; ?> </div> </div>