Guest User

Untitled

a guest
Sep 4th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <?php
  2.  
  3. class td_module_6 extends td_module {
  4.  
  5. function __construct($post) {
  6. //run the parrent constructor
  7. parent::__construct($post);
  8. }
  9.  
  10. function render($block_id = null) {
  11. ob_start();
  12. ?>
  13.  
  14. <div class="<?php echo $this->get_module_classes();?>" <?php echo $this->get_item_scope();?>>
  15.  
  16. <?php echo $this->get_image('td_100x70');?>
  17.  
  18. <div class="item-details">
  19. <?php echo $this->get_title();?>
  20. <div class="td-module-meta-info">
  21. <?php if (td_util::get_option('tds_category_module_6') == 'yes') { echo $this->get_category(); }?>
  22.  
  23. <?php if ($block_id == 'block7') {?>
  24. <div class="td-custom-author">
  25. <?php
  26. $key_1_value = get_post_meta( $this->post->ID, 'custom_author_name', true );
  27. // Check if the custom field has a value.
  28. if ( ! empty( $key_1_value ) ) {
  29. echo $key_1_value . ' -';
  30. }?>
  31. </div>
  32. <?php } ?>
  33.  
  34. <?php echo $this->get_date();?>
  35. <?php //echo $this->get_comments();?>
  36. </div>
  37. </div>
  38. <?php echo $this->get_item_scope_meta();?>
  39. </div>
  40.  
  41. <?php return ob_get_clean();
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment