New Paste

 

Recent Pastes

Administrate




PageLines PasteBin.

PasteID: 8be
Pasted by Anonymous, 2012-06-05 13:30:17 GMT
Expires Never
Paste size 5.06 Kb
Toggle Expand   Wrap   Raw
Copy Contents   Copy URL
 
  1. <?php
  2.  
  3.  
  4.  
  5. $image = "http://www.*****.ca/wordpress/wp-content/uploads/2011/07/title-post.jpg";  
  6.  
  7. Echo "<img src=".$image." Style=width:640px;height:116px;>"
  8.  
  9.  
  10.  
  11. ?>
  12.  
  13. <?php if(is_search()):?>
  14. 	<div class="posts-news">
  15. 	<h2 class="pagetitle posts-news-headline"><?php _e('Search Results For:',TDOMAIN);?> <span>"<?php the_search_query(); ?>"</span></h2>
  16. 	</div>
  17. <?php endif;?>
  18.  
  19.  <!-- The Loop -->
  20. <?php if (!is_404() && have_posts()) : while (have_posts()) : the_post(); // Start of the loop ?>
  21.  
  22. 	<div class="postwrap fix">	
  23.  
  24. 		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  25. 			<?php if(is_single()):?>
  26. 				<div class="post-nav fix"> <span class="previous"><?php previous_post_link('%link') ?></span> <span class="next"><?php next_post_link('%link') ?></span></div>
  27. 			<?php endif;?>
  28.  
  29. 			<?php if(!is_page()):?>	
  30. 			<div class="copy fix">		
  31. 					<?php if(pl_show_thumb($post->ID)): ?>
  32. 			            		<div class="thumb left">
  33. 									<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link To', TDOMAIN);?> <?php the_title_attribute();?>">
  34. 										<?php the_post_thumbnail('thumbnail');?>
  35. 									</a>
  36. 					            </div>
  37. 					<?php elseif (get_post_meta($post->ID, 'thumb', true)): ?>
  38. 						<?php $postimageurl = get_post_meta($post->ID, 'thumb', true); ?>
  39. 		            	<div class="thumb left">
  40. 			              <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link To', TDOMAIN);?> <?php the_title_attribute();?>">
  41. 							<img src="<?php echo $postimageurl; ?>" alt="Post Pic" width="200" height="200" />
  42. 						</a>
  43. 			            </div>
  44. 					<?php endif; ?>
  45.  
  46. 					<div class="post-header fix <?php if(!pl_show_thumb($post->ID) && !get_post_meta($post->ID, 'thumb', true)) echo 'post-nothumb';?>" style="<?php 
  47. 						if(pl_show_thumb($post->ID)){
  48. 							$post_header_width = 555 - get_option('thumbnail_size_w');
  49. 							echo 'width: '.$post_header_width.'px';
  50. 						}?>">
  51. 						<div class="post-title-section fix">
  52. 							<div class="post-title fix">
  53. 								<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link to',TDOMAIN);?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  54. 								<div class="metabar">
  55. 									<em>
  56. 									<?php _e('On',TDOMAIN);?> <?php the_time(get_option('date_format')); ?>, 
  57. 									<?php _e('in',TDOMAIN);?> <?php the_category(', ') ?>, 
  58. 									<?php _e('by',TDOMAIN);?> <?php the_author(); ?>
  59. 									<!-- <?php edit_post_link(__('<strong>(Edit Post)</strong>', TDOMAIN), ' ', ' ');?> -->
  60. 									</em>
  61. 								</div>
  62. 							</div>
  63. 						</div>
  64. 						<!--/post-title -->
  65.  
  66. 						<?php if(pl_show_excerpt($post->ID)):?>
  67. 								<div class="post-excerpt">
  68. 									<?php the_excerpt(); ?>
  69. 								</div>
  70. 						<?php endif; ?>
  71. 					</div>				
  72.  
  73. 			</div>
  74. 			<?php endif;?>
  75. 			<?php  if(pl_show_content($post->ID)):?>  	
  76. 				<div class="copy fix">
  77. 					<?php if(pagelines('pagetitles') && is_page()  || is_page_template('page-feature-blog.php')):?>
  78. 						<h1 class="pagetitle"><?php the_title(); ?></h1>
  79. 					<?php endif;?>
  80. 					<div class="textcontent">
  81. 						<?php the_content(__('<p>Continue reading &raquo;</p>',TDOMAIN)); ?>
  82. 						<div class="clear"></div>	
  83. 						<?php wp_link_pages(__('<p><strong>Pages:</strong>', TDOMAIN), '</p>', __('number', TDOMAIN)); ?>
  84. 						<?php edit_post_link(__('Edit',TDOMAIN), '<p>', '</p>'); ?>	
  85. 						<div class="clear"></div>
  86. 					</div>	
  87. 					<div class="tags">
  88. 					<?php the_tags(__('Tagged with: ', TDOMAIN),' &bull; ','<br />'); ?>&nbsp;
  89. 					</div>
  90. 				</div>
  91. 				<?php if(pagelines('authorinfo') && is_single()):?>
  92. 					<?php get_template_part('library/_authorinfo');?>
  93. 				<?php endif;?>
  94.  
  95. 			<?php endif;?>
  96.  
  97. 			<?php if(!is_page()) get_template_part('library/_post_footer');?>
  98. 		</div><!--post -->
  99.  
  100. 	</div>
  101.  
  102.  
  103. 	<div class="clear"></div>
  104.  
  105. 		<?php if(is_single() || is_page()):?>
  106.  
  107. 			<?php get_template_part("library/_contentsidebar");?>
  108.  
  109. 			<div class="postwrap <?php if(!have_comments() && 'open' != $post->comment_status) echo "nocommentform";?>">	
  110. 				<div class="hentry">		
  111. 					<div class="copy"> <?php comments_template();?></div>
  112. 				</div>
  113. 				<br/><br/>
  114. 			</div>
  115.  
  116. 		<?php endif; endwhile; ?>
  117.  
  118. 	<?php get_template_part('library/_pagination');?>
  119.  
  120.  
  121. 	<?php else : ?>
  122. 		<div class="postwrap fix">
  123. 			<div class="hentry">
  124. 			<div class="billboard">
  125. 				<?php if(is_404()):?>
  126. 					<h2 class="center"><?php _e('Error 404 - Page Not Found',TDOMAIN);?></h2>
  127. 				<?php else:?>
  128. 					<h2 class="center"><?php _e('Nothing Found',TDOMAIN);?></h2>
  129. 				<?php endif;?>
  130. 				<p class="center"><?php _e('Sorry, what you are looking for isn\'t here.', TDOMAIN);?></p>
  131. 				<div class="center fix"><?php get_template_part ('library/_searchform'); ?></div>
  132. 			</div>
  133. 			</div>
  134. 		</div>
  135.  
  136. <?php endif; // end the loop ?> 
  137.  
  138.  
  139.  
  140.  
  141.  
 
 
 

 
 
 
 
 
Written by Xan Manning, 2010.
YOU NEED FLASH!