Advertisement
thorbj

Wp template

Dec 21st, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.78 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Bildegalleri
  4. */
  5. ?>
  6.  
  7.  
  8. <div class="pagecontent">
  9.  
  10. <div id="primary-wrapper">
  11.     <div id="primary">
  12.         <div id="notices"></div>
  13.         <a name="startcontent" id="startcontent"></a>
  14.  
  15.         <div id="current-content" class="hfeed">
  16.  
  17.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  18.  
  19.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  20.                 <div class="entry-head">
  21.                     <h1 class="entry-title">
  22.                         <?php the_title(); ?></a>
  23.                     </h1>
  24.  
  25.                     <?php /* Edit Link */ edit_post_link(__('Edit','k2_domain'), '<span class="entry-edit">', '</span>'); ?>
  26.  
  27.                     <?php /* K2 Hook */ do_action('template_entry_head'); ?>
  28.                 </div><!-- .entry-head -->
  29.  
  30.                 <div class="entry-content">
  31.                     <?php the_content(); ?>
  32.                 </div><!-- .entry-content -->
  33.  
  34.                 <div class="entry-foot">
  35.                     <?php wp_link_pages( array('before' => '<div class="entry-pages"><span>' . __('Pages:','k2_domain') . '</span>', 'after' => '</div>' ) ); ?>
  36.  
  37.                     <?php /* K2 Hook */ do_action('template_entry_foot'); ?>
  38.                 </div><!-- .entry-foot -->
  39.             </div><!-- #post-ID -->
  40.  
  41.             <?php if ( comments_open() ): ?>
  42.             <div class="comments">
  43.                 <?php comments_template(); ?>
  44.             </div><!-- .comments -->
  45.             <?php endif; ?>
  46.  
  47.             <?php /* if ( get_post_custom_values('comments') ): ?>
  48.             <div class="comments">
  49.                 <?php comments_template(); ?>
  50.             </div><!-- .comments -->
  51.             <?php endif; */ ?>
  52.  
  53.         <?php endwhile; else: define('K2_NOT_FOUND', true); ?>
  54.  
  55.             <?php locate_template( array('blocks/k2-404.php'), true ); ?>
  56.  
  57.         <?php endif; ?>
  58.  
  59.         </div><!-- #current-content -->
  60.  
  61.         <div id="dynamic-content"></div>
  62.     </div><!-- #primary -->
  63. </div><!-- #primary-wrapper -->
  64.  
  65. <?php if ( ! get_post_custom_values('sidebarless') ) get_sidebar(); ?>
  66.  
  67. </div><!-- .pagecontent -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement