82 lines
4.9 KiB
PHP
82 lines
4.9 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* $Desc
|
||
|
*
|
||
|
* @version $Id$
|
||
|
* @package wpbase
|
||
|
* @author WPOpal Team <opalwordpress@gmail.com>
|
||
|
* @copyright Copyright (C) 2015 wpopal.com. All Rights Reserved.
|
||
|
* @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
|
||
|
*
|
||
|
* @website http://www.wpopal.com
|
||
|
* @support http://www.wpopal.com/questions/
|
||
|
*/
|
||
|
/**
|
||
|
* Enable/distable share box
|
||
|
*/
|
||
|
|
||
|
global $post;
|
||
|
$args = array( 'position' => 'top', 'animation' => 'true' );
|
||
|
?>
|
||
|
<div class="<?php echo apply_filters('opalestate_row_container_class', 'row opal-row');?>">
|
||
|
<div class="col-lg-12 col-md-12">
|
||
|
<h6 class="pull-left"><?php esc_html_e("Share this:", "fullhouse"); ?></h6>
|
||
|
<div class="pbr-social-share">
|
||
|
<div class="bo-social-icons bo-sicolor social-radius-rounded">
|
||
|
<?php if((bool)opalestate_options('facebook_share_blog',true)): ?>
|
||
|
|
||
|
<a class="bo-social-facebook" data-toggle="tooltip" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" data-original-title="Facebook" href="http://www.facebook.com/sharer.php?s=100&p[url]=<?php the_permalink(); ?>&p[title]=<?php the_title(); ?>" target="_blank" title="<?php esc_html_e('Share on facebook', 'opalestate-pro'); ?>">
|
||
|
<i class="fa fa-facebook"></i>
|
||
|
</a>
|
||
|
|
||
|
<?php endif; ?>
|
||
|
<?php if((bool)opalestate_options('twitter_share_blog',true)): ?>
|
||
|
|
||
|
<a class="bo-social-twitter" data-toggle="tooltip" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" data-original-title="Twitter" href="http://twitter.com/home?status=<?php the_title(); ?> <?php the_permalink(); ?>" target="_blank" title="<?php esc_html_e('Share on Twitter', 'opalestate-pro'); ?>">
|
||
|
<i class="fa fa-twitter"></i>
|
||
|
</a>
|
||
|
|
||
|
<?php endif; ?>
|
||
|
<?php if((bool)opalestate_options('linkedin_share_blog',true)): ?>
|
||
|
|
||
|
<a class="bo-social-linkedin" data-toggle="tooltip" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" data-original-title="LinkedIn" href="http://linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" target="_blank" title="<?php esc_html_e('Share on LinkedIn', 'opalestate-pro'); ?>">
|
||
|
<i class="fa fa-linkedin"></i>
|
||
|
</a>
|
||
|
|
||
|
<?php endif; ?>
|
||
|
<?php if((bool)opalestate_options('tumblr_share_blog',true)): ?>
|
||
|
|
||
|
<a class="bo-social-tumblr" data-toggle="tooltip" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" data-original-title="Tumblr" 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_html_e('Share on Tumblr', 'opalestate-pro'); ?>">
|
||
|
<i class="fa fa-tumblr"></i>
|
||
|
</a>
|
||
|
|
||
|
<?php endif; ?>
|
||
|
<?php if((bool)opalestate_options('google_share_blog',true)): ?>
|
||
|
|
||
|
<a class="bo-social-google" data-toggle="tooltip" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" data-original-title="Google plus" 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_html_e('Share on Google plus', 'opalestate-pro'); ?>">
|
||
|
<i class="fa fa-google-plus"></i>
|
||
|
</a>
|
||
|
|
||
|
<?php endif; ?>
|
||
|
<?php if((bool)opalestate_options('pinterest_share_blog',true)): ?>
|
||
|
|
||
|
<?php $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); ?>
|
||
|
<a class="bo-social-pinterest" data-toggle="tooltip" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" data-original-title="Pinterest" 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_html_e('Share on Pinterest', 'opalestate-pro'); ?>">
|
||
|
<i class="fa fa-pinterest"></i>
|
||
|
</a>
|
||
|
|
||
|
<?php endif; ?>
|
||
|
<?php if((bool)opalestate_options('mail_share_blog',true)): ?>
|
||
|
|
||
|
<a class="bo-social-envelope" data-toggle="tooltip" data-placement="<?php echo esc_attr($args['position']); ?>" data-animation="<?php echo esc_attr($args['animation']); ?>" data-original-title="Email" href="mailto:?subject=<?php the_title(); ?>&body=<?php the_permalink(); ?>" title="<?php esc_html_e('Email to a Friend', 'opalestate-pro'); ?>">
|
||
|
<i class="fa fa-envelope"></i>
|
||
|
</a>
|
||
|
|
||
|
<?php endif; ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|