PluginProbe
Yatra – Travel Booking & Tour Operator Software / 2.2.10
Yatra – Travel Booking & Tour Operator Software v2.2.10
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 / includes / admin / views / html-admin-settings.php

html-admin-settings.php in Yatra – Travel Booking & Tour Operator Software 2.2.10, at includes/admin/views/html-admin-settings.php

53 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin View: Settings
4 *
5 * @package AgencyEcommerceAddons
6 */
7
8 if (!defined('ABSPATH')) {
9 exit;
10 }
11
12
13 $tab_exists = isset($tabs[$current_tab]) || has_action('yatra_sections_' . $current_tab) || has_action('yatra_settings_' . $current_tab) || has_action('yatra_settings_tabs_' . $current_tab);
14 $current_tab_label = isset($tabs[$current_tab]) ? $tabs[$current_tab] : '';
15
16 if (!$tab_exists) {
17 wp_safe_redirect(admin_url('admin.php?page=yatra-settings'));
18 exit;
19 }
20 ?>
21 <div class="wrap yatra-admin-setting-page-wrap">
22 <form method="<?php echo esc_attr(apply_filters('yatra_settings_form_method_tab_' . $current_tab, 'post')); ?>"
23 id="mainform" action="" enctype="multipart/form-data">
24 <nav class="nav-tab-wrapper yatra-nav-tab-wrapper">
25 <?php
26
27 foreach ($tabs as $slug => $label) {
28 echo '<a href="' . esc_html(admin_url('admin.php?page=yatra-settings&tab=' . esc_attr($slug))) . '" class="nav-tab ' . ($current_tab === $slug ? 'nav-tab-active' : '') . '">' . esc_html($label) . '</a>';
29 }
30
31 do_action('yatra_settings_tabs');
32
33 ?>
34 </nav>
35 <h1 class="screen-reader-text"><?php echo esc_html($current_tab_label); ?></h1>
36 <?php
37 do_action('yatra_sections_' . $current_tab);
38
39 self::show_messages();
40
41 do_action('yatra_settings_' . $current_tab);
42 do_action('yatra_settings_tabs_' . $current_tab);
43 ?>
44 <p class="submit">
45 <?php if (empty($GLOBALS['hide_save_button'])) : ?>
46 <button name="save" class="button-primary yatra-save-button" type="submit"
47 value="<?php esc_attr_e('Save changes', 'yatra'); ?>"><?php esc_html_e('Save changes', 'yatra'); ?></button>
48 <?php endif; ?>
49 <?php wp_nonce_field('yatra-settings'); ?>
50 </p>
51 </form>
52 </div>
53