• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/mail/eventmessagethemecompiler.php
  • Класс: BitrixMainMailEventMessageThemeCompiler
  • Вызов: EventMessageThemeCompiler::execute
public function execute()
{
	$resultThemeProlog = '';
	$resultThemeEpilog = '';

	if(!$this->themeProlog && $this->contentTypeHtml)
		$this->body = 'showStyles()?>' . $this->body;

	$resultBody = $this->executePhp($this->body, 100);
	if($this->themeProlog)
	{
		$this->includeThemeLang('header.php');
		$resultThemeProlog = $this->executePhp($this->themeProlog, 50);
	}

	if($this->themeEpilog)
	{
		$this->includeThemeLang('footer.php');
		$resultThemeEpilog = $this->executePhp($this->themeEpilog, 150);
	}

	$this->resultString = $resultThemeProlog . $resultBody . $resultThemeEpilog;
	$this->executeReplaceCallback();
}