summaryrefslogtreecommitdiff
path: root/views/admin/form/textarea.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/admin/form/textarea.phtml')
-rw-r--r--views/admin/form/textarea.phtml8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/admin/form/textarea.phtml b/views/admin/form/textarea.phtml
index 87c85df..f6459bb 100644
--- a/views/admin/form/textarea.phtml
+++ b/views/admin/form/textarea.phtml
@@ -12,7 +12,13 @@
<div class="wpsg_field_wrap">
- <textarea class="form-control" id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>"><?php echo wpsg_hspc($this->view['field_value']); ?></textarea>
+ <textarea <?php
+
+ if (wpsg_isTrue($this->view['field_config']['readonly'])) echo ' readonly="readonly" ';
+ if (wpsg_isTrue($this->view['field_config']['disabled'])) echo ' disabled="disabled" ';
+ if (wpsg_isSizedString($this->view['field_config']['style'])) echo 'style="'.$this->view['field_config']['style'].'" ';
+
+ ?> class="form-control" id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>"><?php echo wpsg_hspc($this->view['field_value']); ?></textarea>
<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
<a href="#" data-wpsg-tip="<?php echo $this->view['field_config']['help']; ?>" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=<?php echo $this->view['field_config']['help']; ?>" class="glyphicon glyphicon glyphicon-question-sign form-control-feedback" aria-hidden="true"></a>