Guest User

Untitled

a guest
Jul 30th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <?php
  2. class td_module_4 extends td_module {
  3. function __construct($post) {
  4. //run the parrent constructor
  5. parent::__construct($post);
  6. }
  7.  
  8. function render() {
  9. ob_start();
  10. ?>
  11.  
  12. <div class="<?php echo $this->get_module_classes();?>" <?php echo $this->get_item_scope() ?>>
  13. <div class="td-module-image">
  14. <?php echo $this->get_image('td_324x235'); ?>
  15. <?php if (td_util::get_option('tds_category_module_4') == 'yes') { echo $this->get_category(); }?>
  16. </div>
  17.  
  18. <?php echo $this->get_title(); ?>
  19.  
  20. <div class="td-module-meta-info">
  21. <?php echo $this->get_author();?>
  22. <?php echo $this->get_date();?>
  23. <?php echo $this->get_comments();?>
  24. </div>
  25.  
  26. <div class= "td-excerpt">
  27. <?php echo wp_trim_words(get_the_excerpt(), 3); ?>
  28. </div>
  29.  
  30. <!--<div class="td-excerpt">
  31. <?php /*echo $this->get_excerpt(); */?>
  32. </div>-->
  33.  
  34. <?php echo $this->get_quotes_on_blocks();?>
  35.  
  36. <?php echo $this->get_item_scope_meta(); ?>
  37.  
  38. </div>
  39.  
  40. <?php
  41. return ob_get_clean();
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment