PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
inc
/
parts
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <?php global $post; $branded_banner_image =''; if( is_category() || is_singular('post') ){ if( is_category() ) $cat_id = get_query_var('cat') ; if( is_singular('post')){ $branded_banner_image = get_post_meta($post->ID, 'rehub_branded_banner_image_single', true); $categories = get_the_category( $post->ID ); if (!empty($categories)){ $cat_id = $categories[0]->term_id ; } } if (!empty($cat_id)){ $cat_data = get_option("category_$cat_id"); } } ?> <?php if ($branded_banner_image && is_single()) :?> <div class="text-center"> <div id="branded_img"> <?php if (stripos($branded_banner_image, 'http') === 0) : ?> <img alt="image" src="<?php echo esc_url($branded_banner_image); ?>"> <?php else :?> <?php echo do_shortcode ($branded_banner_image);?> <?php endif;?> </div> </div> <?php elseif (!empty($cat_data['cat_image_url']) && (is_single() || is_category()) ) :?> <?php $branded_banner_url = (!empty($cat_data['cat_banner_url'])) ? $cat_data['cat_banner_url'] : '';?> <?php $branded_banner_image = $cat_data['cat_image_url'];?> <div class="text-center"> <div id="branded_img"> <?php if ($branded_banner_url !='') : ?><a href="<?php echo esc_url($branded_banner_url); ?>" target="_blank" rel="nofollow"><?php endif; ?> <?php if (stripos($branded_banner_image, 'http') === 0) : ?> <img alt="image" src="<?php echo esc_url($branded_banner_image); ?>"> <?php else :?> <?php echo do_shortcode ($branded_banner_image);?> <?php endif;?> <?php if ($branded_banner_url !='') : ?></a><?php endif; ?> </div> </div> <style>.top_theme { display: none }</style> <?php elseif (rehub_option('rehub_branded_banner_image') ) :?> <?php $branded_banner_url = rehub_option('rehub_branded_banner_url');?> <?php $branded_banner_image = rehub_option('rehub_branded_banner_image');?> <div class="text-center"> <div id="branded_img"> <?php if ($branded_banner_url !='') : ?><a href="<?php echo esc_url($branded_banner_url); ?>" target="_blank" rel="nofollow"><?php endif; ?> <?php if (stripos($branded_banner_image, 'http') === 0) : ?> <img alt="image" src="<?php echo esc_url($branded_banner_image); ?>"> <?php else :?> <?php echo do_shortcode ($branded_banner_image);?> <?php endif;?> <?php if ($branded_banner_url !='') : ?></a><?php endif; ?> </div> </div> <?php endif; ?>
[+]
..
[-] woocolumnpart.php
[edit]
[-] affeggurl.php
[edit]
[-] woogridcompact.php
[edit]
[-] compact_grid.php
[edit]
[-] simplepostlist.php
[edit]
[-] query_type3.php
[edit]
[-] column_grid.php
[edit]
[-] post_share.php
[edit]
[-] branded_banner.php
[edit]
[-] singleofferpart.php
[edit]
[-] featured.php
[edit]
[-] query_type2.php
[edit]
[-] affeggbutton.php
[edit]
[-] pricealertpopup.php
[edit]
[-] query_type1.php
[edit]
[-] woo_slider.php
[edit]
[-] blogrelated.php
[edit]
[-] top_image.php
[edit]
[-] woocompactcarousel.php
[edit]
[-] home_carousel.php
[edit]
[-] multiofferpart.php
[edit]
[-] gallery_slider.php
[edit]
[-] video_featured.php
[edit]
[-] news_ticker.php
[edit]
[-] review_slider.php
[edit]
[-] postlistpart.php
[edit]
[-] pricehistorypopup.php
[edit]
[-] woolistpart.php
[edit]
[-] prevnext.php
[edit]
[-] related_posts.php
[edit]
[-] woogridpart.php
[edit]
[-] woolistmain.php
[edit]