-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-shop.php
183 lines (153 loc) · 6.27 KB
/
page-shop.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php
$options = get_option('pidogame_framework');
get_header();
?>
<style>
.wrap-cart-plswb {
border-radius: 10px;
height: auto;
box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}
.image-cart-plswb {
text-align: center;
padding: .5rem;
}
.image-cart-plswb img {
border-radius: 6px;
}
.wrap-content-product .price{
margin: 0.5rem;
}
.title-cart-plswb h4 {
font-size: 12px;
color: #999;
}
.icon-device {
background: rgb(243 53 145 / 10%);
padding: .2rem .4rem .3rem .3rem;
width: 2rem;
height: 2rem;
border-radius: 20%;
}
.icon-device svg {
width: 15px;
height: 15px;
}
.device_name h4 {
font-weight: bold;
margin: 0;
}
.device-cart-plswb {
margin-top: 1rem;
margin-bottom: 1.2rem;
display: flex;
align-items: center;
gap: 1rem;
}
.platform,
.creator {
display: flex;
flex-direction: column;
}
.platform .title,
.creator .title {
font-size: 12px;
color: #999;
margin-bottom: .5rem;
}
.platform .content,
.creator .content {
font-size: 10px;
font-weight: bold;
}
.platform .content {
background: #fff6de;
border-radius: 4px;
color: #ffb100;
padding: .2rem .4rem;
}
.creator .content {
background: #deffee;
border-radius: 4px;
color: #35bb76;
padding: .2rem .4rem;
}
.platform-cart-plswb {
display: flex;
align-items: center;
gap: 4rem;
}
</style>
<div class="d-flex flex-column flex-root">
<div class="page d-flex flex-row flex-column-fluid">
<div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
<?php get_template_part('templates/page/header/header') ?>
<div id="kt_content_container" class="d-flex flex-column-fluid align-items-start container-xxl">
<?php get_template_part('templates/page/aside/aside') ?>
<div class="content flex-row-fluid" id="kt_content">
<div class="row">
<?php
$args = array(
'post_type' => ['product'],
'post_status' => ['publish'],
'posts_per_page' => 12
);
$query = new WP_Query($args);
if ($query->have_posts()) :
while ($query->have_posts()) : $query->the_post();
?>
<div class="col-lg-3 mb-5">
<a href="<?php the_permalink() ?>">
<div class="wrap-cart-plswb card">
<div class="image-cart-plswb">
<?php the_post_thumbnail('cart-product-plswb') ?>
</div>
<div class="wrap-content-product">
<div class="title-cart-plswb">
<h4><?= wp_trim_words(get_the_title(), 5, ' ... '); ?></h4>
</div>
<div class="device-cart-plswb">
<span class="icon-device">
<svg style="color: rgb(243, 53, 145);" xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">
<title>ionicons-v5_logos</title>
<path d="M480,265H232V444l248,36V265Z" fill="#f33591"></path>
<path d="M216,265H32V415l184,26.7V265Z" fill="#f33591"></path>
<path d="M480,32,232,67.4V249H480V32Z" fill="#f33591"></path>
<path d="M216,69.7,32,96V249H216V69.7Z" fill="#f33591"></path>
</svg>
</span>
<div class="device_name">
<h4>Fall Guys</h4>
</div>
</div>
<div class="platform-cart-plswb">
<div class="platform">
<span class="title">پلتفرم :</span>
<span class="content">استیم</span>
</div>
<div class="creator">
<span class="title">سازنده :</span>
<span class="content">Sanata Monica Studio</span>
</div>
</div>
</div>
</div>
</a>
</div>
<?php
endwhile;
endif;
wp_reset_postdata();
?>
</div>
</div>
</div>
<?php get_template_part('templates/page/footer/footer') ?>
</div>
</div>
</div>
<?php get_template_part('templates/page/drawers/drawers') ?>
<?php get_template_part('templates/page/scrolltop/scrolltop') ?>
<?php if ($options['opt-header-notifications-switcher']) get_template_part('templates/page/modals/notification/notification') ?>
<?php
get_footer();