Skip to content
Browse files

Make some event templates show possible age limit

  • Loading branch information...
1 parent c508b27 commit 07853f125da0ed1787851c795e39de6779eedcb9 @eoma committed Apr 3, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 dew_template.php
View
8 dew_template.php
@@ -108,6 +108,10 @@ static public function widgetEvent ($rawEvent) {
<strong><?php _e('Covercharge:', 'dak_events_wp') ?></strong> <?php echo $event->getCoverCharge() ?><br />
<?php endif ?>
+ <?php if ($event->hasAgeLimit()): ?>
+ <strong><?php _e('Age limit:', 'dak_events_wp') ?></strong> <?php echo $event->getAgeLimit() ?><br />
+ <?php endif ?>
+
<?php if ($event->hasFestival()): ?>
<?php
printf(__('Part of festival %s', 'dak_events_wp'),
@@ -323,6 +327,10 @@ static public function fullEvent($rawEvent, array $config = array()) {
<?php echo __('Covercharge:', 'dak_events_wp') . ' ' . $event->getCoverCharge() ?><br />
<?php endif ?>
+ <?php if ($event->hasAgeLimit()): ?>
+ <?php echo __('Age limit:', 'dak_events_wp') . ' ' . $event->getAgeLimit() ?><br />
+ <?php endif ?>
+
<?php if ($event->hasFestival()): ?>
<?php
printf(__('Part of festival %s', 'dak_events_wp'),

0 comments on commit 07853f1

Please sign in to comment.
Something went wrong with that request. Please try again.