Skip to content

Commit

Permalink
Show links to the other days in each day
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Sep 15, 2011
1 parent 5d7a553 commit 6810e23
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
14 changes: 13 additions & 1 deletion loop-archive_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,20 @@
?>

<div id="session-day-<?php echo $day_slugify; ?>" class="session-day">
<?php
$day_title = '';
foreach( $all_sessions as $sd => $ds ) {
$sd_full = date( 'l', strtotime( $sd ) );
$sd_slugify = sanitize_title( $sd_full );
$day_title .= '<a class="day-title';
if ( $sd_slugify == $day_slugify )
$day_title .= ' active';
$day_title .= '" href="#' . $sd_slugify . '">' . $sd_full . '</a>';
}

?>
<a id="<?php echo $day_slugify; ?>"></a>
<h3><?php echo $day_full_name; ?></h3>
<h3><?php echo $day_title; ?></h3>
<div class="day-sessions">
<?php foreach( $days_sessions as $start_time => $posts ): ?>
<div class="session-time-block">
Expand Down
9 changes: 9 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,15 @@ body.archive .session-day h3 {
text-transform: uppercase;
}

body.archive .session-day h3 a {
margin-right: 10px;
color: #C8D1D4;
}

body.archive .session-day h3 a.active {
color: #415463;
}

body.archive .day-sessions .session-time-block {
border-top: 2px dotted #C8D1D4;
padding-top: 10px;
Expand Down

0 comments on commit 6810e23

Please sign in to comment.