Gallery

mellody

Avatar: mellody

2020-05-02 10:55

Hello, does anyone knows how to change this code for quick.cart 6.7?

When I used this code. System showed me message that this function is only for exetended version, so I changed Gallery to different name and number 3 to number 5, but when I tried to change images in administartion, it was OK, but the images were not visible. Anyone any idea ho to repair it?

1) w templates/default/style.css
po:
#imagesList2{clear:right;float:right;margin:8px 0 0 15px;}
dodać:
#imagesList3{float:left;margin:10px 0 15px 5px;}
#imagesList3 li{float:left;margin:8px;color:#999999;font-size:0.917em;height:90px;width:91px;}

Uwaga: w zależności od szerokości strony i wielkości ikonek zdjęć należy regulować dwiema wielkościami: width i height.

2) w templates/default/page.php
po:
echo $oFile->listFiles( $aData['iPage'] ); // display files included to the page
dodać:
echo $oFile->listImagesByTypes( $aData['iPage'], 3 ); // displaying images with type: gallery

3) w database/translations/en.php oraz pozostałych plikach językowych
w części:
* Tłumaczenia widoczne tylko w administracji. Tłumaczenie nie jest wymagane
*/
dodać:
$lang['Gallery'] = "Galeria";

4) w database/config/general.php
linię:
$aPhotoTypes = Array( 1 => $lang['Left'], 2 => $lang['Right'] );
zamienić na:
$aPhotoTypes = Array( 1 => $lang['Left'], 2 => $lang['Right'], 3 => $lang['Gallery'] );

» Quick.Cart v6.x

Mellody

mellody

Avatar: mellody

2020-05-03 09:29

I didn't find it here in this forum, but I found my own way. Solved

Mellody

Back to top
about us | contact