summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-03-30 07:44:56 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-03-30 07:44:56 +0000
commit2a499aa2df04ddc011abade881c2506e3d2b7f58 (patch)
tree445cb75c9036f9f8a7215f8046ef762bb1cbc488 /views/mods
parent25872272e8a7433b257300fe09fec94fe0fd6d81 (diff)
- Fehler beseitigt, der das Backend langsam gemacht hat
- Produktartikel in Produktverwaltung integriert und Einstellungen schön gemacht git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5451 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_productview/productview.js20
-rw-r--r--views/mods/mod_productview/productview.phtml53
-rw-r--r--views/mods/mod_produktartikel/produkt_addedit_content.phtml31
-rw-r--r--views/mods/mod_produktartikel/produkt_edit_allgemein.phtml12
-rw-r--r--views/mods/mod_produktartikel/produkt_edit_sidebar.phtml33
-rw-r--r--views/mods/mod_produktartikel/settings_edit.phtml84
-rw-r--r--views/mods/mod_produktbilder/produkt_addedit_content.phtml5
7 files changed, 102 insertions, 136 deletions
diff --git a/views/mods/mod_productview/productview.js b/views/mods/mod_productview/productview.js
index 54a9df6..89704d7 100644
--- a/views/mods/mod_productview/productview.js
+++ b/views/mods/mod_productview/productview.js
@@ -19,6 +19,7 @@
'success': function(data) {
jQuery('#wpsg_productview_' + index).replaceWith(data);
+ wpsg_correctProductview(index);
}
} );
@@ -26,4 +27,23 @@
return false;
}
+
+ function wpsg_correctProductview(index)
+ {
+
+ var max_height = 0; jQuery('#wpsg_productview_' + index + ' .wpsg_mod_productview_name').each(function() { if (jQuery(this).outerHeight() > max_height) max_height = jQuery(this).outerHeight(); } ).outerHeight(max_height);
+ var max_height = 0; jQuery('#wpsg_productview_' + index + ' .wpsg_mod_productview_description').each(function() { if (jQuery(this).outerHeight() > max_height) max_height = jQuery(this).outerHeight(); } ).outerHeight(max_height);
+
+ }
+
+ jQuery(document).ready(function() {
+
+ jQuery('.wpsg_productview').each(function() {
+
+ var x = jQuery(this).attr("id").substr(17);
+ wpsg_correctProductview(x);
+
+ } );
+
+ } );
\ No newline at end of file
diff --git a/views/mods/mod_productview/productview.phtml b/views/mods/mod_productview/productview.phtml
index 7b0e591..5897387 100644
--- a/views/mods/mod_productview/productview.phtml
+++ b/views/mods/mod_productview/productview.phtml
@@ -35,7 +35,7 @@
<?php if (wpsg_isSizedArray($this->view['wpsg_mod_productview']['products'])) { ?>
<?php $i = 0; foreach ($this->view['wpsg_mod_productview']['products'] as $oProduct) { $i ++; ?>
- <a title="<?php echo wpsg_hspc(wpsg_translate(__('Zum Produkt "#1#"', 'wpsg'), $oProduct->getProductName())); ?>" href="<?php echo $oProduct->getProductURL(); ?>" class="wpsg_productview_product wpsg_productview_product_<?php echo $oProduct->id; ?> col-lg-3">
+ <div class="wpsg_productview_product wpsg_productview_product_<?php echo $oProduct->id; ?> col-lg-3">
<?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
<?php $image_url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage', array($oProduct->id, 520, 520, 'sz')); ?>
@@ -47,21 +47,33 @@
<div class="wpsg_mod_productview_go">
<div class="wpsg_star_wrap">
<?php $star = rand(0, 5); ?>
- <?php for ($i = 0; $i <= 5; $i ++) { ?><i class="fa fa-star-o"></i><?php } ?>
+ <?php for ($i = 0; $i < 5; $i ++) { ?><i class="fa fa-star<?php echo (($i >= $star)?'-o':''); ?>"></i><?php } ?>
</div>
<div class="wpsg_center">
- <div class="wpsg_price"><?php echo wpsg_ff($oProduct->getPrice(), $this->get_option('wpsg_currency')); ?></div>
-
- <?php if ($this->getFrontendTaxview() == WPSG_BRUTTO) { ?>
- <?php // echo wpsg_translate(__('inkl. #1#% MwSt. zzgl. <a href="#2">Versandkosten</a>', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?>
- <?php } else if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
+
+ <div class="wpsg_mod_productview_price_wrap">
+ <?php $oldPrice = $oProduct->getOldPrice(); ?>
+ <?php if ($oldPrice !== false && $oldPrice != $oProduct->getPrice()) { ?>
+ <div class="wpsg_mod_productview_oldprice"><?php echo wpsg_ff($oldPrice, $this->get_option('wpsg_currency')); ?></div>
+ <div class="wpsg_mod_productview_current"><?php echo wpsg_ff($oProduct->getPrice(), $this->get_option('wpsg_currency')); ?></div>
+ <?php } else { ?>
+ <div class="wpsg_mod_productview_price"><?php echo wpsg_ff($oProduct->getPrice(), $this->get_option('wpsg_currency')); ?></div>
+ <?php } ?>
+ </div>
- <?php } ?>
+ <div class="wpsg_mod_productview_tax_wrap">
+ <?php if ($this->getFrontendTaxview() == WPSG_BRUTTO) { ?>
+ <?php echo wpsg_translate(__('inkl. #1#% MwSt. zzgl. <a href="#2">Versandkosten</a>', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?>
+ <?php } else if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
+ <?php echo wpsg_translate(__('zzgl. #1#% MwSt. zzgl. <a href="#2">Versandkosten</a>', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?>
+ <?php } ?>
+ </div>
</div>
</div>
-
+
</div>
+
<?php } } ?>
<div class="wpsg_mod_productview_bottom">
@@ -70,26 +82,17 @@
<h2><?php echo $oProduct->getProductName(); ?></h2>
</div>
- <div class="wpsg_mod_productview_price_wrap">
-
- <?php $oldPrice = $oProduct->getOldPrice(); ?>
- <?php if ($oldPrice !== false) { ?>
- <div class="wpsg_mod_productview_oldprice"><?php echo wpsg_ff($oldPrice, $this->get_option('wpsg_currency')); ?></div>
- <?php } ?>
-
- <?php if ($oProduct->getMinPrice() != $oProduct->getPrice()) { ?>
- <div class="<?php echo (($oldPrice !== false)?'wpsg_mod_productview_pricehiglight':''); ?> wpsg_mod_productview_price wpsg_mod_productview_minprice"><?php echo wpsg_translate(__('Ab #1#', 'wpsg'), wpsg_ff($oProduct->getMinPrice(), $this->get_option('wpsg_currency'))); ?></div>
- <?php } else { ?>
- <div class="<?php echo (($oldPrice !== false)?'wpsg_mod_productview_pricehiglight':''); ?> wpsg_mod_productview_price"><?php echo wpsg_ff($oProduct->getPrice(), $this->get_option('wpsg_currency')); ?></div>
- <?php } ?>
-
+ <div class="wpsg_mod_productview_description">
+ <?php echo $oProduct->shortdesc; ?>
</div>
+ <a class="wpsg_mod_productview_button" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
+
</div>
<input type="hidden" name="wpsg_atts" value="<?php echo @wpsg_hspc(serialize($this->view['wpsg_mod_productview']['atts'])); ?>" />
- </a>
+ </div>
<?php if ($i % 4 === 0) { ?>
<div class="clearfix visible-lg-block"></div>
@@ -98,7 +101,7 @@
<?php } ?>
<?php } else { ?>
- <?php echo __('Keine Produkte in dieser Ansicht.', 'wpsg'); ?>
+ <div class="col-lg-12"><?php echo __('Keine Produkte in dieser Ansicht.', 'wpsg'); ?></div>
<?php } ?>
<div class="clearfix"></div>
@@ -125,4 +128,4 @@
</div>
-</div> \ No newline at end of file
+</div> \ No newline at end of file
diff --git a/views/mods/mod_produktartikel/produkt_addedit_content.phtml b/views/mods/mod_produktartikel/produkt_addedit_content.phtml
new file mode 100644
index 0000000..a06069e
--- /dev/null
+++ b/views/mods/mod_produktartikel/produkt_addedit_content.phtml
@@ -0,0 +1,31 @@
+<?php
+
+ /**
+ * Admin Template für die Integration des Moduls "Produktartikel" in die Produktverwaltung
+ */
+
+?>
+
+<?php echo wpsg_drawForm_AdminboxStart(__('Kategorieauswahl', 'wpsg')); ?>
+
+ <div id="taxonomy-category" class="wpsg-mod_produktartikel_categorydiv categorydiv">
+
+ <div id="category-all" class="tabs-panel">
+ <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
+ <?php wp_terms_checklist(wpsg_getStr($this->view['data']['post_id']), array('taxonomy' => 'category')); ?>
+ </ul>
+ </div>
+ </div>
+
+<?php echo wpsg_drawForm_AdminboxEnd(); ?>
+
+<?php echo wpsg_drawForm_AdminboxStart(__('Einstellungen zum Produktartikel', 'wpsg')); ?>
+
+ <?php echo wpsg_drawForm_Input('wpsg_produktartikel_menuorder', __('Position', 'wpsg'), wpsg_getStr($this->view['data']['menu_order'])); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel[kommentare]', __('Kommentare', 'wpsg'), wpsg_getStr($this->view['data']['comment_status'])); ?>
+
+ <br />
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_produktartikel"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration der Produktartikel', 'wpsg'); ?></a>
+
+<?php echo wpsg_drawForm_AdminboxEnd(); ?>
+
diff --git a/views/mods/mod_produktartikel/produkt_edit_allgemein.phtml b/views/mods/mod_produktartikel/produkt_edit_allgemein.phtml
index 5de94cf..7e84fe0 100644
--- a/views/mods/mod_produktartikel/produkt_edit_allgemein.phtml
+++ b/views/mods/mod_produktartikel/produkt_edit_allgemein.phtml
@@ -6,14 +6,4 @@
*/
?>
-<div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <label for="wpsg_produktartikel_path"><?php echo __('URL Path Segment', 'wpsg'); ?>:</label>
- </div>
- <div class="wpsg_form_right">
- <input id="wpsg_produktartikel_path" type="text"
- name="wpsg_mod_produktartikel[path]"
- value="<?php echo $this->view['data']['post_name']; ?>" />
- </div>
- <div class="wpsg_clear"></div>
-</div> \ No newline at end of file
+<?php echo wpsg_drawForm_Input('wpsg_mod_produktartikel[path]', __('URL Path Segment', 'wpsg'), wpsg_getStr($this->view['data']['post_name'])); ?> \ No newline at end of file
diff --git a/views/mods/mod_produktartikel/produkt_edit_sidebar.phtml b/views/mods/mod_produktartikel/produkt_edit_sidebar.phtml
deleted file mode 100644
index b82821e..0000000
--- a/views/mods/mod_produktartikel/produkt_edit_sidebar.phtml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/**
- * Dieses Template wird in der Produktverwaltung in der rechten Spalte verwendet
- */
-
-?>
-<div id="wpsg_produktartikel" class="postbox">
- <h3 class="wpsg_handlediv">
- <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
- <span><?php echo __('Produktartikel', 'wpsg'); ?> </span>
- </h3>
- <div class="inside">
- <?php echo wpsg_drawForm_Input('wpsg_produktartikel_menuorder', __('Position', 'wpsg'), @$this->view['data']['menu_order']); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel[kommentare]', __('Kommentare', 'wpsg'), @$this->view['data']['comment_status']); ?>
- </div>
-</div>
-
-<div id="categorydiv" class="postbox">
- <div class="handlediv" title="<?php echo __('Zum Umschalten klicken', 'wpsg'); ?>"><br /></div>
- <h3 class="hndle"><?php echo __('Kategorieauswahl', 'wpsg'); ?></h3>
- <div class="inside">
- <div id="taxonomy-category" class="categorydiv">
-
- <div id="category-all" class="tabs-panel">
- <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
- <?php wp_terms_checklist(@$this->view['data']['post_id'], array('taxonomy' => 'category')); ?>
- </ul>
- </div>
-
- </div>
- </div>
-</div> \ No newline at end of file
diff --git a/views/mods/mod_produktartikel/settings_edit.phtml b/views/mods/mod_produktartikel/settings_edit.phtml
index d4c04d2..5eb8196 100644
--- a/views/mods/mod_produktartikel/settings_edit.phtml
+++ b/views/mods/mod_produktartikel/settings_edit.phtml
@@ -5,15 +5,7 @@
*/
?>
-<div class="wpsg_form_field">
- <div class="wpsg_form_left"><?php echo __('Path Key', 'wpsg'); ?>:</div>
- <div class="wpsg_form_right">
- <input type="text" name="wpsg_mod_produktartikel_pathkey" value="<?php echo $this->get_option('wpsg_mod_produktartikel_pathkey'); ?>" />
- <a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_produktartikel_pathkey" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_produktartikel_pathkey" class="wpsg_form_help"></a>
- </div>
- <div class="wpsg_clear"></div>
-</div>
-
+<?php echo wpsg_drawForm_Input('wpsg_mod_produktartikel_pathkey', __('Path Key', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_pathkey'), array('help' => 'mod_produktartikel_pathkey')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_showui', __('Custom Post Type in Wordpress Menü sichtbar', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_showui'), array('help' => 'wpsg_mod_produktartikel_showui'))?>
<?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
@@ -26,64 +18,24 @@
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_showFeed', __('Direkt in den Feeds anzeigen', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_showFeed'), array('help' => 'wpsg_mod_produktartikel_showFeed')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_onlyMainQuery', __('Nur Main Query berücksichtigen', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_onlyMainQuery'), array('help' => 'wpsg_mod_produktartikel_onlyMainQuery')); ?>
-<div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <label for="wpsg_mod_produktartikel_hometemplate"><?php echo __('Produkttemplate für Ansicht auf Startseite', 'wpsg'); ?>:</label>
- </div>
- <div class="wpsg_form_right">
- <?php if (!is_array($this->view['arTemplates']) || sizeof($this->view['arTemplates']) <= 0) { ?>
- <p class="wpsg_error"><?php echo __('Keine Templatedatein gefunden!', 'wpsg'); ?></p>
- <?php } else { ?>
- <select name="wpsg_mod_produktartikel_hometemplate" id="wpsg_mod_produktartikel_hometemplate">
- <option value="-1"><?php echo __('Wie Produkttemplate', 'wpsg'); ?></option>
- <?php foreach ($this->view['arTemplates'] as $t) { ?>
- <option <?php echo (($t == $this->get_option('wpsg_mod_produktartikel_hometemplate'))?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($t); ?>"><?php echo wpsg_hspc($t); ?></option>
- <?php } ?>
- </select>
- <?php } ?>
- <a style="float:right; position:relative;" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_produktartikel_hometemplate" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_produktartikel_hometemplate"></a>
- </div>
- <div class="wpsg_clear"></div>
-</div>
-<div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <label for="wpsg_mod_produktartikel_listtemplate"><?php echo __('Produkttemplate für List Ansicht', 'wpsg'); ?>:</label>
- </div>
- <div class="wpsg_form_right">
- <?php if (!is_array($this->view['arTemplates']) || sizeof($this->view['arTemplates']) <= 0) { ?>
- <p class="wpsg_error"><?php echo __('Keine Templatedatein gefunden!', 'wpsg'); ?></p>
- <?php } else { ?>
- <select name="wpsg_mod_produktartikel_listtemplate" id="wpsg_mod_produktartikel_listtemplate">
- <option value="-1"><?php echo __('Wie Produkttemplate', 'wpsg'); ?></option>
- <?php foreach ($this->view['arTemplates'] as $t) { ?>
- <option <?php echo (($t == $this->get_option('wpsg_mod_produktartikel_listtemplate'))?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($t); ?>"><?php echo wpsg_hspc($t); ?></option>
- <?php } ?>
- </select>
- <?php } ?>
- <a style="float:right; position:relative;" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_produktartikel_listtemplate" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_produktartikel_listtemplate"></a>
- </div>
- <div class="wpsg_clear"></div>
-</div>
-<div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <label for="wpsg_mod_produktartikel_searchtemplate"><?php echo __('Produkttemplate für Such Ansicht', 'wpsg'); ?>:</label>
- </div>
- <div class="wpsg_form_right">
- <?php if (!is_array($this->view['arTemplates']) || sizeof($this->view['arTemplates']) <= 0) { ?>
- <p class="wpsg_error"><?php echo __('Keine Templatedatein gefunden!', 'wpsg'); ?></p>
- <?php } else { ?>
- <select name="wpsg_mod_produktartikel_searchtemplate" id="wpsg_mod_produktartikel_searchtemplate">
- <option value="-1"><?php echo __('Wie Produkttemplate', 'wpsg'); ?></option>
- <?php foreach ($this->view['arTemplates'] as $t) { ?>
- <option <?php echo (($t == $this->get_option('wpsg_mod_produktartikel_searchtemplate'))?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($t); ?>"><?php echo wpsg_hspc($t); ?></option>
- <?php } ?>
- </select>
- <?php } ?>
- <a style="float:right; position:relative;" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_produktartikel_searchtemplate" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_produktartikel_searchtemplate"></a>
- </div>
- <div class="wpsg_clear"></div>
-</div>
+<?php if (!is_array($this->view['arTemplates']) || sizeof($this->view['arTemplates']) <= 0) { ?>
+<?php echo wpsg_drawForm_Text(__('Produkttemplate für Ansicht auf Startseite', 'wpsg'), __('Keine Templatedateien gefunden!', 'wpsg'), array('class_content_wrap' => 'wpsg_error')); ?>
+<?php } else { ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_produktartikel_hometemplate', __('Produkttemplate für Ansicht auf Startseite', 'wpsg'), wpsg_array_merge(array('-1' => __('Wie Produkttemplate', 'wpsg')), $this->view['arTemplates']), wpsg_getStr($this->get_option('wpsg_mod_produktartikel_hometemplate')), array('help' => 'mod_produktartikel_hometemplate', 'noKeys' => true)); ?>
+<?php } ?>
+<?php if (!is_array($this->view['arTemplates']) || sizeof($this->view['arTemplates']) <= 0) { ?>
+<?php echo wpsg_drawForm_Text(__('Produkttemplate für List Ansicht', 'wpsg'), __('Keine Templatedateien gefunden!', 'wpsg'), array('class_content_wrap' => 'wpsg_error')); ?>
+<?php } else { ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_produktartikel_listtemplate', __('Produkttemplate für List Ansicht', 'wpsg'), wpsg_array_merge(array('-1' => __('Wie Produkttemplate', 'wpsg')), $this->view['arTemplates']), wpsg_getStr($this->get_option('wpsg_mod_produktartikel_listtemplate')), array('help' => 'mod_produktartikel_listtemplate', 'noKeys' => true)); ?>
+<?php } ?>
+
+<?php if (!is_array($this->view['arTemplates']) || sizeof($this->view['arTemplates']) <= 0) { ?>
+<?php echo wpsg_drawForm_Text(__('Produkttemplate für Such Ansicht', 'wpsg'), __('Keine Templatedateien gefunden!', 'wpsg'), array('class_content_wrap' => 'wpsg_error')); ?>
+<?php } else { ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_produktartikel_searchtemplate', __('Produkttemplate für Such Ansicht', 'wpsg'), wpsg_array_merge(array('-1' => __('Wie Produkttemplate', 'wpsg')), $this->view['arTemplates']), wpsg_getStr($this->get_option('wpsg_mod_produktartikel_searchtemplate')), array('help' => 'mod_produktartikel_searchtemplate', 'noKeys' => true)); ?>
+<?php } ?>
+
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_facebook', __('Facebook Integration', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_facebook'), array('help' => 'wpsg_mod_produktartikel_facebook')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_google', __('Google+ Integration', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_google'), array('help' => 'wpsg_mod_produktartikel_google')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_twitter', __('Twitter Integration', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_twitter'), array('help' => 'wpsg_mod_produktartikel_twitter')); ?>
diff --git a/views/mods/mod_produktbilder/produkt_addedit_content.phtml b/views/mods/mod_produktbilder/produkt_addedit_content.phtml
index 25607fd..6304863 100644
--- a/views/mods/mod_produktbilder/produkt_addedit_content.phtml
+++ b/views/mods/mod_produktbilder/produkt_addedit_content.phtml
@@ -142,8 +142,11 @@
<br /><br />
+ <?php if (wpsg_isSizedInt($this->view['data']['id'])) { ?>
<a href="#" data-toggle="modal" data-target="#wpsg_mod_produktbilder_ftppath"><span class="wpsg-glyphicon glyphicon glyphicon-folder-open"></span><?php echo __('FTP Pfad anzeigen', 'wpsg'); ?></a><br />
- <a href="#" onclick="return wpsg_clearImageCache();"><span class="wpsg-glyphicon glyphicon glyphicon-trash"></span><?php echo __('Bildercache dieses Produktes löschen', 'wpsg'); ?></a><br />
+ <a href="#" onclick="return wpsg_clearImageCache();"><span class="wpsg-glyphicon glyphicon glyphicon-trash"></span><?php echo __('Bildercache dieses Produktes löschen', 'wpsg'); ?></a><br />
+ <?php } ?>
+
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_produktbilder"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration der Produktbilder', 'wpsg'); ?></a>
</div>