Muss ihn splitten.. gehen nur max 20.000 Zeichen
<?php
/**
*
* @Enterprise: Yagendoo Media GmbH
* @author: Yagendoo Team
* @url: https://beispiel.rocks/beispiel.rocks/www.yagendoo.com
* @copyright: Copyright (C) Yagendoo Media GmbH
* @license: Commercial, see LICENSE.php
*
*/
defined ( '_JEXEC' ) or die ( 'Restricted access' );
// addon for joomla modal Box
JHTML::_ ( 'behavior.modal' );
JHTML::_('behavior.tooltip');
$lang = JFactory::getLanguage();
$document = JFactory::getDocument();
$app = JFactory::getApplication('site');
$template = $app->getTemplate(true);
$template = $template->template;
require_once (JPATH_BASE."/templates/".$template."/html/com_virtuemart/_assets/yagThemeParameter.php");
$filename = "yag_flypage.css";
$path = 'templates/'.$template.'/html/com_virtuemart/_css/custom/';
$templateStyle = $yagThemeParameter["vmThemeStyle"];
$templatePath = 'templates/'.$template.'/html/com_virtuemart/_css/template_style/';
$document->addStyleSheet($path.$filename);
$document->addStyleSheet($templatePath.$templateStyle);
$document->addScript('templates/'.$template.'/html/com_virtuemart/_js/yagendoo_modalgallery.js');
$document->addScriptDeclaration("
jQuery(document).ready(function($) {
$(function() {
$('#yagendoo_flypage_tabs').tabs();
});
});
");
//::> IMAGEZOOM ACTIVE OR NOT?
if( $yagThemeParameter["imageZoomOnFlypage"] == 1 ) :
//$yagendooImageTag = $this->product->images[0]->displayMediaThumb('class="product-image"',true,'class="modal"',true,true); //'class="modal"'
$yagendooImageTag = $this->product->images[0]->displayMediaFull('class="product-image-zoom"',false,"class='modal'",true);
else :
//$yagendooImageTag = $this->product->images[0]->displayMediaThumb('class="product-image"', false, 'class="modal"',true,true); //'class="modal"'
$yagendooImageTag = $this->product->images[0]->displayMediaFull('class="product-image"',false,"class='modal'",true);
endif;
//::> PRODUCT IS FILLED?
if (empty ( $this->product )) :
echo JText::_ ( 'COM_VIRTUEMART_PRODUCT_NOT_FOUND' );
echo '<br /><br /> ' . $this->continue_link_html;
return;
endif;
?>
<div id="yagendoo_VM_wrap">
<div class="yagendoo_VM_wrap_inner">
<!-- PRODUCT TITLE //-->
<div class="yagendoo_flypage_title">
<h1><?php echo $this->product->product_name ?></h1>
<?php
//::> Show the NEW-ribbon or not?
if( $yagThemeParameter["showNEWbutton"] == 1 ) :
$displayDuration = intval( $yagThemeParameter["showNEWbuttonPeriodDays"] ) * 24 * 60 * 60;
$productDate = strtotime($this->product->product_available_date);
$actualTime = time();
if( ($actualTime - $productDate) < $displayDuration ) : ?>
<div class="yagendoo-flypage-ribbon"></div>
<?php endif;
endif;
?>
</div>
<!-- FLYPAGE CONTENT //-->
<div class="yagendoo_flypage_wrap">
<?php
//::> PRODUCT NAVIGATION
if (VmConfig::get ( 'product_navigation', 1 )) { ?>
<div class="product-neighbours">
<?php
if (! empty ( $this->product->neighbours ['previous'] )) {
$prev_link = JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id );
echo '
<div class="yagendoo_flypage_prevLink">
<div class="yagendoo_flypage_prev"></div>
';
echo JHTML::_ ( 'link', $prev_link, $this->product->neighbours ['previous'] ['product_name'], array ('class' => 'previous-page' ) );
echo '</div>';
}
if (! empty ( $this->product->neighbours ['next'] )) {
$next_link = JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id );
echo '<div class="yagendoo_flypage_nextLink">';
echo JHTML::_ ( 'link', $next_link, $this->product->neighbours ['next'] ['product_name'], array ('class' => 'next-page' ) );
echo '
<div class="yagendoo_flypage_next"></div>
</div>
';
}
?>
<div class="yag_clear"></div>
</div>
<?php
}
?>
<!-- PRODUCT IMAGES //-->
<div class="yagendoo_flypage_imagebox">
<div class="yagendoo_flypage_mainimage">
<?php // Product Main Image
if (!empty($this->product->images[0])) { ?>
<div class="main-image" id="yagendoo_imageGallery_Box">
<?php
//echo $this->product->images[0]->displayMediaFull('class="product-image"',false,"class='modal'",true);
echo $yagendooImageTag;
?>
</div>
<?php
}
//::> SHOW PRODUCT GALLERY
if(!empty($this->product->images) && count($this->product->images)>1) { ?>
<div class="additional-images">
<?php // List all Images
foreach ($this->product->images as $image) {
$title = $image->file_title;
$url = $image->file_url;
//echo $image->displayMediaThumb('class="product-gallery-image"', false,'class="modal"',true,true); //'class="modal"'
echo '<div class="yagendoo_flypage_thumbnail_box">';
echo $image->displayMediaFull('class="product-gallery-image"',false,"class='modal'",true);
echo '<div id="imageGalleryTitle">'.$title.'</div>';
echo '</div>';
}
?>
<div class="yag_clear"></div>
</div>
<?php
}
?>
</div>
</div>
<!-- PRODUCT INFO //-->
<div class="yagendoo_flypage_contentbox">
<?php
//::> EDIT PRODUCT
echo $this->edit_link;
?>
<?php
//::> PDF, Print, Email
if (VmConfig::get('pdf_button_enable', 1) == '1' || VmConfig::get('show_emailfriend', 1) == '1' || VmConfig::get('show_printicon', 1) == '1') { ?>
<div class="icons">
<?php $link = (VmConfig::isJ15()) ? 'index2.php' : 'index.php';
$link .= '?tmpl=component&option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id;
$pdflink= JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id.'&format=pdf');
echo shopFunctionsF::PdfIcon($pdflink );
echo shopFunctionsF::PrintIcon($link.'&print=1');
echo shopFunctionsF::EmailIcon($this->product->virtuemart_product_id); ?>
<div class="yag_clear"></div>
</div>
<?php
}
?>
<?php if ( $yagThemeParameter['showSkuOnFlypage'] == 1 ) : ?>
<div class="yagendoo_vm_flypage_sku">
<?php echo JText::_ ( 'COM_VIRTUEMART_CART_SKU' ).": ".$this->product->product_sku; ?>
</div>
<?php endif; ?>
<?php
//::> PRODUCT PRICE
if ($this->show_prices) { ?>
<div class="product-price" id="productPrice<?php echo $this->product->virtuemart_product_id ?>">
<?php
if( $this->product->product_unit && VmConfig::get ( 'price_show_packaging_pricelabel' ) == 1 ) {
echo "<strong>" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE_PER_UNIT' ) . ' (' . $this->product->product_unit . "):</strong>";
} elseif ( VmConfig::get( 'showFlypagePriceLabel', 0) == 1 ) {
echo '<span class="yagendoo_vm_flypage_pricelbl">' . JText::_ ( 'COM_VIRTUEMART_CART_PRICE' ) . '</span>';
}
if( $this->showBasePrice ) {
echo $this->currency->createPriceDiv('basePrice','COM_VIRTUEMART_PRODUCT_BASEPRICE',$this->product->prices);
echo $this->currency->createPriceDiv('basePriceVariant','COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT',$this->product->prices);
}
echo $this->currency->createPriceDiv('salesPrice','COM_VIRTUEMART_PRODUCT_SALESPRICE',$this->product->prices);
echo "inkl. MwSt.";
?>
<div class="yag_clear"></div>
<?php
if( $this->product->prices["basePriceWithTax"] != $this->product->prices["salesPrice"] ) :
echo $this->currency->createPriceDiv('basePriceWithTax','COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX',$this->product->prices);
endif;
if( $this->product->prices["discountAmount"] > 0 ) :
echo $this->currency->createPriceDiv('discountAmount','COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT',$this->product->prices);
endif;
?>
<div class="yag_clear"></div>
<?php
echo $this->currency->createPriceDiv('variantModification','COM_VIRTUEMART_PRODUCT_VARIANT_MOD',$this->product->prices);
echo $this->currency->createPriceDiv('discountedPriceWithoutTax','COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE',$this->product->prices);
echo $this->currency->createPriceDiv('salesPriceWithDiscount','COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT',$this->product->prices);
echo $this->currency->createPriceDiv('priceWithoutTax','COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX',$this->product->prices);
echo $this->currency->createPriceDiv('taxAmount','COM_VIRTUEMART_PRODUCT_TAX_AMOUNT',$this->product->prices);
//$tax = '<div class="yagendoo_vm_flypage_taxrate">'.YagendooHelper::calculateProductTaxRate($this->product).'</div>';
?>
</div>
<a style="text-align: left;"><span style="font-size: 10pt;"><a rel="title[Kostenloser Versand];width[500];height[500]" class="jcepopup" target="_blank" href="versandinformationen.html">Versandkostenfreie Lieferung</a><br /></span>
<?php
}
?>
<?php //::> MANUFACTURER
if(VmConfig::get('show_manufacturers', 1) && !empty($this->product->virtuemart_manufacturer_id)) { ?>
<div class="manufacturer">
<?php
$link = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id='.$this->product->virtuemart_manufacturer_id.'&tmpl=component');
$text = $this->product->mf_name;
/* Avoid JavaScript on PDF Output */
if (strtolower(JRequest::getWord('output')) == "pdf"){
echo JHTML::_('link', $link, $text);
} else { ?>
<span class="bold"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL') ?></span><a class="modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $link ?>"><?php echo $text ?></a>
<?php } ?>
</div>
<?php
}
?>
<?php //::> SHORT DESCRIPTION
if (!empty($this->product->product_s_desc)) { ?>
<div class="product-short-description">
<?php
echo $this->product->product_s_desc;
?>
</div>
<?php
}
?>
Alles anzeigen