$xinwp_entry_meta = get_post_meta($post->ID, '_xinmag_disp_meta', true); $sidebar = get_post_meta($post->ID, '_xinmag_sidebar', true); xinmag_template_intro(); } else { $pt_category = ''; $xinwp_display_excerpt = 1; $column = 1; $postperpage = 0; $xinwp_thumbnail = 'thumbnail'; $xinwp_entry_meta = 1; $sidebar = 1; } ?> <div id="content" class="<?php echo $sidebar ? xinwp_content_class() : xinwp_grid_full(); ?> " role="main"> <div class="xinwp_recent_post portfolio column-<?php echo $column; ?> "> <input type="hidden" id="portfolio-column" value="<?php echo $column; ?> "> <?php $blog_args = array('post_type' => 'post', 'post_status' => 'publish', 'paged' => $paged, 'posts_per_page' => $postperpage); if ($pt_category) { $blog_args['category__in'] = $pt_category; }
<?php /** * Template Name: Full Width * * @package xinmag * @since xinmag 1.0 */ get_header(); ?> <div id="content" class="<?php echo xinwp_grid_full(); ?> " role="main"> <?php while (have_posts()) { the_post(); get_template_part('content', 'page'); comments_template('', true); } ?> </div> <?php get_footer();
<?php /** * The Template for displaying all single posts. * * @package xinmag * @since xinmag 1.0 */ global $xinmag_layout; $xinmag_layout = get_post_meta($post->ID, '_xinmag_layout', true); get_header(); ?> <div id="content" class="<?php echo $xinmag_layout ? xinwp_grid_full() : xinwp_content_class(); ?> " role="main"> <?php while (have_posts()) { the_post(); get_template_part('content', get_post_format()); ?> <nav id="nav-single" class="clearfix"> <span class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">' . _x('<i class="icon-chevron-left"></i>', 'Previous post link', 'xinmag') . '</span> %title'); ?> </span> <span class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">' . _x('<i class="icon-chevron-right"></i>', 'Next post link', 'xinmag') . '</span>'); ?> </span>