Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
benitouk
tagDiv Member

Hello Bogdan,

I just want to match the font I’m using in the desktop version to the one in the mobile theme.

How can I select a different friendly font for the mobile theme?

Thank you!

benitouk
tagDiv Member

Any idea how I can do this? Thanks

benitouk
tagDiv Member

Hi Bogdan,

Now I just need to put the word “ago” before the time.

At the moment, it says “X hours ago”, I need to change it to “ago X hours” so it matches my language.

Thanks again!

benitouk
tagDiv Member

Sorry for not explaining properly. I meant to say that all the blog posts showed 5 days ago. Today, all of them, even the new ones say “6 days ago” like this:

This is the code that I have for module 1. Is there something missing?:

<?php

class td_module_1 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="td-module-image">
<?php echo $this->get_image('td_324x160');?>
<?php if (td_util::get_option('tds_category_module_1') == 'yes') { echo $this->get_category(); }?>
</div>
<?php echo $this->get_title();?>

<div class="td-module-meta-info">
<?php echo $this->get_author();?>
<?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?>
<!-- --><?php //echo $this->get_date():?>
<?php echo $this->get_comments();?>
</div>

<?php echo $this->get_quotes_on_blocks();?>

</div>

<?php return ob_get_clean();
}
}

What am I doing wrong? Thanks again!

benitouk
tagDiv Member

For some reason, all the entries show “5 days ago”

What am I doing wrong?

benitouk
tagDiv Member

For some reason, all the entries show “5 days ago”

What am I doing wrong?

benitouk
tagDiv Member

Great! I just needed that . before the 0

😀

benitouk
tagDiv Member

Thanks! it worked perfectly 🙂

Viewing 8 posts - 1 through 8 (of 8 total)