PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.6
Yatra – Travel Booking & Tour Operator Software v3.0.6
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
yatra / templates / partials / single-trip / content-included-excluded.php

content-included-excluded.php in Yatra – Travel Booking & Tour Operator Software 3.0.6, at templates/partials/single-trip/content-included-excluded.php

73 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) {
3 exit;
4 }
5 ?>
6 <section class="yatra-trip-section" id="included">
7 <h2 class="yatra-trip-section-title">
8 <?php yatra_render_tab_icon($tab->icon ?? null, 'check', 'yatra-trip-section-title-icon', $tab->label ?? "What's Included & Excluded"); ?>
9 <?php echo esc_html(isset($tab->label) ? $tab->label : __("What's Included & Excluded", 'yatra')); ?>
10 </h2>
11 <div class="yatra-included-excluded">
12 <?php
13 $included_items = $trip->getIncludedItems();
14 if (!empty($included_items)):
15 ?>
16 <div class="yatra-included-section">
17 <h3>
18 <?php echo yatra_svg_icon('check', 'yatra-included-icon'); ?>
19 <?php echo esc_html__('Included', 'yatra'); ?>
20 </h3>
21 <ul class="yatra-included-list">
22 <?php foreach ($included_items as $item): ?>
23 <?php
24 $item_title = is_array($item) ? ($item['title'] ?? '') : (is_object($item) ? ($item->title ?? '') : $item);
25 $item_desc = is_array($item) ? ($item['description'] ?? '') : (is_object($item) ? ($item->description ?? '') : '');
26 ?>
27 <?php if (!empty($item_title)): ?>
28 <li>
29 <?php echo yatra_svg_icon('check', 'yatra-included-icon'); ?>
30 <div class="yatra-item-content">
31 <div class="yatra-item-title"><?php echo esc_html($item_title); ?></div>
32 <?php if (!empty($item_desc)): ?>
33 <div class="yatra-item-desc"><?php echo esc_html($item_desc); ?></div>
34 <?php endif; ?>
35 </div>
36 </li>
37 <?php endif; ?>
38 <?php endforeach; ?>
39 </ul>
40 </div>
41 <?php endif; ?>
42 <?php
43 $excluded_items = $trip->getExcludedItems();
44 if (!empty($excluded_items)):
45 ?>
46 <div class="yatra-excluded-section">
47 <h3>
48 <?php echo yatra_svg_icon('x', 'yatra-excluded-icon'); ?>
49 <?php echo esc_html__('Excluded', 'yatra'); ?>
50 </h3>
51 <ul class="yatra-excluded-list">
52 <?php foreach ($excluded_items as $item): ?>
53 <?php
54 $item_title = is_array($item) ? ($item['title'] ?? '') : (is_object($item) ? ($item->title ?? '') : $item);
55 $item_desc = is_array($item) ? ($item['description'] ?? '') : (is_object($item) ? ($item->description ?? '') : '');
56 ?>
57 <?php if (!empty($item_title)): ?>
58 <li>
59 <?php echo yatra_svg_icon('x', 'yatra-excluded-icon'); ?>
60 <div class="yatra-item-content">
61 <div class="yatra-item-title"><?php echo esc_html($item_title); ?></div>
62 <?php if (!empty($item_desc)): ?>
63 <div class="yatra-item-desc"><?php echo esc_html($item_desc); ?></div>
64 <?php endif; ?>
65 </div>
66 </li>
67 <?php endif; ?>
68 <?php endforeach; ?>
69 </ul>
70 </div>
71 <?php endif; ?>
72 </div>
73 </section>