Siema
Mam problem. A mianowicie,chciałbym zwiększyć obrazki, które się obracają w tej karuzeli. Pytanie jak to zrobić?
Znalazłem klika plików: urunxml.php i homefeaturedcarousel.php.
URUNXML.PHP:
<?
header("content-type:text/xml; charset=utf-8");
include('../../../config/config.inc.php');
include('../../../init.php');
global $cookie;
$category = new Category(1);
$nb = intval(Configuration::get('HOME_FEATURED_CAROUSEL_NBR'));
$sort = intval(Configuration::get('HOME_FEATURED_CAROUSEL_SORT'));
switch ($sort) {
case '0':
$products = $category->getProducts(intval($cookie->id_lang), 1, ($nb ? $nb : 10));
break;
case '1':
$products = $category->getProducts(intval($cookie->id_lang), 1, 1000);
shuffle($products);
array_splice($products, ($nb ? $nb : 10));
break;
case '2':
$products = $category->getProducts(intval($cookie->id_lang), 1, ($nb ? $nb : 10), 'price', 'ASC');
break;
case '3':
$products = $category->getProducts(intval($cookie->id_lang), 1, ($nb ? $nb : 10), 'price', 'DESC');
break;
case '4':
$products = $category->getProducts(intval($cookie->id_lang), 1, ($nb ? $nb : 10), 'date_upd', 'DESC');
break;
case '5':
$products = $category->getProducts(intval($cookie->id_lang), 1, ($nb ? $nb : 10), 'date_add', 'DESC');
break;
case '6':
$products = $category->getProducts(intval($cookie->id_lang), 1, ($nb ? $nb : 10), 'name', 'ASC');
break;
default:
$products = $category->getProducts(intval($cookie->id_lang), 1, ($nb ? $nb : 10));
break;
}
$currency = Currency::getCurrency($cookie->id_currency);
$sign = html_entity_decode($currency[sign],ENT_NOQUOTES,"UTF-8");
$sonuc='<?xml version="1.0" encoding="utf-8" ?>
<Images
FlashWidth="530"
FlashHeight="230"
FlashLeft="0"
FlashTop="0"
FlashBgColor="#ffffff"
FlashBgImage="False"
FlashBgImagePath=""
FlashBgPosition="top left"
FlashBgPositionX="0"
FlashBgPositionY="0"
FlashBgRepeat="repeat"
FlashQuality="high"
FlashScale="noscale"
FlashMenu="False"
PerformanceFPS="24"
PerformanceLoadTime="7"
CarouselRadiusX="200"
CarouselRadiusY="35"
CarouselPerspective="30"
CarouselCenterLeft="0"
CarouselCenterTop="20"
CarouselSpeed="1"
CarouselSpeedFixed="False"
CarouselNavigation=""
CarouselInitialRotation="0"
CarouselRandomImages="0"
ReflectionVisible="True"
ReflectionImageAlpha="40"
ReflectionReflectionAlpha="40"
ReflectionDropOff="60"
ReflectionDistance="-20"
ToolTipAlign="center"
ToolTipBold="TRUE"
ToolTipHTMLAntiAliasing="False"
ToolTipFontColor="#FEA002"
ToolTipFontSize="14"
ToolTipHTML="False"
ToolTipLeading="0"
ToolTipUnderline="False"
ToolTipVisible="TRUE"
ToolTipDefaultTop="-10"
FrameVisible="False"
FrameBorderWidth="3"
FrameBorderColor="#000000"
FrameBorderAlpha="50"
FrameFillColor1=""
FrameFillColor2=""
FrameFillAlpha1="50"
FrameFillAlpha2="50"
FrameFillTransition="100"
FrameFillRotation="0"
ContentPageEnabled="True"
ContentHTML="True"
ContentHTMLAntiAliasing="False"
ContentAlign="justify"
ContentBold="False"
ContentFont="Verdana"
ContentFontColor="#222222"
ContentFontSize="14"
ContentLeading="0"
ContentLeft="170"
ContentTop="50"
ContentUnderline="False"
ContentWidth="380"
Content2HTML="True"
Content2HTMLAntiAliasing="False"
Content2Align="justify"
Content2Bold="TRUE"
Content2Font="Verdana"
Content2FontColor="#222222"
Content2FontSize="14"
Content2Leading="0"
Content2Left="165"
Content2Top="100"
Content2Underline="True"
Content2Width="380"
Content2Visible="False"
ContentImageLeft="80"
ContentImageTop="120" >
';
$i=0;
while($products[$i][id_product]){
$link=$products[$i][link];
$name=$products[$i][name];
$description_short = html_entity_decode($products[$i][description_short],ENT_NOQUOTES,"UTF-8");
$sonuc.='<Image>
<ImagePath><![CDATA[img/p/'.$products[$i][id_image].'-home.jpg]]></ImagePath>
<ImageLink><![CDATA[]]></ImageLink>
<ImageLinkTarget><![CDATA[_self]]></ImageLinkTarget>
<ToolTip><![CDATA['.$name.']]></ToolTip>';
$sonuc.="<Content><![CDATA[<a href='".$link."'><font size='16' color='#FEA002'><b>".
$name."</b></font><br><font size='14' color='#595A5E'>".
$description_short."</font></a><br><font size='14' color='#DA103A'><b>".
$products[$i][price]." ".$sign."</b></font>]]></Content>
<ContentLink><![CDATA[]]></ContentLink>";
$sonuc.='<ContentLinkTarget><![CDATA[]]></ContentLinkTarget>';
$sonuc.="<Content2><![CDATA[]]></Content2>";
$sonuc.='<Content2Link><![CDATA['.$link.']]></Content2Link>
<Content2LinkTarget><![CDATA[]]></Content2LinkTarget>
</Image>';
$i++;
}
$sonuc.='</Images>';
echo $sonuc;
?>