Hezze

index

Jun 13th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content" class="cf" <?php frontier_schema( 'content' ); ?>>
  4. <?php do_action( 'frontier_before_content' ); ?>
  5.  
  6. <?php if ( is_active_sidebar( 'widgets_before_content' ) ) : ?>
  7. <div id="widgets-wrap-before-content" class="cf"><?php dynamic_sidebar( 'widgets_before_content' ); ?></div>
  8. <?php endif; ?>
  9.  
  10. <?php if ( is_archive() || is_search() ) : ?>
  11. <div class="archive-info">
  12. <?php
  13. if ( is_search() ) {
  14. echo '<h3 class="archive-title">' . sprintf( __( 'Search Results for &ndash; &quot;<span>%s</span>&quot;', 'frontier' ), get_search_query() ) . '</h3>';
  15. }
  16. else {
  17. the_archive_title( '<h3 class="archive-title">', '</h3>' );
  18. the_archive_description( '<div class="archive-description">', '</div>' );
  19. }
  20. ?>
  21. </div>
  22. <?php endif; ?>
  23.  
  24. <?php do_action( 'frontier_before_loop' ); ?>
  25.  
  26. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  27.  
  28. <?php if ( !is_singular() ) : ?>
  29. <?php get_template_part( 'loop', 'blog' ); ?>
  30. <?php else : ?>
  31. <?php get_template_part( 'loop', 'single' ); ?>
  32. <?php endif; ?>
  33.  
  34. <?php endwhile; else: ?>
  35.  
  36. <div class="form-404">
  37. <?php
  38. $frontier_nothing_found_content = '<h2>' . __( 'Nothing Found', 'frontier' ) . '</h2>';
  39. $frontier_nothing_found_content .= '<p>' . __( 'Try a new keyword.', 'frontier' ) . '</p>';
  40. $frontier_nothing_found_content .= get_search_form( false );
  41. echo apply_filters( 'frontier_nothing_found_content', $frontier_nothing_found_content );
  42. ?>
  43. </div>
  44.  
  45. <?php endif; ?>
  46.  
  47. <?php do_action( 'frontier_after_loop' ); ?>
  48.  
  49. <?php if ( !is_singular() ) : ?>
  50. <div class="blog-nav cf">
  51. <?php if ( function_exists( 'wp_pagenavi' ) ) : ?>
  52. <?php wp_pagenavi(); ?>
  53. <?php else : ?>
  54. <?php
  55. $post_nav_blog = '';
  56.  
  57. if ( !is_search() ) {
  58. $post_nav_blog .= '<div class="link-prev">' . get_next_posts_link( __( '&#8592; Older Posts', 'frontier' ) ) . '</div>';
  59. $post_nav_blog .= '<div class="link-next">' . get_previous_posts_link( __( 'Newer Posts &#8594;', 'frontier' ) ) . '</div>';
  60. }
  61. else {
  62. $post_nav_blog .= '<div class="link-next">' . get_next_posts_link( __( 'Next Page &#8594;', 'frontier' ) ) . '</div>';
  63. $post_nav_blog .= '<div class="link-prev">' . get_previous_posts_link( __( '&#8592; Previous Page', 'frontier' ) ) . '</div>';
  64. }
  65.  
  66. echo apply_filters( 'frontier_post_nav_blog', $post_nav_blog );
  67. ?>
  68. <?php endif; ?>
  69. </div>
  70. <?php endif; ?>
  71.  
  72. <?php if ( is_active_sidebar( 'widgets_after_content' ) ) : ?>
  73. <div id="widgets-wrap-after-content" class="cf"><?php dynamic_sidebar( 'widgets_after_content' ); ?></div>
  74. <?php endif; ?>
  75.  
  76. <?php do_action( 'frontier_after_content' ); ?>
  77. </div>
  78.  
  79. <?php
  80. switch ( frontier_option( 'column_layout', 'col-cs' ) ) {
  81. case 'col-sc' :
  82. get_sidebar( 'left' );
  83. break;
  84.  
  85. case 'col-cs' :
  86. get_sidebar( 'right' );
  87. break;
  88.  
  89. case 'col-ssc' :
  90. case 'col-scs' :
  91. case 'col-css' :
  92. get_sidebar( 'left' );
  93. get_sidebar( 'right' );
  94. break;
  95. }
  96. ?>
  97. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment