HEX
Server: Apache
System: Linux nc-ph-0707-26.instaforreviews.com 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64
User: qirgxuo4hkuv (1004)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /home/qirgxuo4hkuv/public_html/koracheap.com/wp-content/themes/rehub-theme/index.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php get_header(); ?>
<?php
$price_meta = rehub_option('price_meta_grid');
$disable_btn = (rehub_option('rehub_enable_btn_recash') == 1) ? 0 : 1;
$disable_act = (rehub_option('disable_grid_actions') == 1) ? 1 : 0;
$aff_link = (rehub_option('disable_inner_links') == 1) ? 1 : 0;
?>
<!-- CONTENT -->
<div class="rh-container"> 
    <div class="rh-content-wrap clearfix">
        <!-- Main Side -->
        <div class="main-side clearfix<?php if (rehub_option('archive_layout') == 'gridfull' || rehub_option('archive_layout') == 'dealgridfull' || rehub_option('archive_layout') == 'compactgridfull' || rehub_option('archive_layout') == 'columngridfull' || rehub_option('archive_layout') == 'cardblogfull') : ?> full_width<?php endif ;?>">
            <div class="wpsm-title under-title-line middle-size-title"><h5><?php esc_html_e('Latest Posts', 'rehub-theme'); ?></h5></div>  
            <?php if (have_posts()) : ?>
                <?php if (rehub_option('archive_layout') == 'blog') : ?>
                    <div class="">

                <?php elseif (rehub_option('archive_layout') == 'newslist') : ?>
                    <div class=""> 

                <?php elseif (rehub_option('archive_layout') == 'communitylist') : ?>
                    <div class="">

                <?php elseif (rehub_option('archive_layout') == 'deallist') : ?>
                    <div class="woo_offer_list " > 

                <?php elseif (rehub_option('archive_layout') == 'grid') : ?>
                    <?php  wp_enqueue_script('masonry'); wp_enqueue_script('imagesloaded'); wp_enqueue_script('masonry_init'); ?>                
                    <div class="masonry_grid_fullwidth col_wrap_two">

                <?php elseif (rehub_option('archive_layout') == 'gridfull') : ?>
                    <?php  wp_enqueue_script('masonry'); wp_enqueue_script('imagesloaded'); wp_enqueue_script('masonry_init'); ?>
                    <div class="masonry_grid_fullwidth col_wrap_three"> 

                <?php elseif (rehub_option('archive_layout') == 'columngrid') : ?>               
                    <div class="columned_grid_module rh-flex-eq-height col_wrap_three" >

                <?php elseif (rehub_option('archive_layout') == 'columngridfull') : ?>               
                    <div class="columned_grid_module rh-flex-eq-height col_wrap_fourth">  
                    
                <?php elseif (rehub_option('archive_layout') == 'compactgrid') : ?>               
                    <div class="eq_grid post_eq_grid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_fifth' : 'col_wrap_fourth';?>">

                <?php elseif (rehub_option('archive_layout') == 'compactgridfull') : ?>               
                    <div class="eq_grid post_eq_grid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_six' : 'col_wrap_fifth';?>">

                <?php elseif (rehub_option('archive_layout') == 'cardblog') : ?>               
                    <div class="coloredgrid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_fourth' : 'col_wrap_three';?>">  
                    
                <?php elseif (rehub_option('archive_layout') == 'cardblogfull') : ?>               
                    <div class="coloredgrid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_fifth' : 'col_wrap_fourth';?>">                     

                <?php elseif (rehub_option('archive_layout') == 'dealgrid') : ?>               
                    <div class="eq_grid post_eq_grid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_fourth' : 'col_wrap_three';?>">

                <?php elseif (rehub_option('archive_layout') == 'dealgridfull') : ?>               
                    <div class="eq_grid post_eq_grid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_fifth' : 'col_wrap_fourth';?>">                                                                      
                <?php else : ?>
                    <div class="">   
                <?php endif ;?>                
                    <?php while (have_posts()) : the_post(); ?>
                        <?php if (rehub_option('archive_layout') == 'blog') : ?>
                            <?php include(rh_locate_template('inc/parts/query_type2.php')); ?>

                        <?php elseif (rehub_option('archive_layout') == 'newslist') : ?>
                            <?php $type='2'; ?>
                            <?php include(rh_locate_template('inc/parts/query_type1.php')); ?> 

                        <?php elseif (rehub_option('archive_layout') == 'communitylist') : ?>
                            <?php include(rh_locate_template('inc/parts/query_type1.php')); ?>

                        <?php elseif (rehub_option('archive_layout') == 'deallist') : ?>
                            <?php include(rh_locate_template('inc/parts/postlistpart.php')); ?>                                                
                        <?php elseif (rehub_option('archive_layout') == 'grid' || rehub_option('archive_layout') == 'gridfull') : ?>
                            <?php include(rh_locate_template('inc/parts/query_type3.php')); ?>

                        <?php elseif (rehub_option('archive_layout') == 'columngrid' || rehub_option('archive_layout') == 'columngridfull') : ?>
                            <?php include(rh_locate_template('inc/parts/column_grid.php')); ?>

                        <?php elseif (rehub_option('archive_layout') == 'cardblog' || rehub_option('archive_layout') == 'cardblogfull') : ?>
                                <?php include(rh_locate_template('inc/parts/color_grid.php')); ?>                        

                        <?php elseif (rehub_option('archive_layout') == 'compactgrid' || rehub_option('archive_layout') == 'compactgridfull') : ?>
                            <?php $gridtype = 'compact'; include(rh_locate_template('inc/parts/compact_grid.php')); ?>                                              
                        <?php elseif (rehub_option('archive_layout') == 'dealgrid' || rehub_option('archive_layout') == 'dealgridfull') : ?>
                            <?php include(rh_locate_template('inc/parts/compact_grid.php')); ?>
                     
                        <?php else : ?>
                            <?php include(rh_locate_template('inc/parts/query_type1.php')); ?>  
                        <?php endif ;?>                
                    <?php endwhile; ?>
                </div>
                <div class="pagination"><?php rehub_pagination();?></div>
            <?php else : ?>     
            <h5><?php esc_html_e('Sorry. No posts in this category yet', 'rehub-theme'); ?></h5>    
            <?php endif; ?> 
            <div class="clearfix"></div>
        </div>  
        <!-- /Main Side -->
        <?php if (rehub_option('archive_layout') == 'gridfull' || rehub_option('archive_layout') == 'dealgridfull' || rehub_option('archive_layout') == 'compactgridfull' || rehub_option('archive_layout') == 'columngridfull' || rehub_option('archive_layout') == 'cardblogfull') : ?>
        <?php else:?>
            <!-- Sidebar -->
            <?php get_sidebar(); ?>
            <!-- /Sidebar --> 
        <?php endif ;?>
    </div>
</div>
<!-- /CONTENT -->     
<!-- FOOTER -->
<?php get_footer(); ?>