/var/www/hkosl.com/aga/wp-content/plugins/so-widgets-bundle/base/inc/fields/textarea.class.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

/**
 * Class SiteOrigin_Widget_Field_Textarea
 */
class SiteOrigin_Widget_Field_Textarea extends SiteOrigin_Widget_Field_Text_Input_Base {
    
/**
     * The number of visible rows in the textarea.
     *
     * @access protected
     * @var int
     */
    
protected $rows;

    protected function 
render_field$value$instance ) {
        
?>
        <textarea type="text" name="<?php echo esc_attr$this->element_name ?>" id="<?php echo esc_attr$this->element_id ?>"
            <?php if ( ! empty( $this->placeholder ) ) echo 'placeholder="' esc_attr$this->placeholder ) . '"' ?>
            <?php $this->render_CSS_classes$this->get_input_classes() ) ?>
                  rows="<?php echo ! empty( $this->rows ) ? intval$this->rows ) : 4 ?>"
            <?php if( ! empty( $this->readonly ) ) echo 'readonly' ?>><?php echo esc_textarea$value ?></textarea>
        <?php
    
}
}