PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.15
Yatra – Travel Booking & Tour Operator Software v3.0.15
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 2.0.10 All 83 releases
yatra / templates / setup-wizard / theme-old.php

theme-old.php in Yatra – Travel Booking & Tour Operator Software 3.0.15, at templates/setup-wizard/theme-old.php

119 lines 6.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Setup Wizard - Theme Step
4 *
5 * @package Yatra
6 */
7
8 defined('ABSPATH') || exit;
9
10 // Check if Resa theme is installed
11 $resa_theme = wp_get_theme('resa');
12 $is_resa_installed = $resa_theme->exists();
13 $is_resa_active = get_template() === 'resa';
14 ?>
15
16 <div class="yatra-setup-step yatra-setup-theme">
17 <form method="post">
18 <?php wp_nonce_field('yatra-setup'); ?>
19
20 <div class="yatra-setup-step-content">
21 <h2><?php esc_html_e('Choose Your Theme', 'yatra'); ?></h2>
22 <p class="yatra-setup-description">
23 <?php esc_html_e('Select a theme optimized for travel booking websites. We recommend Resa - a beautiful, modern theme designed specifically for Yatra.', 'yatra'); ?>
24 </p>
25
26 <div class="yatra-theme-options">
27 <!-- Resa Theme - Recommended -->
28 <div class="yatra-theme-option yatra-theme-recommended">
29 <div class="yatra-theme-badge">
30 <span class="dashicons dashicons-star-filled"></span>
31 <?php esc_html_e('Recommended', 'yatra'); ?>
32 </div>
33
34 <div class="yatra-theme-preview">
35 <img src="<?php echo esc_url(YATRA_PLUGIN_URI . 'assets/images/resa-theme-preview.jpg'); ?>"
36 alt="<?php esc_attr_e('Resa Theme', 'yatra'); ?>"
37 onerror="this.src='data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22400%22 height=%22300%22%3E%3Crect fill=%22%23667eea%22 width=%22400%22 height=%22300%22/%3E%3Ctext x=%2250%25%22 y=%2250%25%22 dominant-baseline=%22middle%22 text-anchor=%22middle%22 font-family=%22sans-serif%22 font-size=%2224%22 fill=%22white%22%3EResa Theme%3C/text%3E%3C/svg%3E'">
38 </div>
39
40 <div class="yatra-theme-details">
41 <h3><?php esc_html_e('Resa - Travel Booking Theme', 'yatra'); ?></h3>
42 <p class="yatra-theme-description">
43 <?php esc_html_e('A modern, responsive WordPress theme built specifically for travel agencies and trip operators. Features beautiful trip listings, booking forms, and seamless Yatra integration.', 'yatra'); ?>
44 </p>
45
46 <ul class="yatra-theme-features">
47 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e('Fully Responsive Design', 'yatra'); ?></li>
48 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e('Optimized for Yatra Plugin', 'yatra'); ?></li>
49 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e('Beautiful Trip Layouts', 'yatra'); ?></li>
50 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e('Fast Loading & SEO Friendly', 'yatra'); ?></li>
51 <li><span class="dashicons dashicons-yes"></span> <?php esc_html_e('One-Click Demo Import', 'yatra'); ?></li>
52 </ul>
53
54 <?php if ($is_resa_active) : ?>
55 <div class="yatra-theme-status yatra-theme-active">
56 <span class="dashicons dashicons-yes-alt"></span>
57 <?php esc_html_e('Currently Active', 'yatra'); ?>
58 </div>
59 <?php elseif ($is_resa_installed) : ?>
60 <div class="yatra-theme-status yatra-theme-installed">
61 <span class="dashicons dashicons-download"></span>
62 <?php esc_html_e('Already Installed', 'yatra'); ?>
63 </div>
64 <?php else : ?>
65 <label class="yatra-theme-install-option">
66 <input type="checkbox" name="install_resa_theme" value="yes" checked>
67 <span><?php esc_html_e('Install Resa Theme (Free)', 'yatra'); ?></span>
68 </label>
69 <?php endif; ?>
70 </div>
71 </div>
72
73 <!-- Current Theme Option -->
74 <div class="yatra-theme-option yatra-theme-current">
75 <div class="yatra-theme-preview">
76 <?php
77 $current_theme = wp_get_theme();
78 $screenshot = $current_theme->get_screenshot();
79 if ($screenshot) :
80 ?>
81 <img src="<?php echo esc_url($screenshot); ?>" alt="<?php echo esc_attr($current_theme->get('Name')); ?>">
82 <?php else : ?>
83 <div class="yatra-theme-no-preview">
84 <span class="dashicons dashicons-admin-appearance"></span>
85 </div>
86 <?php endif; ?>
87 </div>
88
89 <div class="yatra-theme-details">
90 <h3><?php echo esc_html($current_theme->get('Name')); ?></h3>
91 <p class="yatra-theme-description">
92 <?php esc_html_e('Continue using your current theme. You can always switch to Resa later from the WordPress Appearance menu.', 'yatra'); ?>
93 </p>
94
95 <div class="yatra-theme-status yatra-theme-active">
96 <span class="dashicons dashicons-yes-alt"></span>
97 <?php esc_html_e('Currently Active', 'yatra'); ?>
98 </div>
99 </div>
100 </div>
101 </div>
102
103 <div class="yatra-setup-note">
104 <strong><?php esc_html_e('Note:', 'yatra'); ?></strong>
105 <?php esc_html_e('Resa theme is optimized for Yatra and provides the best user experience. You can preview and install it from WordPress.org themes directory.', 'yatra'); ?>
106 </div>
107 </div>
108
109 <div class="yatra-setup-actions">
110 <button type="submit" class="button button-primary button-large" name="save_step" value="theme">
111 <?php esc_html_e('Continue', 'yatra'); ?>
112 </button>
113 <a href="<?php echo esc_url($this->get_next_step_link()); ?>" class="button button-large">
114 <?php esc_html_e('Skip this step', 'yatra'); ?>
115 </a>
116 </div>
117 </form>
118 </div>
119