Advertisement
Guest User

InStyle Theme 2.7 Page-Full-Width

a guest
Jul 2nd, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Full Width Page
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7.  
  8. <?php get_template_part('includes/top_info'); ?>
  9. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  10. <div id="content-top"></div>
  11. <div id="content" class="clearfix">
  12. <div id="content-area">
  13. <?php get_template_part('includes/breadcrumbs'); ?>
  14. <?php if (get_option('instyle_integration_single_top') <> '' && get_option('instyle_integrate_singletop_enable') == 'on') echo(get_option('instyle_integration_single_top')); ?>
  15.  
  16. <div class="entry clearfix post">
  17. <?php $thumb = '';
  18. $width = 211;
  19. $height = 211;
  20. $classtext = '';
  21. $titletext = get_the_title();
  22. $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
  23. $thumb = $thumbnail["thumb"]; ?>
  24.  
  25. <?php if($thumb <> '' && get_option('instyle_page_thumbnails') == 'on') { ?>
  26. <div class="post-thumbnail alignleft">
  27. <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  28. <span class="post-overlay"></span>
  29. </div> <!-- end .post-thumbnail -->
  30. <?php } ?>
  31.  
  32. <?php
  33. echo apply_filters('the_content',et_create_dropcaps(get_the_content()));
  34. ?>
  35. <?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','InStyle').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  36. <?php edit_post_link(esc_html__('Edit this page','InStyle')); ?>
  37. </div> <!-- end .entry -->
  38.  
  39. <?php if (get_option('instyle_integration_single_bottom') <> '' && get_option('instyle_integrate_singlebottom_enable') == 'on') echo(get_option('instyle_integration_single_bottom')); ?>
  40. </div> <!-- end #content-area -->
  41. </div> <!--end #content-->
  42. <div id="content-bottom"></div>
  43.  
  44. <?php if (get_option('instyle_show_pagescomments') == 'on') comments_template('', true); ?>
  45. <div class="clear"></div>
  46. <?php endwhile; endif; ?>
  47. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement