HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //home/madepabj/gamepointpk.com/wp-content/themes/groovy/single.php
<?php get_header(); ?>

<?php while(have_posts()): the_post();  ?>
    <?php
	$post_id = get_the_ID();
	$post_format = get_post_format();

    // Defaults - Post Style: vertical, Sidebar: enabled
	$post_style = 'vertical';
	$single_class = '';
    $enable_sidebar = true;
    $single_class = '';
    $post_meta = get_post_meta( get_the_ID(), 'epcl_post', true );
    $views = 0;

	if( !empty($post_meta) && isset($post_meta['style']) && defined('EPCL_PLUGIN_PATH') ){

		$post_style = $post_meta['style'];
		if( $post_style === '' ) $post_style = 'vertical';

		$enable_sidebar = $post_meta['enable_sidebar'];
		if( !$enable_sidebar ){
            $enable_sidebar = false;
            $single_class = ' no-sidebar';
        }

	}

    if( !is_active_sidebar('epcl_sidebar_default') ){
        $enable_sidebar = false;
        $single_class .= ' no-sidebar';
    }
    if( !$post_style ){
        $post_style = 'vertical';
    }
    
    if( !empty($epcl_theme) && $epcl_theme['single_post_layout'] === 'classic' ){
        $post_style = 'classic';
    }
    if( !empty($epcl_theme) && $epcl_theme['single_post_layout'] === 'fullcover' ){
        $post_style = 'fullcover';
    }
    if( !empty($epcl_theme) && $epcl_theme['single_post_layout'] === 'vertical' ){
        $post_style = 'vertical';
    }
    if( !empty($epcl_theme) && $epcl_theme['enable_post_sidebar'] === 'enabled'){
        $enable_sidebar = true;
        $single_class = '';
    }
    if( !empty($epcl_theme) && $epcl_theme['enable_post_sidebar'] === 'disabled'){
        $enable_sidebar = false;
        $single_class .= ' no-sidebar';
    }
    
    // Disable featured image globally
    if( !empty($epcl_theme) && isset($epcl_theme['enable_featured_image']) && $epcl_theme['enable_featured_image'] == '0'){
        $post_style = 'classic';
    }

    // Primary category (optional)
    $post_class = epcl_get_primary_category( '', $post_meta, $post_id );
    $epcl_mode = epcl_get_mode();

    // Only allows Fullcover or Classic style when using Gallery Format
    if( ( $post_format == 'gallery' || $post_format == 'video' || $post_format == 'audio' ) && $post_style !== 'fullcover' && $post_style !== 'classic' ){
        $post_style = 'classic';
    }

    if( $post_style == 'vertical' && has_post_thumbnail() ){
        $post_style_class = 'classic epcl-vertical';
    } elseif( $post_style == 'fullcover' ) {
        $post_style_class = 'fullcover';
    } else {
        $post_style_class = 'classic';
    }


    
	?>
	<!-- start: #single -->
    <main id="single" class="main grid-container <?php echo esc_attr($post_style_class.$single_class); ?>" data-post-id="<?php the_ID(); ?>">
    
        <!-- Fullcover Style -->
        <?php if( $post_style == 'fullcover' ): ?>
            <?php get_template_part('partials/single/style-fullcover'); ?>
        <?php endif; ?>

		<!-- start: .center -->
	    <div class="content row">

            <!-- start: .epcl-page-wrapper -->
            <div class="epcl-page-wrapper">

                <!-- start: .content -->
                <div class="left-content grid-70 np-mobile">

                    <article <?php post_class('main-article bg-box'.$post_class); ?>>

                        <?php if( $post_style == 'classic' ): ?>
                            <?php get_template_part('partials/single/style-classic'); ?>
                        <?php elseif( $post_style == 'vertical'): ?>
                            <?php get_template_part('partials/single/style-vertical'); ?>
                        <?php endif; ?>
                                            
                        <?php if( $post_style == 'fullcover' && ( $post_format == 'video' || $post_format == 'audio' ) ): ?>
                            <div class="info textcenter">
                                <h1 class="main-title title textcenter"><?php the_title(); ?></h1>
                                <?php if( epcl_get_option( 'enable_single_meta_data', true ) ): ?>
                                    <?php get_template_part('partials/meta-info'); ?>
                                <?php endif; ?> 
                            </div>
                        <?php endif; ?>                                            

                        <section class="post-content">

                            <?php
                            if( function_exists( 'epcl_render_global_ads' ) ){
                                epcl_render_global_ads('single_top');
                            }
                            ?>

                            <?php if( !empty($epcl_theme) && $epcl_theme['enable_sticky_share_buttons'] !== '0' && function_exists('epcl_render_share_buttons') ): ?>
                                <div class="epcl-share-container hide-on-mobile">
                                    <?php epcl_render_share_buttons('top'); ?>
                                </div>
                            <?php endif; ?>

                            <div class="text">
                                <?php the_content(); ?>
                                <?php
                                    if ( is_singular( 'attachment' ) ) {
                                        echo '<h2 class="title usmall">'.esc_html__('Published in:', 'groovy').'</h2>';
                                        // Parent post navigation.
                                        the_post_navigation();
                                        echo '<br>';
                                    }
                                ?>
                            </div>
                            <div class="clear"></div>
                            
                            <?php if( get_the_category() && epcl_get_option('enable_single_category', true) ): ?>
                                <div class="bottom-tags textcenter">
                                    <p class="title usmall"><?php esc_html_e('Categorized in:', 'groovy'); ?></p>
                                    <?php echo epcl_render_categories(99, 'single-categories'); ?>
                                </div>
                            <?php endif; ?>

                            <?php if( get_the_tags() && epcl_get_option('enable_single_tags', true) ): ?>
                                <div class="bottom-tags textcenter text-only">
                                    <p class="title usmall"><?php esc_html_e('Tagged in:', 'groovy'); ?></p>
                                    <?php the_tags('', ', ', ''); ?>
                                </div>
                            <?php endif; ?>

                            <?php
                                $link_pages_args = array(
                                    'before'           => '<div class="epcl-pagination link-pages section"><div class="nav"><span class="page-number title">'.esc_html__('Pages', 'groovy').'</span>',
                                    'after'            => '</div></div>',
                                    'link_before'      => '',
                                    'link_after'       => '',
                                    'next_or_number'   => 'number',
                                    'separator'        => '',
                                    'nextpagelink'     => esc_html__('Next', 'groovy'),
                                    'previouspagelink' => esc_html__('Previous', 'groovy'),
                                    'pagelink'         => '<span class="page-number">%</span>',
                                    'echo'             => 1
                                );
                                wp_link_pages( $link_pages_args );
                            ?>                                                          

                            <?php
                            if( function_exists( 'epcl_render_global_ads' ) ){
                                epcl_render_global_ads('single_bottom');
                            }
                            ?> 
                            
                            <?php if( function_exists('epcl_render_copy_permalink') && epcl_get_option('enable_share_buttons', true)  ): ?>
                                <?php epcl_render_copy_permalink(); ?>
                            <?php endif; ?>   
                            
                            <?php if( epcl_get_option('single_enable_subscribe') ): ?>
                                <?php get_template_part('partials/subscribe-form'); ?>
                            <?php endif; ?>

                            <div class="clear"></div>

                        </section>                       
                                
                        <div class="epcl-category-overlay"></div>
                        
                    </article>

                    <div class="clear"></div>

                    <?php if( epcl_get_option('enable_single_author', true) ): ?>
                        <?php get_template_part('partials/author-box'); ?>                               
                    <?php endif; ?>

                    <!-- start: .epcl-comments -->
                    <div id="show-comments" class="epcl-comments section np-bottom">

                        <?php if( empty($epcl_theme) || $epcl_theme['hosted_comments'] == 1 ): // Self Hosted ?>
                            <?php comments_template(); ?>
                        <?php endif; ?>

                        <?php if( !empty($epcl_theme) && $epcl_theme['hosted_comments'] == 2 && $epcl_theme['disqus_id'] ): // Disqus ?>
                            <!-- start: disqus integration -->
                            <div id="comments" class="section bg-box">
                                <h3 class="title medium bordered absolute"><?php esc_html_e('Comments', 'groovy'); ?><span class="border"></span></h3>
                                <div id="disqus_thread"></div>
                            </div>
                            <noscript><?php esc_html_e('Please enable JavaScript to view the', 'groovy'); ?> <a href="https://disqus.com/?ref_noscript" rel="nofollow"><?php esc_html_e('comments powered by Disqus.', 'groovy'); ?></a></noscript>
                            <!-- end: disqus integration -->
                        <?php endif; ?>

                        <?php if( !empty($epcl_theme) && $epcl_theme['hosted_comments'] == 3 ): // Disqus ?>
                            <!-- start: facebook comments -->
                            <div id="comments" class="section bg-box">
                                <h3 class="title medium bordered absolute"><?php esc_html_e('Comments', 'groovy'); ?><span class="border"></span></h3>
                                <div class="clear"></div>
                                <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="100%" data-numposts="5" data-colorscheme="light"></div>
                            </div>
                            <!-- end: facebook comments -->
                            <div id="fb-root"></div>                        
                        <?php endif; ?>

                        <div class="clear"></div>
                    </div>
                    <!-- end: .epcl-comments --> 
                    
                    <?php if( epcl_get_option('related_posts', true) ): ?>
                        <?php get_template_part('partials/single/related-articles'); ?>
                        <div class="clear"></div> 
                    <?php endif; ?>                            

                    <div class="clear"></div>

                </div>
                <!-- end: .content -->

                <?php
                if( $enable_sidebar ){
                    get_sidebar();
                }
                ?>

                <div class="clear"></div>

            </div>
            <!-- end: .center -->
        
        </div>
        <!-- end: .epcl-page-wrapper -->

        
        <?php if( epcl_get_option('siblings_posts', true) ): ?>
            <?php get_template_part('partials/single/siblings-articles'); ?>
        <?php endif; ?>

	</main>
	<!-- end: #single -->

<?php endwhile; ?>

<?php get_footer(); ?>