Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * this module is similar to single
- * Class td_module_15
- */
- class td_module_15 extends td_module_single {
- function __construct($post) {
- //run the parrent constructor
- parent::__construct($post);
- }
- function render() {
- ob_start();
- $post_classes = get_post_class('', $this->post->ID);
- foreach ($post_classes as $key => $post_class) {
- if ($post_class == 'hentry') {
- unset($post_classes[$key]);
- }
- }
- ?>
- <div class="<?php echo $this->get_module_classes(array_merge($post_classes, array("td-post-content"))); ?>">
- <div class="item-details">
- <?php echo $this->get_title();?>
- <div class="meta-info">
- <?php if (td_util::get_option('tds_category_module_15') == 'yes') { echo $this->get_category(); }?>
- <?php echo $this->get_author();?>
- <?php echo $this->get_date();?>
- <?php echo $this->get_comments();?>
- </div>
- <?php echo $this->get_image('td_640x0');?>
- <div class="td-post-text-content">
- <?php echo $this->get_content();?>
- </div>
- </div>
- </div>
- <?php return ob_get_clean();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment