festivals_active.php 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <!DOCTYPE html>
  2. <html lang='<?=$page->lang?>'>
  3. <head>
  4. <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
  5. <meta charset='utf-8'/>
  6. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
  7. <title><?=$page->title?></title>
  8. <link rel='shortcut icon' href='<?=$page->favicon?>'/>
  9. <!-- CSS files -->
  10. <link rel='stylesheet' type='text/css' href='<?=$static["css"]?>ui.css'/>
  11. <link rel='stylesheet' type='text/css' href='<?=$static["css"]?>festivals.css'/>
  12. <!-- Script files -->
  13. <script type='text/javascript' src='<?=$static["js"]?>ui.js'></script>
  14. <script type='text/javascript' src='<?=$static["js"]?>festivals.js'></script>
  15. <!-- Meta tags -->
  16. <link rel='canonical' href='<?=$page->canonical?>'/>
  17. <link rel='author' href='<?=$page->author?>'/>
  18. <link rel='publisher' href='<?=$page->author?>'/>
  19. <meta name='description' content='<?=$page->description?>'/>
  20. <meta property='og:title' content='<?=$page->title?>'/>
  21. <meta property='og:url' content='<?=$page->canonical?>'/>
  22. <meta property='og:description' content='<?=$page->description?>'/>
  23. <meta property='og:image' content='<?=$page->icon?>'/>
  24. <meta property='og:site_name' content='<?=$page->name?>'/>
  25. <meta property='og:type' content='website'/>
  26. <meta property='og:locale' content='<?=$page->lang?>'/>
  27. <meta name='twitter:card' content='summary'/>
  28. <meta name='twitter:title' content='<?=$page->title?>'/>
  29. <meta name='twitter:description' content='<?=$page->description?>'/>
  30. <meta name='twitter:image' content='<?=$page->icon?>'/>
  31. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  32. <meta name='robots' content='index follow'/>
  33. </head>
  34. <body>
  35. <?php
  36. include $path["include"] . "header.php";
  37. ?>
  38. <main>
  39. <section id='festivals_active'>
  40. <h3>
  41. <?=str_replace('#', $page->festival->year, $page->string["festival_title_year"])?>
  42. </h3>
  43. <article>
  44. <?php
  45. if (is_set($page->festival->image)){
  46. ?>
  47. <img alt='<?=$page->festival->year?>' title='<?=$page->festival->year?>' src='<?=$static["content"]?>festivals/<?=$page->festival->image?>' srcset='<?=srcset("festivals/" . $page->festival->image)?>'/>
  48. <?php
  49. }
  50. ?>
  51. <p>
  52. <?=$page->festival->year?>
  53. </p>
  54. </article>
  55. </section>
  56. <section id='festival_schedule'>
  57. <h3>
  58. <?=$page->string["festival_schedule"]?>
  59. </h3>
  60. <?php
  61. foreach ($page->festival->event->internal as $day){
  62. ?>
  63. <h4 onClick='expandDay(<?=$day?>);' class='pointer'>
  64. <img class='slid' src='<?=$static["layout"]?>/control/slid-right.png' id='slid_day_<?=$day?>'/>
  65. <?php
  66. $s_day = $day;
  67. if ($day == "25"){
  68. $s_day = format_festival_date(date("Y") . "-07-" . $day);
  69. }
  70. else{
  71. $s_day = format_festival_date(date("Y") . "-08-" . $day);
  72. }
  73. ?>
  74. <?=$s_day?>
  75. <table>
  76. <?php
  77. foreach ($day as $event){
  78. ?>
  79. <tr>
  80. <td>
  81. <span class='time'>
  82. <?=$event->start?>
  83. </span>
  84. </td>
  85. <td class='timeline'>
  86. <img class='timeline_dot' alt=' ' src='<?=$static["layout"]?>/control/schedule-point.png'/>
  87. </td>
  88. <td>
  89. <span class='title'>
  90. <?=$event->title?>
  91. </span>
  92. <?php
  93. if (strlen($event->description) > 0 && $event->description != $event->title){
  94. ?>
  95. <div class='description'>
  96. <?=$event->description?>
  97. </div>
  98. <?php
  99. }
  100. ?>
  101. <div class='location'>
  102. <!-- TODO: Implement OSM routes -->
  103. <a target='_blank' href='https://www.openstreetmap.org/#map=16/<?=$event->place->location->lat?>/<?=$event->place->location->lon?>'>
  104. <img alt=' ' src=''<?=$static["layout"]?>/control/pinpoint.png'/>
  105. <?php
  106. //If name and address are the same, show only name
  107. if ($event->place->name == $event->place->address){
  108. ?>
  109. <?=$event->place->name?>
  110. <?php
  111. }
  112. else{
  113. ?>
  114. <?=$event->place->name?>
  115. <span class='address italic'>
  116. - <?=$event->place->name?>
  117. </span>
  118. <?php
  119. }
  120. ?>
  121. </a>
  122. </div>
  123. </td>
  124. </tr>
  125. <?php
  126. } // foreach ($day as $event)
  127. ?>
  128. </table>
  129. </h4>
  130. <?php
  131. } // foreach ($page->festival->event->internal as $day)
  132. ?>
  133. </section>
  134. <section id='festival_prices'>
  135. <h3>
  136. <?=$page->string["festival_prices"]?>
  137. </h3>
  138. <article id='festival_prices_days'>
  139. <table>
  140. <!-- TODO: Members/public -->
  141. <?php
  142. foreach ($page->festival->day as $day){
  143. ?>
  144. <tr>
  145. <td>
  146. <?=format_festival_date($day->date)?>
  147. </td>
  148. <td class='price'>
  149. <?=$day->price?> &euro;
  150. </td>
  151. </tr>
  152. <?php
  153. }
  154. ?>
  155. </table>
  156. </article>
  157. <article id='festival_prices_offers'>
  158. <table>
  159. <!-- TODO: Members/public -->
  160. <?php
  161. foreach ($page->festival->offer as $offer){
  162. ?>
  163. <tr>
  164. <td>
  165. <?=$offer->name?>
  166. <p>
  167. <?=$offer->description?>
  168. </p>
  169. </td>
  170. <td class='price'>
  171. <?=$offer->price?> &euro;
  172. </td>
  173. </tr>
  174. <?php
  175. }
  176. ?>
  177. </table>
  178. </article>
  179. </section>
  180. <?php
  181. if (strlen($page->previous) > 0){
  182. ?>
  183. <section id='festival_previous'>
  184. <h3>
  185. <!-- <?=$page->string["festival_past"]?> -->
  186. </h3>
  187. <article>
  188. <ul>
  189. <?php
  190. foreach ($page->previous as $y){
  191. ?>
  192. <li>
  193. <a href='<?=$base_url?>/<?=$url->festivals?>/<?=$y?>'>
  194. <?=$y?>
  195. </a>
  196. </li>
  197. <?php
  198. }
  199. ?>
  200. </ul>
  201. </article>
  202. </section>
  203. <?php
  204. }
  205. ?>
  206. </main>
  207. <?php
  208. include $path["include"] . "footer.php";
  209. ?>
  210. </body>
  211. </html>