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/www/wp-content/themes/rehub-theme/inc/post_layout/single-default-readopt.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php global $post;?>
<?php wp_enqueue_script('rehubwaypoints' );wp_enqueue_script('rhreadingprogress' ); wp_enqueue_script('rhalignfull');wp_enqueue_script('rhyall');?>
<!-- CONTENT -->
<?php $show_banner_ads = get_post_meta($post->ID, 'show_banner_ads', true);?>
<div class="rh-container"> 
    <div class="rh-content-wrap clearfix">
        <!-- Main Side -->
        <div class="alignfulloutside main-side single post-readopt clearfix<?php if(get_post_meta($post->ID, 'post_size', true) == 'full_post' || rehub_option('disable_post_sidebar')) : ?> full_width<?php else:?> w_sidebar<?php endif; ?>">
            <?php wp_enqueue_script('rhalignfull');?> 
            <?php echo rh_generate_incss('postreadopt');?>           
            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                <article <?php post_class('post pt0 pb0 pr0 pl0'); ?> id="post-<?php the_ID(); ?>"> 
                    <?php $nohead = (isset($nohead)) ? $nohead : '';?> 
                    <?php if(!$nohead):?>       
                        <!-- Title area -->
                        <div class="rh_post_layout_metabig mt10">
                            <div class="title_single_area mb15">
                                <?php 
                                    $crumb = '';
                                    if( function_exists( 'yoast_breadcrumb' ) ) {
                                        $crumb = yoast_breadcrumb('<div class="breadcrumb">','</div>', false);
                                    }
                                    else if (function_exists('rank_math_the_breadcrumbs')) {
                                        $crumb = rank_math_get_breadcrumbs('wrap_before=<div class="breadcrumb">&wrap_after=</div>');
                                    }                                    
                                    if( ! is_string( $crumb ) || $crumb === '' ) {
                                        if(rehub_option('rehub_disable_breadcrumbs') == '1') {echo '';}
                                        elseif (function_exists('dimox_breadcrumbs')) {
                                            dimox_breadcrumbs(); 
                                        }
                                    }
                                    echo ''.$crumb;  
                                ?> 
                                <?php echo re_badge_create('labelsmall'); ?>                 
                                <h1><?php the_title(); ?></h1> 
                                <div class="meta post-meta mb20 flowhidden">
                                    <?php rh_post_header_meta(false, false, true, true, true);?> 
                                </div>                        
                            </div>
                        </div>
                        <?php if(rehub_option('rehub_single_after_title')) : ?><div class="mediad mediad_top mb15"><?php echo do_shortcode(rehub_option('rehub_single_after_title')); ?></div><div class="clearfix"></div><?php endif; ?>                         
                        <div class="feature-post-section mb35">
                            <?php $disableimage = get_post_meta($post->ID, 'show_featured_image', true);?>
                            <?php if ( (has_post_thumbnail()) && rehub_option('rehub_disable_feature_thumb') !='1' && !$disableimage ) { ?>
                                <?php 
                                    $imagefull = get_the_post_thumbnail_url( $post->ID,'full' );
                                    echo rh_generate_incss('postwideimage');
                                ?>
                                <div id="rh_wide_inimage">
                                    <figure class="position-relative text-center flowhidden lightgreybg" style='background: url("<?php echo esc_url($imagefull);?>") no-repeat center center transparent;background-size:cover'>
                                    </figure> 
                                </div>
                            <?php } ?>  
                        </div> 
                        <div class="clearfix mb5"></div>  
                    <?php endif;?>                                                         
                    <?php if(rehub_option('rehub_single_before_post') && $show_banner_ads != '1') : ?><div class="mediad mediad_before_content mb15"><?php echo do_shortcode(rehub_option('rehub_single_before_post')); ?></div><?php endif; ?>
                    <div class="post-inner clearbox">
                        <div class="<?php if(rehub_option('rehub_disable_share_top') =='1' && rehub_option('exclude_author_meta') == '1' &&  rehub_option('exclude_date_meta') == '1'){echo '';}else{echo 'mobileblockdisplay rh-flex-columns';}?>">
                        <div class="post-meta-left hideonstablet text-center">
                            <?php if(rehub_option('exclude_author_meta') != 1):?>                              
                                <?php $author_id=$post->post_author; $name = get_the_author_meta( 'display_name', $author_id );?>
                                <a href="<?php echo get_author_posts_url( $author_id ) ?>" class="redopt-aut-picture mb10 blockstyle">
                                    <?php echo get_avatar( $author_id, '70', '', $name, array('class'=>'roundborder') ); ?>                   
                                </a>
                                <a href="<?php echo get_author_posts_url( $author_id ) ?>" class="redopt-aut-link lineheight15 blockstyle font80 greycolor">             
                                    <?php echo esc_attr($name); ?>         
                                </a>
                            <?php endif;?>
                            <?php if(rehub_option('exclude_date_meta') != 1):?>
                                <div class="date_time_post font60 border-bottom pb10 mb15 lineheight15 fontnormal">
                                    <?php if(rehub_option('date_publish')):?>
                                        <?php the_time(get_option( 'date_format' )); ?>
                                    <?php else:?>
                                         <?php the_modified_time(get_option( 'date_format' )); ?>
                                    <?php endif;?>
                                    </div>
                            <?php endif;?>
                            <?php if(rehub_option('rehub_disable_share_top') =='1')  : ?>
                            <?php else :?>                               
                                <?php if(function_exists('rehub_social_share')):?>
                                    <div id="rh-share-sticky">
                                    <?php echo rehub_social_share('square', 1);?>
                                    </div>
                                <?php endif;?>             
                            <?php endif; ?>                                     
                        </div> 
                        <div class="post-inner-wrapper <?php if(rehub_option('rehub_disable_share_top') =='1' && rehub_option('exclude_author_meta') == '1' &&  rehub_option('exclude_date_meta') == '1'){echo '';}else{echo 'leftbarcalc';}?>">
                            <?php the_content(); ?>
                            <?php if(rehub_option('rehub_single_code') && $show_banner_ads != '1') : ?><div class="single_custom_bottom mt10 mb10 margincenter text-center clearbox"><?php echo do_shortcode (rehub_option('rehub_single_code')); ?></div><div class="clearfix"></div><?php endif; ?>

                            <?php if(rehub_option('rehub_disable_share') =='1')  : ?>
                            <?php else :?>
                                <?php include(rh_locate_template('inc/parts/post_share.php')); ?>  
                            <?php endif; ?>

                            <?php if(rehub_option('rehub_disable_prev') =='1')  : ?>
                            <?php else :?>
                                <?php include(rh_locate_template('inc/parts/prevnext.php')); ?>                    
                            <?php endif; ?>                 

                            <?php if(rehub_option('rehub_disable_tags') =='1')  : ?>
                            <?php else :?>
                                <div class="tags">
                                    <p><?php the_tags('<span class="tags-title-post">'.__('Tags: ', 'rehub-theme').'</span>',""); ?></p>
                                </div>
                            <?php endif; ?>

                            <?php if(rehub_option('rehub_disable_author') =='1')  : ?>
                            <?php else :?>
                                <?php rh_author_detail_box();?>
                            <?php endif; ?>                
                        </div>
                        </div>
                    </div>
                </article>
                <div class="clearfix"></div>                    
            <?php endwhile; endif; ?>
            <?php if(rehub_option('rehub_disable_relative') =='1')  : ?>
            <?php else :?>
                <div class="pt20 pb20">
                <?php include(rh_locate_template('inc/parts/related_posts.php')); ?>
                </div>
            <?php endif; ?> 
            <?php comments_template(); ?>
        </div>  
        <!-- /Main Side --> 
        <!-- Sidebar -->
        <?php if(get_post_meta($post->ID, 'post_size', true) == 'full_post' || rehub_option('disable_post_sidebar')) : ?><?php else : ?><?php get_sidebar(); ?><?php endif; ?>
        <!-- /Sidebar --> 
    </div>
</div>
<!-- /CONTENT -->