Blame | Letzte Änderung | Log anzeigen | RSS feed
<?function aktion_email($output = true){$aktion = getAktion(getCurrentAktion());if ($aktion['html_seite_schalter'] == 0){// Aktion headline Template auslesen$template = file_get_contents($_SESSION['INI']['TEMPLATE']['contentAktion']['aktionHeadline']);$aktion['headline'] = templateContent($aktion, $template);// Aktionstemplate auslesen$template = file_get_contents($_SESSION['INI']['TEMPLATE']['contentAktion']['aktionContent']);if ($output) {echo templateContent($aktion, $template);} else {$rueckgabe .= templateContent($aktion, $template);}// Template durch Aktion vorgegeben ??if ($aktion['template']){$_SESSION['INI']['TEMPLATE']['contentAktion']['aktionItem']=$aktion['template'];}$items = getAktionItems(getCurrentAktion());// Artikeltemplate auslesen$template = file_get_contents($_SESSION['INI']['TEMPLATE']['contentAktion']['aktionItem']);// Artikel ausgebenif (is_array($items)){foreach($items as $item){if ($output) {echo templateContent($item, $template);} else {$rueckgabe .= templateContent($item, $template);}}}}else{if ($output) {echo $aktion['html_seite'];} else {$rueckgabe .= $aktion['html_seite'];}}if (!$output) {return $rueckgabe;}}?>