PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/oligap/www/wp-content/themes/woodmart/inc/admin/options/controls/textarea/ |
| Server: Linux cloud.virginhosting.lk 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64 IP: 128.140.68.198 |
| Dir : //home/oligap/www/wp-content/themes/woodmart/inc/admin/options/controls/textarea/class-textarea.php |
<?php
/**
* Textarea with text or HTML control.
*
* @package xts
*/
namespace XTS\Options\Controls;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Direct access not allowed.
}
use XTS\Options\Field;
/**
* Textarea field control.
*/
class Textarea extends Field {
/**
* Displays the field control HTML.
*
* @since 1.0.0
*
* @return void.
*/
public function render_control() {
if ( ! $this->args['wysiwyg'] ) :
?>
<textarea placeholder="<?php echo esc_attr( $this->_get_placeholder() ); ?>" class="xts-textarea-<?php echo esc_attr( ( $this->args['wysiwyg'] ) ? 'wysiwyg' : 'plain' ); ?>" name="<?php echo esc_attr( $this->get_input_name() ); ?>"><?php echo esc_textarea( $this->get_field_value() ); ?></textarea>
<?php
else :
wp_editor(
$this->get_field_value(),
'text-' . $this->args['id'],
array(
'textarea_name' => $this->get_input_name(),
'textarea_rows' => 8,
)
);
endif;
}
/**
* Get textarea's placeholder text from arguments.
*
* @since 1.0.0
*/
private function _get_placeholder() {
return isset( $this->args['placeholder'] ) ? $this->args['placeholder'] : '';
}
}