diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2017-10-20 13:10:26 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2017-10-20 13:10:26 +0000 |
| commit | 94b6b128d93490cbcc82cd89671dc9e300fd172b (patch) | |
| tree | 3efbf5cb97ff83a0266dd54f65ea1422b3d038fb /views/admin | |
| parent | 36ccbb274cc168e4a6159589b9ebd39b5909388f (diff) | |
- Shoptheme erkennt auch das Verzeichnis wpshopgermany (Für Entwicklungsumgebung)3.99.9
- Produkturl in Produktverwaltung zeigt bei Produktartikelverwendung auf den übersetzen Artikel
- Systemcheck ausgebaut und Meldungen ausblendbar
- Kommentare für Produktartikel global aktivierbar (Nur mit Theme)
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6633 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin')
| -rw-r--r-- | views/admin/hilfe.phtml | 9 | ||||
| -rw-r--r-- | views/admin/ueber.phtml | 124 |
2 files changed, 65 insertions, 68 deletions
diff --git a/views/admin/hilfe.phtml b/views/admin/hilfe.phtml index a56acab..3486484 100644 --- a/views/admin/hilfe.phtml +++ b/views/admin/hilfe.phtml @@ -27,12 +27,5 @@ <p><?php echo __("Wir orientieren uns direkt am Markt. Insofern geben wir dir als User die Möglichkeit mitzuentscheiden, welches Feature wpShopGermany zukünftig haben wird. Du kannst selber einen Feature-Wunsch anlegen, oder für einen bestehenden Wunsch deine Stimme abgeben.", "wpsg"); ?></p>
<a href="https://wpshopgermany.uservoice.com/">https://wpshopgermany.uservoice.com/</a>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
-
- <?php echo wpsg_drawForm_AdminboxStart(__('Migration der alten Mehrwertsteuersätze', 'wpsg')); ?>
- <p><?php echo wpsg_translate(
- __('Ab Version 3.5 wurden die Mehrwertsteuersätze den Ländern zugeordnet. Die alten Mehrwertsteuersätze können <a href="#1#">hier</a> umgewandelt werden.', 'wpsg'),
- WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=migratemwst'
- ); ?>
- <?php echo wpsg_drawForm_AdminboxEnd(); ?>
-
+
</div>
\ No newline at end of file diff --git a/views/admin/ueber.phtml b/views/admin/ueber.phtml index 65c7901..82b685b 100644 --- a/views/admin/ueber.phtml +++ b/views/admin/ueber.phtml @@ -80,6 +80,66 @@ <?php echo wpsg_drawForm_TextEnd(); ?>
</div>
+ <div class="form-horizontal">
+ <?php wpsg_drawForm_TextStart(); ?>
+ <?php echo WPSG_PATH_USERVIEW; ?>
+
+ <?php echo wpsg_drawForm_TextEnd(__('Template Pfad', '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;
+ }
+
+ echo wpsg_drawForm_TextStart();
+
+ if (file_exists(WPSG_PATH_USERVIEW) && is_dir(WPSG_PATH_USERVIEW))
+ {
+
+ $arDir = iterateDir(WPSG_PATH_USERVIEW);
+
+ $sd = ''; foreach ($arDir as $k => $d) $sd .= $d.'<br />';
+
+ echo $sd;
+
+ }
+ else
+ {
+
+ echo WPSG_PATH_USERVIEW;
+
+ }
+
+ echo wpsg_drawForm_TextEnd(__('User-Views', 'wpsg'));
+
+ ?>
+
+
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
<?php } ?>
@@ -134,19 +194,9 @@ <?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemcheck') { ?>
<?php echo wpsg_drawForm_AdminboxStart(__('Systemcheck', 'wpsg')); ?>
- <div class="form-horizontal">
- <?php wpsg_drawForm_TextStart(); ?>
- <?php echo WPSG_PATH_USERVIEW; ?>
-
- <?php echo wpsg_drawForm_TextEnd(__('Template Pfad', 'wpsg')); ?>
-
- <?php wpsg_drawForm_TextStart(); ?>
- <?php echo WPSG_PATH_TRANSLATION; ?>
-
- <?php echo wpsg_drawForm_TextEnd(__('Sprachdatei', 'wpsg')); ?>
- </div>
+ <a class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=resetMessages&noheader=1"><?php echo __('Ausgeblendete Meldungen zurücksetzen', 'wpsg'); ?></a>
- <?php $arData = array(); $this->callMods('systemcheck', array(&$arData)); ?>
+ <?php $arData = $this->systemcheck(); ?>
<?php if (wpsg_isSizedArray($arData)) { ?>
<div class="wpsg_admin_ueber_check_wrap">
<?php foreach ($arData as $d) { ?>
@@ -155,55 +205,9 @@ </p>
<?php } ?>
</div>
- <?php } ?>
-
- <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;
- }
-
- echo wpsg_drawForm_TextStart();
-
- if (file_exists(WPSG_PATH_USERVIEW) && is_dir(WPSG_PATH_USERVIEW))
- {
-
- $arDir = iterateDir(WPSG_PATH_USERVIEW);
-
- $sd = ''; foreach ($arDir as $k => $d) $sd .= $d.'<br />';
-
- echo $sd;
+ <?php } else { ?>
- }
- else
- {
-
- echo WPSG_PATH_USERVIEW;
-
- }
-
- echo wpsg_drawForm_TextEnd(__('User-Views', 'wpsg'));
-
- ?>
- </div>
+ <?php } ?>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
<?php } ?>
|
