-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy-network-category.php
111 lines (85 loc) · 5 KB
/
taxonomy-network-category.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
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
<?php get_header();
?>
<!-- section divider -->
<div class="container mt-30">
<div class="row">
<!-- Left side content -->
<div class="col-lg-9">
<!-- affilate programs-->
<div class="premium-networks global-card mt-30">
<div class=" mb-20 px-4">
<h6 class="section-title"><?php single_term_title(); ?></h6>
<!-- single card -->
<?php $network = new WP_Query( array(
'post_type' => 'network',
'taxonomy' => 'network-category',
'posts_per_page' => -1
) );
while(have_posts()) : the_post();
$meta = get_post_meta(get_the_ID(), '_adnets_network_options', true);
$rating = isset($meta['rating']) ? $meta['rating'] : 0;
?>
<div class="mp_single-card d-flex align-items-center mt-30 mx-4">
<!-- left side img -->
<div class="me-md-4">
<?php the_post_thumbnail(); ?>
</div>
<div>
<!-- top -->
<span class="top-card-info">
<a href="<?php the_permalink(); ?>">
<h6 class="title"><?php the_title(); ?></h6>
</a>
<span class="ratings-wrapper">
<?php for($i = 0; $i < $rating; $i++) : ?>
<a href=""> <i class="fa-solid fa-star"></i></a>
<?php endfor; ?>
<!-- <a href="#"> <i class="fa-solid fa-star"></i></a>
<a href="#"> <i class="fa-solid fa-star"></i></a>
<a href="#"> <i class="fa-solid fa-star"></i></a>
<a href="#"><i class="fa-solid fa-star-half-stroke"></i></a> -->
</span>
<span class="separator">
_
</span>
<!-- <span class="icon-wraper">
<a class="card-icon" href="#"><i class="fa-solid fa-ticket"></i></a>
<span class="separator">
_
</span>
<a class="card-icon" href="#"><i class="fa-solid fa-heart"></i></a>
<span class="separator">
_
</span>
<a class="card-icon" href="#"><i class="fa-solid fa-briefcase"></i></a>
</span> -->
<span class="ratings-number"><?php echo $rating; ?></span>
<a target="_blank" href="<?php echo isset($meta['button-url']) ? $meta['button-url'] : ''; ?>" class="btn2 card-btn">join</a>
</span>
<!-- mid text -->
<p class="mt-10">
<?php echo wp_trim_words( get_the_content(), 20 ); ?>
</p>
<!-- bottom -->
<ul class="bottom-card-info mt-10">
<li><?php echo isset($meta['reviews']) ? $meta['reviews'] : ''; ?> reviews</li>
<li class="separator">_</li>
<li>Offers: <?php echo isset($meta['offers']) ? $meta['offers'] : ''; ?></li>
<li class="separator">_</li>
<li><?php echo isset($meta['place']) ? $meta['place'] : ''; ?></li>
<li class="separator">_</li>
<li><?php echo isset($meta['timelines']) ? $meta['timelines'] : ''; ?></li>
</ul>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="mt-40 d-flex justify-content-center">
<a class="btn2" href="/all-networks">see all networks</a>
</div>
</div>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>