PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <?php /* Template Name: Top charts constructor (NEW) */ ?> <?php $type_chart = vp_metabox('rehub_top_chart.top_chart_type'); $ids_chart = vp_metabox('rehub_top_chart.top_chart_ids'); if($ids_chart) {$module_ids = explode(',', $ids_chart);} $module_width = vp_metabox('rehub_top_chart.top_chart_width'); $module_disable = vp_metabox('rehub_top_chart.shortcode_charts_enable'); $rows = vp_metabox('rehub_top_chart.columncontents'); //Get the rows $compareids = (get_query_var('compareids')) ? explode(',', get_query_var('compareids')) : ''; ?> <?php if(!empty($compareids)) add_filter( 'pre_get_document_title', 'rh_compare_charts_title_dynamic', 100 );?> <?php get_header(); ?> <!-- CONTENT --> <div class="rh-container"> <div class="rh-content-wrap clearfix"> <!-- Main Side --> <div class="main-side page clearfix<?php if ($module_width =='1') : ?> full_width<?php endif;?>"> <div class="title"><h1><?php the_title(); ?></h1></div> <?php if (!is_paged()) :?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article class="top_rating_text post"><?php the_content(); ?></article> <div class="clearfix"></div> <?php endwhile; endif; ?> <?php endif; ?> <?php if ($module_disable !='1') :?> <?php if ($compareids !='') :?> <?php $args = array( 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'orderby' => 'post__in', 'post__in' => $compareids, 'posts_per_page'=> -1, 'post_type' => 'any' ); ?> <?php elseif (!empty($module_ids)) :?> <?php $args = array( 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'orderby' => 'post__in', 'post__in' => $module_ids, 'posts_per_page'=> -1, ); ?> <?php else :?> <?php $args = array( 'posts_per_page' => 5, 'post_status' => 'publish', 'ignore_sticky_posts' => 1, ); ?> <?php endif ;?> <?php if (post_type_exists( $type_chart )) {$args['post_type'] = $type_chart;} ?> <?php $args = apply_filters('rh_module_args_query', $args); $wp_query = new WP_Query($args); do_action('rh_after_module_args_query', $wp_query); $i=0; if ($wp_query->have_posts()) :?> <?php wp_enqueue_script('carouFredSel'); wp_enqueue_script('touchswipe'); ?> <div class="top_chart table_view_charts loading"> <div class="top_chart_controls"> <a href="/" class="controls prev"></a> <div class="top_chart_pagination"></div> <a href="/" class="controls next"></a> </div> <div class="top_chart_first"> <ul> <?php if (!empty ($rows)) { $nameid=0; foreach ($rows as $row) { $element_type = $row['column_type']; $first_col_value = '<div'; if (isset ($row['sticky_header']) && $row['sticky_header'] == 1) {$first_col_value .= ' class="sticky-cell"';} $first_col_value .= '>'.do_shortcode($row["column_name"]).''; if (isset ($row['enable_diff']) && $row['enable_diff'] == 1) {$first_col_value .= '<br /><label class="diff-label"><input class="re-compare-show-diff" name="re-compare-show-diff" type="checkbox" />'.__('Show only differences', 'rehub_framework').'</label>';} $first_col_value .= '</div>'; echo '<li class="row_chart_'.$nameid.' '.$element_type.'_row_chart">'.$first_col_value.'</li>'; $nameid++; } } ?> </ul> </div> <div class="top_chart_wrap"><div class="top_chart_carousel"> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); $i ++?> <div class="<?php echo re_badge_create('class'); ?> top_rating_item top_chart_item compare-item-<?php echo get_the_ID();?>" id='rank_<?php echo (int)$i?>' data-compareid="<?php echo get_the_ID();?>"> <ul> <?php $pbid=0; if (!empty ($rows)) { foreach ($rows as $row) { $element = $row['column_type']; echo '<li class="row_chart_'.$pbid.' '.$element.'_row_chart">'; if ($element == 'meta_value') { include(rh_locate_template('inc/top/metarow.php')); } else if ($element == 'image') { include(rh_locate_template('inc/top/imagerow.php')); } else if ($element == 'imagefull') { include(rh_locate_template('inc/top/imagefullrow.php')); } else if ($element == 'title') { include(rh_locate_template('inc/top/titlerow.php')); } else if ($element == 'taxonomy_value') { include(rh_locate_template('inc/top/taxonomyrow.php')); } else if ($element == 'affiliate_btn') { include(rh_locate_template('inc/top/btnrow.php')); } else if ($element == 'review_link') { include(rh_locate_template('inc/top/reviewlinkrow.php')); } else if ($element == 'review_criterias') { include(rh_locate_template('inc/top/reviewcriterias.php')); } else if ($element == 'review_function') { include(rh_locate_template('inc/top/reviewrow.php')); } else if ($element == 'user_review_function') { include(rh_locate_template('inc/top/userreviewcolumn.php')); } else if ($element == 'static_user_review_function') { include(rh_locate_template('inc/top/staticuserreviewcolumn.php')); } else if ($element == 'woo_review') { include(rh_locate_template('inc/top/wooreviewrow.php')); } else if ($element == 'woo_btn') { include(rh_locate_template('inc/top/woobtn.php')); } else if ($element == 'woo_vendor') { include(rh_locate_template('inc/top/woovendor.php')); } else if ($element == 'woo_attribute') { include(rh_locate_template('inc/top/wooattribute.php')); } else if ($element == 'excerpt') { include(rh_locate_template('inc/top/excerpt.php')); } else if ($element == 'shortcode') { $shortcodevalue = (isset($row['shortcode_value'])) ? $row['shortcode_value'] : ''; echo do_shortcode(wp_kses_post($shortcodevalue)); } else { }; echo '</li>'; $pbid++; } } ?> </ul> </div> <?php endwhile; ?> </div></div> <span class="top_chart_row_found" data-rowcount="<?php echo (int)$pbid;?>"></span> </div> <?php else: ?><?php _e('No posts for this criteria.', 'rehub_framework'); ?> <?php endif; ?> <?php wp_reset_query(); ?> <?php endif; ?> </div> <!-- /Main Side --> <?php if ($module_width !='1') : ?> <!-- Sidebar --> <?php get_sidebar(); ?> <!-- /Sidebar --> <?php endif;?> </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]