| Server IP : 192.241.186.36 / Your IP : 216.73.216.164 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/pushyard/wp-content/themes/stratusx/templates/ |
Upload File : |
<?php
$num_comments = get_comments_number(); // get_comments_number returns only a numeric value
$write_comments = "";
if ( comments_open() ) {
if ( $num_comments == 0 ) {
$comments = esc_html__('No Comments', 'stratus');
} elseif ( $num_comments > 1 ) {
$comments = $num_comments . esc_html__(' Comments', 'stratus');
} else {
$comments = esc_html__('1 Comment', 'stratus');
}
$write_comments = '| <a href="' . esc_url(get_comments_link()) .'">'. $comments.'</a>';
}
$title = get_the_title();
$perma = get_permalink();
$link_the_date_open = false;
$link_the_date_close = false;
if(!$title > '' && $perma > ""){
$link_the_date_open = '<a href="'.esc_url($perma).'">';
$link_the_date_close = '</a>';
}
?>
<div class="post-meta"><span class="show-author"><?php echo esc_html__('Posted by', 'stratus'); ?> <?php echo the_author_posts_link(); ?></span> <span class="show-date"><span class="pre-date"><?php echo esc_html__('on', 'stratus'); ?></span> <time class="published" datetime="<?php echo get_the_time('c'); ?>"><?php echo wp_kses_post( $link_the_date_open );?><?php echo get_the_date(); ?><?php echo wp_kses_post( $link_the_date_close );?></time></span> <span class="is-sticky">| <?php echo esc_html__('Featured', 'stratus'); ?></span> <span class="show-comments"><?php echo wp_kses_post( $write_comments ); ?></span></div>