summaryrefslogtreecommitdiff
path: root/views/admin/ueber.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2017-11-02 14:02:16 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2017-11-02 14:02:16 +0000
commit1a9c2a709be8ee0846f10e13b7a0faea7ecb61f1 (patch)
tree1f0861bb8b6a89be0a7429f7024a5075fb313106 /views/admin/ueber.phtml
parenta71a5fdf411f6610445c0092ab8dc5ff4c84826a (diff)
- Feature - Produktname in Produktverwaltung3.99.11
- Feature - Anzeige von angepassten Templates auf der "Über" Seite (Wenn Userviews aktiv) - Feature - Produkttemplates werden jetzt auch im Child Theme gesucht und verwendet git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6677 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/ueber.phtml')
-rw-r--r--views/admin/ueber.phtml56
1 files changed, 17 insertions, 39 deletions
diff --git a/views/admin/ueber.phtml b/views/admin/ueber.phtml
index e99d51b..4902e5a 100644
--- a/views/admin/ueber.phtml
+++ b/views/admin/ueber.phtml
@@ -81,63 +81,41 @@
</div>
<div class="form-horizontal">
+
<?php wpsg_drawForm_TextStart(); ?>
<?php echo WPSG_PATH_USERVIEW; ?>
-
<?php echo wpsg_drawForm_TextEnd(__('Template Pfad für Anpassungen', 'wpsg')); ?>
<?php wpsg_drawForm_TextStart(); ?>
<?php echo WPSG_PATH_TRANSLATION; ?>
-
<?php echo wpsg_drawForm_TextEnd(__('Sprachdatei', 'wpsg')); ?>
- </div>
- <div class="form-horizontal">
- <?php
-
- function iterateDir($sPath)
- {
- $aRes = array();
- $pathuv = str_replace('\\', '/', WPSG_PATH_USERVIEW);
- foreach(new DirectoryIterator($sPath) as $oItem)
- {
- if($oItem->isDir())
- {
- //(!$oItem->isDot() ? $aRes[$oItem->getFilename()] = iterateDir($oItem->getPathname()):0);
- if (!$oItem->isDot()) {
- $aResx = iterateDir($oItem->getPathname());
- $aRes = array_merge($aRes, $aResx);
- }
- continue;
- }
- //$aRes[] = $oItem->getFilename();
- $aRes[] = str_replace($pathuv, '', str_replace('\\', '/', $oItem->getPathname()));
- }
- return $aRes;
- }
+ <?php if ($this->get_option('wpsg_ignoreuserview') != '1') { ?>
- echo wpsg_drawForm_TextStart();
+ <?php $arProductTemplates = $this->loadProduktTemplates(false, true, true); ?>
- if (file_exists(WPSG_PATH_USERVIEW) && is_dir(WPSG_PATH_USERVIEW))
- {
+ <?php $arFiles = wpsg_rglob(WPSG_PATH_VIEW.'*'); $arFiles = array_merge($arFiles, $arProductTemplates); ?>
+ <?php foreach ($arFiles as $k => $f) { $render_file = realpath($this->getTemplatefile($f)); if (!is_file($render_file) || realpath($f) == $render_file) { unset($arFiles[$k]); } else { $arFiles[$k] = $render_file; } } $arFiles = array_unique($arFiles); asort($arFiles); ?>
- $arDir = iterateDir(WPSG_PATH_USERVIEW);
+ <?php if (wpsg_isSizedArray($arFiles)) { ?>
+ <div class="form-group-sm form-group">
+ <div class="form-control-static">
- $sd = ''; foreach ($arDir as $k => $d) $sd .= $d.'<br />';
+ <label style="font-weight:bold;"><?php echo __('Angepasste Templates', 'wpsg'); ?></label><br /><br />
- echo $sd;
+ <?php foreach($arFiles as $render_file) { ?>
- }
- else
- {
+ <?php echo str_replace(realpath(WPSG_PATH_WP), '', $render_file); ?><br />
- echo WPSG_PATH_USERVIEW;
+ <?php } ?>
- }
+ </div>
+ </div>
+ <?php } ?>
- echo wpsg_drawForm_TextEnd(__('User-Views', 'wpsg'));
+ <?php } ?>
- ?>
+ </div>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>