Advertisement
Guest User

Untitled

a guest
Apr 1st, 2012
70
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. <?php if (get_option('thesource_integration_single_top') <> '' && get_option('thesource_integrate_singletop_enable') == 'on') echo(get_option('thesource_integration_single_top')); ?>
  8.  
  9. <div id="main-content-wrap">
  10. <div id="main-content" class="clearfix fullwidth">
  11. <?php get_template_part('includes/breadcrumb'); ?>
  12. <div id="top-shadow"<?php if(is_front_page()) echo(' class="nobg"'); ?>></div>
  13.  
  14. <div id="recent-posts" class="clearfix">
  15. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  16. <div class="entry post clearfix">
  17. <h1 class="title"><?php the_title(); ?></h1>
  18. <div class="entry-content">
  19. <?php $thumb = '';
  20. $width = (int) get_option('thesource_thumbnail_width_pages');
  21. $height = (int) get_option('thesource_thumbnail_height_pages');
  22. $classtext = 'thumb alignleft';
  23. $titletext = get_the_title();
  24.  
  25. $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
  26. $thumb = $thumbnail["thumb"]; ?>
  27.  
  28. <?php if($thumb <> '' && get_option('thesource_page_thumbnails') == 'on') { ?>
  29. <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?>
  30. <p class="date"><span><?php the_time(get_option('thesource_date_format')) ?></span></p>
  31. <?php }; ?>
  32.  
  33. <?php the_content(); ?>
  34. <?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','TheSource').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  35. <?php edit_post_link(esc_html__('Edit this page','TheSource')); ?>
  36. </div> <!-- end .entry-content -->
  37. </div> <!-- end .entry -->
  38.  
  39. <?php if (get_option('thesource_show_pagescomments') == 'on') comments_template('', true); ?>
  40. <?php endwhile; endif; ?>
  41. </div> <!-- end #recent-posts -->
  42.  
  43. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement