Advertisement
thorbj

wp template

Jun 16th, 2011
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.96 KB | None | 0 0
  1. <?php /*Template Name: Events */?>
  2.  
  3. <?php get_header(); ?>
  4. <div class="content">
  5.  
  6. <div id="primary-wrapper">
  7.     <div id="primary">
  8.  
  9.  
  10.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  11.        
  12.         <div class="entry-head">
  13.             <h1 class="entry-title">
  14.             <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php k2_permalink_title(); ?>"><?php the_title(); ?></a></h1>
  15.            
  16.                     <?php /* Edit Link */ edit_post_link(__('Edit','k2_domain'), '<span class="entry-edit">', '</span>'); ?>
  17.  
  18.                     <?php /* K2 Hook */ do_action('template_entry_head'); ?>
  19.         </div><!-- .entry-head -->
  20.  
  21.        
  22.         <div class="entry-content">
  23.             <?php the_content(); ?>
  24.        
  25.        
  26.        
  27.         <?php endwhile; endif; ?>
  28.  
  29.         <?php query_posts('category_name=events'); ?>
  30.  
  31.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  32.  
  33.        
  34.         <div class="event-page-list">
  35.         <?php if ( function_exists('has_post_thumbnail') and has_post_thumbnail() ): ?>
  36.                 <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'category-thumb', array( 'class' => 'aligntop' ) ); ?><!-- ?php the_post_thumbnail( array( 75, 75 ), array( 'class' => 'aligntop' ) ); ? --></a><br>
  37.             <?php endif; ?>
  38.        
  39.         <a href="<?php the_permalink()?>"><?php the_title()?></a>
  40.         <?php the_content(); ?>
  41.         </div>
  42.         <?php endwhile; endif; ?>
  43.  
  44.         </div><!-- .entry-content -->
  45.        
  46.         <div class="entry-foot">
  47.             <?php wp_link_pages( array('before' => '<div class="entry-pages"><span>' . __('Pages:','k2_domain') . '</span>', 'after' => '</div>' ) ); ?>
  48.  
  49.             <?php if ( 'post' == $post->post_type ): ?>
  50.             <div class="entry-meta">
  51.                 <?php k2_entry_meta(2); ?>
  52.             </div><!-- .entry-meta -->
  53.             <?php endif; ?>
  54.  
  55.             <?php /* K2 Hook */ do_action('template_entry_foot'); ?>
  56.         </div><!-- .entry-foot -->
  57.        
  58.         <div id="dynamic-content"></div>
  59.     </div><!-- #primary -->
  60. </div><!-- #primary-wrapper -->
  61.  
  62. <?php if ( ! get_post_custom_values('sidebarless') ) get_sidebar(); ?>
  63.  
  64. </div><!-- .content -->
  65.    
  66. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement