File "text.php"

Full path: /home/webide/saman-clinic.ir/wp-content/plugins/wp-shamsi/lib/Options/fields/text.php
File size: 1.01 KB
MIME-type: text/x-php
Charset: utf-8

<?php if (! defined('ABSPATH')) {
    die;
} // Cannot access pages directly.
/**
 *
 * Field: Text
 *
 */
if (! class_exists('Exopite_Simple_Options_Framework_Field_text')) {
    class Exopite_Simple_Options_Framework_Field_text extends Exopite_Simple_Options_Framework_Fields
    {
        public function __construct($field, $value = '', $unique = '', $config = array(), $multilang = null)
        {
            parent::__construct($field, $value, $unique, $config, $multilang);
        }

        public function output()
        {
            echo wp_kses_post($this->element_before());

            echo wp_kses_post($this->element_prepend());

            echo '<input type="' . esc_attr($this->element_type()) . '" name="' . esc_attr($this->element_name()) . '" value="' . esc_html($this->element_value()) . '"' . esc_attr($this->element_class()) . wp_kses_post($this->element_attributes()) . '/>';

            echo wp_kses_post($this->element_append());

            echo wp_kses_post($this->element_after());
        }
    }
}