$entry_summary = 'entry-summary';
?>
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('post-content content-gallery ' . weaverx_post_class());
?>
>
<?php 
if (!weaverx_compact_post()) {
    ?>
	<header class="entry-header">
	<?php 
    weaverx_entry_header('gallery');
    weaverx_post_top_meta();
    ?>
	</header><!-- .entry-header -->

<?php 
    if (weaverx_show_only_title()) {
        return;
    }
} else {
    // not compact
    $entry_summary .= ' compact-post-format';
}
$linked = false;
?>
	<div class="<?php 
echo $entry_summary;
    function weaverx_single_title($title = '')
    {
        // The page title for single view page
        if (weaverx_is_checked_post_opt('_pp_hide_post_title') || weaverx_t_get('hide_title')) {
            return;
        }
        if (!$title) {
            $title = the_title('', '', false);
        }
        ?>
	<header class="page-header">
	<?php 
        weaverx_fi('post', 'title-before');
        ?>
	<h1 class="page-title entry-title title-single <?php 
        echo weaverx_title_class('post_title', true);
        ?>
"><?php 
        echo $title;
        ?>
</h1>
		<?php 
        weaverx_post_top_meta('single');
        ?>
	</header><!-- .page-header -->
<?php 
    }
<?php 
} else {
    // -------------------------------------------------- REGULAR POSTS ---------------------------------------
    ?>

<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('content-default ' . weaverx_post_class());
    ?>
><!-- POST: standard -->
<header class="entry-header">
<?php 
    weaverx_entry_header('', $do_excerpt);
    weaverx_post_top_meta('');
    ?>
</header><!-- .entry-header -->

<?php 
    if (weaverx_show_only_title()) {
        // -------------------- TITLE ONLY? --------------------
        return;
    }
    if ($do_excerpt) {
        // -------------------- EXCERPT ------------------------
        weaverx_post_div('summary');
        weaverx_the_post_excerpt();
        ?>
		</div><!-- .entry-summary -->
<?php