PluginProbe
Yatra – Travel Booking & Tour Operator Software / trunk
Yatra – Travel Booking & Tour Operator Software vtrunk
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 2.0.11 All 82 releases
yatra / templates / setup-wizard / welcome.php

welcome.php in Yatra – Travel Booking & Tour Operator Software trunk, at templates/setup-wizard/welcome.php

83 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Setup Wizard - Welcome (only screen with broad onboarding / marketing copy).
4 *
5 * @package Yatra
6 */
7
8 defined('ABSPATH') || exit;
9
10 use Yatra\Services\StatsUsage;
11
12 $usage_stored = get_option(StatsUsage::OPT_CONSENT, null);
13 /** First visit: default checked; after save, reflect stored preference. */
14 $usage_checked = ($usage_stored === null) ? true : (bool) $usage_stored;
15 ?>
16
17 <form method="post" class="wizard-step wizard-step--welcome">
18 <?php wp_nonce_field('yatra-setup'); ?>
19 <input type="hidden" name="save_step" value="welcome" />
20
21 <div class="wizard-header wizard-header--welcome">
22 <h1><?php esc_html_e('Launch your trip bookings faster', 'yatra'); ?></h1>
23 <p class="wizard-welcome-sub"><?php esc_html_e('A short guided setup—then you can publish trips and take bookings.', 'yatra'); ?></p>
24 </div>
25
26 <div class="wizard-content wizard-content--welcome">
27 <p class="wizard-welcome-lead"><?php esc_html_e('We will walk you through what matters most for Yatra:', 'yatra'); ?></p>
28 <ul class="checklist wizard-welcome-checklist">
29 <li>
30 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>
31 <span><?php esc_html_e('Business details travelers and receipts will reference', 'yatra'); ?></span>
32 </li>
33 <li>
34 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>
35 <span><?php esc_html_e('Guest checkout and confirmation emails (pageless booking flow)', 'yatra'); ?></span>
36 </li>
37 <li>
38 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>
39 <span><?php esc_html_e('Professional “from” addresses and payment test mode so you do not surprise customers', 'yatra'); ?></span>
40 </li>
41 <li>
42 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>
43 <span><?php esc_html_e('Currency display and an optional theme tuned for travel sites', 'yatra'); ?></span>
44 </li>
45 </ul>
46
47 <div class="info-note wizard-welcome-note">
48 <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>
49 <span><?php esc_html_e('You can skip anytime; everything here lives under Yatra Settings later.', 'yatra'); ?></span>
50 </div>
51
52 <div class="yatra-usage-optin" style="margin: 24px 0 0; padding: 20px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafafa; max-width: 720px;">
53 <input type="hidden" name="yatra_allow_usage_tracking" value="0" />
54 <label style="display: flex; gap: 12px; align-items: flex-start; cursor: pointer;">
55 <input
56 type="checkbox"
57 name="yatra_allow_usage_tracking"
58 value="1"
59 <?php checked($usage_checked); ?>
60 style="margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0;"
61 />
62 <span>
63 <strong style="display: block; color: #111827; margin-bottom: 6px;"><?php esc_html_e('Help us improve the product by sharing non-sensitive data', 'yatra'); ?></strong>
64 <span style="font-size: 13px; color: #6b7280; line-height: 1.55;">
65 <?php esc_html_e('No personal or booking details—only technical signals. Read the full list (opens in a new tab):', 'yatra'); ?>
66 <a href="https://wpyatra.com/what-we-collect/" target="_blank" rel="noopener noreferrer" style="color: #2563eb; font-weight: 500; text-decoration: underline;"><?php esc_html_e('What we collect', 'yatra'); ?></a>
67 </span>
68 </span>
69 </label>
70 </div>
71 </div>
72
73 <div class="wizard-footer wizard-footer--welcome">
74 <a href="<?php echo esc_url(add_query_arg('skip_setup', '1', admin_url('admin.php?page=yatra-setup'))); ?>" class="btn btn-secondary">
75 <?php esc_html_e('Skip setup', 'yatra'); ?>
76 </a>
77 <button type="submit" class="btn btn-primary">
78 <?php esc_html_e('Start setup', 'yatra'); ?>
79 <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
80 </button>
81 </div>
82 </form>
83