-
-
Save anonymous/d250136ea024a524f90d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<?php $mts_options = get_option(MTS_THEME_NAME); ?> | |
<div id="page" class="<?php mts_single_page_class(); ?> clearfix"> | |
<?php get_template_part('templates/single-header-animation' ); ?> | |
<article class="<?php mts_article_class(); ?>" itemscope itemtype="http://schema.org/BlogPosting"> | |
<div id="content_box" > | |
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> | |
<div id="post-<?php the_ID(); ?>" <?php post_class('g post'); ?>> | |
<?php if ($mts_options['mts_breadcrumb'] == '1') { ?> | |
<div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"><?php mts_the_breadcrumb(); ?></div> | |
<?php } ?> | |
<?php | |
// Single post parts ordering | |
if ( isset( $mts_options['mts_single_post_layout'] ) && is_array( $mts_options['mts_single_post_layout'] ) && array_key_exists( 'enabled', $mts_options['mts_single_post_layout'] ) ) { | |
$single_post_parts = $mts_options['mts_single_post_layout']['enabled']; | |
} else { | |
$single_post_parts = array( 'content' => 'content', 'related' => 'related', 'author' => 'author' ); | |
} | |
foreach( $single_post_parts as $part => $label ) { get_template_part( 'templates/single-post-'.$part ); } | |
?> | |
</div><!--.g post--> | |
<?php comments_template( '', true ); ?> | |
<?php endwhile; /* end loop */ ?> | |
</div> | |
</article> | |
<?php get_sidebar(); ?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment