Advertisement
Guest User

Untitled

a guest
Jun 29th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.82 KB | None | 0 0
  1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. * This is the most generic template file in a WordPress theme
  6. * and one of the two required files for a theme (the other being style.css).
  7. * It is used to display a page when nothing more specific matches a query.
  8. * E.g., it puts together the home page when no home.php file exists.
  9. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  10. *
  11. * @bpackage Reddle
  12. * @since Reddle 1.0
  13. */
  14.  
  15. get_header(); ?>
  16.  
  17.         <div id="primary">
  18.             <div id="content" role="main">
  19.  
  20.             <?php if ( have_posts() ) : ?>
  21.  
  22.                
  23.                
  24.    
  25.                 <?php reddle_content_nav( 'nav-above' ); ?>
  26.  
  27.                 <?php /* Start the Loop */ ?>
  28.                            
  29.                 <?php while ( have_posts() ) : the_post(); ?>
  30.  
  31.                
  32.                     <?php
  33.                         /* Include the Post-Format-specific template for the content.
  34.                          * If you want to overload this in a child theme then include a file
  35.                          * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  36.                          */
  37.                         get_template_part( 'content', get_post_format() );
  38.                     ?>
  39.  
  40.                 <?php endwhile; ?>
  41.  
  42.                 <?php reddle_content_nav( 'nav-below' ); ?>
  43.  
  44.             <?php else : ?>
  45.  
  46.                 <article id="post-0" class="post no-results not-found">
  47.                     <header class="entry-header">
  48.                         <h1 class="entry-title"><?php _e( 'Nothing Found', 'reddle' ); ?></h1>
  49.                     </header><!-- .entry-header -->
  50.  
  51.                     <div class="entry-content">
  52.                         <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'reddle' ); ?></p>
  53.                         <?php get_search_form(); ?>
  54.                     </div><!-- .entry-content -->
  55.                 </article><!-- #post-0 -->
  56.  
  57.             <?php endif; ?>
  58.                
  59. <div class="element1"><?php
  60. /**
  61. * A ... Category Template
  62. */
  63.  
  64. ?>
  65.  
  66. <section id="primary" class="site-content">
  67. <div id="content" role="main">
  68. <?php
  69. // Check if there are any posts to display
  70. if ( have_posts() ) : ?>
  71.  
  72.  
  73. <?php
  74.  
  75. // The Loop
  76.  
  77. global $query_string;
  78. query_posts("{$query_string}cat=629&posts_per_page=3");
  79.  
  80.  
  81. while ( have_posts() ) : the_post(); ?>
  82.  
  83. <div class="hentry music">
  84.  
  85.  
  86.  
  87. <h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  88. <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>
  89. <?php the_post_thumbnail(); ?>
  90. <?php the_excerpt(); ?>
  91.  
  92.  <p class="postmetadata"><?php
  93.  comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments closed');
  94. ?></p>
  95. </div>
  96.  
  97. <?php endwhile;
  98.  
  99. else: ?>
  100. <p>Sorry, no posts matched your criteria.</p>
  101.  
  102.  
  103. <?php endif; ?>
  104. </div>
  105. </section>
  106.  
  107.    
  108.    
  109.  
  110.  
  111.                     </div>
  112.  
  113. <div class="element2"><?php
  114. /**
  115. * A ... Category Template
  116. */
  117.  
  118. ?>
  119.  
  120. <section id="primary" class="site-content">
  121. <div id="content" role="main">
  122. <?php
  123. // Check if there are any posts to display
  124. if ( have_posts() ) : ?>
  125.  
  126.  
  127.  
  128. <?php
  129.  
  130. // The Loop
  131.  
  132. global $query_string;
  133. query_posts("{$query_string}cat=623&posts_per_page=3");
  134.  
  135.  
  136. while ( have_posts() ) : the_post(); ?>
  137.  
  138. <div class="hentry music">
  139.  
  140.  
  141.  
  142. <h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  143. <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>
  144. <?php the_post_thumbnail(); ?>
  145. <?php the_excerpt(); ?>
  146.  
  147.  <p class="postmetadata"><?php
  148.  comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments closed');
  149. ?></p>
  150. </div>
  151.  
  152. <?php endwhile;
  153.  
  154. else: ?>
  155. <p>Sorry, no posts matched your criteria.</p>
  156.  
  157.  
  158. <?php endif; ?>
  159. </div>
  160. </section>
  161.                     </div>
  162.                    
  163.             </div>
  164.  
  165.            
  166.             </div>
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.             <!-- #content -->
  175.         <!-- #primary -->
  176.  
  177.  
  178.  
  179. <?php get_sidebar(); ?>
  180. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement