diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2017-09-26 08:25:10 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2017-09-26 08:25:10 +0000 |
| commit | 849fbd4f6aab6bf9bd3467719b683ee657c5f93d (patch) | |
| tree | 2ea425e86707394199149b5e0ecae1d8fe7adaa5 /views/mods/mod_productview/productview.phtml | |
| parent | b04cc2c568cebdaabaadacc679b8004f47256848 (diff) | |
-
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6534 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productview/productview.phtml')
| -rw-r--r-- | views/mods/mod_productview/productview.phtml | 256 |
1 files changed, 0 insertions, 256 deletions
diff --git a/views/mods/mod_productview/productview.phtml b/views/mods/mod_productview/productview.phtml deleted file mode 100644 index 8b58ba7..0000000 --- a/views/mods/mod_productview/productview.phtml +++ /dev/null @@ -1,256 +0,0 @@ -<?php
-
- /**
- * Template für die Anzeige der Produkte
- * Es sollte nur Inhalt unter dem Div der Klasse wpsg_productview geändert werden, da dieses mittels AJAX ausgetauscht wird
- */
-
-?>
-<span class="wpsg_productview" id="wpsg_productview_<?php echo $this->view['wpsg_mod_productview']['index']; ?>">
-
- <input type="hidden" name="wpsg_atts" value="<?php echo @wpsg_hspc(json_encode($this->view['wpsg_mod_productview']['atts'])); ?>" />
-
- <div class="wpsg_productview_head row">
-
- <?php if ($this->view['wpsg_mod_productview']['cols'] != 3) { ?>
- <h2 class="wpsg_productview_title <?php echo $this->view['wpsg_mod_productview']['col_class']['title']; ?>"><?php echo wpsg_hspc($this->view['wpsg_mod_productview']['title']); ?></h2>
- <?php } ?>
-
- <?php if (wpsg_isSizedArray($this->view['wpsg_mod_productview']['products'])) { ?>
- <?php $oProduct = array_values($this->view['wpsg_mod_productview']['products'])[0]; ?>
-
- <?php if (!wpsg_isSizedInt($this->view['wpsg_mod_productview']['atts']['hideorder'])) { ?>
- <div class="wpsg_mod_productview-order <?php echo $this->view['wpsg_mod_productview']['col_class']['order']; ?>">
- <?php echo __('Sortierung', 'wpsg'); $order = $this->view['wpsg_mod_productview']['order']; ?>
- <?php if (substr($order, -3) === 'asc') { ?>
- <span class="glyphicon glyphicon-menu-up"></span>
- <?php } else { ?>
- <span class="glyphicon glyphicon-menu-down"></span>
- <?php } ?>
-
- <strong><?php echo $this->view['wpsg_mod_productview']['arOrder'][$order]; ?></strong>
- <div class="wpsg_mod_productview-order-layer">
- <div class="inner">
- <?php foreach ($this->view['wpsg_mod_productview']['arOrder'] as $value => $label) { ?>
- <a href="#" class="<?php echo (($this->view['wpsg_mod_productview']['order'] === $value)?'selected':''); ?>" data-productview-index="<?php echo $this->view['wpsg_mod_productview']['index']; ?>" data-order="<?php echo $value; ?>"><?php echo $label; ?></a>
- <?php } ?>
- </div>
- </div>
- </div>
- <?php } ?>
-
- <div class="wpsg_mod_productview-info <?php echo $this->view['wpsg_mod_productview']['col_class']['info']; ?> hidden-xs">
- <strong><?php
- echo wpsg_translate(__('Anzeige #1# - #2#', 'wpsg'),
- ($this->view['wpsg_mod_productview']['page'] - 1) * $this->view['wpsg_mod_productview']['per_page'] + 1,
- $this->view['wpsg_mod_productview']['pageMax']
- ); ?></strong>
- <?php echo wpsg_translate(__('von #1# Ergebnissen', 'wpsg'), $this->view['wpsg_mod_productview']['count']); ?>
- </div>
- <?php } ?>
-
- <?php if (!wpsg_isSizedInt($this->view['wpsg_mod_productview']['atts']['hideviewselect'])) { ?>
- <div class="wpsg_mod_productview_modeswitch hidden-xs">
- <a href="#" title="<?php echo __('Schaltet die Produktansicht auf die Grid Ansicht um.', 'wpsg'); ?>" class="fa fa-th <?php echo (($this->view['wpsg_mod_productview']['mode'] == 'grid')?'active':''); ?>"></a>
- <a href="#" title="<?php echo __('Schaltet die Produktansicht auf die List Ansicht um.', 'wpsg'); ?>" class="fa fa-list <?php echo (($this->view['wpsg_mod_productview']['mode'] == 'list')?'active':''); ?>"></a>
- </div>
- <?php } ?>
-
- </div>
-
- <div class="wpsg_productview_content col-2-xs-row row">
-
- <?php if (wpsg_isSizedArray($this->view['wpsg_mod_productview']['products'])) { ?>
-
- <?php $i = 0; foreach ($this->view['wpsg_mod_productview']['products'] as $oProduct) { $i ++; ?>
-
- <div style="<?php echo (($this->view['wpsg_mod_productview']['mode'] == 'list')?'':'display:none;'); ?>" class="wpsg_productview_product wpsg_productview_product_list wpsg_productview_product_<?php echo $oProduct->id; ?> col-md-12">
-
- <div class="row">
-
- <?php
-
- $attachment_id = $this->imagehandler->getAttachmentID($oProduct->getProductKey());
-
- ?>
-
- <?php if (wpsg_isSizedInt($attachment_id)) { $bImage = true; ?>
- <div class="col-md-4 col-sm-4">
- <div class="wpsg_mod_productview_image" style="background-image:url('<?php echo $image_url; ?>');"></div>
-
- <div class="box_img_wrap">
- <?php echo wp_get_attachment_image($attachment_id, 'wpsg-productview-image'); ?>
- </div>
-
- </div>
- <?php } ?>
-
- <div class="col-md-<?php echo (($bImage)?'8':'12'); ?> col-sm-<?php echo (($bImage)?'8':'12'); ?>">
-
- <div class="wpsg_mod_productview_name">
- <h2><?php echo $oProduct->getProductName(); ?></h2>
- </div>
-
- <?php if ($oProduct->rating > 0) { ?>
- <div class="wpsg_star_wrap">
- <?php for ($i = 0; $i < 5; $i ++) { ?><i class="fa fa-star <?php echo (($i >= $oProduct->rating)?'fa-star-active':''); ?>"></i><?php } ?>
- </div>
- <?php } ?>
-
- <?php if ($oProduct->canDisplayPrice()) { ?>
- <div class="wpsg_mod_productview_price_wrap">
- <?php $oldPrice = $oProduct->getOldPrice(); ?>
- <?php if ($oldPrice !== false && $oldPrice != $oProduct->getPrice()) { ?>
- <div class="wpsg_mod_productview_current"><?php echo wpsg_ff($oProduct->getPrice(), $this->get_option('wpsg_currency')); ?></div>
- <div class="wpsg_mod_productview_oldprice"><?php echo wpsg_ff($oldPrice, $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>
-
- <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>
- <?php } else { ?>
- <p><?php echo __('Preise werden nur für angemeldete Benutzer angezeigt.', 'wpsg'); ?></p>
- <?php } ?>
-
- <?php $shortDescription = $oProduct->getShortDescription(); if (wpsg_isSizedString($shortDescription)) { ?>
- <div class="wpsg_mod_productview_description sto-productview-description">
- <strong><?php echo __('Produktbeschreibung', 'wpsg'); ?></strong><br />
- <?php echo $shortDescription; ?>
- </div>
- <?php } ?>
-
- <?php if ($oProduct->canOrder()) { ?>
- <a class="sto_button sto_button_layout2 sto_button_productview_addBasket" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
- <?php } else { ?>
- <a class="sto_button sto_button_soldout sto_button_layout2 sto_button_productview_addBasket" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
- <?php } ?>
-
- </div>
-
- </div>
-
- </div>
-
- <div onclick="<?php
-
- echo 'location.href = \''.$oProduct->getProductURL().'\';';
-
- ?>" style="<?php echo (($this->view['wpsg_mod_productview']['mode'] == 'grid')?'':'display:none;'); ?>" class="wpsg_productview_product wpsg_productview_product_grid wpsg_productview_product_<?php echo $oProduct->id; ?> <?php echo $this->view['wpsg_mod_productview']['col_class']['product']; ?> col-xs-6">
-
- <?php
-
- $attachment_id = $this->imagehandler->getAttachmentID($oProduct->getProductKey());
-
- ?>
-
- <?php if (wpsg_isSizedInt($attachment_id)) { ?>
- <div class="wpsg_mod_productview_image">
-
- <div class="box_img_wrap">
- <?php echo wp_get_attachment_image($attachment_id, 'wpsg-productview-image'); ?>
- </div>
-
- <div class="wpsg_mod_productview_go">
-
- <?php if ($oProduct->rating > 0) { ?>
- <div class="wpsg_star_wrap">
- <?php for ($i = 0; $i < 5; $i ++) { ?><i class="fa fa-star <?php echo (($i >= $oProduct->rating)?'fa-star-active':''); ?>"></i><?php } ?>
- </div>
- <?php } ?>
-
- <div class="wpsg_center">
-
- <?php if ($oProduct->canDisplayPrice()) { ?>
- <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>
-
- <div class="wpsg_mod_productview_tax_wrap">
- <?php if ($this->getFrontendTaxview() == WPSG_BRUTTO) { ?>
- <?php echo wpsg_translate(__('inkl. #1#% MwSt. zzgl. <a onclick="event.stopPropagation();" 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 onclick="event.stopPropagation(); href="#2#">Versandkosten</a>', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?>
- <?php } ?>
- </div>
- <?php } else { ?>
- <div class="wpsg_mod_productview_price_wrap">
- <?php echo __('Preise werden nur für angemeldete Benutzer angezeigt.', 'wpsg'); ?>
- </div>
- <?php } ?>
-
- </div>
- </div>
-
- </div>
-
- <?php } ?>
-
- <div class="wpsg_mod_productview_bottom">
-
- <div class="wpsg_mod_productview_name">
- <h2><?php echo $oProduct->getProductName(); ?></h2>
- </div>
-
- <div class="wpsg_mod_productview_description">
- <?php echo $oProduct->shortdesc; ?>
- </div>
-
- <?php if ($oProduct->canOrder()) { ?>
- <a class="sto_button sto_button_layout2 sto_button_productview_addBasket" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
- <?php } else { ?>
- <a class="sto_button sto_button_soldout sto_button_layout2 sto_button_productview_addBasket" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
- <?php } ?>
-
- </div>
-
- </div>
-
- <?php if ($i % $this->view['wpsg_mod_productview']['cols'] === 0) { ?>
- <div class="clearfix visible-lg-block"></div>
- <?php } ?>
-
- <?php } ?>
-
- <?php } else { ?>
- <div class="col-lg-12"><?php echo __('Keine Produkte in dieser Ansicht.', 'wpsg'); ?></div>
- <?php } ?>
-
- <div class="clearfix"></div>
-
- <?php
-
- echo \sto\frontend\Pager::render(array(
- 'pages' => $this->view['wpsg_mod_productview']['pages'],
- 'page' => $this->view['wpsg_mod_productview']['page'],
- 'per_page' => $this->view['wpsg_mod_productview']['per_page'],
- 'margin' => 2,
- 'onclick' => array(
- 'func' => 'wpsg_switchProductview',
- 'args' => array(
- $this->view['wpsg_mod_productview']['index'],
- '#PAGE#'
- )
- )
- ));
-
- ?>
-
- </div>
-
-</span>
-
|
