Source and Via in blog loop

Posted in: Newspaper
Post count: 9

Thank you for a great theme.

I am trying to output source and via in the blog loop below the excerpt but cannot get it to work. I have made the the following changes in module 14:

<?php

class td_module_14 extends td_module {

function __construct($post) {
//run the parrent constructor
parent::__construct($post);
}

function render() {
ob_start();
?>

<div class=”<?php echo $this->get_module_classes();?>”>
<div class=”meta-info-container”>
<?php echo $this->get_image(‘td_696x385’);?>

<div class=”td-module-meta-info”>
<div class=”td-module-meta-holder”>
<?php echo $this->get_title();?>
<?php if (td_util::get_option(‘tds_category_module_14’) == ‘yes’) { echo $this->get_category(); }?>

<?php echo $this->get_date();?>
<?php echo $this->get_comments();?>
</div>
</div>
</div>

<div class=”td-excerpt”>
<?php echo $this->get_excerpt();?>
<div class=”source”><?php echo $this->get_source_and_via();?>
</div>
<div class=”td-read-more”>
href;?>”><?php echo __td(‘Read more’, TD_THEME_NAME);?>
</div>
<div class=”footer”> <?php echo get_avatar( $size = ’30’ ); ?> <?php echo $this->get_author();?></div>
</div>

</div>

<?php return ob_get_clean();
}
}

Post count: 22421

Hello,
Unfortunately this will not work simply by copying this part:

get_source_and_via();?>. It will have to be created/adapted from td_module_single_base.php (where the function is defined http://screencast.com/t/Wdhlluuevqd) and moved over to td_module.php It will require quite a bit of php knowledge so if you cannot do it on your own we suggest hiring a freelancer to help out.
Thank you!
Post count: 9

Hi Bogdan

Thank you for your response.
Ok, I understand and my php knowledge are not that great. I was hoping to be able to use the theme functions but will use ACE instead.

Thank you once again for an awesome theme.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.