File manager - Edit - /home/dubair8/saluempire.com/wp-content/plugins/wp-realestate/includes/widgets/class-widget-property-save-search-form.php
Back
<?php /** * Widget: Property Save Search Form * * @package wp-realestate * @author Habq * @license GNU General Public License, version 3 */ if ( ! defined( 'ABSPATH' ) ) { exit; } class WP_RealEstate_Widget_Property_Save_Search_Form extends WP_Widget { /** * Initialize widget * * @access public * @return void */ function __construct() { parent::__construct( 'job_alert_form_widget', __( 'Property Save Search Form', 'wp-realestate' ), array( 'description' => __( 'Property save search form for add email alert.', 'wp-realestate' ), ) ); } /** * Frontend * * @access public * @param array $args * @param array $instance * @return void */ function widget( $args, $instance ) { include WP_RealEstate_Template_Loader::locate( 'widgets/property-save-search-form' ); } /** * Update * * @access public * @param array $new_instance * @param array $old_instance * @return array */ function update( $new_instance, $old_instance ) { return $new_instance; } /** * Backend * * @access public * @param array $instance * @return void */ function form( $instance ) { $title = ! empty( $instance['title'] ) ? $instance['title'] : ''; $button_text = ! empty( $instance['button_text'] ) ? $instance['button_text'] : 'Save Job Alert'; ?> <!-- TITLE --> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"> <?php echo __( 'Title', 'wp-realestate' ); ?> </label> <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>"> </p> <!-- BUTTON TEXT --> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'button_text' ) ); ?>"> <?php echo __( 'Button text', 'wp-realestate' ); ?> </label> <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'button_text' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'button_text' ) ); ?>" type="text" value="<?php echo esc_attr( $button_text ); ?>"> </p> <?php } } register_widget('WP_RealEstate_Widget_Property_Save_Search_Form');
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings