From 09915b726ee9bc9896654b7bc832f068b9c3b013 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Sat, 2 Dec 2017 00:25:50 +0100 Subject: moved print out to function --- index.php | 55 ++++++++++++++++++++++--------------------------------- 1 file changed, 22 insertions(+), 33 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 85b72ff..f290c1f 100644 --- a/index.php +++ b/index.php @@ -32,6 +32,26 @@ foreach ($storiesDirContent as $storyName) { $currentStoryName = visibleName($currentStory); +function printEntities($entities) { + foreach ($entities as $entity=>$description) { + $name = visibleName($entity); + +
+
+ <?=$name;?> +
+
+

+

+
+
+ + +
+ @@ -93,40 +113,9 @@ $currentStoryName = visibleName($currentStory); $characterDescription) { - $characterName = visibleName($character); - ?> - -
-
- <?=$characterName;?> -
-
-

-

-
-
- - -
- $storyDescription) { - $storyName = visibleName($story); -?> -
-
- -
-
-

-

-
-
- - -- cgit v1.2.3