Skip to content

Commit

Permalink
Improve Upcoming markup for better title wrap.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Apr 21, 2016
1 parent b296c4d commit ea9febf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions assets/css/bp-event-organiser.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ ul.bpeo-upcoming-events li {
}

.bpeo-upcoming-event-title {
padding-left: 180px;
}

.bpeo-upcoming-event-title a {
font-weight: bold;
}

Expand Down
7 changes: 4 additions & 3 deletions templates/content-eo-upcoming.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<span class="bpeo-upcoming-event-date"><?php echo date( 'M j, Y', strtotime( $post->StartDate ) ) ?></span> &middot; <span class="bpeo-upcoming-event-time"><?php echo date( 'g:ia', strtotime( $post->StartTime ) ) ?></span>
</div>

<a class="bpeo-upcoming-event-title" href="<?php echo esc_url( apply_filters( 'eventorganiser_calendar_event_link', get_permalink( $post->ID ), $post->ID ) ) ?>"><?php echo esc_html( $post->post_title ) ?></a>

</li>
<div class="bpeo-upcoming-event-title">
<a href="<?php echo esc_url( apply_filters( 'eventorganiser_calendar_event_link', get_permalink( $post->ID ), $post->ID ) ) ?>"><?php echo esc_html( $post->post_title ) ?></a>
</div>
</li>

0 comments on commit ea9febf

Please sign in to comment.