Permalink
Browse files

Clean up the single session page

  • Loading branch information...
1 parent c393f8f commit c01e9456707b668bd9126f6785ebe7e1f0090eb1 @danielbachhuber danielbachhuber committed Sep 23, 2011
Showing with 28 additions and 26 deletions.
  1. +1 −1 home.php
  2. +5 −3 loop-single.php
  3. +3 −3 single.php
  4. +19 −19 style.css
View
@@ -218,7 +218,7 @@
$results_str = implode( ', ', $post_ids );
$query = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE ID in(%s);", $results_str );
$associated_posts = $wpdb->get_results( $query );
- $sessions_text = '<div class="entry-meta align-right"><span class="entry-session">Session &rarr; ';
+ $sessions_text = '<div class="entry-meta align-right"><span class="entry-session">&rarr; ';
foreach( $associated_posts as $associated_post ) {
$sessions_text .= '<a href="' . get_permalink( $associated_post->ID ) . '">' . get_the_title( $associated_post->ID ) . '</a>, ';
}
View
@@ -9,12 +9,12 @@
);
$sessions = new WP_Query( $args );
if ( $sessions->have_posts() ) {
- $sessions_text = '<span class="entry-session">Session: ';
+ $sessions_text = '<div class="entry-meta align-right"><span class="entry-session">&rarr; ';
while ( $sessions->have_posts() ) {
$sessions->the_post();
$sessions_text .= '<a href="' . get_permalink() . '">' . get_the_title() . '</a>, ';
}
- $sessions_text = rtrim( $sessions_text, ', ' ) . '</span>';
+ $sessions_text = rtrim( $sessions_text, ', ' ) . '</span></div>';
}
}
?>
@@ -43,7 +43,9 @@
<?php if ( !in_array( $post_format, array( 'gallery', 'standard' ) ) ): ?>
<div class="entry-meta"><span class="entry-author">By <?php ona11_author_posts_link(); ?></span> &mdash; <a href="<?php the_permalink(); ?>"><?php echo ucfirst( $post_format ); ?></a> &mdash; <span class="entry-timestamp"><?php ona11_timestamp(); ?></span>
</div>
- <?php endif; ?>
+ <?php endif; ?>
+
+ <div class="clear-left"></div>
<?php if ( function_exists( 'get_coauthors' ) && in_array( $post_format, array( 'gallery', 'standard' ) ) ): ?>
<div class="entry-bios">
View
@@ -10,9 +10,9 @@
<?php get_template_part( 'loop', 'single' ); ?>
- <div id="nav-below" class="navigation">
- <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
- <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
+ <div id="nav-below" class="navigation align-center">
+ <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> Previous' ) ?></span>
+ <span class="nav-next"><?php next_post_link( '%link', 'Next <span class="meta-nav">&raquo;</span>' ) ?></span>
</div>
<?php comments_template(); ?>
View
@@ -741,6 +741,12 @@ body.single .post .entry-bios {
margin-bottom: 15px;
}
+body.single-post .content .post,
+body.single-post .content #nav-below,
+body.single-post .content #comments {
+ margin-right: 15px;
+}
+
body.single .post .entry-bios .avatar {
float: left;
margin-right: 15px;
@@ -809,6 +815,10 @@ body.single .session-updates .post.format-gallery .gallery-item .gallery-caption
display: none;
}
+body.single-post .post.format-gallery .gallery-item .gallery-caption {
+ display: none;
+}
+
body.single .session-updates .post a img.wp-post-image {
margin-left: 10px;
margin-top: 10px;
@@ -1203,38 +1213,28 @@ div#nav-above {
div#nav-below {
-
- margin-top:1em;
+ margin-top: 15px;
+ margin-bottom: 15px;
}
div#nav-images {
-height:150px;
-margin:1em 0;
+ height:150px;
+ margin:1em 0;
}
-div.navigation div.nav-previous {
-float:left;
-text-align:left;
-width:300px;
-margin:20px 0 20px 0;
-font-size:14px;
+div.navigation span.nav-previous {
+ width:300px;
+ font-size:14px;
}
-div.navigation div.nav-next {
- float:right;
- text-align:right;
+div.navigation span.nav-next {
width:300px;
+ margin-left: 300px;
margin:20px 0 20px 0;
font-size:14px;
}
-/*
-div.primary-navigation ul li,div.gallery dl,div.navigation div.nav-previous {
-float:left;
-}
-*/
-
input#author,input#email,input#url {
width:50%;
}

0 comments on commit c01e945

Please sign in to comment.