Guest User

Untitled

a guest
Jun 6th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * this module is similar to single
  5. * Class td_module_15
  6. */
  7.  
  8. class td_module_15 extends td_module_single {
  9.  
  10. function __construct($post) {
  11. //run the parrent constructor
  12. parent::__construct($post);
  13. }
  14.  
  15. function render() {
  16. ob_start();
  17. $post_classes = get_post_class('', $this->post->ID);
  18. foreach ($post_classes as $key => $post_class) {
  19. if ($post_class == 'hentry') {
  20. unset($post_classes[$key]);
  21. }
  22. }
  23. ?>
  24. <div class="<?php echo $this->get_module_classes(array_merge($post_classes, array("td-post-content"))); ?>">
  25. <div class="item-details">
  26. <?php echo $this->get_title();?>
  27. <div class="meta-info">
  28. <?php if (td_util::get_option('tds_category_module_15') == 'yes') { echo $this->get_category(); }?>
  29. <?php echo $this->get_author();?>
  30. <?php echo $this->get_date();?>
  31. <?php echo $this->get_comments();?>
  32. </div>
  33.  
  34. <?php echo $this->get_image('td_640x0');?>
  35.  
  36. <div class="td-post-text-content">
  37. <?php echo $this->get_content();?>
  38. </div>
  39. </div>
  40.  
  41. </div>
  42.  
  43. <?php return ob_get_clean();
  44. }
  45. }
  46.  
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment