PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
inc
/
post_layout
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <!-- CONTENT --> <div class="rh-container"> <div class="rh-content-wrap clearfix"> <!-- Main Side --> <div class="main-side single<?php if(get_post_meta($post->ID, 'post_size', true) == 'full_post') : ?> full_width<?php endif; ?> clearfix"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $expiredclass = rh_expired_or_not($post->ID, 'class');?> <?php $postclasses = array('post-inner', 'post', $expiredclass);?> <article <?php post_class($postclasses); ?> id="post-<?php the_ID(); ?>"> <!-- Title area --> <div class="rh_post_layout_compact"> <?php $crumb = ''; if( function_exists( 'yoast_breadcrumb' ) ) { $crumb = yoast_breadcrumb('<div class="breadcrumb">','</div>', false); } if( ! is_string( $crumb ) || $crumb === '' ) { if(rehub_option('rehub_disable_breadcrumbs') == '1' || vp_metabox('rehub_post_side.disable_parts') == '1') {echo '';} elseif (function_exists('dimox_breadcrumbs')) { dimox_breadcrumbs(); } } echo ''.$crumb; ?> <div class="title_single_area"> <?php if(vp_metabox('rehub_post_side.show_featured_image') != '1' && has_post_thumbnail()) : ?> <div class="featured_single_left"> <figure><?php echo re_badge_create('tablelabel'); ?> <?php $showimg = new WPSM_image_resizer(); $showimg->use_thumb = true; $height_figure_single = apply_filters( 're_single_figure_height', 123 ); $showimg->height = $height_figure_single; $showimg->crop = false; $showimg->show_resized_image(); ?> </figure> </div> <?php endif;?> <div class="single_top_main"> <?php echo rh_expired_or_not($post->ID, 'span');?><h1 class="<?php if(rehub_option('hotmeter_disable') !='1') :?><?php echo getHotIconclass($post->ID); ?><?php endif ;?>"><?php the_title(); ?></h1> <div class="meta post-meta"> <?php meta_all(true, false, 'full', true);?><span class="more-from-store-a"><?php WPSM_Postfilters::re_show_brand_tax('list');?></span> </div> <?php $offer_coupon_date = get_post_meta( $post->ID, 'rehub_offer_coupon_date', true ); $coupon_style = $expired = ''; if(!empty($offer_coupon_date)) : ?> <?php $timestamp1 = strtotime($offer_coupon_date) + 86399; $seconds = $timestamp1 - (int)current_time('timestamp',0); $days = floor($seconds / 86400); $seconds %= 86400; if ($days > 0) { $coupon_style = ''; $coupon_text = $days.' '.__('days left', 'rehub_framework'); } elseif ($days == 0){ $coupon_text = __('Last day', 'rehub_framework'); $coupon_style = ''; } else { $coupon_text = __('Expired', 'rehub_framework'); $coupon_style = ' expired_coupon'; $expired = '1'; } ?> <?php endif ;?> <?php if(!empty($offer_coupon_date) && $expired !=1) { $countdown = explode('-', $offer_coupon_date); if(!empty($countdown)){ echo '<div class="gridcountdown mb20 mt0 mr0 ml0" style="width:220px">'; $year = $countdown[0]; $month = $countdown[1]; $day = $countdown[2]; echo wpsm_countdown(array('year'=> $year, 'month'=>$month, 'day'=>$day)); echo '</div>'; } } ?> <?php if(rehub_option('rehub_disable_share_top') =='1' || vp_metabox('rehub_post_side.disable_parts') == '1') : ?> <?php $wishlistadd = __('Save', 'rehub_framework'); $wishlistadded = __('Saved', 'rehub_framework'); $wishlistremoved = __('Removed', 'rehub_framework'); ?> <div class="favour_in_row clearbox favour_btn_red"> <?php echo RH_get_wishlist($post->ID, $wishlistadd, $wishlistadded, $wishlistremoved);?> </div> <?php else :?> <div class="top_share"><?php include(rh_locate_template('inc/parts/post_share.php')); ?></div> <div class="clearfix"></div> <?php endif; ?> </div> <div class="single_top_corner"> <?php if(rehub_option('compare_btn_single') !='') :?> <?php $cmp_btn_args = array();?> <?php if(rehub_option('compare_btn_cats') != '') { $cmp_btn_args['cats'] = esc_html(rehub_option('compare_btn_cats')); }?> <?php echo wpsm_comparison_button($cmp_btn_args); ?> <?php endif;?> <div class="brand_logo_small floatright disablefloatmobile"> <?php WPSM_Postfilters::re_show_brand_tax('logo'); //show brand logo?> </div> </div> </div> <?php if(rehub_option('rehub_single_after_title')) : ?><div class="mediad mediad_top"><?php echo do_shortcode(rehub_option('rehub_single_after_title')); ?></div><div class="clearfix"></div><?php endif; ?> <?php if(vp_metabox('rehub_post_side.disable_cta') != '1') : ?> <div class="single_top_postproduct"> <div class="left_st_postproduct"> <?php if(rehub_option('hotmeter_disable') !='1') :?><?php echo getHotThumb($post->ID, false, true); ?><?php endif ;?> <div class="meta post-meta"><?php meta_small(false, false, true, true);?> </div> </div> <div class="right_st_postproduct"> <?php rehub_generate_offerbtn('wrapperclass=inline_compact_btnblock mobile_block_btnclock mb0');?> </div> </div> <?php wp_enqueue_script('customfloatpanel'); ?> <div id="contents-section-woo-area"></div> <div id="float-panel-woo-area" class="rh-float-panel flowhidden"> <div class="single_top_postproduct rh-container"> <div class="left_st_postproduct"> <?php if(rehub_option('hotmeter_disable') !='1') :?><?php echo getHotThumb($post->ID, false, true); ?><?php endif ;?> <div class="meta post-meta"><?php meta_small(false, false, true, true);?> </div> </div> <div class="right_st_postproduct"> <?php rehub_generate_offerbtn('wrapperclass=inline_compact_btnblock mobile_block_btnclock mb0');?> </div> </div> </div> <?php endif; ?> </div> <?php $no_featured_image_layout = 1;?> <?php include(rh_locate_template('inc/parts/top_image.php')); ?> <?php if(rehub_option('rehub_single_before_post') && vp_metabox('rehub_post_side.show_banner_ads') != '1') : ?><div class="mediad mediad_before_content"><?php echo do_shortcode(rehub_option('rehub_single_before_post')); ?></div><?php endif; ?> <?php the_content(); ?> </article> <div class="clearfix"></div> <?php include(rh_locate_template('inc/post_layout/single-common-footer.php')); ?> <?php endwhile; endif; ?> <?php comments_template(); ?> </div> <!-- /Main Side --> <!-- Sidebar --> <?php if(get_post_meta($post->ID, 'post_size', true) == 'full_post') : ?><?php else : ?><?php get_sidebar(); ?><?php endif; ?> <!-- /Sidebar --> </div> </div> <!-- /CONTENT -->
[+]
..
[-] single-meta-center.php
[edit]
[-] single-corner-offer.php
[edit]
[-] single-default.php
[edit]
[-] single-meta-compact-dir.php
[edit]
[-] single-common-footer.php
[edit]
[-] single-meta-outside.php
[edit]
[-] single-ce-compare-fullauto.php
[edit]
[-] single-ce-compare.php
[edit]
[-] single-inimagefull.php
[edit]
[-] single-inimage.php
[edit]
[-] single-meta-compact.php
[edit]
[-] single-ce-compare-full.php
[edit]
[-] single-default-readopt.php
[edit]
[-] top_title.php
[edit]
[-] single-ce-compare-autocontent.php
[edit]
[-] single-big-offer.php
[edit]
[-] single-offer-reviewscore.php
[edit]