development/coursemanagement-bundle/src/Resources/contao/templates/event_full_CM.html5 line 65

Open in your IDE?
  1. <? use CityMountain\CourseManagementBundle\Utils\OperationCM;  ?>
  2. <div class="event layout_full block<?= $this->class ?>" id="cmEvent">
  3.   <h1><?= $this->title ?></h1>
  4.     <div class="ce_text">
  5.     <table width="100%" border="0">
  6.       <tr>
  7.         <td class="cmEventHeader" colspan="2">Veranstaltung:</td>
  8.       </tr>
  9.       <tr>
  10.         <td>Veranstalter:</td>
  11.         <td>{{CMEvent::unitLink::<?php echo $this->id?>}}</td>
  12.       </tr>
  13.       <tr>
  14.         <td>Art der Veranstaltung:</td>
  15.         <td>{{CMEvent::eventType::<?php echo $this->id?>}}</td>
  16.       </tr>
  17.      
  18.       <tr>
  19.         <td width="">Wann:</td>
  20.         <td>{{CMEvent::when::<?php echo $this->id?>}}</td>
  21.       </tr>
  22.       <tr>
  23.         <td>Ort:</td>
  24.         <td><?php echo $this->cmLocation?></td>
  25.       </tr>
  26.     {{CMEvent::hybridTable::<?php echo $this->id?>}}
  27.     {{CMEvent::curseCostTable::<?php echo $this->id?>}}
  28.     {{CMEvent::deadlineTable::<?php echo $this->id?>}}
  29.       <tr>
  30.         <td>Leiter/-in:</td>
  31.         <td><?php echo $this->cmCoursLeader?></td>
  32.       </tr>
  33.     {{CMEvent::targetTable::<?php echo $this->id?>}}
  34.       <tr>
  35.         <td>Beschreibung/Bemerkungen:</td>
  36.         <td><?php echo $this->teaser?></td>
  37.       </tr>
  38.        <?php if ($this->enclosure): ?>
  39.        <tr>
  40.         <td>Weitere Informationen:</td>
  41.         <td>
  42.             <div class="enclosure">
  43.               <?php foreach ($this->enclosure as $enclosure): ?>
  44.                 <p>
  45.                     <img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['mime']; ?>" class="mime_icon"> <a href="<?= $enclosure['href'?>" title="<?= $enclosure['title'?>"><?= $enclosure['link'?> <span class="size">(<?= $enclosure['filesize'?>)</span></a>
  46.                 </p>
  47.               <?php endforeach; ?>
  48.             </div>
  49.         </td>
  50.       <?php endif; ?>
  51.       
  52.       <?php if (OperationCM::checkEventContact($this->id)): ?>
  53.       
  54.       <tr>
  55.         <td>Kontakt:</td>
  56.         <td>{{CMEvent::contact::<?php echo $this->id?>}}</td>
  57.       </tr>
  58.       <?php endif; ?>
  59.     
  60.     </table>
  61.     </div>
  62.     
  63.     <?php if(!OperationCM::replaceInsertTags('CMEvent::noRegistration::'.$this->id)): ?><!-- Buchungen sind erlaubt -->    
  64.     
  65.     <?php $tmpBookableArray OperationCM::replaceInsertTags('CMEvent::bookableArray::'.$this->id); ?>
  66.     
  67.     <?php if(!$tmpBookableArray['registrationDeadline'] && !$tmpBookableArray['eventHasStarted'] && !$tmpBookableArray['fullyBooked'
  68.              && !$tmpBookableArray['canceled']): ?><!-- Buchbar -->
  69.     
  70.     <div class="cmEventBooking" align="center">
  71.       <a target="_new" href="<?= OperationCM::replaceInsertTags('CMEvent::registrationLink::'.$this->id); ?>">[ Buchen ]</a>
  72.     </div>
  73.     
  74.     <?php else: ?><!-- Buchung nicht mehr möglich -->
  75.     
  76.         <?php if($tmpBookableArray['canceled']): ?>
  77.         <div class="cmEventFullyBooked" align="center">
  78.         [ Veranstaltung wurde abgesagt ]
  79.         </div>
  80.         <?php elseif($tmpBookableArray['fullyBooked']): ?>
  81.         <div class="cmEventFullyBooked" align="center">
  82.         [ Veranstaltung ist ausgebucht ]
  83.         </div>
  84.         <?php elseif($tmpBookableArray['registrationDeadline']): ?>
  85.         <div class="cmEventWarning" align="center">
  86.         [ Anmeldefrist abgelaufen, es hat aber noch freie Plätze. ]<br />Bitte kontaktieren Sie das Kurssekretariat Tel. +41 41 594 50 00 oder info@schluechthof.ch
  87.         </div>
  88.         <?php elseif($tmpBookableArray['eventHasStarted']): ?>
  89.         <div class="cmEventWarning" align="center">
  90.         [ Veranstaltung hat angefangen und ist nicht mehr buchbar ]
  91.         </div>
  92.         <?php else: ?>
  93.         <div class="cmEventFullyBooked" align="center">
  94.         [ Veranstaltung ist ausgebucht ]
  95.         </div>
  96.     <?php endif; ?><!-- Buchung nicht mehr möglich ENDE-->
  97.     
  98.     <?php endif; ?><!-- Buchbar / Buchung nicht mehr möglich ENDE-->
  99.     
  100.     <?php else: ?>
  101.     <!-- Event muss nicht gebucht werden -->
  102.     <div class="cmEventWarning" align="center">
  103.     [ Keine Anmeldung erforderlich ]
  104.     </div>
  105.     <?php endif; ?><!-- Buchungen sind erlaubt/Event muss nicht gebucht werden ENDE -->
  106. </div>