Guest User

Untitled

a guest
Nov 24th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. <?php if (is_category()) { ?>
  2. <div class="et_pt_blogentry clearfix">
  3. <h2 class="et_pt_title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  4.  
  5. <p class="et_pt_blogmeta"><?php _e('Posted','Feather'); ?> <?php _e('by','Feather'); ?> <?php the_author_posts_link(); ?> <?php _e('on','Feather'); ?> <?php the_time(get_option('feather_date_format')) ?> <?php _e('in','Feather'); ?> <?php the_category(', ') ?> | <?php comments_popup_link(__('0 comments','Feather'), __('1 comment','Feather'), '% '.__('comments','Feather')); ?></p>
  6.  
  7. <?php $thumb = '';
  8. $width = 184;
  9. $height = 184;
  10. $classtext = '';
  11. $titletext = get_the_title();
  12.  
  13. $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
  14. $thumb = $thumbnail["thumb"]; ?>
  15.  
  16. <?php if ( $thumb <> '' && !$et_ptemplate_showthumb ) { ?>
  17. <div class="et_pt_thumb alignleft">
  18. <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  19. <a href="<?php the_permalink(); ?>"><span class="overlay"></span></a>
  20. </div> <!-- end .thumb -->
  21. <?php }; ?>
  22.  
  23. <?php if (!$et_ptemplate_blogstyle) { ?>
  24. <p><?php truncate_post(550);?></p>
  25. <a href="<?php the_permalink(); ?>" class="readmore"><span><?php _e('read more','Feather'); ?></span></a>
  26. <?php } else { ?>
  27. <?php the_content(''); ?>
  28. <?php } ?>
  29. </div> <!-- end .et_pt_blogentry -->
  30.  
  31. <?php } else { ?>
  32. <div class="post entry clearfix">
  33. <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  34. <?php include(TEMPLATEPATH . '/includes/postinfo.php'); ?>
  35. <?php
  36. $thumb = '';
  37. $width = 178;
  38. $height = 178;
  39. $classtext = 'post-thumb';
  40. $titletext = get_the_title();
  41. $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
  42. $thumb = $thumbnail["thumb"];
  43. ?>
  44. <?php if($thumb <> '' && get_option('feather_thumbnails_index') == 'on') { ?>
  45. <div class="post-thumbnail">
  46. <a href="<?php the_permalink(); ?>">
  47. <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  48. <span class="post-overlay"></span>
  49. </a>
  50. </div> <!-- end .post-thumbnail -->
  51. <?php } ?>
  52. <?php if (get_option('feather_blog_style') == 'on') the_content(''); else { ?>
  53. <p><?php truncate_post(500); ?></p>
  54. <?php }; ?>
  55. <a href="<?php the_permalink(); ?>" class="read-more"><?php _e('Read More','Feather'); ?></a>
  56. </div> <!-- end .post-->
  57. <?php } ?>
Add Comment
Please, Sign In to add comment