Link event date in event list

This commit is contained in:
Brian Miyaji
2014-04-22 17:48:08 +10:00
parent 489e7177ad
commit c1263797e6

View File

@@ -67,7 +67,7 @@ extract( $defaults, EXTR_SKIP );
echo '<tr class="sp-row sp-post' . ( $i % 2 == 0 ? ' alternate' : '' ) . '">'; echo '<tr class="sp-row sp-post' . ( $i % 2 == 0 ? ' alternate' : '' ) . '">';
echo '<td class="data-date">' . get_post_time( get_option( 'date_format' ), false, $event ) . '</td>'; echo '<td class="data-date"><a href="' . get_permalink( $event->ID ) . '">' . get_post_time( get_option( 'date_format' ), false, $event ) . '</a></td>';
if ( $usecolumns == null || in_array( 'event', $usecolumns ) ) if ( $usecolumns == null || in_array( 'event', $usecolumns ) )
echo '<td class="data-event">' . $event->post_title . '</td>'; echo '<td class="data-event">' . $event->post_title . '</td>';