This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nikolark 969c63c752 New style wordpress
This enables automagic updates of WP

- Delete wordpress install
- Move theme(s) to top
- Move local plugins to ./plugins
- Simplify i18n
2017-07-05 01:03:17 +02:00

35 lines
1.9 KiB
PHP
Executable File

<?php
$date_format = 'l j. F';
if (
0 > $post->neuf_events_starttime - strtotime('U - 1 week') // event is more than a week old
|| date( 'Y' , $post->neuf_events_starttime ) != date( 'Y') // event is not this year
) {
$date_format = 'l j. F Y';
}
?>
<header class="entry-meta">
<?php // The class 'summary' is part of the hCalendar spec ?>
<h1 class="entry-title summary"><?php the_title(); ?></h1>
<div class="entry-meta-info">
<div>
<time class="event-date dtstart" datetime="<?php echo date_i18n('Y-m-d\TH:i:sP', $post->neuf_events_starttime); ?>"><?php echo ucfirst( date_i18n( $date_format , $post->neuf_events_starttime ) ); ?></span>
</div>
<div>
<span class="meta-prep meta-prep-event-time"><?php _e( 'Kl:' , 'neuf' ); ?></span>
<time class="event-time dtstart" datetime="<?php echo date_i18n('Y-m-d\TH:i:sP', $post->neuf_events_starttime); ?>"><?php echo date_i18n( 'G.i' , $post->neuf_events_starttime); ?></time>
<span class="meta-sep meta-sep-event-price"> - </span>
<span class="meta-prep meta-prep-price">CC: </span>
<span class="price"><?php echo ($price = neuf_format_price( $post )) ? $price : "Gratis"; ?></span>
<span class="meta-prep meta-prep-price"><?php echo $post->neuf_events_ticket_url ? ' <a href="'.$post->neuf_events_ticket_url.'">Kjøp billett</a>' : ""; ?></span>
</div>
<div>
<span class="venue location"><?php echo $post->neuf_events_venue; ?></span>
<?php if ( $post->neuf_events_fb_url ): ?><span class="meta-sep meta-sep-event-facebook"> - </span>
<span class="event-facebook"><a href="<?php echo $post->neuf_events_fb_url; ?>" title="Arrangementet på Facebook"><img src="<?php echo get_bloginfo('stylesheet_directory')."/img/facebook-icon.png";?>" /></a></span>
<?php endif; ?>
</div>
</div>
</header> <!-- .entry-meta-->