8namespace Bitrix\Sender\Preset;
10use Bitrix\Main\Entity;
11use Bitrix\Main\EventResult;
13use Bitrix\Main\IO\File;
14use Bitrix\Main\Localization\Loc;
16Loc::loadMessages(__FILE__);
31 $resultTemplateList =
array();
32 $arTemplateList = static::getList();
36 return $resultTemplateList;
44 $resultList =
array();
45 $event =
new Event(
'sender',
'OnPresetMailBlockList');
48 foreach (
$event->getResults() as $eventResult)
50 if ($eventResult->getType() == EventResult::ERROR)
55 $eventResultParameters = $eventResult->getParameters();
57 if (!empty($eventResultParameters))
59 $resultList = array_merge($resultList, $eventResultParameters);
74 'rootDefaultFilename' =>
''
77 $arGroupExists =
array();
78 $arBlocksByType = static::getListByType();
79 foreach($arBlocksByType as
$type => $arBlockList)
81 foreach($arBlockList as $blockNum => $arBlock)
83 $name =
'mailblock'.str_pad($blockNum+1, 4,
'0', STR_PAD_LEFT);
87 'path' => $arBlock[
'TYPE'],
88 'title' => $arBlock[
'NAME'],
90 'code' => $arBlock[
'HTML'],
91 'description' => empty($arBlock[
'DESC']) ?
'' : $arBlock[
'DESC'],
94 'parent' => $arBlock[
'TYPE'],
97 if(!in_array($arBlock[
'TYPE'], $arGroupExists))
101 'name' => $arBlock[
'TYPE'],
103 'default_name' =>
'mailblockgroup' . (
count($arGroupExists) + 1)
105 $arGroupExists[] = $arBlock[
'TYPE'];
static getBlockForVisualEditor()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(empty($signedUserToken)) $key
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"