Files
roi-theme/wp-content/plugins/ajax-search-pro/backend/Classes/Options/TextArea.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

26 lines
784 B
PHP
Executable File

<?php
namespace WPDRMS\Backend\Options;
class TextArea extends AbstractOption {
protected $default_args = array(
"wide" => false
);
protected static function outputValue( $value ) {
// No need to decode
return stripslashes(esc_html($value));
}
public function render() {
$style = $this->args['wide'] ? 'style="min-width:85%;"' : '';
?>
<label class="wd_textarea_expandable" for="wd_textareae_<?php echo self::$num; ?>"><?php echo $this->label; ?></label>
<textarea rows='1' data-min-rows='2' id="wd_textareae_<?php echo self::$num; ?>"
class='wd_textarea_expandable'
name="<?php echo $this->name; ?>"
<?php echo $style; ?>
id="wd_textareae_<?php echo self::$num; ?>"><?php echo self::outputValue($this->value); ?></textarea>
<?php
}
}