File manager - Edit - /home/verseaumee/blueversion/wp-content/plugins/wp-private-message/includes/widgets/class-widget-send-message.php
Back
<?php /** * Widget: Send Message Form * * @package wp-private-message * @author Habq * @license GNU General Public License, version 3 */ if ( ! defined( 'ABSPATH' ) ) { exit; } class WP_Private_Message_Widget_Send_Message extends WP_Widget { /** * Initialize widget * * @access public * @return void */ function __construct() { parent::__construct( 'send_message_widget', __( 'Send Message Form', 'wp-private-message' ), array( 'description' => __( 'Send message form widget.', 'wp-private-message' ), ) ); } /** * Frontend * * @access public * @param array $args * @param array $instance * @return void */ function widget( $args, $instance ) { include WP_Private_Message_Template_Loader::locate( 'widgets/send-message-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'] : ''; ?> <!-- TITLE --> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"> <?php echo __( 'Title', 'wp-private-message' ); ?> </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> <?php } } register_widget('WP_Private_Message_Widget_Send_Message');
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings