summaryrefslogtreecommitdiff
path: root/views/admin/form/textarea.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2017-06-02 13:01:53 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2017-06-02 13:01:53 +0000
commit9c616b6fb38a458a7a6be8c0ba414dd173c544e2 (patch)
tree5cc2ed16968c05947c883db90339e8e913f30c05 /views/admin/form/textarea.phtml
parent4d3303d73fbb0cd8e7a05fa47650b791835b5dcb (diff)
- Anzeige von Templatedateien im Frontend
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6307 0d5edaf7-2b12-4e95-93f4-047927463d4b
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>