HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: 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,
Upload Files
File: /var/www/html/wpdehaus/wp-content/themes/salient/includes/partials/single-post/post-meta-fields.php
<?php
/**
 * Post meta fields
 *
 * @package Salient WordPress Theme
 * @subpackage Partials
 * @version 13.1
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

global $nectar_options;

$date_functionality    = (isset($nectar_options['post_date_functionality']) && !empty($nectar_options['post_date_functionality'])) ? $nectar_options['post_date_functionality'] : 'published_date';
$remove_post_date      = ( isset( $nectar_options['blog_remove_single_date'] ) ) ? $nectar_options['blog_remove_single_date'] : '0';
$remove_post_author    = ( isset( $nectar_options['blog_remove_single_author'] ) ) ? $nectar_options['blog_remove_single_author'] : '0';
$remove_comment_number = ( isset( $nectar_options['blog_remove_single_comment_number'] ) ) ? $nectar_options['blog_remove_single_comment_number'] : '0';
$remove_reading_dur    = ( isset( $nectar_options['blog_remove_single_reading_dur'] ) ) ? $nectar_options['blog_remove_single_reading_dur'] : '0';


if ( have_posts() ) :
  while ( have_posts() ) :
    the_post();

    // author.
    if( '1' !== $remove_post_author ) {
      echo '<span class="meta-author vcard author">';
      if ( function_exists( 'get_avatar' ) ) {
        echo get_avatar( get_the_author_meta( 'email' ), 40, null, get_the_author() ); }
      echo'<span class="fn">' . get_the_author_posts_link() . '</span></span>';
    }

    // date.
    if( '1' !== $remove_post_date ) {
      if( 'last_editied_date' === $date_functionality ) {
        echo '<span class="meta-date date updated">'.get_the_modified_date().'</span>';
      } else {
        $nectar_u_time 					= get_the_time('U');
        $nectar_u_modified_time = get_the_modified_time('U');
        if( $nectar_u_modified_time >= $nectar_u_time + 86400 ) {
          echo '<span class="meta-date date published">' . get_the_date() . '</span>';
          echo '<span class="meta-date date updated rich-snippet-hidden">' . get_the_modified_time(__( 'F jS, Y' , 'salient' )) . '</span>';
        } else {
          echo '<span class="meta-date date updated">' . get_the_date() . '</span>';
        }
      }
    }

    // reading duration.
    if( '1' !== $remove_reading_dur ) {
      echo '<span class="meta-reading-time">'.nectar_estimated_reading_time(get_the_content()). ' '. esc_html__('min read','salient').'</span>';
    }

endwhile;
endif;