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 $postclasses = array('post-inner', 'post');?> <article <?php post_class($postclasses); ?> id="post-<?php the_ID(); ?>"> <div class="rh_post_layout_compare_autocontent"> <?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"> <h1 class="<?php if(rehub_option('hotmeter_disable') !='1') :?><?php echo getHotIconclass($post->ID); ?><?php endif ;?>"><?php the_title(); ?></h1> </div> <?php if(rehub_option('hotmeter_disable') !='1') :?><?php echo getHotLike($post->ID); ?><?php endif ;?> <div class="wpsm-one-third wpsm-column-first compare-full-images"> <figure><?php echo re_badge_create('tablelabel'); ?> <?php WPSM_image_resizer::show_static_resized_image(array('lazy'=>true, 'thumb'=> true, 'crop'=> false, 'width'=> 500, 'no_thumb_url' => get_template_directory_uri() . '/images/default/noimage_500_500.png'));?> </figure> <?php echo rh_get_post_thumbnails(array('video'=>1, 'columns'=>4, 'height'=>50));?> </div> <div class="wpsm-two-third wpsm-column-last"> <div class="flowhidden"> <span class="floatleft meta post-meta"> <?php rh_post_header_meta('full', false, true, true, true);?> </span> <span class="floatright disablefloatmobile"> <?php if(rehub_option('compare_btn_single') !='' && is_singular('post')) :?> <?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;?> </span> </div> <div class="mb25 mt15 rh-line"></div> <div class="rh_post_layout_rev_price_holder"> <div class="rh_price_holder_add_links"> <?php if (vp_metabox('rehub_post.rehub_framework_post_type') == 'review' && rehub_option('type_user_review') == 'full_review' && comments_open()) :?> <a href="#respond" class="rehub_scroll add_user_review_link"><?php _e("Add your review", "rehub_framework"); ?> </a> <?php endif;?> </div> <?php $overall_review = rehub_get_overall_score();?> <?php if($overall_review):?> <div class="review-top floatleft"> <div class="overall-score"> <span class="overall r_score_4"><?php echo ''.$overall_review;?></span> <span class="overall-text"><?php _e('Total Score', 'rehub_framework'); ?></span> </div> </div> <?php endif;?> <?php $offer_post_url = get_post_meta($post->ID, 'rehub_offer_product_url', true ); $offer_url = apply_filters('rh_post_offer_url_filter', $offer_post_url ); $offer_price = get_post_meta($post->ID, 'rehub_offer_product_price', true ); $offer_price_clean = rehub_price_clean($offer_price); $offer_btn_text = get_post_meta($post->ID, 'rehub_offer_btn_text', true ); $offer_price_old = get_post_meta($post->ID, 'rehub_offer_product_price_old', true ); $offer_currency = get_post_meta($post->ID, 'rehub_main_product_currency', true ); ?> <?php if ($offer_url):?> <div class="compare-button-holder"> <div> <p class="price"> <ins><?php echo ''.$offer_price;?></ins> <del><?php echo ''.$offer_price_old;?></del> </p> </div> <?php $itemsync = ''; if (defined('\ContentEgg\PLUGIN_PATH')) :?> <?php $unique_id = get_post_meta($post->ID, '_rehub_product_unique_id', true);?> <?php $module_id = get_post_meta($post->ID, '_rehub_module_ce_id', true);?> <?php if($unique_id && $module_id):?> <?php $itemsync = \ContentEgg\application\components\ContentManager::getProductbyUniqueId($unique_id, $module_id, $post->ID);?> <?php endif;?> <?php endif;?> <?php if (!empty($itemsync)):?> <?php echo rh_best_syncpost_deal($itemsync);?> <?php else :?> <div class="brand_logo_small"> <?php WPSM_Postfilters::re_show_brand_tax('logo'); //show brand logo?> </div> <?php endif;?> <?php $buy_best_text = (rehub_option('buy_best_text') !='') ? esc_html(rehub_option('buy_best_text')) : __('Buy for best price', 'rehub_framework'); ?> <a href="<?php echo esc_url($offer_url);?>" class="re_track_btn wpsm-button rehub_main_btn btn_offer_block" target="_blank" rel="nofollow"><?php echo ''.$buy_best_text;?></a> </div> <div class="rh-line mt20 mb25"></div> <?php endif;?> </div> <?php $prosvalues = vp_metabox('rehub_post.review_post.0.review_post_pros_text');?> <?php if(!empty($prosvalues)):?> <ul class="pros-list rh-flex-eq-height"> <?php $prosvalues = explode(PHP_EOL, $prosvalues);?> <?php foreach ($prosvalues as $prosvalue) { echo '<li>'.$prosvalue.'</li>'; }?> </ul> <div class="clearfix"></div> <?php else:?> <?php $amazon_key = get_post_meta($post->ID, '_cegg_data_Amazon', true);?> <?php if(!empty($amazon_key)) :?> <?php $amazon_key = reset($amazon_key);?> <?php $features = (!empty($amazon_key['extra']['itemAttributes']['Feature'])) ? $amazon_key['extra']['itemAttributes']['Feature'] : ''?> <?php if (!empty ($features)) :?> <ul class="pros-list rh-flex-eq-height"> <?php $length = $maxlength = 0;?> <?php foreach ($features as $k => $feature): ?> <?php if(is_array($feature)){continue;}?> <?php $length = strlen($feature); $maxlength += $length; ?> <li><?php echo esc_attr($feature); ?></li> <?php if($k >= 3 || $maxlength > 150) break; ?> <?php endforeach; ?> </ul> <?php endif ;?> <?php endif;?> <div class="clearfix"></div> <?php endif;?> <?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 notextshare"> <?php include(rh_locate_template('inc/parts/post_share.php')); ?> </div> <div class="clearfix"></div> <?php endif; ?> </div> </div> <div class="rh-line mb25"></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]