芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/dina.ycreate.jp/wp-content/plugins/snow-monkey-forms/App/Control/Url.php
'', 'value' => '', 'placeholder' => '', 'disabled' => false, 'maxlength' => 0, 'size' => 0, 'autocomplete' => 'url', 'id' => '', 'class' => 'smf-text-control__control', 'data-invalid' => false, ); /** * @var string */ protected $description = ''; /** * @var array */ protected $validations = array( 'url' => true, ); /** * Save the value. * * @param mixed $value The value to be saved. */ public function save( $value ) { $this->set_attribute( 'value', ! is_array( $value ) ? $value : '' ); } /** * Return HTML for input page. * * @return string */ public function input() { $attributes = $this->get_property( 'attributes' ); $attributes = $this->_normalize_attributes( $attributes ); $description = $this->get_property( 'description' ); if ( $description ) { $description = sprintf( '
%1$s
', wp_kses_post( $description ) ); } return sprintf( '
%2$s', $this->_generate_attributes_string( $attributes ), $description ); } /** * Return HTML for confirm page. * * @return string */ public function confirm() { return sprintf( '%1$s%2$s', esc_html( $this->get_attribute( 'value' ) ), Helper::control( 'hidden', array( 'attributes' => array( 'name' => $this->get_attribute( 'name' ), 'value' => $this->get_attribute( 'value' ), ), ) )->confirm() ); } /** * Return invalid message. * * @param string $message The message to be displayed. * @return string */ public function invalid( $message = '' ) { $this->set_attribute( 'data-invalid', true ); return sprintf( '%1$s
%2$s
', $this->input(), $message ); } }