-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
129 lines (108 loc) · 8.88 KB
/
archive.php
File metadata and controls
129 lines (108 loc) · 8.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php get_header(); ?>
<?php
$price_meta = rehub_option('price_meta_grid');
$disable_btn = (rehub_option('rehub_enable_btn_recash') == 1) ? 0 : 1;
$disable_act = (rehub_option('disable_grid_actions') == 1) ? 1 : 0;
$aff_link = (rehub_option('disable_inner_links') == 1) ? 1 : 0;
?>
<!-- CONTENT -->
<div class="rh-container">
<div class="rh-content-wrap clearfix">
<!-- Main Side -->
<div class="main-side clearfix<?php if (rehub_option('archive_layout') == 'gridfull' || rehub_option('archive_layout') == 'dealgridfull' || rehub_option('archive_layout') == 'compactgridfull' || rehub_option('archive_layout') == 'columngridfull' || rehub_option('archive_layout') == 'cardblogfull') : ?> full_width<?php endif ;?>">
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<div class="wpsm-title middle-size-title wpsm-cat-title"><h5><span><?php esc_html_e('Category:', 'rehub-theme'); ?></span> <?php single_cat_title(); ?></h5></div>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<div class="wpsm-title middle-size-title wpsm-cat-title"><h5><span><?php esc_html_e('Tag:', 'rehub-theme'); ?></span> <?php single_tag_title(); ?></h5></div>
<article class='top_rating_text'><?php echo tag_description(); ?></article>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<div class="wpsm-title middle-size-title wpsm-cat-title"><h5><span><?php esc_html_e('Archive:', 'rehub-theme'); ?></span> <?php the_time('F jS, Y'); ?></h5></div>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<div class="wpsm-title middle-size-title wpsm-cat-title"><h5><span><?php esc_html_e('Browsing Archive', 'rehub-theme'); ?></span> <?php the_time('F, Y'); ?></h5></div>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<div class="wpsm-title middle-size-title wpsm-cat-title"><h5><span><?php esc_html_e('Browsing Archive', 'rehub-theme'); ?></span> <?php the_time('Y'); ?></h5></div>
<?php } ?>
<?php if (have_posts()) : ?>
<?php if (rehub_option('archive_layout') == 'blog') : ?>
<div class="">
<?php elseif (rehub_option('archive_layout') == 'newslist') : ?>
<div class="">
<?php elseif (rehub_option('archive_layout') == 'communitylist') : ?>
<div class="">
<?php elseif (rehub_option('archive_layout') == 'deallist') : ?>
<div class="woo_offer_list " >
<?php elseif (rehub_option('archive_layout') == 'grid') : ?>
<?php wp_enqueue_script('masonry'); wp_enqueue_script('imagesloaded'); wp_enqueue_script('masonry_init'); ?>
<div class="masonry_grid_fullwidth col_wrap_two">
<?php elseif (rehub_option('archive_layout') == 'gridfull') : ?>
<?php wp_enqueue_script('masonry'); wp_enqueue_script('imagesloaded'); wp_enqueue_script('masonry_init'); ?>
<div class="masonry_grid_fullwidth col_wrap_three">
<?php elseif (rehub_option('archive_layout') == 'columngrid') : ?>
<div class="columned_grid_module rh-flex-eq-height col_wrap_three" >
<?php elseif (rehub_option('archive_layout') == 'columngridfull') : ?>
<div class="columned_grid_module rh-flex-eq-height col_wrap_fourth">
<?php elseif (rehub_option('archive_layout') == 'compactgrid') : ?>
<div class="eq_grid post_eq_grid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_fifth' : 'col_wrap_fourth';?>">
<?php elseif (rehub_option('archive_layout') == 'compactgridfull') : ?>
<div class="eq_grid post_eq_grid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_six' : 'col_wrap_fifth';?>">
<?php elseif (rehub_option('archive_layout') == 'cardblog') : ?>
<div class="coloredgrid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_fourth' : 'col_wrap_three';?>">
<?php elseif (rehub_option('archive_layout') == 'cardblogfull') : ?>
<div class="coloredgrid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_fifth' : 'col_wrap_fourth';?>">
<?php elseif (rehub_option('archive_layout') == 'dealgrid') : ?>
<div class="eq_grid post_eq_grid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_fourth' : 'col_wrap_three';?>">
<?php elseif (rehub_option('archive_layout') == 'dealgridfull') : ?>
<div class="eq_grid post_eq_grid rh-flex-eq-height <?php echo (rehub_option('width_layout') =='extended') ? 'col_wrap_six' : 'col_wrap_fifth';?>">
<?php else : ?>
<div class="" data-template="query_type1">
<?php endif ;?>
<?php while (have_posts()) : the_post(); ?>
<?php if (rehub_option('archive_layout') == 'blog') : ?>
<?php include(rh_locate_template('inc/parts/query_type2.php')); ?>
<?php elseif (rehub_option('archive_layout') == 'newslist') : ?>
<?php $type='2'; ?>
<?php include(rh_locate_template('inc/parts/query_type1.php')); ?>
<?php elseif (rehub_option('archive_layout') == 'communitylist') : ?>
<?php include(rh_locate_template('inc/parts/query_type1.php')); ?>
<?php elseif (rehub_option('archive_layout') == 'deallist') : ?>
<?php include(rh_locate_template('inc/parts/postlistpart.php')); ?>
<?php elseif (rehub_option('archive_layout') == 'grid' || rehub_option('archive_layout') == 'gridfull') : ?>
<?php include(rh_locate_template('inc/parts/query_type3.php')); ?>
<?php elseif (rehub_option('archive_layout') == 'columngrid' || rehub_option('archive_layout') == 'columngridfull') : ?>
<?php include(rh_locate_template('inc/parts/column_grid.php')); ?>
<?php elseif (rehub_option('archive_layout') == 'cardblog' || rehub_option('archive_layout') == 'cardblogfull') : ?>
<?php include(rh_locate_template('inc/parts/color_grid.php')); ?>
<?php elseif (rehub_option('archive_layout') == 'compactgrid' || rehub_option('archive_layout') == 'compactgridfull') : ?>
<?php $gridtype = 'compact'; include(rh_locate_template('inc/parts/compact_grid.php')); ?>
<?php elseif (rehub_option('archive_layout') == 'dealgrid' || rehub_option('archive_layout') == 'dealgridfull') : ?>
<?php include(rh_locate_template('inc/parts/compact_grid.php')); ?>
<?php else : ?>
<?php include(rh_locate_template('inc/parts/query_type1.php')); ?>
<?php endif ;?>
<?php endwhile; ?>
</div>
<div class="pagination"><?php rehub_pagination();?></div>
<?php else : ?>
<h5><?php esc_html_e('Sorry. No posts in this category yet', 'rehub-theme'); ?></h5>
<?php endif; ?>
<div class="clearfix"></div>
</div>
<!-- /Main Side -->
<?php if (rehub_option('archive_layout') == 'gridfull' || rehub_option('archive_layout') == 'dealgridfull' || rehub_option('archive_layout') == 'compactgridfull' || rehub_option('archive_layout') == 'columngridfull' || rehub_option('archive_layout') == 'cardblogfull') : ?>
<?php else:?>
<!-- Sidebar -->
<?php get_sidebar(); ?>
<!-- /Sidebar -->
<?php endif ;?>
</div>
</div>
<!-- /CONTENT -->
<!-- FOOTER -->
<?php get_footer(); ?>