From 6da79570b5b57efcce0ff896ad9a4af1fa84fb9d Mon Sep 17 00:00:00 2001 From: Erick Hitter <ehitter@gmail.com> Date: Sun, 21 Jul 2013 16:46:06 -0400 Subject: [PATCH] More spans and better styles --- eth-timeline.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eth-timeline.php b/eth-timeline.php index 5f51ff0..3399b9e 100644 --- a/eth-timeline.php +++ b/eth-timeline.php @@ -386,8 +386,8 @@ class ETH_Timeline { // Info about the item ?> <li class="eth-timeline-item" id="eth-timeline-<?php the_ID(); ?>"> - <span class="date"><?php echo $this->format_date( $times['start'], $year, $month ); ?>–<?php echo $this->format_date( $times['end'], $year, $month, false ); ?>:</span> - <span class="location"><?php the_title(); ?></span> + <span class="eth-timeline-date"><?php echo $this->format_date( $times['start'], $year, $month ); ?>–<?php echo $this->format_date( $times['end'], $year, $month, false ); ?>:</span> + <span class="eth-timeline-location"><?php the_title(); ?></span> <?php $content = get_the_content(); @@ -395,8 +395,9 @@ class ETH_Timeline { if ( ! empty( $content ) ) { $removed = remove_filter( 'the_content', 'wpautop' ); - echo ' <span class="sep">—</span> '; + echo ' <span class="eth-timeline-sep">—</span> <span class="eth-timeline-body">'; the_content(); + echo '</span>'; if ( $removed ) add_filter( 'the_content', 'wpautop' ); -- GitLab