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
studentersamfundet.no/dns2015/loop.php
T
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

25 lines
1.3 KiB
PHP

<?php if( have_posts() ) : while( have_posts() ) : the_post(); ?>
<article <?php neuf_post_class('slim'); ?>>
<div class="entry-start">
<h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php if (get_post_type() == 'event'): ?>
<span class="event-date"><?php echo ucfirst( date_i18n( 'l j. F Y' , (int) $post->neuf_events_starttime ) ); ?></span>
<?php else: ?>
<span class="entry-date"><?php echo( ucfirst( get_the_time( 'l j. F Y' ) ) ); ?></span>
<?php endif; ?>
<span class="vcard author microformat-invisible"><span class="fn"><?php the_author_link(); ?></span></span>
<time class="updated microformat-invisible" datetime="<?php the_modified_date('c'); ?>"><?php the_modified_date(); ?></time>
</div>
<div class="entry-content"><?php the_excerpt(); ?></div> <!-- .entry-content -->
<a href="<?php the_permalink(); ?>" class="entry-image"><?php the_post_thumbnail('six-column'); ?></a>
</article> <!-- .post -->
<?php endwhile; ?>
<?php else: ?>
<section class="index--no-content">
<h3><?php _e('End of the road', 'neuf'); ?></h3>
<p><?php _e('Sorry! Nothing to see here... :-(', 'neuf'); ?></p>
</section>
<?php endif; ?>