HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
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/Application/wp-content/themes/zoomy/single.php
<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package zoomy
 */

get_header();
$opt                        = get_option( 'zoomy_opt' );
$blog_column                = is_active_sidebar( 'sidebar_widgets' ) ? '8' : '12';
$is_single_post_meta        = isset( $opt['is_single_post_meta'] ) ? $opt['is_single_post_meta'] : '1';
$is_social_share            = isset( $opt['is_social_share'] ) ? $opt['is_social_share'] : '1';
$is_single_post_date        = isset ( $opt['is_single_post_date'] ) ? $opt['is_single_post_date'] : '1';
$is_post_reading_time       = isset( $opt['is_single_post_reading_time'] ) ? $opt['is_single_post_reading_time'] : '1';
$is_single_author           = isset( $opt['is_single_author'] ) ? $opt['is_single_author'] : '1';
$is_single_comment_meta     = isset( $opt['is_single_comment_meta'] ) ? $opt['is_single_comment_meta'] : '1';
$is_sticky_header     = ! empty( $opt['is_sticky_header'] ) ? $opt['is_sticky_header'] : '';
$is_sticky_class      = $is_sticky_header == '1' ? 'mt-100' : '';
?>
<section <?php post_class( $is_sticky_class . ' blog-details-area pt-80 pb-80 pt-md-50 pb-md-50 post-wrapper' ); ?>>
    <div class="container">
        <div class="row">

            <div class="col-lg-<?php echo esc_attr( $blog_column ) ?>">
                <div class="blog-details-box">

                    <?php if ( ! empty( get_the_title() ) ) { ?>
                        <h1> <?php the_title(); ?> </h1>
                    <?php } ?>

                    <ul class="blogs__meta mb-30">
                    <?php
                    if ( $is_single_post_meta == '1' ) {
                        if ( $is_single_author == '1' ) {
                        $post_author_id = get_post_field( 'post_author', get_the_ID() );
                        ?>
                            <li>
                                <span class="blog-author">
                                    <?php esc_html_e( 'By ', 'zoomy' ); ?>
                                    <a href="<?php echo get_author_posts_url( $post_author_id ) ?>">
                                        <?php echo get_the_author_meta( 'display_name', $post_author_id ); ?>
                                    </a>
                                </span>
                            </li>
                        <?php }

                        if ( $is_single_post_date == '1' ) { ?>
                            <li>
                                <span>
                                    <img src="<?php echo ZOOMY_DIR_IMG; ?>/material-date-range.svg" alt="<?php echo esc_attr__( 'Date Icon', 'zoomy' ) ?>">
                                    <?php the_time( get_option( 'date_format' ) ); ?>
                                </span>
                            </li>
                        <?php }

                        if ( $is_post_reading_time == '1' ) { ?>
                            <li>
                                <span>
                                    <img src="<?php echo ZOOMY_DIR_IMG; ?>/material-access-time.svg" alt="<?php echo esc_attr__( 'Time Icon', 'zoomy' ) ?>">
                                    <?php echo reading_time(); ?>
                                </span>
                            </li>
                        <?php }

                        if ( $is_single_comment_meta == '1' ) { ?>
                            <li>
                                <span>
                                    <img src="<?php echo ZOOMY_DIR_IMG; ?>/material-comment.svg" alt="<?php echo esc_attr__( 'Comment Icon', 'zoomy' ) ?>">
                                    <?php zoomy_comment_count( get_the_ID() ) ?>
                                </span>
                            </li>
                        <?php }

                        if ( $is_social_share == '1' && function_exists( 'zoomy_social_share' ) ) { ?>
                            <li>
                                <div class="social-media blog-details-social">
                                    <?php zoomy_social_share(); ?>
                                </div>
                            </li>
                        <?php
                        }
                    }
                    ?>
                    </ul>

                    <?php
                        if ( has_post_thumbnail() ) {
                            the_post_thumbnail( 'full', array( 'class' => 'img-fluid blog-details-img mb-35' ) );
                        }
                        while ( have_posts() ) : the_post(); ?>

                            <div class="blog-content-wrapper">
                               <?php the_content(); ?>
                            </div>

                            <?php if ( has_tag() ) : ?>
                                <div class="tags-wrap category">
                                    <?php the_tags('<b>' . esc_html__( 'Tags : ', 'zoomy' ) . '</b>', ' '); ?>
                                </div>
                            <?php endif;

	                        wp_link_pages( array(
                                'before'      => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'zoomy' ) . '</span>',
                                'after'       => '</div>',
                                'link_before' => '<span>',
                                'link_after'  => '</span>',
                                'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'zoomy' ) . ' </span>%',
                                'separator'   => '<span class="screen-reader-text">, </span>',
                            ) );
                        endwhile;
                    ?>
                </div>
                <?php
                // If comments are open or we have at least one comment, load up the comment template.
                if ( comments_open() || get_comments_number() ) {
                    comments_template();
                }
                ?>
            </div>
            <?php get_sidebar(); ?>
        </div>
    </div>
</section>
<?php
get_footer();