Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<?
2
	function aktion_email($output = true)
3
	{
4
		$aktion = getAktion(getCurrentAktion());
5
 
6
		if ($aktion['html_seite_schalter'] == 0)
7
		{
8
			// Aktion headline Template auslesen
9
			$template = file_get_contents($_SESSION['INI']['TEMPLATE']['contentAktion']['aktionHeadline']);
10
			$aktion['headline'] = templateContent($aktion, $template);
11
 
12
			// Aktionstemplate auslesen
13
			$template = file_get_contents($_SESSION['INI']['TEMPLATE']['contentAktion']['aktionContent']);
14
			if ($output) {
15
				echo templateContent($aktion, $template);
16
			} else {
17
				$rueckgabe .= templateContent($aktion, $template);
18
			}
19
 
20
			// Template durch Aktion vorgegeben ??
21
			if ($aktion['template'])
22
			{
23
				$_SESSION['INI']['TEMPLATE']['contentAktion']['aktionItem']=$aktion['template'];
24
			}
25
 
26
			$items = getAktionItems(getCurrentAktion());
27
 
28
			// Artikeltemplate auslesen
29
			$template = file_get_contents($_SESSION['INI']['TEMPLATE']['contentAktion']['aktionItem']);
30
 
31
			// Artikel ausgeben
32
			if (is_array($items))
33
			{
34
				foreach($items as $item)
35
				{
36
					if ($output) {
37
						echo templateContent($item, $template);
38
					} else {
39
						$rueckgabe .= templateContent($item, $template);
40
					}
41
				}
42
			}
43
		}
44
		else
45
		{
46
			if ($output) {
47
				echo $aktion['html_seite'];
48
			} else {
49
				$rueckgabe .= $aktion['html_seite'];
50
			}
51
		}
52
		if (!$output) {
53
			return $rueckgabe;
54
		}
55
	}
56
 
57
?>