Answer the question
In order to leave comments, you need to log in
How to add images to the mailing list?
Good afternoon. There is a news feed with thumbnails. A mailing list is created without.
<?$arFilter =Array("IBLOCK_ID"=>IntVal(62), "SECTION_ID" => array(892,1712,3800), ">=DATE_ACTIVE_FROM"=>date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,date("m"),date("d"),date("Y"))), "<DATE_ACTIVE_FROM"=>date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,date("m"),date("d")+1,date("Y"))),"ACTIVE"=>"Y");
$rsNews = CIBlockElement::GetList(Array('DATE_ACTIVE_FROM'=>'DESC'), $arFilter);
if($arNews = $rsNews->GetNextElement()):
do
{
$arItem = $arNews->GetFields();?>
<div style="padding: 5px 0">
<div class="date"><?echo ConvertDateTime($arItem["DATE_ACTIVE_FROM"], "DD-MM-YYYY HH:MI");?></div>
<h3><a href="http://<?echo $arSite["SERVER_NAME"].$arItem["DETAIL_PAGE_URL"]?>"><?echo $arItem["NAME"];?></a></h3>
<div><?echo $arItem["PREVIEW_TEXT"];?></div>
</div>
<?
}
while($arNews = $rsNews->GetNextElement());
endif;
?>
</div>
</td>
</tr>
</table>
<?
$arFilter =Array("IBLOCK_ID"=>IntVal(62), "SECTION_ID" => array(2713), ">=DATE_ACTIVE_FROM"=>date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,date("m"),date("d"),date("Y"))), "<DATE_ACTIVE_FROM"=>date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,date("m"),date("d")+1,date("Y"))),"ACTIVE"=>"Y");
$rsNews = CIBlockElement::GetList(Array('DATE_CREATE'=>'DESC'), $arFilter);
if($arNews = $rsNews->GetNextElement()):
do
{
$ddd=$ddd+1;
$arItem = $arNews->GetFields();
$itt[$ddd]=$arItem["NAME"];
}
while($arNews = $rsNews->GetNextElement());
endif;
$imtes_count=count($itt);
if ($imtes_count>0):
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question