Created
May 8, 2013 14:01
-
-
Save kjtolsma/5540633 to your computer and use it in GitHub Desktop.
Standard output for the Pronamic Events widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( have_posts() ) : ?> | |
<?php | |
if ( ! empty( $title ) ) { | |
echo $before_title . $title . $after_title; | |
} | |
?> | |
<ul> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<li> | |
<a href="<?php the_permalink() ?>" title="<?php echo esc_attr( get_the_title() ? get_the_title() : get_the_ID() ); ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a><br /> | |
<?php pronamic_the_start_date(); ?> / <?php pronamic_the_end_date(); ?><br /> | |
</li> | |
<?php endwhile; ?> | |
</ul> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment