Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.10 KB | None | 0 0
  1. <?php // Setup read more url variable
  2.  
  3.   $template_url = get_bloginfo('template_url');
  4.  
  5.   $read_more = "<img src=\"$template_url/images/entry-more.png\" alt=\"Read more\"/>";    
  6.  
  7. ?>
  8. <?php get_header(); ?>
  9.   <?php if (have_posts()) : ?>
  10.   <div id="main-top">
  11.     <div class="main-top-left">
  12.       <h4><?php the_time(__('F j, Y')) ?></h4>
  13.       <div class="single-comments">
  14.         <a href="#comments"><?php comments_number('', '1', '%'); ?></a>
  15.       </div>
  16.     </div>
  17.     <?php if (is_file(STYLESHEETPATH . '/subscribe.php')) include(STYLESHEETPATH . '/subscribe.php'); else include(TEMPLATEPATH . '/subscribe.php'); ?>
  18.   </div>
  19.   <div id="main" class="clear">
  20.     <div id="content">
  21.       <?php while (have_posts()) : the_post(); ?>
  22.       <div id="post-<?php the_ID(); ?>" <?php post_class('clear single'); ?>>
  23.         <h1 class="title"><?php the_title(); ?></h1>
  24.         <div class="entry single">
  25.           <?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail('index-thumb', array('class' => 'single-post-thm alignright border') ); ?>
  26.           <?php the_content(__('Подробнее' . $read_more, 'traction')); ?>
  27.           <?php edit_post_link(__('Редактировать','<p>','</p>', 'traction')); ?>
  28.           <?php wp_link_pages(); ?>
  29.         </div><!--end entry-->
  30. <script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
  31. <div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj,friendfeed,moikrug,gplus"></div>
  32.         <div class="meta clear">
  33.           <div class="cats"><?php _e('<em>Узнайте больше из</em>', 'traction') ?> <?php the_category(', '); ?></div>
  34.           <div class="tags"><?php the_tags(''); ?></div>
  35.         </div><!--end meta-->
  36.       </div><!--end post-->
  37.       <?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
  38.         <?php comments_template('', true); ?>
  39.       <?php else : ?>
  40.       <?php endif; ?>
  41.     </div><!--end content-->
  42. <?php get_sidebar(); ?>
  43. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement