Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /*Template Name: Events */?>
- <?php get_header(); ?>
- <div class="content">
- <div id="primary-wrapper">
- <div id="primary">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="entry-head">
- <h1 class="entry-title">
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php k2_permalink_title(); ?>"><?php the_title(); ?></a></h1>
- <?php /* Edit Link */ edit_post_link(__('Edit','k2_domain'), '<span class="entry-edit">', '</span>'); ?>
- <?php /* K2 Hook */ do_action('template_entry_head'); ?>
- </div><!-- .entry-head -->
- <div class="entry-content">
- <?php the_content(); ?>
- <?php endwhile; endif; ?>
- <?php query_posts('category_name=events'); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="event-page-list">
- <?php if ( function_exists('has_post_thumbnail') and has_post_thumbnail() ): ?>
- <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>
- <?php endif; ?>
- <a href="<?php the_permalink()?>"><?php the_title()?></a>
- <?php the_content(); ?>
- </div>
- <?php endwhile; endif; ?>
- </div><!-- .entry-content -->
- <div class="entry-foot">
- <?php wp_link_pages( array('before' => '<div class="entry-pages"><span>' . __('Pages:','k2_domain') . '</span>', 'after' => '</div>' ) ); ?>
- <?php if ( 'post' == $post->post_type ): ?>
- <div class="entry-meta">
- <?php k2_entry_meta(2); ?>
- </div><!-- .entry-meta -->
- <?php endif; ?>
- <?php /* K2 Hook */ do_action('template_entry_foot'); ?>
- </div><!-- .entry-foot -->
- <div id="dynamic-content"></div>
- </div><!-- #primary -->
- </div><!-- #primary-wrapper -->
- <?php if ( ! get_post_custom_values('sidebarless') ) get_sidebar(); ?>
- </div><!-- .content -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement