Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<?
2
	function aktion($standard=true)
3
	{
4
		if(!$standard)
5
			return newAktion();
6
 
7
		$aktion = getAktion(getCurrentAktion());
8
 
9
		if ($aktion['html_seite_schalter'] == 0)
10
		{
11
			$template = loadTemplates($_SESSION['INI']['TEMPLATE']['contentAktion']);
12
 
13
			// Aktion headline Template auslesen
14
			$aktion['headline'] = templateContent($aktion, $template['aktionHeadline']);
15
 
16
			// Aktionstemplate auslesen
17
			echo templateContent($aktion, $template['aktionContent']);
18
 
19
			// Template durch Aktion vorgegeben ??
20
			if ($aktion['template'])
21
			{
22
				$_SESSION['INI']['TEMPLATE']['contentAktion']['aktionItem']=$aktion['template'];
23
			}
24
 
25
			$items = getAktionItems(getCurrentAktion());
26
 
27
			// Artikeltemplate auslesen
28
			$aktionItemTemplate = file_get_contents($_SESSION['INI']['templatePath'].$_SESSION['INI']['TEMPLATE']['contentAktion']['aktionItem']);
29
 
30
			// Artikel ausgeben
31
			if (is_array($items))
32
			{
33
				foreach($items as $item)
34
				{
35
 
36
					$item["langbezeichnungIntro"] = templateContent($item, $template['aktionItemDescr']);
37
					echo templateContent($item, $aktionItemTemplate);
38
				}
39
			}
40
		}
41
		else
42
		{
43
			echo $aktion['html_seite'];
44
		}
45
	}
46
 
47
	function newAktion()
48
	{
49
		$aktion = getAktion(getCurrentAktion());
50
 
51
		if ($aktion['html_seite_schalter'] == 0)
52
		{
53
			$template = loadTemplates($_SESSION['INI']['TEMPLATE']['contentAktion']);
54
 
55
			// Aktion headline Template auslesen
56
			$aktion['headline'] = templateContent($aktion, $template['aktionHeadline']);
57
 
58
			// Aktionstemplate auslesen
59
			//echo templateContent($aktion, $template['aktionContent']);
60
 
61
			// Template durch Aktion vorgegeben ??
62
			if ($aktion['template'])
63
			{
64
				$_SESSION['INI']['TEMPLATE']['contentAktion']['aktionItem']=$aktion['template'];
65
			}
66
 
67
			$items = getAktionItems(getCurrentAktion());
68
 
69
			// Artikeltemplate auslesen
70
			$aktionItemTemplate = file_get_contents($_SESSION['INI']['templatePath'].$_SESSION['INI']['TEMPLATE']['contentAktion']['aktionItem']);
71
 
72
			// Artikel ausgeben
73
			if (is_array($items))
74
			{
75
				foreach($items as $item)
76
				{
77
 
78
					$item["langbezeichnungIntro"] = templateContent($item, $template['aktionItemDescr']);
79
					$Items['aktionItems'] = $Items['aktionItems'].templateContent($item, $template['aktionItem']);
80
				}
81
 
82
				echo templateContent($Items, $template['aktionContent']);
83
			}
84
		}
85
		else
86
		{
87
			echo $aktion['html_seite'];
88
		}
89
	}
90
 
91
	aktion($_SESSION['INI']['aktion']['standard']);
92
?>