This repository has been archived on 2026-11-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
teater-neuf/wp-content/themes/neuf-old-style/eventmeta.php
T
2012-06-20 19:25:26 +02:00

21 lines
1.2 KiB
PHP
Executable File

<div class="entry-meta">
<?php
$post->neuf_event_venue = get_post_meta(get_the_id(), '_neuf_events_venue',true);
$ticket = get_post_meta(get_the_id(), '_neuf_events_bs_url',true);
if ( 'Annet' != $post->neuf_event_venue ) {
?>
<span class="venue"><?php echo $post->neuf_event_venue; ?></span>
<?php } ?>
<div class="time-price">
<span class="event-date"><?php echo ucfirst( date_i18n( 'l j. F' , get_post_meta(get_the_ID() , '_neuf_events_starttime' , true ) ) ); ?></span>
<span class="meta-prep meta-prep-event-time"><br /><?php _e( 'Kl:' , 'neuf' ); ?></span>
<span class="event-time"><?php echo date_i18n( 'G.i' , get_post_meta( get_the_ID() , '_neuf_events_starttime' , true ) ); ?></span>
<span class="meta-sep meta-sep-event-price"> - </span>
<span class="meta-prep meta-prep-price">CC: </span>
<span class="meta-prep meta-prep-ticket"><?php echo $ticket ? ' <a href="'.$ticket.'">Kjøp billett</a>' : ""; ?></span>
<span class="price"><?php echo ($price = neuf_get_price( $post )) ? $price : "Gratis"; ?></span>
</div> <!-- .time-price -->
</div> <!-- .entry-meta-->