daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest May 14th, 2016 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. файл single.php  
  2.  
  3. <?php get_header(); ?>
  4.     <div id="main-area">
  5.     <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  6.         <?php if (get_option('memoir_integration_single_top') <> '' && get_option('memoir_integrate_singletop_enable') == 'on') echo(get_option('memoir_integration_single_top')); ?>
  7.  
  8.         <div class="entry clearfix post">
  9.             <h1 class="title"><?php the_title(); ?></h1>
  10.  
  11.             <?php $thumb = '';
  12.             $width = 135;
  13.             $height = 135;
  14.             $classtext = '';
  15.             $titletext = get_the_title();
  16.             $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
  17.             $thumb = $thumbnail["thumb"]; ?>
  18.  
  19.             <?php if($thumb <> '' && get_option('memoir_thumbnails') == 'on') { ?>
  20.                 <div class="post-thumbnail alignleft">
  21.                     <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  22.                     <span class="post-overlay"></span>
  23.                 </div>  <!-- end .post-thumbnail -->
  24.             <?php } ?>
  25.  
  26.             <?php
  27.                 echo apply_filters('the_content',et_create_dropcaps(get_the_content()));
  28.             ?>
  29.             <?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','Memoir').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  30.             <?php edit_post_link(esc_html__('Edit this page','Memoir')); ?>
  31.  
  32.             <?php get_template_part('includes/postinfo'); ?>
  33.         </div> <!-- end .entry -->
  34.  
  35.         <?php if (get_option('memoir_integration_single_bottom') <> '' && get_option('memoir_integrate_singlebottom_enable') == 'on') echo(get_option('memoir_integration_single_bottom')); ?>
  36.  
  37.         <?php if (get_option('memoir_468_enable') == 'on') { ?>
  38.             <?php if(get_option('memoir_468_adsense') <> '') echo(get_option('memoir_468_adsense'));
  39.             else { ?>
  40.                 <a href="<?php echo esc_url(get_option('memoir_468_url')); ?>"><img src="<?php echo esc_url(get_option('memoir_468_image')); ?>" alt="468 ad" class="foursixeight" /></a>
  41.             <?php } ?>
  42.         <?php } ?>
  43.  
  44.         <?php if (get_option('memoir_show_postcomments') == 'on') comments_template('', true); ?>
  45.     <?php endwhile; endif; ?>
  46.     </div> <!-- end #main-area -->
  47.     <?php get_sidebar(); ?>
  48. <?php get_footer(); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top