-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard-reviews.php
66 lines (52 loc) · 1.62 KB
/
dashboard-reviews.php
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
<?php
/**
* User dashboard reviews template
*
* @package HireBee\Templates
* @since 1.0.0
*
*/
?>
<h2><i class="icon i-reviews"></i><?php _e( 'Reviews', APP_TD ); ?></h2>
<div class="row">
<div class="large-12 columns">
<div class="dashboard-filters">
<div class="row">
<div class="large-12 small-12 columns dashboard-filter-sort">
<div class="large-6 columns">
<?php hrb_output_results_fdropdown( hrb_get_dashboard_url_for( 'reviews' ) ); ?>
</div>
<div class="large-6 columns">
<?php hrb_output_sort_fdropdown(); ?>
</div>
</div>
<div class="large-12 columns dashboard-filter-sort">
<div class="large-12 columns">
<?php hrb_output_review_relation_fdropdown( $reviews_no_filters, $attributes = array( 'name' => 'drop-filter-relation', 'label' => __( 'Relation', APP_TD ) ) ); ?>
</div>
</div>
</div>
</div>
<?php if ( ! empty( $reviews ) ) : ?>
<div class="large-12 columns">
<div class="row">
<ul class="reviews">
<?php
foreach ( $reviews as $review ) {
appthemes_load_template( 'parts/content-review.php', array( 'review' => $review, 'reviewer' => get_userdata( $review->get_author_ID() ) ) );
}
?>
</ul>
</div>
</div>
<!-- pagination -->
<?php
if ( count( $reviews_no_filters ) > 1 ) {
hrb_output_pagination( $reviews, array( 'total' => count( $reviews_no_filters ) ), hrb_get_dashboard_url_for( 'reviews' ) );
}
?>
<?php else : ?>
<h5 class="no-results"><?php _e( 'You have no reviews.', APP_TD ); ?></h5>
<?php endif; ?>
</div>
</div>