PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <?php get_header(); ?> <?php $tagid = get_queried_object()->term_id; $tagobj = get_term_by('id', $tagid, 'dealstore'); $tagname = $tagobj->name; $tagslug = $tagobj->slug; $brandimage = get_term_meta( $tagid, 'brandimage', true ); $brandseconddesc = get_term_meta( $tagid, 'brand_second_description', true ); $brandshortdesc = get_term_meta( $tagid, 'brand_short_description', true ); $brandurl = get_term_meta( $tagid, 'brand_url', true ); $brand_heading = get_term_meta( $tagid, 'brand_heading', true ); $taglink = get_term_link( $tagid ); $tagcat = (!empty($_GET["dealcategory"])) ? esc_attr($_GET["dealcategory"]) : ''; $heading = ($brand_heading) ? $brand_heading : $tagname; $cashback_notice = get_term_meta( $tagid, 'cashback_notice', true ); ?> <!-- CONTENT --> <div class="rh-container"> <div class="rh-content-wrap clearfix"> <div class="rh-mini-sidebar-content-area tabletblockdisplay floatright"> <div class="woo-tax-name"> <h1 class="mt0 mb15 font150"><?php echo esc_html($heading);?></h1> <?php $description = term_description(); if ( $description && !is_paged() ) { echo '<div class="term-description post">' . $description . '</div>'; } ?> </div> </div> <div class="rh-mini-sidebar floatleft tabletblockdisplay mb20"> <div class="text-center rh-cartbox woo-tax-logo mb20"> <?php if (!empty ($brandimage)) { $showbrandimg = new WPSM_image_resizer(); $showbrandimg->height = '120'; $showbrandimg->src = $brandimage; $showbrandimg->title = $tagname; $showbrandimg->show_resized_image(); } ?> <?php if($cashback_notice):?> <h3 class="mt0 mb15 font130 rehub-main-color rh_custom_notice"><?php echo esc_html($cashback_notice);?></h3> <?php endif;?> <?php echo rehub_get_user_rate('admin', 'tax');?> <?php if($brandurl){ echo '<span class="rehub-main-color inlinestyle mt15 font80"><i class="far fa-external-link"></i> '.$brandurl.'</span>'; } if($brandshortdesc){ echo '<div class="mt15 font80 lineheight20 text-left-align rtltext-right-align">'.wp_specialchars_decode( $brandshortdesc, ENT_QUOTES ).'</div>'; } ?> </div> <?php $catterms = rh_get_crosstaxonomy('dealstore', $tagid, 'category'); if(!empty($catterms)){ echo '<div class="rh_category_tab widget rh-cartbox rehub-sec-smooth"><div class="title">'.__('Categories', 'rehub_framework').'</div><ul class="cat_widget_custom">'; foreach ($catterms as $catterm) { $activeclass = ($catterm->tag_slug == $tagcat) ? ' active' : ''; echo '<li><a href="'.$taglink.'?dealcategory='.$catterm->tag_slug.'" class="rh-dealstorelink'.$activeclass.'">'.$catterm->tag_name.'</a></li>'; } echo '<li><a href="'.$taglink.'" class="rh-dealstorelink">'.__('All categories', 'rehub_framework').'</a></li>'; echo '</ul></div>'; } ?> </div> <div class="rh-mini-sidebar-content-area floatright tabletblockdisplay"> <article class="post"> <?php $prepare_filter = array();?> <?php $prepare_filter[] = array ( 'filtertitle' => __('All', 'rehub_framework'), 'filtertype' => 'all', 'filterorderby' => 'date', 'filterorder'=> 'DESC', 'filterdate' => 'all', ); $prepare_filter[] = array ( 'filtertitle' => __('Deals', 'rehub_framework'), 'filtertype' => 'deals', 'filterorderby' => 'date', 'filterorder'=> 'DESC', 'filterdate' => 'all', ); $prepare_filter[] = array ( 'filtertitle' => __('Coupons', 'rehub_framework'), 'filtertype' => 'coupons', 'filterorderby' => 'date', 'filterorder'=> 'DESC', 'filterdate' => 'all', ); $prepare_filter[] = array ( 'filtertitle' => __('Sales', 'rehub_framework'), 'filtertype' => 'sales', 'filterorderby' => 'date', 'filterorder'=> 'DESC', 'filterdate' => 'all', ); $prepare_filter[] = array ( 'filtertitle' => __('Expired', 'rehub_framework'), 'filtertype' => 'expired', 'filterorderby' => 'date', 'filterorder'=> 'DESC', 'filterdate' => 'all', ); $prepare_filter = urlencode(json_encode($prepare_filter)); ?> <?php $arg_array = array( 'tax_name' => 'dealstore', 'tax_slug' => $tagslug, 'data_source' => 'cat', 'filterpanel' => $prepare_filter, 'show'=> 30, 'enable_pagination'=> '1', ); if($tagcat) {$arg_array['cat_name'] = $tagcat;} if (rehub_option('brand_taxonomy_layout') == 'compact_grid' && rehub_option('width_layout') != 'extended'){$arg_array['show'] = 32;} ?> <?php if (rehub_option('rehub_post_exclude_expired')):?> <?php $arg_array['show_coupons_only'] = '3';?> <?php endif;?> <?php if (rehub_option('disable_grid_actions')):?> <?php $arg_array['disable_act'] = 1;?> <?php endif;?> <div class="re_filter_instore"> <?php if (rehub_option('brand_taxonomy_layout') == 'regular_list'):?> <?php echo wpsm_small_thumb_loop_shortcode($arg_array);?> <?php elseif (rehub_option('brand_taxonomy_layout') == 'deal_grid' || rehub_option('brand_taxonomy_layout') == 'compact_grid'):?> <?php if(rehub_option('width_layout') == 'extended'){ if(rehub_option('brand_taxonomy_layout') == 'compact_grid'){ $arg_array['gridtype'] = 'compact'; $arg_array['columns'] = '5_col'; } else{ $arg_array['columns'] = '4_col'; } } else{ if(rehub_option('brand_taxonomy_layout') == 'compact_grid'){ $arg_array['gridtype'] = 'compact'; $arg_array['columns'] = '4_col'; } else{ $arg_array['columns'] = '3_col'; } } $arg_array['price_meta'] = rehub_option('price_meta_grid'); $aff_link = (rehub_option('disable_inner_links') == 1) ? 1 : 0; $arg_array['aff_link'] = $aff_link; ?> <?php echo wpsm_compactgrid_loop_shortcode($arg_array);?> <?php elseif (rehub_option('brand_taxonomy_layout') == 'regular_grid'):?> <?php if(rehub_option('width_layout') == 'extended'){ $arg_array['columns'] = '4_col'; } else{ $arg_array['columns'] = '3_col'; } ?> <?php echo wpsm_columngrid_loop_shortcode($arg_array);?> <?php else:?> <?php echo wpsm_offer_list_loop_shortcode($arg_array);?> <?php endif;?> </div> <div class="dealstore_tax_second_desc"> <?php echo do_shortcode($brandseconddesc);?> </div> </article> </div> <div class="rh-mini-sidebar tabletblockdisplay floatleft clearfix clearboxleft"> <?php if ( is_active_sidebar( 'dealstore-sidebar' ) ) : ?> <?php dynamic_sidebar( 'dealstore-sidebar' ); ?> <?php endif; ?> </div> </div> </div> <!-- /CONTENT --> <!-- FOOTER --> <?php get_footer(); ?>
[+]
..
[-] taxonomy-download_tag.php
[edit]
[+]
woocommerce
[-] comments.php
[edit]
[+]
jsonids
[-] header.php
[edit]
[-] taxonomy-blog_category.php
[edit]
[-] archive.php
[edit]
[-] page.php
[edit]
[-] taxonomy-dealstore.php
[edit]
[-] archive-blog.php
[edit]
[-] content-multi_category.php
[edit]
[+]
edd_templates
[-] index.php
[edit]
[-] sidebar.php
[edit]
[+]
wc-vendors
[+]
geo-my-wp
[-] template-timeline.php
[edit]
[+]
buddypress
[-] single.php
[edit]
[-] sidebar-shopinner.php
[edit]
[+]
functions
[-] wpml-config.xml
[edit]
[-] template-flipchart.php
[edit]
[+]
wcmp-vendor-membership
[+]
dokan
[-] catalogue_constructor.php
[edit]
[+]
js
[-] search.php
[edit]
[+]
bpge
[-] buddypress.php
[edit]
[-] style.css
[edit]
[-] functions.php
[edit]
[+]
rtmedia
[-] category.php
[edit]
[-] visual_builder.php
[edit]
[-] single-download.php
[edit]
[+]
images
[-] taxonomy-download_category.php
[edit]
[-] template-toprating.php
[edit]
[+]
inc
[+]
plugins
[-] archive-download.php
[edit]
[+]
mdf_templates
[+]
vafpress-framework
[+]
dc-product-vendor
[-] sidebar-shop.php
[edit]
[+]
admin
[-] template-topcharts.php
[edit]
[+]
lang
[+]
content-egg-templates
[+]
icons
[-] template-toptable.php
[edit]
[+]
css
[-] author.php
[edit]
[-] searchform.php
[edit]
[-] class-tgm-plugin-activation.php
[edit]
[-] screenshot.png
[edit]
[+]
shortcodes
[-] 404.php
[edit]
[-] template-fullwidth.php
[edit]
[-] ce-product-search.php
[edit]
[+]
amp
[-] template-meta-data-filter.php
[edit]
[-] template-mdtfoutput.php
[edit]
[-] taxonomy-blog_tag.php
[edit]
[-] footer.php
[edit]
[-] favorites_list.php
[edit]
[+]
affegg-templates
[-] rtl.css
[edit]