Example #1
0
" <?php 
post_class();
?>
>
    <header class="entry-header">
		<?php 
if (is_single()) {
    the_title('<h1 class="entry-title">', '</h1>');
} else {
    the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
}
if ('post' === get_post_type()) {
    ?>
        <div class="entry-meta">
			<?php 
    atomic_posted_on();
    ?>
        </div><!-- .entry-meta -->
		<?php 
}
?>
    </header><!-- .entry-header -->

    <div class="entry-content">
		<?php 
the_content(sprintf(wp_kses(__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'atomic'), array('span' => array('class' => array()))), the_title('<span class="screen-reader-text">"', '"</span>', false)));
wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'atomic'), 'after' => '</div>'));
?>
    </div><!-- .entry-content -->

    <footer class="entry-footer">
Example #2
0
            <div class="header-desc-wrap">
            <?php 
/* Custom header text of single post, display date and title */
if (is_single()) {
    echo '<div class="post-date';
    if (of_get_option('headertypography', '') || of_get_option('headertypography', '') == '' && of_get_default('headertypography')) {
        if (of_get_option('headertypography', '')) {
            $typography = of_get_option('header_date_typography');
        } else {
            $typography = of_get_default('header_date_typography');
        }
        echo '" style="font-family: ' . $typography['face'] . '; font-size:' . $typography['size'] . '; font-style: ' . $typography['style'] . '; color:' . $typography['color'] . ';">';
    } else {
        echo ' post-date-default">';
    }
    atomic_posted_on('', '</div>');
    echo '<div class="entry-title post-title';
    if (of_get_option('headertypography', '') || of_get_option('headertypography', '') == '' && of_get_default('headertypography')) {
        if (of_get_option('headertypography', '')) {
            $typography = of_get_option('header_title_typography');
        } else {
            $typography = of_get_default('header_title_typography');
        }
        echo '" style="font-family: ' . $typography['face'] . '; font-size:' . $typography['size'] . '; font-style: ' . $typography['style'] . '; color:' . $typography['color'] . ';">';
    } else {
        echo ' post-title-default">';
    }
    the_title('', '</div>');
}
/* End custom header text of single post */
/* Custom text on front page of site */