public static function maybe_notify() { $last_version = DispletRetsIdxOptionsController::get_option('notify'); $model = false; if (empty($last_version)) { $model = array('version' => self::$_version, 'message' => self::get_message('welcome')); } else { if (version_compare(self::$_version, $last_version, '>')) { if (version_compare('2.0.12', $last_version, '>') && empty(self::$_options['displet_app_token'])) { $model = array('version' => '2.0.12', 'message' => self::get_message('2_0_12')); } else { if (version_compare('2.0.13', $last_version, '>')) { $model = array('version' => '2.0.13', 'message' => self::get_message('2_0_13')); } else { if (version_compare('2.0.25', $last_version, '>')) { $model = array('version' => '2.0.25', 'message' => self::get_message('2_0_25')); } else { if (version_compare('2.0.51', $last_version, '>')) { $model = array('version' => '2.0.51', 'message' => self::get_message('2_0_51')); } else { if (version_compare('2.1', $last_version, '>')) { $model = array('version' => '2.1', 'message' => self::get_message('2_1')); } } } } } } } if (!empty($model)) { echo DispletRetsIdxTemplatesController::get_admin_template('displet-notification-jquery.php', $model); } else { DispletRetsIdxOptionsController::update_option('notify', self::$_version); } }
public static function include_page() { if (self::$_model['is_single']) { echo DispletRetsIdxTemplatesController::get_admin_template('displet-lead-manager-single.php', self::$_model); } else { echo DispletRetsIdxTemplatesController::get_admin_template('displet-lead-manager-page.php', self::$_model); } }
public static function include_page() { echo DispletRetsIdxTemplatesController::get_admin_template('displet-saved-properties-page.php', self::$_model); }
public function form($instance) { $title = !isset($instance['title']) ? 'Featured Listings' : esc_attr($instance['title']); $visible = !isset($instance['visible']) ? '1' : esc_attr($instance['visible']); $settings = empty($instance['settings']) ? array() : $instance['settings']; ?> <p> <label for="<?php echo $this->get_field_id('title'); ?> "> Title </label> <input type="text" class="widefat" name="<?php echo $this->get_field_name('title'); ?> " id="<?php echo $this->get_field_id('title'); ?> " value="<?php echo $title; ?> "/> </p> <p> <label for="<?php echo $this->get_field_id('visible'); ?> "> Number of Simultaneously Visible Slides </label> <input type="text" class="widefat" name="<?php echo $this->get_field_name('visible'); ?> " id="<?php echo $this->get_field_id('visible'); ?> " value="<?php echo $visible; ?> "/> </p> <p> <div class="displet-widget-control"> <input type="hidden" id="<?php echo $this->get_field_id('settings'); ?> " name="<?php echo $this->get_field_name('settings'); ?> " class="displet-widget-control-settings" value="<?php echo esc_attr(self::_serialize_for_jquery($settings)); ?> "/> <button class="displet-widget-configure"> Configure </button> <span class="displet-widget-control-markup" style="display: none"> <?php // to avoid nesting forms, we must encode the markup for the dialog $array = array(); echo htmlspecialchars(DispletRetsIdxTemplatesController::get_admin_template('widget_form_dialog.phtml', $array)); ?> </span> </div> </p> <?php }
?> , }, }; </script> <script src="<?php echo includes_url('js/jquery/jquery.js'); ?> "></script> <script src="<?php echo includes_url('js/tinymce/tiny_mce_popup.js'); ?> "></script> <script src="http://maps.googleapis.com/maps/api/js?libraries=drawing&sensor=false"></script> <script src="../../includes/js/displet-rets-idx-admin-scripts.js"></script> <script src="../../includes/js/displet-listing.js"></script> </head> <body id="displet-listing" class="displet-admin"> <form> <?php echo DispletRetsIdxTemplatesController::get_admin_template('options.php', $model); echo DispletRetsIdxTemplatesController::get_admin_template('criteria.php', $model); ?> <div class="mceActionPanel"> <button id="insert" type="submit">Save</button> <button id="cancel">Cancel</button> </div> </form> </body> </div> </html>
public static function render_page() { echo DispletRetsIdxTemplatesController::get_admin_template('displet-search-forms-page.php', self::$_model); }