<?php

/**
 * Post content template
 *
 * @package wpv
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
$page_links = WpvTemplates::custom_link_pages(array('before' => '<div class="wp-pagenavi"><span class="visuallyhidden">' . __('Pages:', 'church-event') . '</span>', 'after' => '</div>', 'echo' => false));
if (empty($post_data['content']) && isset($post_data['media']) && (is_single() ? !WpvTemplates::hasShare('post') : true) && empty($page_links)) {
    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');
echo $page_links;
?>
</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', 'church-event'), 'text' => __('Like', 'church-event')), 'twitter' => array('link' => 'https://twitter.com/intent/tweet?text=', 'title' => __('Share on Twitter', 'church-event'), 'text' => __('Tweet', 'church-event')), 'googleplus' => array('link' => 'https://plus.google.com/share?url=', 'title' => __('Share on Google Plus', 'church-event'), 'text' => __('+1', 'church-event')), 'pinterest' => array('link' => '#', 'title' => __('Share on Pinterest', 'church-event'), 'text' => __('Pin it', 'church-event')));
if (WpvTemplates::hasShare($context)) {
    ?>
<div class="clearfix <?php 
    echo apply_filters('wpv_share_class', 'share-btns');
    ?>
">
	<div class="sep"></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;