Don't like ads? PRO users don't see any ads ;-)
Guest

single.php

By: a guest on May 9th, 2012  |  syntax: PHP  |  size: 3.20 KB  |  hits: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php get_header(); ?>
  2.         <div class="span-24" id="contentwrap"> 
  3.                         <div class="span-16">
  4.                                 <div id="content">     
  5.                                         <?php if (have_posts()) : ?>   
  6.                                                 <?php while (have_posts()) : the_post(); ?>
  7.                                                 <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  8.                                                         <h2 class="title"><?php the_title(); ?></h2>
  9.                                                         <div class="postdate"><img src="<?php bloginfo('template_url'); ?>/images/date.png" /> <?php the_time('j F Y') ?> <img src="<?php bloginfo('template_url'); ?>/images/user.png" /> <?php the_author() ?> <?php if (current_user_can('edit_post', $post->ID)) { ?> <img src="<?php bloginfo('template_url'); ?>/images/edit.png" /> <?php edit_post_link('Редактировать', '', ''); } ?></div>
  10.                        
  11.                                                         <div class="entry">
  12. <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(300,225), array("class" => "alignleft post_thumbnail")); } ?>
  13.                                                                 <?php the_content('Read more &raquo;'); ?>
  14.                                                                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  15.                                                         </div>
  16.                                                         <div class="postmeta"><img src="<?php bloginfo('template_url'); ?>/images/folder.png" /> Рубрика: <?php the_category(', ') ?> <?php if(get_the_tags()) { ?> <img src="<?php bloginfo('template_url'); ?>/images/tag.png" /> <?php  the_tags('Метки: ', ', '); } ?></div>
  17.                                                
  18.                                                         <div class="navigation clearfix">
  19.                                                                 <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
  20.                                                                 <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
  21.                                                         </div>
  22.                                                        
  23.                                                         <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
  24.                                                                 // Both Comments and Pings are open ?>
  25.                                                                 Вы можете <a href="#respond">оставить комментарий</a>, или отправить <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> с Вашего собственного сайта.
  26.        
  27.                                                         <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
  28.                                                                 // Only Pings are Open ?>
  29.                                                                 Обсуждение в настоящее время закрыто, но вы можете послать <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> с вашего собственного сайта.
  30.        
  31.                                                         <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
  32.                                                                 // Comments are open, Pings are not ?>
  33.                                                                 Вы можете пролистать до конца и оставить комментарий. Уведомления сейчас отключены.
  34.        
  35.                                                         <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
  36.                                                                 // Neither Comments, nor Pings are open ?>
  37.                                                                 Комментарии и уведомления в настоящее время закрыты.
  38.        
  39.                                                         <?php } edit_post_link('Редактировать эту запись','','.'); ?>
  40.                                                 </div><!--/post-<?php the_ID(); ?>-->
  41.                                                
  42.                                 <?php comments_template(); ?>
  43.                                
  44.                                 <?php endwhile; ?>
  45.                        
  46.                                 <?php endif; ?>
  47.                         </div>
  48.                         </div>
  49.                 <?php get_sidebars(); ?>
  50.         </div>
  51. <?php get_footer(); ?>