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 / business.php

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

58 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Setup Wizard — Business profile (contact details only).
4 *
5 * @package Yatra
6 */
7
8 defined('ABSPATH') || exit;
9
10 use Yatra\Services\SettingsService;
11
12 $company_name = SettingsService::get('company_name', '');
13 $company_email = SettingsService::get('company_email', '');
14 $company_phone = SettingsService::get('company_phone', '');
15 ?>
16
17 <form method="post" class="wizard-step">
18 <?php wp_nonce_field('yatra-setup'); ?>
19 <input type="hidden" name="save_step" value="business">
20
21 <div class="wizard-header wizard-header--task">
22 <p class="wizard-header-kicker"><?php echo esc_html($this->get_wizard_progress_label()); ?></p>
23 <h1><?php esc_html_e('Your business', 'yatra'); ?></h1>
24 <p class="wizard-header-lead"><?php esc_html_e('These details appear on booking records and customer-facing messages.', 'yatra'); ?></p>
25 </div>
26
27 <div class="wizard-content">
28 <div class="form-row" style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;">
29 <div class="form-group" style="margin-bottom: 0;">
30 <label class="form-label" for="company_name"><?php esc_html_e('Business / brand name', 'yatra'); ?> <span class="wizard-req">*</span></label>
31 <input type="text" id="company_name" name="company_name" value="<?php echo esc_attr($company_name); ?>" class="form-control" required autocomplete="organization" placeholder="<?php esc_attr_e('e.g. Mountain View Tours', 'yatra'); ?>">
32 </div>
33 <div class="form-group" style="margin-bottom: 0;">
34 <label class="form-label" for="company_email"><?php esc_html_e('Public contact email', 'yatra'); ?> <span class="wizard-req">*</span></label>
35 <input type="email" id="company_email" name="company_email" value="<?php echo esc_attr($company_email); ?>" class="form-control" required autocomplete="email" placeholder="<?php esc_attr_e('e.g. hello@yourbusiness.com', 'yatra'); ?>">
36 </div>
37 </div>
38 <div class="form-group">
39 <label class="form-label" for="company_phone"><?php esc_html_e('Phone', 'yatra'); ?> <span class="wizard-req">*</span></label>
40 <input type="tel" id="company_phone" name="company_phone" value="<?php echo esc_attr($company_phone); ?>" class="form-control" required autocomplete="tel" placeholder="<?php esc_attr_e('e.g. +1 555 123 4567', 'yatra'); ?>">
41 </div>
42 </div>
43
44 <div class="wizard-footer">
45 <a href="<?php echo esc_url($this->get_step_url('welcome')); ?>" class="btn btn-secondary wizard-footer-back">
46 <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>
47 <?php esc_html_e('Back', 'yatra'); ?>
48 </a>
49 <div class="wizard-footer-actions">
50 <a href="<?php echo esc_url($this->get_next_step_link()); ?>" class="btn btn-secondary btn-skip"><?php esc_html_e('Skip', 'yatra'); ?></a>
51 <button type="submit" class="btn btn-primary">
52 <?php esc_html_e('Continue', 'yatra'); ?>
53 <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>
54 </button>
55 </div>
56 </div>
57 </form>
58