PluginProbe
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings / 6.3.5
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings v6.3.5
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 6.3.5, at admin/partials/mlsimport-admin-display.php

83 lines 3.3 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 <div 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 </div>
36
37
38 <?php
39 $extra_class='';
40 if ( 'display_options' === $active_tab ) {
41 $extra_class='mlsimport_2025_card_admin_options';
42 } ?>
43
44 <div class="content-nav-tab <?php echo esc_attr($extra_class);?> mlsimport_2025_card mlsimport_2025_card_left_oriented <?php echo 'display_options' === $active_tab ? 'content-nav-tab-active' : ''; ?>">
45 <?php
46 if ( 'display_options' === $active_tab ) {
47 include_once '' . $this->plugin_name . '-admin-options.php';
48 }
49 ?>
50 <?php if ( 'display_options' === $active_tab ) : ?>
51 <div class="mlsimport-steps">
52 <ol>
53 <li><a href="<?php echo esc_url( admin_url( 'admin.php?page=mlsimport_plugin_options' ) ); ?>"><?php esc_html_e( 'Add your MLSimport & MLS credentials.', 'mlsimport' ); ?></a></li>
54 <li><a href="<?php echo esc_url( admin_url( 'admin.php?page=mlsimport_plugin_options&tab=field_options' ) ); ?>"><?php esc_html_e( 'Select import fields.', 'mlsimport' ); ?></a></li>
55 <li><a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=mlsimport_item' ) ); ?>"><?php esc_html_e( 'Create an import task & fetch listings.', 'mlsimport' ); ?></a></li>
56 </ol>
57 </div>
58 <?php endif; ?>
59
60
61 </div>
62
63 <div class="content-nav-tab mlsimport_2025_card mlsimport_2025_card_left_oriented <?php echo 'field_options' === $active_tab ? 'content-nav-tab-active' : ''; ?>">
64 <?php
65 if ( 'field_options' === $active_tab ) {
66 include_once '' . $this->plugin_name . '-admin-fields-select.php';
67 }
68 ?>
69 </div>
70
71
72
73 <div class="content-nav-tab mlsimport_2025_card mlsimport_2025_card_left_oriented <?php echo 'administrative_options' === $active_tab ? 'content-nav-tab-active' : ''; ?>">
74 <?php
75 if ( 'administrative_options' === $active_tab ) {
76 include_once '' . $this->plugin_name . '-administrative-options.php';
77 }
78 ?>
79 </div>
80
81
82
83 </div>