Skip to content

Commit c2f28a7

Browse files
committed
* Added color-based booking status for user bookings
1 parent bf81d78 commit c2f28a7

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

css/style.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@
162162
font-size: 0.9em;
163163
line-height: 0px;
164164
float: left;
165-
width: 48%;
165+
width: 50%;
166166
padding: 0 2% 0 0;
167+
display: inline-block;
167168
}
168169

169170
.booking_entry .details .status {
@@ -174,7 +175,6 @@
174175

175176
.booking_entry .details .status span {
176177
padding: 5px 10px;
177-
background: #24890D none repeat scroll 0% 0%;
178178
border-radius: 3px;
179179
font-size: 1.4em;
180180
display: block;
@@ -183,4 +183,16 @@
183183
text-transform: uppercase;
184184
font-size: 0.8em;
185185
font-weight: 900;
186+
}
187+
188+
.booking_entry .details .confirmed span {
189+
background: #24890D;
190+
}
191+
192+
.booking_entry .details .pending span {
193+
background: #779ECB;
194+
}
195+
196+
.booking_entry .details .cancelled span {
197+
background: #C23B22;
186198
}

include/shortcodes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function user_bookings() {
258258
<p>Car: '. get_the_title( get_post_meta($bookings->ID, 'vbs_car', true) ) .'</p>
259259
<p>Cost: '. $booking['currency_symbol'] . get_post_meta($bookings->ID, 'vbs_cost', true) . '</p>
260260
</div>
261-
<div class="status">
261+
<div class="status '. get_post_meta($bookings->ID,'vbs_status',true) .'">
262262
<span>'. get_post_meta($bookings->ID,'vbs_status',true) .'</span>
263263
</div>
264264
</div>

0 commit comments

Comments
 (0)