diff options
Diffstat (limited to 'views/admin')
| -rw-r--r-- | views/admin/form/checkbox.phtml | 2 | ||||
| -rw-r--r-- | views/admin/form/input.phtml | 2 | ||||
| -rw-r--r-- | views/admin/form/select.phtml | 2 | ||||
| -rw-r--r-- | views/admin/includes.phtml | 1 | ||||
| -rw-r--r-- | views/admin/wpml.phtml | 91 |
5 files changed, 46 insertions, 52 deletions
diff --git a/views/admin/form/checkbox.phtml b/views/admin/form/checkbox.phtml index 12e184a..5dcee75 100644 --- a/views/admin/form/checkbox.phtml +++ b/views/admin/form/checkbox.phtml @@ -37,7 +37,7 @@ <?php } ?>
<?php if (wpsg_isSizedString($this->view['field_config']['hint'])) { ?>
- <div class="hint info"><?php echo $this->view['field_config']['hint']; ?></div>
+ <div class="hint info"><?php echo preg_replace('/^nohspc_/', '', $this->view['field_config']['hint']); ?></div>
<?php } ?>
</div>
diff --git a/views/admin/form/input.phtml b/views/admin/form/input.phtml index cad903c..60482d1 100644 --- a/views/admin/form/input.phtml +++ b/views/admin/form/input.phtml @@ -51,7 +51,7 @@ <?php } ?>
<?php if (wpsg_isSizedString($this->view['field_config']['hint'])) { ?>
- <small id="emailHelp" class="form-text text-muted"><?php echo $this->view['field_config']['hint']; ?></small>
+ <small id="emailHelp" class="form-text text-muted"><?php echo preg_replace('/^nohspc_/', '', $this->view['field_config']['hint']); ?></small>
<?php } ?>
</div>
diff --git a/views/admin/form/select.phtml b/views/admin/form/select.phtml index ed142e3..d29158d 100644 --- a/views/admin/form/select.phtml +++ b/views/admin/form/select.phtml @@ -101,7 +101,7 @@ </div>
<?php if (wpsg_isSizedString($this->view['field_config']['hint'])) { ?>
- <div class="hint info"><?php echo $this->view['field_config']['hint']; ?></div>
+ <div class="hint info"><?php echo preg_replace('/^nohspc_/', '', $this->view['field_config']['hint']); ?></div>
<?php } ?>
</div>
diff --git a/views/admin/includes.phtml b/views/admin/includes.phtml index de0f5a0..9dc5701 100644 --- a/views/admin/includes.phtml +++ b/views/admin/includes.phtml @@ -41,7 +41,6 @@ <br />
- <?php echo wpsg_drawForm_Checkbox('wpsg_load_bootstrap_glyphfont_css', __('Bootstrap Glyphfont CSS im Frontend laden', 'wpsg'), $this->get_option('wpsg_load_bootstrap_glyphfont_css'), array('help' => 'wpsg_load_bootstrap_glyphfont_css')); ?>
<br />
diff --git a/views/admin/wpml.phtml b/views/admin/wpml.phtml index df2c08c..efad07f 100644 --- a/views/admin/wpml.phtml +++ b/views/admin/wpml.phtml @@ -1,48 +1,43 @@ -<?php
-
- /**
- * User: Daschmi (https://daschmi.de)
- * Date: 01.06.2017
- * Time: 13:53
- */
-
- namespace wpsg;
-
-?>
-
-<div class="wpsg_admin_submenu">
-
- <div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
- <?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
- <a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
- <?php } ?>
- </div>
-
-</div>
-
-<div class="wpsg_admin_content form-horizontal">
- <form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=wpml&noheader=1'); ?>">
-
- <div class="panel panel-default">
- <div class="panel-heading clearfix">
- <h3 class="panel-title"><?php echo __('WPML Einstellungen', 'wpsg'); ?></h3>
- </div>
- <div class="panel-body">
-
- <?php /* ?>
- <?php echo wpsg_drawForm_Checkbox('clear', __('Nicht verwendete String-Übersetzungen entfernen', 'wpsg'), false, array('fullWidth' => true)); ?>
-
- <br /> */ ?>
-
- <p class="info"><?php echo __('Fügt dynamische Inhalte wie Ländernamen, Namen von Varianten etc. zu den String-Übersetzungen von WPML hinzu und ermöglicht unter WPML -> String-Übersetzung die Übersetzung von diesen Inhalten.', 'wpsg'); ?></p>
-
- <input type="submit" name="wpsg_set_string_translation" class="button" value="<?php echo __('String-Übersetzung füllen', 'wpsg'); ?>" />
-
- </div>
- </div>
-
- </form>
-</div>
-
-
+<?php + + /** + * User: Daschmi (https://daschmi.de) + * Date: 01.06.2017 + * Time: 13:53 + */ + + namespace wpsg; + +?> + +<div class="wpsg_admin_submenu"> + + <div class="list-group"> + <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span> + <?php foreach ($this->view['arSubAction'] as $k => $v) { ?> + <a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a> + <?php } ?> + </div> + +</div> + +<div class="wpsg_admin_content form-horizontal"> + <form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=wpml&noheader=1'); ?>"> + + <div class="panel panel-default"> + <div class="panel-heading clearfix"> + <h3 class="panel-title"><?php echo __('WPML Einstellungen', 'wpsg'); ?></h3> + </div> + <div class="panel-body"> + + <p class="info"><?php echo __('Fügt Ländernamen, Versandzonen, die Anredeauswahl und den Widerrufstext der Bestellbestätigung zu den String-Übersetzungen von WPML hinzu. Übersetzen Sie diese Einträge danach unter WPML -> String-Übersetzung. Zuvor automatisch angelegte Einträge werden dabei samt Übersetzung ersetzt.', 'wpsg'); ?></p> + + <input type="submit" name="wpsg_set_string_translation" class="button" value="<?php echo __('String-Übersetzung füllen', 'wpsg'); ?>" /> + + </div> + </div> + + </form> +</div> + + |
