Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="newsPage">
- <div id="leftColumn">
- <?php the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <h1 class="entry-title floatLeft"><?php the_title(); ?></h1>
- <p class="floatRight"><a href="javascript:history.go(-1)">< Back</a></p>
- <div class="clearBoth"></div>
- <div class="entry-meta">
- <span class="meta-prep meta-prep-author"><?php _e('By ', 'template_directory'); ?></span>
- <span class="author vcard"><a class="url fn n" href="<?php echo get_author_link( false, $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'template_directory' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
- <span class="meta-sep"> | </span>
- <span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'template_directory'); ?></span>
- <span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span>
- <?php edit_post_link( __( 'Edit', 'template_directory' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>
- </div><!-- .entry-meta -->
- <div class="entry-content">
- <?php
- $thumbnail_id=get_the_post_thumbnail($post->ID, 'large');
- preg_match ('/src="(.*)" class/',$thumbnail_id,$link);
- $title = get_the_title();
- ?>
- <a href="<?php echo $link[1]; ?>" rel="lightbox" title="<?php echo $title; ?>"><?php the_post_thumbnail('category-thumb'); ?></a>
- <?php the_content(); ?>
- <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'template_directory' ) . '&after=</div>') ?>
- </div><!-- .entry-content -->
- <div class="entry-utility">
- <p><?php printf( __( 'This entry was posted in %1$s%2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'template_directory' ),
- get_the_category_list(', '),
- get_the_tag_list( __( ' and tagged ', 'template_directory' ), ', ', '' ),
- get_permalink(),
- the_title_attribute('echo=0'),
- comments_rss() ) ?>
- <?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?>
- <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'template_directory' ), get_trackback_url() ) ?>
- <?php elseif ( !('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?>
- <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'template_directory' ), get_trackback_url() ) ?>
- <?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?>
- <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'template_directory' ) ?>
- <?php elseif ( !('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
- <?php _e( 'Both comments and trackbacks are currently closed.', 'template_directory' ) ?>
- <?php endif; ?>
- <?php edit_post_link( __( 'Edit', 'template_directory' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?></p>
- </div><!-- .entry-utility -->
- </div><!-- #post-<?php the_ID(); ?> -->
- <div class="clearBoth"></div>
- <?php comments_template('', true); ?>
- <div id="nav-below" class="navigation">
- <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">«</span> %title' ) ?></div>
- <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">»</span>' ) ?></div>
- <div class="clearBoth"></div>
- </div><!-- #nav-below -->
- </div>
- <div id="rightColumn">
- <div id="archiveListPanel">
- <h2><a href="/category/latest-news/">Latest News</a></h2>
- <ul>
- <?php
- $IDOutsideLoop = $post->ID;
- global $post;
- $myposts = get_posts( array ( 'category_name' => 'Latest News', 'posts_per_page' => -1 ) );
- foreach($myposts as $post) :
- ?>
- <li <?php if(is_single() && $IDOutsideLoop == $post->ID) print 'class="currentPost"' ?>><a href="<?php the_permalink(); ?>">
- <?php the_title(); ?>
- </a></li>
- <?php endforeach; ?>
- </ul>
- </div>
- <div id="newsArchivePanel">
- <h2><a href="/category/archive/">News Archive</a></h2>
- <ul>
- <?php
- $IDOutsideLoop = $post->ID;
- global $post;
- $myposts = get_posts( array ( 'category_name' => 'Archive', 'posts_per_page' => -1 ) );
- foreach($myposts as $post) :
- ?>
- <li <?php if(is_single() && $IDOutsideLoop == $post->ID) print 'class="currentPost"' ?>><a href="<?php the_permalink(); ?>">
- <?php the_title(); ?>
- </a></li>
- <?php endforeach; ?>
- </ul>
- </div>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement