Skip to content

Instantly share code, notes, and snippets.

@rali14
Created December 29, 2016 16:42
Show Gist options
  • Save rali14/a44b79fde5123e2db4b3963c66527ccd to your computer and use it in GitHub Desktop.
Save rali14/a44b79fde5123e2db4b3963c66527ccd to your computer and use it in GitHub Desktop.
old Single Listings Template
<?php
/**
* The Template for displaying all single posts.
*
* @package Listify
*/
get_header(); ?>
<div id="primary" class="container">
<div class="row content-area">
<?php if ( 'left' == esc_attr( listify_theme_mod( 'content-sidebar-position', 'right' ) ) ) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
<main id="main" class="site-main col-xs-12 <?php if ( 'none' != esc_attr( listify_theme_mod( 'content-sidebar-position', 'right' ) ) && is_active_sidebar( 'widget-area-sidebar-1' ) ) : ?>col-sm-7 col-md-8<?php endif; ?>" role="main">
<div <?php echo apply_filters( 'listify_cover', 'page-cover page-cover--large', array( 'size' => 'full' ) ); ?>>
<h1 class="page-title cover-wrapper"><?php the_post(); the_title(); rewind_posts(); ?>
</div>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content' ); ?>
<?php comments_template(); ?>
<?php endwhile; ?>
</main>
<?php if ( 'right' == esc_attr( get_theme_mod( 'content-sidebar-position', 'right' ) ) ) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment