заменить 26 строку в файле /bitrix/templates/.default/components/bitrix/news/projects/bitrix/news.list/.default/template.php

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<div class="projects2">
<?if(!($arResult["ITEMS"])) echo "<h4>Нет проектов. Попробуйте изменить условия поиска</h4>";?>
<?foreach($arResult["ITEMS"] as $arItem):
$file = CFile::ResizeImageGet($arItem['DETAIL_PICTURE']['ID'], array('width'=>550, 'height'=>270), BX_RESIZE_IMAGE_EXACT, true);
$file2 = CFile::ResizeImageGet($arItem['PROPERTIES']['profilephoto']['VALUE'], array('width'=>200, 'height'=>200), BX_RESIZE_IMAGE_EXACT, true);
?>
<?
$this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));
$this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
?>
<div class="item" id="<?=$this->GetEditAreaId($arItem['ID']);?>">
<div class="title">
<a href="<?=$arItem['DETAIL_PAGE_URL']?>"><?=$arItem['PROPERTIES']['lastname']['VALUE']?> <?=$arItem['PROPERTIES']['firstname']['VALUE']?> <?=$arItem['PROPERTIES']['patronymic']['VALUE']?></a>
</div>
<div class="img">
<a href="<?=$arItem['DETAIL_PAGE_URL']?>">
<img src="<?=$file['src']?>">
<span>
<img src="<?=$file2['src']?>">
</span>
</a>
</div>
<div class="desc">
<div class="name"><a href="<?=$arItem['DETAIL_PAGE_URL']?>"><?=$arItem['NAME']?></a></div>
<div class="text"><?if(strlen($arItem['PREVIEW_TEXT']) > 350){echo substr($arItem['PREVIEW_TEXT'], 0,350)."...";} else{echo $arItem['PREVIEW_TEXT'];}?></div><br />
<font style="font: bold 13px/15px 'Tahoma';">Поделиться: </font><br /><br />
<script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
<div class="yashare-auto-init" style="width:400px"
data-yashareImage="http://nashe-podmoskove.ru<?=$file['src']?>"
data-yashareTitle="<?=$arItem["NAME"];?>"
data-yashareDescription="<?=strip_tags($arItem["PREVIEW_TEXT"]);?>"
data-yashareLink="http://nashe-podmoskove.ru/projects/<?=$arItem["ID"]?>/"
data-yashareL10n="ru"
data-yashareQuickServices="vkontakte,facebook,twitter,odnoklassniki,moimir,gplus"
data-yashareTheme="counter"></div>
</div>
<div class="clearfix"></div>
<div class="w550 ml20px mt20px">
<span class="fltrt"><?=$arItem['PROPERTIES']['starttdate']['VALUE'];?></span>
<span><strong>Номинация:</strong> <?=$arItem['PROPERTIES']['education']['VALUE'];?></span><br>
<span><strong>Муниципальное образование:</strong> <?=$arItem['PROPERTIES']['state']['VALUE'];?></span>
</div>
</div>
<?endforeach;?>
</div>
<?if($arParams["DISPLAY_BOTTOM_PAGER"]):?>
<br /><?=$arResult["NAV_STRING"]?>
<?endif;?>