Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * The navigation block is after the main content for SEO purposes.
- * This will be fixed via CSS rules.
- *
- * For the full license information, please view the Licensing folder
- * that was distributed with this source code.
- *
- * @package G1_Framework
- * @subpackage G1_Theme03
- * @since G1_Theme03 1.0.0
- */
- // Prevent direct script access
- if ( !defined('ABSPATH') )
- die ( 'No direct script access allowed' );
- ?>
- <?php
- /*
- Get top Widget Area
- */
- if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("topblog") ) : ?>
- <?php endif; ?>
- <div id="primary">
- <div id="content" role="main">
- <?php $count = 1; ?><?php while ( have_posts() ) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php
- global $post;
- $elems = G1_Elements()->get();
- $title = $elems[ 'title' ] ? the_title( '', '', false ) : '';
- $subtitle = wp_kses_data( get_post_meta( $post->ID, '_g1_subtitle', true ) );
- ?>
- <?php if( strlen( $title ) || strlen( $subtitle ) ): ?>
- <header class="entry-header">
- <div class="g1-hgroup">
- <?php if ( strlen( $title ) ): ?>
- <h1 class="entry-title"><?php echo $title; ?></h1>
- <?php endif; ?>
- <?php if ( strlen( $subtitle ) ): ?>
- <h3 class="entry-subtitle"><?php echo $subtitle; ?></h3>
- <?php endif; ?>
- </div>
- </header><!-- .entry-header -->
- <?php endif; ?>
- <!-- BEGIN .entry-content -->
- <div class="entry-content">
- <?php the_content(); ?>
- <?php g1_wp_link_pages(); ?>
- </div>
- <!-- END .entry-content -->
- <footer class="entry-meta">
- <?php edit_post_link( __( 'Edit', 'g1_theme' ), '<span class="edit-link">', '</span>' ); ?>
- </footer>
- <?php comments_template( '', true ); ?><?php
- /*
- Get Bottom Widget Area
- */
- if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("bottomblog") ) : ?>
- <?php endif; ?>
- </article><!-- #post-<?php the_ID(); ?> -->
- <?php endwhile; ?>
- </div><!-- #content -->
- </div><!-- #primary -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement