<!--BEGIN .post --> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <?php zilla_post_start(); ?> <?php if (is_singular('post')) { echo hanna_post_gallery($post->ID, 'full'); } elseif (is_layout_standard()) { echo '<div class="media-bg">'; hanna_post_thumbnail($post->ID); echo hanna_post_gallery($post->ID, 'full'); echo '</div>'; } else { echo hanna_post_gallery($post->ID, 'portfolio-featured-image'); } ?> <!--BEGIN .entry-header--> <header class="entry-header"> <?php hanna_post_title(); hanna_post_meta_header(); ?>
/** * Print HTML meta information for current post * * @return void */ function hanna_post_meta_header() { $theme_options = get_theme_mod('zilla_theme_options'); if (is_singular() || is_layout_standard()) { ?> <!--BEGIN .entry-meta--> <div class="entry-meta"> <?php printf('<span class="author">%1$s <a href="%2$s" title="%3$s" rel="author">%4$s</a></span>', __('by', 'zilla'), esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'zilla'), get_the_author())), get_the_author()); ?> <!--END .entry-meta --> </div> <hr class="hr-center"> <?php } }
function hanna_body_classes($classes) { $theme_options = get_theme_mod('zilla_theme_options'); if (is_blog() && is_layout_standard()) { $classes[] = 'layout-standard'; } return $classes; }
zilla_post_start(); ?> <?php if (is_layout_standard()) { echo '<div class="media-bg">'; hanna_post_thumbnail($post->ID); } ?> <?php echo hanna_print_video_html($post->ID); ?> <?php echo is_layout_standard() ? '</div>' : ''; ?> <!--BEGIN .entry-header--> <header class="entry-header"> <?php hanna_post_title(); hanna_post_meta_header(); ?> <!--END .entry-header--> </header> <?php hanna_the_content(); hanna_post_footer(); ?>