<?php /** * Post content template * * @package wpv */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly if (empty($post_data['content']) && isset($post_data['media']) && (is_single() ? !WpvTemplates::has_share('post') : true)) { return; } ?> <div class="post-content the-content"> <?php do_action('wpv_before_post_content'); if (!empty($post_data['content'])) { if (!is_single() || !has_post_format('quote')) { echo $post_data['content']; } } do_action('wpv_after_post_content'); ?> </div>
<?php /** * Displays social sharing buttons * * @package wpv */ global $post; $networks = array('facebook' => array('link' => 'https://www.facebook.com/sharer/sharer.php?u=', 'title' => __('Share on Facebook', 'honeymoon'), 'text' => __('Like', 'honeymoon')), 'twitter' => array('link' => 'https://twitter.com/intent/tweet?text=', 'title' => __('Share on Twitter', 'honeymoon'), 'text' => __('Tweet', 'honeymoon')), 'googleplus' => array('link' => 'https://plus.google.com/share?url=', 'title' => __('Share on Google Plus', 'honeymoon'), 'text' => __('+1', 'honeymoon')), 'pinterest' => array('link' => '#', 'title' => __('Share on Pinterest', 'honeymoon'), 'text' => __('Pin it', 'honeymoon'))); if (WpvTemplates::has_share($context)) { ?> <div class="clearfix <?php echo apply_filters('wpv_share_class', 'share-btns'); ?> "> <div class="sep-3"></div> <ul class="socialcount" data-url="<?php esc_attr_e(get_permalink()); ?> " data-share-text="<?php esc_attr_e(get_the_title()); ?> " data-media=""> <?php foreach ($networks as $slug => $cfg) { ?> <?php if (wpv_get_option("share-{$context}-{$slug}")) { ?> <li class="<?php echo $slug;