: 05.09.2013 19:34:33 | : 06.11.2016 17:07:56 | : 15310

- . , . . «».

, . . . (ID) content. Russian () . English () Content.

1.jpg

.

.

, slider. . . .

2.jpg

.

. . . . . . 950 300.

3.jpg

. . ( ).

4.jpg

, .

. . . . . : , , .

5.jpg

.

.

6.jpg

, , 1. 950x300 px . .

- ( ). .

page.php. (). . . - . . . . .

. slider. . FTP.

7.jpg

.

FTP (_/bitrix/templates/main/components/bitrix/news.list/slider). template.php. . :

<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>

<div class="gallery">
	<ul class="images">
	<?foreach($arResult["ITEMS"] as $arItem):?>
		<?if(is_array($arItem["PREVIEW_PICTURE"])):?>
			<li<?if($arItem["NAME"]=="1"):?> class="show"<?endif;?>><img width="950" height="300" src="<?=$arItem["PREVIEW_PICTURE"]["SRC"]?>" alt="photo_<?=$arItem["NAME"]?>" /></li>
		 <?endif;?> 
	<?endforeach;?>
	</ul>
</div>

. FTP header.php . div gallery (<div class=”gallery>).

8.jpg

div'a. . .