Guest User

Untitled

a guest
Oct 8th, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. class td_module_3 extends td_module {
  5.  
  6. function __construct($post) {
  7. //run the parrent constructor
  8. parent::__construct($post);
  9. }
  10.  
  11. function render() {
  12. ob_start();
  13. ?>
  14.  
  15. <div class="td_mod3 td_mod_wrap <?php echo $this->get_no_thumb_class();?>" <?php echo $this->get_item_scope();?>>
  16. <?php echo $this->get_image('art-thumb');?>
  17. <div class="item-details">
  18. <?php echo $this->get_title(td_util::get_option('tds_mod3_title_excerpt'));?>
  19. <?php
  20. $this->td_post_theme_settings = get_post_meta($this->post->ID, 'td_post_theme_settings', true);
  21. if (!empty($this->td_post_theme_settings['td_source']) or !empty($this->td_post_theme_settings['td_source_url'])){
  22. echo '<div class="post-source-via"><div class="post-via"><a rel="nofollow" href="' . $this->td_post_theme_settings['td_source_url'] . '">' . $this->td_post_theme_settings['td_source'] . '</a></div></div>';
  23. }
  24. //echo @$this->td_post_theme_settings['td_source'];
  25.  
  26.  
  27. ?>
  28. <div class="meta-info">
  29. <?php //echo $this->get_author();?>
  30. <?php echo $this->get_date();?>
  31. <?php //echo $this->get_commentsAndViews();?>
  32. </div>
  33. </div>
  34. <?php echo $this->get_item_scope_meta();?>
  35. </div>
  36.  
  37. <?php return ob_get_clean();
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment