| Server IP : 212.183.175.188 / Your IP : 216.73.217.18 Web Server : Apache System : Linux duemilacom6.interac.it 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 User : cvevolpi ( 10022) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/cvevolpi.it/httpdocs/wp-content/themes/sentinel/printers/ |
Upload File : |
<?php
//require_once dirname(__FILE__).'/htmlPrinter.php';
if( ! class_exists( 'htmlPrinter' ) ){
locate_template( 'printers/htmlPrinter.php', true, true );
}
class htmlPrinter_PostTypes extends htmlPrinter {
////////////////////////////////////////////////////////////////////////////////
// TITLE, COMMENT COUNT, METAS
////////////////////////////////////////////////////////////////////////////////
public function the_title() { echo '<h1>UNDEFINED</h1>'; }
public function get_human_time_diff(){
return sprintf(ff_translate('post time-ago') , human_time_diff( get_post_time('U'), current_time('timestamp') ) );
}
public function how_much_ago(){
echo $this->get_human_time_diff();
}
public function the_read_more(){
echo '<a class="read_more" href="';
the_permalink();
echo '" data-disqus-identifier="';
the_ID();
echo '">';
echo ff_translate('post read-more');
echo '</a>';
}
public function comments_number(){
if( comments_disqus_isEnabled() ){
echo '<a class="comments_number" href="';
the_permalink();
echo '#disqus_thread">...</a>';
}else{
echo '<a class="comments_number comments_number_active" href="';
the_permalink();
echo '#comments">';
comments_number(
ff_translate('comment comments_zero'),
ff_translate('comment comments_one'),
ff_translate('comment comments_more')
);
echo '</a>';
}
}
////////////////////////////////////////////////////////////////////////////////
// CLASS END
////////////////////////////////////////////////////////////////////////////////
}