File manager - Edit - /home/verseaumee/blueversion/wp-content/plugins/wp-freeio/includes/widgets/class-widget-job-alert-form.php
Back
<?php /** * Widget: Job Alert Form * * @package wp-freeio * @author Habq * @license GNU General Public License, version 3 */ if ( ! defined( 'ABSPATH' ) ) { exit; } class WP_Freeio_Widget_Job_Alert_Form extends WP_Widget { /** * Initialize widget * * @access public * @return void */ function __construct() { parent::__construct( 'job_alert_form_widget', __( 'Job Alert Form', 'wp-freeio' ), array( 'description' => __( 'Job alert form for add email alert.', 'wp-freeio' ), ) ); } /** * Frontend * * @access public * @param array $args * @param array $instance * @return void */ function widget( $args, $instance ) { include WP_Freeio_Template_Loader::locate( 'widgets/job-alert-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-freeio' ); ?> </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-freeio' ); ?> </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_Freeio_Widget_Job_Alert_Form');
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings