PluginProbe
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings / 5.8.3
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings v5.8.3
7.2.1 7.2 7.1.2 7.1.1 7.1 7.0.4 7.0.6 7.0.7 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 6.3.1 trunk 5.7.3 5.7.5 5.8.1 5.8.2 5.8.3 5.8.4 5.8.6 6.0.4 6.0.5 All 36 releases
mlsimport / admin / partials / mlsimport-admin-display.php

mlsimport-admin-display.php in MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings 5.8.3, at admin/partials/mlsimport-admin-display.php

65 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Provide a admin area view for the plugin
4 *
5 * This file is used to markup the admin-facing aspects of the plugin.
6 *
7 * @link http://mlsimport.com/
8 * @since 1.0.0
9 *
10 * @package mlsimport
11 * @subpackage mlsimport/admin/partials
12 */
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit; // Exit if accessed directly
16 }
17 ?>
18 <!-- This file should primarily consist of HTML with a little bit of PHP. -->
19 <div class="wrap">
20 <h2><?php esc_html_e( 'MLS Import Options', 'mlsimport' ); ?></h2>
21
22 <?php
23 // Grab all options
24 $options = get_option( $this->plugin_name );
25 $active_tab = 'display_options';
26 if ( isset( $_GET['tab'] ) ) {
27 $active_tab = sanitize_text_field ( wp_unslash( $_GET['tab'] ) );
28 }
29 ?>
30
31 <h2 class="nav-tab-wrapper mlsimport-tab-wrapper">
32 <a href="?page=mlsimport_plugin_options&tab=display_options" class="nav-tab <?php echo 'display_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'MLS/RESO Api Options','mlsimport' ); ?></a>
33 <a href="?page=mlsimport_plugin_options&tab=field_options" class="nav-tab <?php echo 'field_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Select Import fields', 'mlsimport' ); ?></a>
34 <a href="?page=mlsimport_plugin_options&tab=administrative_options" class="nav-tab <?php echo 'administrative_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Tools', 'mlsimport' ); ?></a>
35 </h2>
36
37 <div class="content-nav-tab <?php echo 'display_options' === $active_tab ? 'content-nav-tab-active' : ''; ?>">
38 <?php
39 if ( 'display_options' === $active_tab ) {
40 include_once '' . $this->plugin_name . '-admin-options.php';
41 }
42 ?>
43 </div>
44
45 <div class="content-nav-tab <?php echo 'field_options' === $active_tab ? 'content-nav-tab-active' : ''; ?>">
46 <?php
47 if ( 'field_options' === $active_tab ) {
48 include_once '' . $this->plugin_name . '-admin-fields-select.php';
49 }
50 ?>
51 </div>
52
53
54
55 <div class="content-nav-tab <?php echo 'administrative_options' === $active_tab ? 'content-nav-tab-active' : ''; ?>">
56 <?php
57 if ( 'administrative_options' === $active_tab ) {
58 include_once '' . $this->plugin_name . '-administrative-options.php';
59 }
60 ?>
61 </div>
62
63
64
65 </div>