Advertisement
aivavic

template 2012

Aug 29th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.22 KB | None | 0 0
  1. <?php /*
  2.  * Template Name: Template Page Concurs
  3.  *
  4.  * @package Cryout Creations
  5.  * @subpackage mantra
  6.  * @since mantra 0.5
  7.  */
  8.  
  9. ?>
  10. <?php get_header(); ?>
  11.  
  12.         <section id="container">
  13.  
  14.    
  15.             <div id="content" role="main">
  16.  
  17.      <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  18.     <h1 class="entry-title"><?php the_title(); ?></h1>
  19.         <?php the_content(); ?>
  20.     <div style="clear: both;"></div>
  21.     <?php endwhile; else: endif; ?>
  22.     <br /><br />
  23.     <?php $slug = basename(get_permalink());
  24.            // replace $slub with get_the_title() in the line below if you want to get posts based
  25.            // on category name instead of slug  ?>
  26.     <?php
  27. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  28. query_posts('category_name='.$slug.'&post_status=publish,future&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged);?>
  29. <?php /*
  30.  
  31. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  32.  
  33.                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  34.                     <h1 class="entry-title"><?php the_title(); ?></h1>
  35.  
  36.                     <div class="entry-meta">
  37.                         <?php mantra_posted_on(); ?>
  38.                     </div><!-- .entry-meta -->
  39.  
  40.                     <div class="entry-content">
  41.                         <?php the_content(); ?>
  42.                         <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'mantra' ), 'after' => '</div>' ) ); ?>
  43.                     </div><!-- .entry-content -->
  44.  
  45.                     <div class="entry-utility">
  46.                         <?php mantra_posted_in(); ?>
  47.                         <?php edit_post_link( __( 'Edit', 'mantra' ), '<span class="edit-link">', '</span>' ); ?>
  48.                     </div><!-- .entry-utility -->
  49.                 </div><!-- #post-## -->
  50.  
  51.                 <?php comments_template( '', true ); ?>
  52.  
  53. <?php endwhile; // end of the loop. ?>
  54. */ ?>
  55.  
  56.  
  57.                 <?php /* Start the Loop */ ?>
  58.                 <?php while ( have_posts() ) : the_post(); ?>
  59.  
  60.                     <?php get_template_part( 'content', get_post_format() ); ?>
  61.  
  62.                 <?php endwhile; ?>
  63.  
  64.                 <?php if($mantra_pagination=="Enable") mantra_pagination(); else mantra_content_nav( 'nav-below' ); ?>
  65.  
  66.  
  67. <ul>
  68. <?php wp_list_categories('orderby=id&show_count=1&use_desc_for_title=0&child_of=65'); ?>
  69. </ul>
  70.  
  71.             </div><!-- #content -->
  72.     <?php get_sidebar(); ?>
  73.         </section><!-- #container -->
  74.  
  75. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement