Advertisement
Guest User

Untitled

a guest
Apr 26th, 2012
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1. <!-- Choose a different date format depending on whether we want to include time -->
  2. <?php if(eo_is_all_day()): ?>
  3.     <!-- Event is all day -->
  4.     <?php $date_format = 'j. F Y'; ?>
  5. <?php else: ?>
  6.     <!-- Event is not all day - include time in format -->
  7.     <?php $date_format = 'j. F Y \u\m H:i \U\h\r'; ?>
  8. <?php endif; ?>
  9.  
  10. <?php if(eo_reoccurs()):?>
  11.     <!-- Event reoccurs - is there a next occurrence? -->
  12.     <?php $next =   eo_get_next_occurrence($date_format);?>
  13.     <?php if($next): ?>
  14.         <!-- If the event is occurring again in the future, display the date -->
  15.         <?php printf(__('Vom %1$s bis %2$s. Die n&auml;chste Veranstaltung ist am %3$s','eventorganiser'), eo_get_schedule_start('d. F Y'), eo_get_schedule_end('d. F Y'), $next);?>
  16.  
  17.     <?php else: ?>
  18.         <!-- Otherwise the event has finished (no more occurrences) -->
  19.         <?php printf(__('Diese Veranstaltung war bereits am %s','eventorganiser'), eo_get_schedule_end('d F Y',''));?>
  20. <?php endif; ?>
  21.  
  22. <?php else: ?>
  23.     <!-- Event is a single event -->
  24.         Am <?php printf(__('%s','eventorganiser'), eo_get_the_start($date_format) );?>
  25. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement