diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2017-06-02 13:01:53 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2017-06-02 13:01:53 +0000 |
| commit | 9c616b6fb38a458a7a6be8c0ba414dd173c544e2 (patch) | |
| tree | 5cc2ed16968c05947c883db90339e8e913f30c05 /views/admin | |
| parent | 4d3303d73fbb0cd8e7a05fa47650b791835b5dcb (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')
| -rw-r--r-- | views/admin/extended.phtml | 2 | ||||
| -rw-r--r-- | views/admin/form/textarea.phtml | 8 | ||||
| -rw-r--r-- | views/admin/ueber.phtml | 18 |
3 files changed, 27 insertions, 1 deletions
diff --git a/views/admin/extended.phtml b/views/admin/extended.phtml index d3127c3..6926f0c 100644 --- a/views/admin/extended.phtml +++ b/views/admin/extended.phtml @@ -28,6 +28,8 @@ <?php echo wpsg_drawForm_Input('wpsg_salt', __('SALT Schlüssel', 'wpsg'), $this->get_option('wpsg_salt')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_options_nl2br', __('RTE Felder mit nl2br speichern', 'wpsg'), $this->get_option('wpsg_options_nl2br'), array('help' => 'wpsg_options_nl2br')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_debugModus', __('Debug Modus', 'wpsg'), $this->get_option('wpsg_debugModus'), array('help' => 'wpsg_debugModus')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_displayTemplates', __('Verwendete Templates anzeigen (Nur im Frontend)', 'wpsg'), $this->get_option('wpsg_displayTemplates'), array('help' => 'wpsg_displayTemplates')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_displayTemplatesLog', __('Verwendete Templates in Entwicklerkonsole anzeigen', 'wpsg'), $this->get_option('wpsg_displayTemplatesLog'), array('help' => 'wpsg_displayTemplatesLog')); ?>
<?php if ($this->hasMod('wpsg_mod_core')) { ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_debugURL', __('Beta Updates laden', 'wpsg'), $this->get_option('wpsg_debugURL'), array('help' => 'wpsg_debugURL')); ?>
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>
diff --git a/views/admin/ueber.phtml b/views/admin/ueber.phtml index 93ef855..e4401e1 100644 --- a/views/admin/ueber.phtml +++ b/views/admin/ueber.phtml @@ -20,6 +20,9 @@ <a class="list-group-item <?php echo ((isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemcheck')?'active':''); ?>"
href="<?php echo wpsg_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=systemcheck'); ?>"><?php echo __('Systemcheck', 'wpsg'); ?></a>
+
+ <a class="list-group-item <?php echo ((isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemlog')?'active':''); ?>"
+ href="<?php echo wpsg_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=systemlog'); ?>"><?php echo __('Fehlerprotokoll', 'wpsg'); ?></a>
</div>
@@ -74,6 +77,21 @@ <?php echo wpsg_drawForm_AdminboxEnd(); ?>
<?php } ?>
+<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemlog') { ?>
+<?php echo wpsg_drawForm_AdminboxStart(__('Fehlerprotokoll', 'wpsg'), '', array('style' => 'width:892px;')); ?>
+
+ <?php if (!file_exists($GLOBALS['wpsg_sc']->getStorageRoot().'exception.log')) { ?>
+ <p><?php echo __('Es wurden noch keine Systemfehler aufgezeichnet.', 'wpsg'); ?></p>
+ <?php } else { ?>
+
+ <textarea style="width:860px; height:500px; font-size:12px; font-family:Courier;"><?php echo file_get_contents($GLOBALS['wpsg_sc']->getStorageRoot().'exception.log'); ?></textarea>
+
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=clearSysLog&noheader=1" class="button"><?php echo __('Protokolldatei löschen', 'wpsg'); ?></a>
+
+ <?php } ?>
+
+<?php echo wpsg_drawForm_AdminboxEnd(); ?>
+<?php } ?>
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'phpinfo') { ?>
<?php echo wpsg_drawForm_AdminboxStart(__('PHP-Info', 'wpsg')); ?>
|
