// really hide - don't need to have device download the image
    $really_hide = $h_hide == 'hide' || weaverx_getopt('hide_header_image_front') && is_front_page();
    if ($h_hide == 'hide-none' || $h_hide == 'hide') {
        $h_hide = ' class="header-image"';
    } else {
        $h_hide = ' class="header-image ' . $h_hide . '"';
    }
    if (weaverx_getopt('header_image_add_class') != '') {
        $h_hide = str_replace('"header-image', '"header-image ' . weaverx_getopt('header_image_add_class'), $h_hide);
    }
    if (!$really_hide) {
        echo "<div id=\"header-image\"" . $h_hide . ">\n";
        global $weaverx_header;
        /* Check if this is a post or page, if it has a thumbnail,  and if it's a big one */
        $page_type = is_single() ? 'post' : 'page';
        if ($GLOBALS['weaverx_page_who'] == 'blog' || $GLOBALS['weaverx_page_is_archive'] || !weaverx_fi($page_type, 'header-image')) {
            $hdr = get_header_image();
            if ($hdr) {
                // wp customizer preview hack for WP 4.4 beta, might go away for 4.4 release
                $url = get_template_directory_uri();
                $url = str_replace(array('http://', 'https://'), '', $url);
                $hdr = str_replace('%s', $url, $hdr);
                // 4.4 preview breaks this
                $hdr = str_replace(array('http://', 'https://'), '//', $hdr);
                if (weaverx_getopt('link_site_image')) {
                    ?>
<a href="<?php 
                    echo esc_url(home_url('/'));
                    ?>
" title="<?php 
                    echo esc_attr(get_bloginfo('name', 'display'));
<?php

if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
/**
 * The template used for displaying page content in page.php
 *
 * @package WordPress
 * @subpackage Weaver X
 * @since Weaver Xtreme 1.0
 */
weaverx_per_post_style();
weaverx_fi('page', 'post-before');
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('content-page');
?>
>
<?php 
weaverx_page_title();
?>

	<div class="entry-content clearfix">

	<?php 
<?php

if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
/**
 * The template for displaying content in the single.php template
 *
 * @package WordPress
 * @subpackage Weaver X
 * @since Weaver Xtreme 1.0
 */
weaverx_per_post_style();
weaverx_fi('post', 'post-before');
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('content-single post-content ' . weaverx_post_class(true));
?>
>
	<?php 
weaverx_single_title('');
weaverx_post_div('content');
weaverx_the_post_full_single();
wp_link_pages(array('before' => '<div class="page-link"><span>' . __('Pages:', 'weaver-xtreme') . '</span>', 'after' => '</div>'));
?>
	</div><!-- .entry-content -->
function weaverx_show_only_title()
{
    if (!weaverx_t_get('showposts') && (weaverx_get_per_page_value('_pp_wvrx_pwp_type') == 'title' || weaverx_t_get('show') == 'title')) {
        echo "\t</article><!-- /#post -->\n";
        return true;
    } else {
        if (!weaverx_t_get('showposts') && (weaverx_get_per_page_value('_pp_wvrx_pwp_type') == 'title_featured' || weaverx_t_get('show') == 'title_featured')) {
            weaverx_fi('post_excerpt', 'title_featured');
            // show FI
            echo "\t</article><!-- /#post; -->\n";
            return true;
        } elseif (weaverx_t_get('showposts') && weaverx_t_get('show') == 'title_featured') {
            weaverx_fi('post_excerpt', 'title_featured');
            // show FI
            echo "\t</article><!-- /#post. -->\n";
            return true;
        } elseif (weaverx_t_get('showposts') && (weaverx_t_get('show') == 'title' || weaverx_t_get('show') == 'titlelist')) {
            echo "\t</article><!-- /#post -->\n";
            return true;
        }
    }
    return false;
}
        if ($coldiv == 'right' && $i + 1 < $col_count) {
            $break_cols = '<hr class="atw-2-col-divider"/>';
        } else {
            $break_cols = '';
        }
        $columns[$i] = '<div class="cf content-2-col-' . $coldiv . '">' . $columns[$i] . '</div>' . $break_cols;
    }
    $content = join($columns, "\n");
} else {
    // this page does not have dynamic columns
    $content = wpautop($content);
}
// remove any left over empty <p> tags
$content = str_replace('<p></p>', '', $content);
echo $content;
weaverx_fi('page', 'content-bottom');
weaverx_link_pages();
?>


	</div><div style="clear:both;"></div><!-- .entry-content -->
	<footer class="entry-utility-page">
	<?php 
weaverx_edit_link();
?>
	</footer><!-- .entry-utility-page -->
</article><!-- #post-<?php 
the_ID();
?>
 -->
<?php 
// Exit if accessed directly
/**
 * The default template for displaying content
 *
 * This will display unmatched post-type blog posts from main blog page and archive-type pages
 * Note - if you are building a custom content-xxx.php page for a custom post type, you should
 * be sure that Feature Images are processed correctly via weaverx_the_post_full().
 *
 * @package WordPress
 * @subpackage Weaver X
 * @since Weaver Xtreme 1.0
 */
weaverx_per_post_style();
$do_excerpt = weaverx_do_excerpt();
$me = $do_excerpt ? 'post_excerpt' : 'post_full';
weaverx_fi($me, 'post-before');
// ------------------------------------------------- COMPACT POSTS ---------------------------------------
if (weaverx_is_checked_page_opt('_pp_pwp_compact_posts') && ($the_image = weaverx_get_first_post_image()) != '') {
    // = Compact Posts
    ?>

<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('post-content content-default content-compact-post ' . weaverx_post_class());
    ?>
>

<header class="entry-header">
	<?php