Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class td_module_6 extends td_module {
- function __construct($post) {
- //run the parrent constructor
- parent::__construct($post);
- }
- function render($block_id = null) {
- ob_start();
- ?>
- <div class="<?php echo $this->get_module_classes();?>" <?php echo $this->get_item_scope();?>>
- <?php echo $this->get_image('td_100x70');?>
- <div class="item-details">
- <?php echo $this->get_title();?>
- <div class="td-module-meta-info">
- <?php if (td_util::get_option('tds_category_module_6') == 'yes') { echo $this->get_category(); }?>
- <?php if ($block_id == 'block7') {?>
- <div class="td-custom-author">
- <?php
- $key_1_value = get_post_meta( $this->post->ID, 'custom_author_name', true );
- // Check if the custom field has a value.
- if ( ! empty( $key_1_value ) ) {
- echo $key_1_value . ' -';
- }?>
- </div>
- <?php } ?>
- <?php echo $this->get_date();?>
- <?php //echo $this->get_comments();?>
- </div>
- </div>
- <?php echo $this->get_item_scope_meta();?>
- </div>
- <?php return ob_get_clean();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment