$templatePath = 'newsletter/index/' .
$mailing['template'
];
if (!
empty($mailing['plaintext'
])) { $templatePath = 'newsletter/alt/' .
$mailing['template'
];
} if (!
$template->
isCached($templatePath)) { $template->
assign('sMailing',
$mailing);
$template->
assign('sStart',
($shop->
getSecure() ? 'https://' : 'http://'
) .
$shop->
getHost() .
$shop->
getBaseUrl());
$template->
assign('sUserGroup',
Shopware()->
System()->sUSERGROUP
);
$template->
assign('sUserGroupData',
Shopware()->
System()->sUSERGROUPDATA
);
$template->
assign('sMainCategories',
Shopware()->
Modules()->
Categories()->
sGetMainCategories());
} return $template;
} /**
* @deprecated in 5.6, will be private in 5.8
*
* Returns mailing data using the mailing id.
*
* @param int $id
*
* @return array
*/