Guest User

Untitled

a guest
Apr 26th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.30 KB | None | 0 0
  1. <div class="entry clearfix post">
  2.                             <?php $width = 650;
  3.                                     $height = 9999;
  4.                                  
  5.                                   $classtext = '';
  6.                                   $titletext = get_the_title();
  7.                            
  8.                                   $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,true);
  9.                                   $thumb = $thumbnail["thumb"]; ?>
  10.                             <h1 class="title"><?php the_title(); ?></h1>
  11.                             <?php get_template_part('includes/postinfo'); ?>
  12.                            
  13.                             <?php if($thumb == '' || get_option('deepfocus_gallery_thumbnails') == 'false') echo('<div class="clear"></div>'); ?>
  14.                             <?php if (get_option('deepfocus_blog_thumbnails') == 'on' && $isBlogPage) { ?>
  15.                                
  16.                                 <?php if($thumb <> '') { ?>
  17.                                     <div class="clear"></div>
  18.                         <div class="gallery-thumb">
  19.                            <a href="<?php echo $thumbnail['fullpath']; ?>" rel="media" class="fancybox" title="<?php the_title(); ?>">
  20.                               <?php if ($thumbnail["use_timthumb"]) { ?>
  21.                                  <img src="<?php echo(print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext, false, false, false)); ?>" alt="<?php the_title(); ?>" />
  22.                               <?php } else { ?>
  23.                                  <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  24.                               <?php } ?>
  25.                               <span class="overlay"></span>
  26.                            </a>
  27.                            <div class="gallery-thumb-bottom">
  28.                               <div class="left-shadow"></div>
  29.                               <div class="bg"></div>
  30.                               <div class="right-shadow"></div>
  31.                            </div> <!-- end .gallery-thumb-botton -->
  32.                         </div> <!-- end .gallery-thumb -->
  33.                         <div class="clear"></div>
  34.                                 <?php } ?>
  35.                             <?php } ?>
  36.                                                        
  37.                             <?php if (get_option('deepfocus_gallery_thumbnails') == 'on' && !$isBlogPage) { ?>
  38.                                 <div class="clear"></div>
  39.                                 <div class="gallery-thumb">
  40.                                     <a href="<?php echo $thumbnail['fullpath']; ?>" rel="media" class="fancybox" title="<?php the_title(); ?>">
  41.                                         <?php if ($thumbnail["use_timthumb"]) { ?>
  42.                                             <img src="<?php echo(print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext, false, false, false)); ?>" alt="<?php the_title(); ?>" />
  43.                                         <?php } else { ?>
  44.                                             <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  45.                                         <?php } ?>
  46.                                         <span class="overlay"></span>
  47.                                     </a>
  48.                                     <div class="gallery-thumb-bottom">
  49.                                         <div class="left-shadow"></div>
  50.                                         <div class="bg"></div>
  51.                                         <div class="right-shadow"></div>
  52.                                     </div> <!-- end .gallery-thumb-botton -->
  53.                                 </div> <!-- end .gallery-thumb -->
  54.                                 <div class="clear"></div>
  55.                             <?php } ?>
  56.                            
  57.                            
  58.                             <?php the_content(); ?>
  59.                             <?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','DeepFocus').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  60.                             <?php edit_post_link(esc_html__('Edit this page','DeepFocus')); ?>
  61.                         </div> <!-- end .entry -->
Add Comment
Please, Sign In to add comment