Welcome,
Guest
|
Pictures are not to be seen
(1 viewing) (1) Guest
|
TOPIC: Pictures are not to be seen
Re: Pictures are not to be seen 6 years, 8 months ago #35979
|
Dear exmr
Thanks for your solution. thanks |
|
Re: Pictures are not to be seen 6 years, 5 months ago #36729
|
PLEASE send ,me the full php file corrected, i am getting crazyI, Imade the change like 3 times and it doesn't change anything.. can't see the the images just grey boxes
|
|
Re: Pictures are not to be seen 6 years, 5 months ago #36739
|
<?php defined('_JEXEC') or die();
// includes placehold
$yt_temp = JFactory::getApplication()->getTemplate();
include (JPATH_BASE . '/templates/'.$yt_temp.'/includes/placehold.php');
if(!function_exists('loadImg')) {
function loadImg($path, $replacement = 'http://placehold.it/400x267'){
return (file_exists($path) || @getimagesize($path) !== false ) ? $path : $replacement;
}
}
$numberlimit = 3;
$imgResizeConfig = array(
'background' => '#ffffff',
'thumbnail_mode' => 'stretch'
);
//YTTemplateUtils::getImageResizerHelper($imgResizeConfig);
$app = JFactory::getApplication();
$templateDir = JURI::base() . 'templates/' . $app->getTemplate();
?>
<?php
/**
* @version 4.6.1 05.11.2013
* @author MAXXmarketing GmbH
* @package Jshopping
* @copyright Copyright (C) 2010 webdesigner-profi.de. All rights reserved.
* @license GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
$product = $this->product;
?>
<?php include(dirname(__FILE__)."/load.js.php");?>
<div class="productfull">
<form class="product-form" name="product" method="post" action="<?php print $this->action?>" enctype="multipart/form-data" autocomplete="off">
<?php print $this->_tmp_product_html_start;?>
<?php if ($this->config->display_button_print) print printContent();?>
<div class="block-main row">
<div class="product-image col-xs-12 col-sm-6 col-md-5">
<div class="image_middle large-image">
<?php print $this->_tmp_product_html_before_image;?>
<?php if ($product->label_id){?>
<div class="product_label">
<?php print $product->_label_name;?>
</div>
<?php }?>
<span id='list_product_image_middle'>
<?php print $this->_tmp_product_html_body_image?>
<?php if(!count($this->images)){?>
<img id = "main_image" src = "<?php print $this->image_product_path?>/<?php print $this->noimage?>" alt = "<?php print htmlspecialchars($this->product->name)?>" />
<?php }?>
<?php foreach($this->images as $k=>$image){?>
<div class="image_full" id="main_image_full_<?php print $image->image_id?>" <?php if ($k!=0){?>style="display:none"<?php }?>>
<?php //Create placeholder items images
$src = ($this->image_product_path.'/'.$image->image_name);
if (file_exists($src) || @getimagesize($src) !== false) {
$full_img = '<img src="'.$src.'" alt="'.htmlspecialchars($image->_title).'" />';
}else {
$full_img = yt_placehold($placehold_size['product_detail']);
}
?>
<?php echo $full_img; ?>
</div>
<?php }?>
</span>
<?php print $this->_tmp_product_html_after_image;?>
<?php if ($this->config->product_show_manufacturer_logo && $this->product->manufacturer_info->manufacturer_logo!=""){?>
<div class="manufacturer_logo">
<a href="<?php print SEFLink('index.php?option=com_jshopping&controller=manufacturer&task=view&manufacturer_id='.$this->product->product_manufacturer_id, 2);?>">
<img src="<?php print $this->config->image_manufs_live_path."/".$this->product->manufacturer_info->manufacturer_logo?>" alt="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" border="0" />
</a>
</div>
<?php }?>
</div>
<div class="additional-images yt-carousel">
<div id="thumb-slider" class="jCarouselLite">
<?php print $this->_tmp_product_html_before_image_thumb;?>
<!--<span id='list_product_image_thumb'>-->
<?php if ( (count($this->images)>1) || (count($this->videos) && count($this->images)) ) {?>
<?php
$i=0;
?>
<?php foreach($this->images as $k=>$image){?>
<?php $i=$i+1; ?>
<div>
<a class="img" data-index='<?php echo $i; ?>'data-image="<?php print loadImg(($this->image_product_path."/".$image->image_name),'http://placehold.it/83x83');?>" title="<?php print htmlspecialchars($image->_title)?>" ><img class="jshop_img_thumb" src="<?php print loadImg(($this->image_product_path."/".$image->image_thumb),'http://placehold.it/83x83/969696');?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" /> </a>
</div>
<?php }?>
<?php }?>
<!--</span>-->
</div>
<div class="clear"></div>
</div>
</div>
<div class="product-info col-xs-12 col-sm-6 col-md-7">
<h1 class="title"><?php print $this->product->name?><?php if ($this->config->show_product_code){?> - <span class="jshop_code_prod"><span id="product_code"><?php print $this->product->getEan();?></span></span><?php }?></h1>
<?php include(dirname(__FILE__)."/ratingandhits.php");?>
<div class="price">
<?php if ($this->product->_display_price){?>
<div class="prod_price">
<strong><?php echo jText::_('PRICE');?></strong>
<span id="block_price"><?php print formatprice($this->product->getPriceCalculate())?><?php print $this->product->_tmp_var_price_ext;?></span>
<span class="old_price" id="old_price"><?php print formatprice($this->product->product_old_price)?><?php print $this->product->_tmp_var_old_price_ext;?></span>
<?php if ($this->product->product_price_default > 0 && $this->config->product_list_show_price_default){?>
<span id="pricedefault"><?php print formatprice($this->product->product_price_default)?></span>
<?php }?>
</div>
<?php }?>
</div>
<?php if ($this->config->product_show_qty_stock){?>
<div class="qty_in_stock_shop"><strong><?php print _JSHOP_QTY_IN_STOCK?>: </strong><span id="product_qty"><?php print sprintQtyInStock($this->product->qty_in_stock);?></span></div>
<?php }?>
<div class="jshop_prod_description">
<?php print $this->product->short_description; ?>
</div>
<?php if ($this->product->product_url!=""){?>
<div class="prod_url">
<a target="_blank" href="<?php print $this->product->product_url;?>"><?php print _JSHOP_READ_MORE?></a>
</div>
<?php }?>
<?php if ($this->config->product_show_manufacturer && $this->product->manufacturer_info->name!=""){?>
<div class="manufacturer_name">
<?php print _JSHOP_MANUFACTURER?>: <span><?php print $this->product->manufacturer_info->name?></span>
</div>
<?php }?>
<?php if (count($this->attributes)){?>
<div class="jshop_prod_attributes">
<?php foreach($this->attributes as $attribut){?>
<div class="attributes_title">
<span class="attributes_name"><?php print $attribut->attr_name?></span><span class="attributes_description"><?php //print $attribut->attr_description;?></span>
</div>
<div class="attributes_value">
<label class="select-mask" id='block_attr_sel_<?php print $attribut->attr_id?>'>
<?php print $attribut->selects?>
</label>
</div>
<?php }?>
</div>
<?php }?>
<?php if (count($this->product->freeattributes)){?>
<div class="prod_free_attribs">
<table class="jshop">
<?php foreach($this->product->freeattributes as $freeattribut){?>
<tr>
<td class="name"><span class="freeattribut_name"><?php print $freeattribut->name;?></span> <?php if ($freeattribut->required){?><span>*</span><?php }?><span class="freeattribut_description"><?php print $freeattribut->description;?></span></td>
<td class="field"><?php print $freeattribut->input_field;?></td>
</tr>
<?php }?>
</table>
<?php if ($this->product->freeattribrequire) {?>
<div class="requiredtext">* <?php print _JSHOP_REQUIRED?></div>
<?php }?>
</div>
<?php }?>
<?php if ($this->product->product_is_add_price){?>
<div class="price_prod_qty_list_head"><?php print _JSHOP_PRICE_FOR_QTY?></div>
<table class="price_prod_qty_list">
<?php foreach($this->product->product_add_prices as $k=>$add_price){?>
<tr>
<td class="qty_from" <?php if ($add_price->product_quantity_finish==0){?>colspan="3"<?php } ?>>
<?php if ($add_price->product_quantity_finish==0) print _JSHOP_FROM?>
<?php print $add_price->product_quantity_start?> <?php print $this->product->product_add_price_unit?>
</td>
<?php if ($add_price->product_quantity_finish > 0){?>
<td class="qty_line"> - </td>
<?php } ?>
<?php if ($add_price->product_quantity_finish > 0){?>
<td class="qty_to">
<?php print $add_price->product_quantity_finish?> <?php print $this->product->product_add_price_unit?>
</td>
<?php } ?>
<td class="qty_price">
<span id="pricelist_from_<?php print $add_price->product_quantity_start?>"><?php print formatprice($add_price->price)?><?php print $add_price->ext_price?></span> <span class="per_piece">/ <?php print $this->product->product_add_price_unit?></span>
</td>
</tr>
<?php }?>
</table>
<?php }?>
<?php print $this->product->_tmp_var_bottom_price;?>
<?php if ($this->config->show_tax_in_product && $this->product->product_tax > 0){?>
<span class="taxinfo"><?php print productTaxInfo($this->product->product_tax);?></span>
<?php }?>
<?php if ($this->config->show_plus_shipping_in_product){?>
<span class="plusshippinginfo"><?php print sprintf(_JSHOP_PLUS_SHIPPING, $this->shippinginfo);?></span>
<?php }?>
<?php if ($this->product->delivery_time != ''){?>
<div class="deliverytime" <?php if ($product->hide_delivery_time){?>style="display:none"<?php }?>><?php print _JSHOP_DELIVERY_TIME?>: <?php print $this->product->delivery_time?></div>
<?php }?>
<?php if ($this->config->product_show_weight && $this->product->product_weight > 0){?>
<div class="productweight"><?php print _JSHOP_WEIGHT?>: <span id="block_weight"><?php print formatweight($this->product->getWeight())?></span></div>
<?php }?>
<?php if ($this->product->product_basic_price_show){?>
<div class="prod_base_price"><?php print _JSHOP_BASIC_PRICE?>: <span id="block_basic_price"><?php print formatprice($this->product->product_basic_price_calculate)?></span> / <?php print $this->product->product_basic_price_unit_name;?></div>
<?php }?>
<?php if (is_array($this->product->extra_field)){?>
<div class="extra_fields">
<?php $extra_field_group = "";
foreach($this->product->extra_field as $extra_field){
if ($extra_field_group!=$extra_field['groupname']){
$extra_field_group = $extra_field['groupname'];
?>
<div class='extra_fields_group'><?php print $extra_field_group?></div>
<?php }?>
<div><span class="extra_fields_name"><?php print $extra_field['name'];?></span><?php if ($extra_field['description']) {?> <span class="extra_fields_description"><?php print $extra_field['description'];?></span><?php } ?>: <span class="extra_fields_value"><?php print $extra_field['value'];?></span></div>
<?php }?>
</div>
<?php }?>
<?php if ($this->product->vendor_info){?>
<div class="vendorinfo">
<?php print _JSHOP_VENDOR?>: <?php print $this->product->vendor_info->shop_name?> (<?php print $this->product->vendor_info->l_name." ".$this->product->vendor_info->f_name;?>),
(
<?php if ($this->config->product_show_vendor_detail){?><a href="<?php print $this->product->vendor_info->urlinfo?>"><?php print _JSHOP_ABOUT_VENDOR?></a>,<?php }?>
<a href="<?php print $this->product->vendor_info->urllistproducts?>"><?php print _JSHOP_VIEW_OTHER_VENDOR_PRODUCTS?></a> )
</div>
<?php }?>
<?php if (!$this->config->hide_text_product_not_available){ ?>
<div class = "not_available" id="not_available"><?php print $this->available?></div>
<?php }?>
<?php print $this->_tmp_product_html_before_buttons;?>
<?php if (!$this->hide_buy){?>
<table class="prod_buttons" style="<?php print $this->displaybuttons?>">
<tr>
<td class="prod_qty">
<?php print _JSHOP_QUANTITY?>:
</td>
<td class="prod_qty_input">
<input type="text" name="quantity" id="quantity" onkeyup="reloadPrices();" class="inputbox" value="<?php print $this->default_count_product?>" /><?php print $this->_tmp_qty_unit;?>
</td>
<td class="buttons">
<input type="submit" class="button" value="<?php print _JSHOP_ADD_TO_CART?>" onclick="jQuery('#to').val('cart');" />
<?php print $this->_tmp_product_html_buttons;?>
</td>
<td id="jshop_image_loading" style="display:none"></td>
</tr>
</table>
<?php }?>
<?php print $this->_tmp_product_html_after_buttons;?>
</div>
</div>
<input type="hidden" name="to" id='to' value="cart" />
<input type="hidden" name="product_id" id="product_id" value="<?php print $this->product->product_id?>" />
<input type="hidden" name="category_id" id="category_id" value="<?php print $this->category_id?>" />
</form>
<div class="pro-more-info ">
<?php if ($this->product->product_url!=""){?>
<div class="prod_url">
<a target="_blank" href="<?php print $this->product->product_url;?>"><?php print _JSHOP_READ_MORE?></a>
</div>
<?php } ?>
<div class="block-tab">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active">
<a href="#description" aria-controls="home" role="tab" data-toggle="tab">
<?php echo jText::_('JSHOP_DESCRIPTION');?>
</a>
</li>
<li role="presentation">
<a href="#review" aria-controls="profile" role="tab" data-toggle="tab">
<?php echo jText::_('JSHOP_REVIEW');?>
</a>
</li>
<li role="presentation">
<a href="#other" aria-controls="messages" role="tab" data-toggle="tab">
<?php echo jText::_('JSHOP_INFO_OTHERS');?>
</a>
</li>
<?php if (count($this->videos)){?>
<li role="presentation" class="video">
<a href="#video" aria-controls="messages" role="tab" data-toggle="tab">
<?php echo jText::_('JSHOP_INFO_VIDEO');?>
</a>
</li>
<?php }?>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="description">
<div class="jshop_prod_description">
<?php print $this->product->description; ?>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="review">
<div class="pro-review">
<?php
print $this->_tmp_product_html_before_review;
include(dirname(__FILE__)."/review.php");
?>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="other">
<div class="pro-other-info">
<div class="jshop-manuafacture">
<div class="manuafacture_head"><?php print _JSHOP_MANUFACTURER;?>: </div>
<?php if ($this->config->product_show_manufacturer_logo && $this->product->manufacturer_info->manufacturer_logo!=""){?>
<div class="manufacturer_logo">
<a href="<?php print SEFLink('index.php?option=com_jshopping&controller=manufacturer&task=view&manufacturer_id='.$this->product->product_manufacturer_id, 2);?>">
<img src="<?php print $this->config->image_manufs_live_path."/".$this->product->manufacturer_info->manufacturer_logo?>" alt="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" title="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" border="0" />
</a>
</div>
<?php }?>
<?php if ($this->config->product_show_manufacturer && $this->product->manufacturer_info->name!=""){?>
<div class="manufacturer_name">
<span><?php print $this->product->manufacturer_info->name?></span>
</div>
<?php }?>
</div>
<?php if ($this->product->product_is_add_price){?>
<div class="price_prod_qty_list_head"><?php print _JSHOP_PRICE_FOR_QTY?></div>
<table class="price_prod_qty_list">
<?php foreach($this->product->product_add_prices as $k=>$add_price){?>
<tr>
<td class="qty_from" <?php if ($add_price->product_quantity_finish==0){?>colspan="3"<?php } ?>>
<?php if ($add_price->product_quantity_finish==0) print _JSHOP_FROM?>
<?php print $add_price->product_quantity_start?> <?php print $this->product->product_add_price_unit?>
</td>
<?php if ($add_price->product_quantity_finish > 0){?>
<td class="qty_line"> - </td>
<?php } ?>
<?php if ($add_price->product_quantity_finish > 0){?>
<td class="qty_to">
<?php print $add_price->product_quantity_finish?> <?php print $this->product->product_add_price_unit?>
</td>
<?php } ?>
<td class="qty_price">
<span id="pricelist_from_<?php print $add_price->product_quantity_start?>"> <?php print formatprice($add_price->price)?><?php print $add_price->ext_price?></span> <span class="per_piece">/ <?php print $this->product->product_add_price_unit?></span>
</td>
</tr>
<?php }?>
</table>
<?php }?>
<?php if ($this->product->delivery_time != ''){?>
<div class="deliverytime"><?php print _JSHOP_DELIVERY_TIME?>: <?php print $this->product->delivery_time?></div>
<?php }?>
<?php if ($this->config->product_show_qty_stock){?>
<div class="qty_in_stock"><?php print _JSHOP_QTY_IN_STOCK?>: <span id="product_qty"><?php print sprintQtyInStock($this->product->qty_in_stock);?></span></div>
<?php }?>
<?php if ($this->config->product_show_weight && $this->product->product_weight > 0){?>
<div class="productweight"><?php print _JSHOP_WEIGHT?>: <span id="block_weight"><?php print formatweight($this->product->getWeight())?></span></div>
<?php }?>
<?php if (is_array($this->product->extra_field)){?>
<div class="extra_fields">
<?php $extra_field_group = "";
foreach($this->product->extra_field as $extra_field){
if ($extra_field_group!=$extra_field['groupname']){
$extra_field_group = $extra_field['groupname'];
?>
<div class='extra_fields_group'><?php print $extra_field_group?></div>
<?php }?>
<div><span class="extra_fields_name"><?php print $extra_field['name'];?></span><?php if ($extra_field['description']) {?> <span class="extra_fields_description"><?php print $extra_field['description'];?></span><?php } ?>: <span class="extra_fields_value"><?php print $extra_field['value'];?></span></div>
<?php }?>
</div>
<?php }?>
<?php if ($this->product->vendor_info){?>
<div class="vendorinfo">
<?php print _JSHOP_VENDOR?>: <?php print $this->product->vendor_info->shop_name?> (<?php print $this->product->vendor_info->l_name." ".$this->product->vendor_info->f_name;?>),
(
<?php if ($this->config->product_show_vendor_detail){?><a href="<?php print $this->product->vendor_info->urlinfo?>"><?php print _JSHOP_ABOUT_VENDOR?></a>,<?php }?>
<a href="<?php print $this->product->vendor_info->urllistproducts?>"><?php print _JSHOP_VIEW_OTHER_VENDOR_PRODUCTS?></a> )
</div>
<?php }?>
<?php print $this->_tmp_product_html_before_demofiles; ?>
<div id="list_product_demofiles">
<?php include(dirname(__FILE__)."/demofiles.php");?>
</div>
</div>
</div>
<?php if (count($this->videos)){?>
<div role="tabpanel" class="tab-pane" id="video">
<div class="jshop_prod_video">
<?php foreach($this->videos as $k=>$video){?>
<?php if ($video->video_code){ ?>
<div class="video_full" id="hide_video_<?php print $k?>"><?php echo $video->video_code?></div>
<?php } else { ?>
<a class="video_full" id="hide_video_<?php print $k?>" href=""></a>
<?php } ?>
<?php } ?>
<?php if (count($this->videos)){?>
<?php foreach($this->videos as $k=>$video){?>
<div>
<?php if ($video->video_code) { ?>
<a href="#" id="video_<?php print $k?>" onclick="showVideoCode(this.id);return false;"><img class="jshop_video_thumb" src="<?php print $this->video_image_preview_path."/"; if ($video->video_preview) print $video->video_preview; else print 'video.gif'?>" alt="video" /></a>
<?php } else { ?>
<a href="<?php print $this->video_product_path?>/<?php print $video->video_name?>" id="video_<?php print $k?>" onclick="showVideo(this.id, '<?php print $this->config->video_product_width;?>', '<?php print $this->config->video_product_height;?>'); return false;"><img class="jshop_video_thumb" src="<?php print $this->video_image_preview_path."/"; if ($video->video_preview) print $video->video_preview; else print 'video.gif'?>" alt="video" /></a>
<?php } ?>
</div>
<?php } ?>
<?php }?>
<?php print $this->_tmp_product_html_after_video;?>
</div>
</div>
<?php }?>
</div>
</div>
</div><!--End product more info-->
<?php print $this->_tmp_product_html_before_demofiles; ?>
<div id="list_product_demofiles"><?php include(dirname(__FILE__)."/demofiles.php");?></div>
<?php
if ($this->config->product_show_button_back){?>
<div class="button_back">
<input type="button" class="button" value="<?php print _JSHOP_BACK;?>" onclick="<?php print $this->product->button_back_js_click;?>" />
</div>
<?php }?>
<?php
print $this->_tmp_product_html_before_related;
include(dirname(__FILE__)."/related.php");
?>
<?php print $this->_tmp_product_html_end;?>
</div>
<?php
$document = JFactory::getDocument();
?>
<script type="text/javascript" src="<?php echo $templateDir.'/js/elevatezoom.js' ?>"></script>
<?php
//$document->addStyleSheet($templateDir.'/css/cloud-zoom.css');
//$document->addStyleSheet($templateDir.'/css/tabulous.css');
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
<?php //if( (count($this->images) > $numberlimit) || (count($this->videos) > $numberlimit) ){ ?>
//$('a.cloud-zoom-gallery').bind('click', function(){
// $('a.cloud-zoom-gallery').removeClass('active');
// $(this).addClass('active');
// $('a#yt_popup').attr('href', $(this).attr('href'));
//});
jQuery(".jCarouselLite").owlCarousel({
autoPlay: 3000, //Set AutoPlay to 3 seconds
items : 4,
//Pagination
pagination : false,
paginationNumbers: false,
nav: true,
loop: false,
margin: 10,
responsive:{
768:{
items: 3,
},
992:{
items: 3,
},
1200:{
items: 4,
},
}
});
$('img.jshop_img_thumb').bind('click', function(){
$('img.jshop_img_thumb').removeClass('active');
$(this).addClass('active');
});
$('img.jshop_video_thumb').bind('click', function(){
$('img.jshop_video_thumb').removeClass('active');
$(this).addClass('active');
});
var zoomCollection = '.large-image img';
$( zoomCollection ).elevateZoom({
scrollZoom: true,
lensSize :"400",
easing:true,
gallery:'thumb-slider',
cursor: 'pointer',
galleryActiveClass: "active"
});
$("#thumb-slider .owl-item").each(function() {
$(this).find("[data-index='1']").addClass('active');
});
});
</script>
<?php ?> |
|
|
Time to create page: 0.22 seconds
Notification
Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.
Latest My Topics
No posts to display.