?>
" <?php 
post_class();
?>
>
	<header class="entry-header">
		<h1 class="entry-title"><?php 
the_title();
?>
</h1>
	</header><!-- .entry-header -->

	<div class="entry-content">

		<?php 
if (has_post_thumbnail() && 'on' == get_theme_mod('full_posts_feat_img', emphaino_default_settings('full_posts_feat_img'))) {
    ?>
		<div class="featured-image">
			<?php 
    the_post_thumbnail('full-width');
    ?>
		</div>
		<?php 
}
// featured image
?>

		<?php 
the_content();
?>
		<?php 
Beispiel #2
0
        ?>

					<?php 
        /* Include the Post-Format-specific template for the content.
         * If you want to overload this in a child theme then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('content', get_post_format());
        ?>

				<?php 
    }
    ?>

				<?php 
    if ('dynamic_grid_excerpts' == get_theme_mod('posts_layout', emphaino_default_settings('posts_layout'))) {
        echo '</div> <!-- #dynamic-grid -->';
    }
    ?>

				<?php 
    emphaino_content_nav('nav-below');
    ?>

			<?php 
} else {
    ?>

				<?php 
    get_template_part('no-results', 'archive');
    ?>
Beispiel #3
0
 *
 * @package Emphaino
 * @since Emphaino 1.0
 */
?>

	</div><!-- #main .site-main -->

	<footer id="colophon" class="site-footer" role="contentinfo">
		<?php 
get_sidebar('footer');
?>
		<div id="bottom-bar">
			<div class="footer-text">
				<?php 
echo get_theme_mod('footer_text', emphaino_default_settings('footer_text'));
?>
			</div>
			<div class="site-info">
				<?php 
do_action('emphaino_credits');
?>
				<?php 
printf(__('Powered by %s.', 'emphaino'), '<a href="' . esc_url('http://wordpress.org/') . '" title="' . esc_attr__('A Semantic Personal Publishing Platform', 'emphaino') . '" rel="generator">WordPress</a>');
?>
				<?php 
printf(__('Theme %s.', 'emphaino'), '<a href="' . esc_url('http://srinig.com/wordpress/themes/emphaino/') . '" title="Emphaino">Emphaino</a>');
?>
			</div><!-- .site-info -->
		</div> <!-- #bottom-bar -->
	</footer><!-- #colophon .site-footer -->
Beispiel #4
0
/**
 * Custom classes for the body tag
 *
 * @since Emphaino 1.0
 */
function emphaino_body_class($classes)
{
    if (get_theme_mod('non_responsive') == 'on') {
        $classes[] = 'non-responsive';
    } else {
        $classes[] = 'responsive';
    }
    $header_image = get_header_image();
    if (!empty($header_image)) {
        $classes[] = 'custom-header';
    } else {
        $classes[] = 'no-custom-header';
    }
    if ('blank' == get_header_textcolor()) {
        $classes[] = 'header-text-hidden';
    }
    if (get_theme_mod('logo_image')) {
        $classes[] = 'has-logo-image';
    } else {
        $classes[] = 'no-logo-image';
    }
    if (is_active_sidebar('the-sidebar') && !((is_home() || is_archive()) && get_theme_mod('sidebar_in_posts_index') != 'on')) {
        $classes[] = 'has-sidebar';
    } else {
        $classes[] = 'no-sidebar';
    }
    if (!is_singular()) {
        $classes[] = str_replace('_', '-', get_theme_mod('posts_layout', emphaino_default_settings('posts_layout')));
    }
    if (is_singular() && !get_option('show_avatars')) {
        $classes[] = 'no-comment-avatars';
    }
    return $classes;
}
/**
 * Santize value for the posts layout setting
 *
 * @since Emphaino 1.2.4
 */
function emphaino_sanitize_posts_layout($value)
{
    if ($value && array_key_exists($value, emphaino_posts_layout_options())) {
        return $value;
    }
    return emphaino_default_settings('posts_layout');
}