Advertisement
Paksoicety

Primary

Jan 1st, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * The navigation block is after the main content for SEO purposes.
  5. * This will be fixed via CSS rules.
  6. *
  7. * For the full license information, please view the Licensing folder
  8. * that was distributed with this source code.
  9. *
  10. * @package G1_Framework
  11. * @subpackage G1_Theme03
  12. * @since G1_Theme03 1.0.0
  13. */
  14.  
  15. // Prevent direct script access
  16. if ( !defined('ABSPATH') )
  17. die ( 'No direct script access allowed' );
  18. ?>
  19. <?php
  20. /*
  21. Get top Widget Area
  22. */
  23.  
  24. if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("topblog") ) : ?>
  25. <?php endif; ?>
  26. <div id="primary">
  27. <div id="content" role="main">
  28. <?php $count = 1; ?><?php while ( have_posts() ) : the_post(); ?>
  29.  
  30. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  31. <?php
  32. global $post;
  33. $elems = G1_Elements()->get();
  34. $title = $elems[ 'title' ] ? the_title( '', '', false ) : '';
  35. $subtitle = wp_kses_data( get_post_meta( $post->ID, '_g1_subtitle', true ) );
  36. ?>
  37.  
  38. <?php if( strlen( $title ) || strlen( $subtitle ) ): ?>
  39. <header class="entry-header">
  40. <div class="g1-hgroup">
  41. <?php if ( strlen( $title ) ): ?>
  42. <h1 class="entry-title"><?php echo $title; ?></h1>
  43. <?php endif; ?>
  44. <?php if ( strlen( $subtitle ) ): ?>
  45. <h3 class="entry-subtitle"><?php echo $subtitle; ?></h3>
  46. <?php endif; ?>
  47. </div>
  48. </header><!-- .entry-header -->
  49. <?php endif; ?>
  50.  
  51. <!-- BEGIN .entry-content -->
  52. <div class="entry-content">
  53. <?php the_content(); ?>
  54. <?php g1_wp_link_pages(); ?>
  55. </div>
  56. <!-- END .entry-content -->
  57. <footer class="entry-meta">
  58. <?php edit_post_link( __( 'Edit', 'g1_theme' ), '<span class="edit-link">', '</span>' ); ?>
  59. </footer>
  60.  
  61. <?php comments_template( '', true ); ?><?php
  62. /*
  63. Get Bottom Widget Area
  64. */
  65.  
  66. if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("bottomblog") ) : ?>
  67. <?php endif; ?>
  68. </article><!-- #post-<?php the_ID(); ?> -->
  69. <?php endwhile; ?>
  70.  
  71. </div><!-- #content -->
  72. </div><!-- #primary -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement