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/wpwisesolutions/wp-content/themes/pofo/templates/single/post-layout-2.php
<?php

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

	$pofo_single_post_content_container_fluid = '';
    $pofo_single_post_content_container_fluid = pofo_option( 'pofo_single_post_container_style', 'container' );

    $pofo_post_layout_style = pofo_option( 'pofo_post_layout_style', 'post-layout-style-1' );
    $pofo_hide_tags = pofo_option( 'pofo_hide_tags', '1' );
    $pofo_hide_like = pofo_option( 'pofo_hide_like', '1' );
    $pofo_hide_share = pofo_option( 'pofo_hide_share', '1' );
    $pofo_post_share_style = pofo_option ( 'pofo_post_share_style', 'social-icon-style-6' );
    $pofo_hide_post_author_box = pofo_option( 'pofo_hide_post_author_box', '1' );
    $pofo_hide_related_posts = pofo_option( 'pofo_hide_related_posts', '1' );
    $pofo_related_posts_title = pofo_option( 'pofo_related_posts_title', 'Related Posts' );
    $pofo_no_of_related_posts = pofo_option( 'pofo_no_of_related_posts', '3' );
    $pofo_related_posts_date_format = pofo_option( 'pofo_related_posts_date_format', '' );
    $pofo_hide_comment = pofo_option( 'pofo_hide_comment', '1' );
    $post_format = get_post_format( get_the_ID() );
    $pofo_single_post_navigation = pofo_option( 'pofo_single_post_navigation', '0' );

    $pofo_single_post_layout_setting = pofo_option( 'pofo_single_post_layout_setting', 'pofo_layout_right_sidebar' );
    $pofo_single_post_layout_setting   = ! empty( $pofo_single_post_layout_setting ) ? ' ' . $pofo_single_post_layout_setting . '_single' : '';

    /* For page sidebar and content */
    echo '<section class="single-post-main-section">';
        echo '<div class="'.esc_attr( $pofo_single_post_content_container_fluid ).esc_attr( $pofo_single_post_layout_setting ).'">';
            echo '<div class="row">';

                /* Get post left sidebar */
                get_template_part( 'templates/single-post', 'left' );
                
                    // Include Post Format Data
                    if ( !post_password_required() ) {
                        if( $post_format == 'image' ) {
                            echo get_template_part( 'loop/single/loop', 'image' );
                        }elseif( $post_format == 'gallery' ) {
                            echo '<div class="col-md-12 col-sm-12 col-xs-12 width-100 margin-45px-bottom xs-margin-25px-bottom">';
                                echo get_template_part( 'loop/single/loop', 'gallery' );
                            echo '</div>';
                        }elseif( $post_format == 'video' ) {
                            echo '<div class="col-md-12 col-sm-12 col-xs-12 width-100 margin-45px-bottom xs-margin-25px-bottom">';
                                echo get_template_part( 'loop/single/loop', 'video' );
                            echo '</div>';
                        }elseif( $post_format == 'quote' ) {
                            echo '<div class="col-md-12 col-sm-12 col-xs-12 width-100 margin-45px-bottom xs-margin-25px-bottom">';
                                echo get_template_part( 'loop/single/loop', 'quote' );
                            echo '</div>';
                        }elseif( $post_format == 'audio' ) {
                            echo '<div class="col-md-12 col-sm-12 col-xs-12 width-100 margin-45px-bottom xs-margin-25px-bottom">';
                                echo get_template_part( 'loop/single/loop', 'audio' );
                            echo '</div>';
                        }else{
                            echo get_template_part( 'loop/single/loop' );
                        }
                    }

                    // Show Post Content
                    echo '<div class="col-md-12 col-sm-12 col-xs-12 blog-details-text entry-content">';
                            the_content();
                    echo '</div>';

                    /* Display post navigation */
                    if( $pofo_single_post_navigation == 1 ){
                        pofo_single_post_navigation();
                    }

                /* Get post right sidebar */
                get_template_part( 'templates/single-post', 'right' );
                
            echo '</div>';
        echo '</div>';
    echo '</section>';

    /* Check post tags, comment link and like */
    if( $pofo_hide_tags == 1 || $pofo_hide_like == 1 || $pofo_hide_share == 1 || $pofo_hide_post_author_box == 1 ) {
        echo '<section class="wow fadeIn no-padding-top">';
            echo '<div class="container">';
                echo '<div class="row">';
                            
                    echo '<div class="pofo-single-post-meta-style">';
                        if( $pofo_hide_tags == 1 ) {
                            pofo_single_post_meta_tag();
                        }
                        echo '<div class="col-md-6 col-sm-12 col-xs-12 text-right sm-text-center pull-right pofo-post-detail-icon">';
                            echo '<ul class="extra-small-icon">';
                                if( $pofo_hide_like == 1 && function_exists( 'pofo_get_simple_likes_button' ) ){
                                    echo '<li>'.pofo_get_simple_likes_button(get_the_ID()).'</li>';
                                }
                            echo '</ul>';
                            if( $pofo_hide_share == 1 && function_exists( 'pofo_single_post_share_shortcode' ) ){
                                echo do_shortcode("[pofo_single_post_share style = ".$pofo_post_share_style."]");
                            }
                        echo '</div>';

                        /* Check if author box hide / show */
                        if( $pofo_hide_post_author_box == 1 && get_the_author_meta( 'description' ) ) :
                            get_template_part( 'author-bio' );
                        endif;
                    echo '</div>';
                echo '</div>';
            echo '</div>';
        echo '</section>';
    }
    
    if( $pofo_hide_related_posts == 1 ) :
        echo '<section class="wow fadeIn bg-light-gray pofo-related-posts-background">';
            echo '<div class="container">';
                echo '<div class="row">';
                    /* Check if related post hide or show */
                    pofo_related_posts( get_the_ID() );
                echo '</div>';
            echo '</div>';
        echo '</section>';
    endif;

    if( $pofo_hide_comment == 1 ) {
        if ( comments_open() || get_comments_number() ) {
            echo '<section class="wow fadeIn">';
                echo '<div class="container">';
                    echo '<div class="row">';
                        echo '<div class="pofo-single-post-meta-style">';
                            // If comments are open or we have at least one comment, load up the comment template.
                            comments_template();
                        echo '</div>';
                    echo '</div>';
                echo '</div>';
            echo '</section>';
        }
    }