PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <?php /* Template Name: Catalogue constructor */ ?> <?php $catalog_fetch = vp_metabox('rehub_catalog.catalog_fetch'); $catalog_type = vp_metabox('rehub_catalog.catalog_post_type'); $catalog_tax = vp_metabox('rehub_catalog.catalog_tax'); $catalog_tax_slug = vp_metabox('rehub_catalog.catalog_tax_slug'); $catalog_tax_show = vp_metabox('rehub_catalog.catalog_tax_show'); $catalog_desc = vp_metabox('rehub_catalog.catalog_desc'); $catalog_fields = vp_metabox('rehub_catalog.catalog_fields'); $catalog_readmore = vp_metabox('rehub_catalog.catalog_readmore'); if ($catalog_fetch ==''){$catalog_fetch = '9';}; if ($catalog_type ==''){$catalog_type = 'post';}; ?> <?php get_header(); ?> <!-- CONTENT --> <div class="rh-container"> <div class="rh-content-wrap clearfix"> <!-- Main Side --> <div class="main-side page clearfix"> <?php if (!is_paged()) :?> <article class="top_rating_text"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?><?php the_content(); ?><?php endwhile; endif; ?> </article> <div class="clearfix"></div> <?php endif ;?> <div class="columned_grid_module rh-flex-eq-height col_wrap_three"> <?php if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } else if ( get_query_var('page') ) {$paged = get_query_var('page'); } else {$paged = 1; } ?> <?php $args = array( 'paged' => $paged, 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => $catalog_fetch, 'post_type' => $catalog_type, ); ?> <?php if (!empty ($catalog_tax_slug) && !empty ($catalog_tax)) : ?> <?php $args['tax_query'] = array ( array( 'taxonomy' => $catalog_tax, 'field' => 'slug', 'terms' => $catalog_tax_slug, ), );?> <?php endif ?> <?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=1; if ($wp_query->have_posts()) :?> <?php while ($wp_query->have_posts()) : $wp_query->the_post();?> <article class="inf_scr_item col_item column_grid rh-heading-hover-color rh-bg-hover-color rh-cartbox no-padding"> <figure><?php echo re_badge_create('ribbonleft'); ?> <a href="<?php the_permalink();?>"><?php wpsm_thumb ('medium_news') ?></a> </figure> <div class="content_constructor"> <?php if ($catalog_tax !='' && $catalog_tax_show =='1') :?> <div class="post-meta"><i class="far fa-tag"></i> <?php $terms = get_the_terms($post->ID, $catalog_tax ); if ($terms && ! is_wp_error($terms)) : $term_slugs_arr = array(); foreach ($terms as $term) { $term_slugs_arr[] = ''.$term->name.''; } $terms_slug_str = join(", ", $term_slugs_arr); echo ''.$terms_slug_str; endif; ?> </div> <?php endif ;?> <h2><a href="<?php the_permalink();?>"><?php the_title();?></a></h2> <?php if($catalog_desc !='') : ?> <div class="mb15 greycolor lineheight20 font90"> <?php kama_excerpt('maxchar='.$catalog_desc.''); ?> </div> <?php endif; ?> <?php if($catalog_fields[0]['catalog_fields_name'] !='') : ?> <div class="rehub_catalog_fields font90 lineheight15 mb20 flowhidden"> <?php $count=1; foreach ($catalog_fields as $catalog_field) { ?> <?php $field_value = get_post_meta($post->ID, $catalog_field['catalog_fields_name'], true) ;?> <?php if($field_value !='') : ?> <div class="rehub_catalog_field rehub_field_<?php echo (int)$count; ?>"> <div class="rehub_catalog_field_title floatleft mr5"><?php if ($catalog_field['catalog_icon']) : ?><i class="far <?php echo esc_attr($catalog_field['catalog_icon']); ?>"></i><?php endif ;?><?php if ($catalog_field['catalog_fields_title']) : ?><span><?php echo esc_attr($catalog_field['catalog_fields_title']); ?></span><?php endif ;?></div> <div class="rehub_catalog_field_value floatleft"><?php echo ''.$field_value; ?></div> </div> <?php endif; ?> <?php $count++; ?> <?php } ?> </div> <?php endif; ?> <?php if($catalog_readmore =='buybutton') : ?> <div class="mb10"> <?php rehub_create_btn('no');?> </div> <?php elseif($catalog_readmore =='read') : ?> <div class="mb10"> <?php if (vp_metabox('rehub_post_side.read_more_custom')): ?> <a href="<?php the_permalink();?>" class="btn_more btn_more_custom"><?php echo strip_tags(vp_metabox('rehub_post_side.read_more_custom'));?></a> <?php elseif (rehub_option('rehub_readmore_text') !=''): ?> <a href="<?php the_permalink();?>" class="btn_more"><?php echo strip_tags(rehub_option('rehub_readmore_text'));?></a> <?php else: ?> <a href="<?php the_permalink();?>" class="btn_more"><?php _e('READ MORE +', 'rehub_framework') ;?></a> <?php endif ?> </div> <?php else : ?> <?php endif; ?> </div> </article> <?php $i++; endwhile; ?> <?php else: ?><?php _e('No posts for this criteria.', 'rehub_framework'); ?> <?php endif; ?> </div> <div class="clearfix"></div> <div class="pagination"> <?php rehub_pagination();?> </div> <?php wp_reset_query(); ?> </div> <!-- /Main Side --> <!-- Sidebar --> <?php get_sidebar(); ?> <!-- /Sidebar --> </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]