Permalink
Browse files

Update screenshot.png, post meta, responsive structure

  • Loading branch information...
sagarjadhav committed Dec 17, 2013
1 parent 44ed9eb commit a0dc2342b3c57b80b55a7140b60e9e524b8b284e
@@ -4,7 +4,7 @@ $post-meta-styles: true !default;
/* Post Loop */
// ***** Post Container ***** //
.hentry { border-bottom: 1px dotted $border-color; padding-bottom: rem-calc(30); padding-top: $rtp-base-spacing; position: relative; // Removed clear: both;
-
+
&:first-child { padding-top: 0; }
// ***** Sticky Post ***** //
@@ -52,6 +52,10 @@ $post-meta-styles: true !default;
& { color: $gray-light; text-decoration: none; }
&:hover, &:focus { color: $link-hover-color; }
}
+
+ > .rtp-meta-separator {
+ &:first-child { display: none; }
+ }
}
.post-meta-bottom { padding: 1em 0 0;
@@ -76,6 +80,6 @@ $post-meta-styles: true !default;
.rtp-meta-separator { padding: rem-calc(0 2); }
- .post-tags { clear: left; }
+ .post-tags { font-size: inherit; margin-bottom: 0; }
/* End - Post Meta */
}
@@ -1,10 +1,15 @@
-@media only screen and (max-width: 767px) {
+// More Information about Media Queries http://foundation.zurb.com/docs/media-queries.html
+
+// Medium screens
+// max-width 1024px, use when QAing tablet-only issues */
+@media only screen and (max-width: 64em) {
.rtp-nav-container { display: none; }
a.rtp-menu-icon { display: block; }
}
-
-@media only screen and (min-width: 767px) {
+// Large screens
+// min-width 1025px, large screens
+@media only screen and (min-width: 64.063em) {
body { left: auto !important; position: relative !important; right: auto !important; width: auto !important; }
.sidr { display: none !important; right: 0 !important; }
}
@@ -75,8 +75,8 @@ function rtp_default_post_meta ( $placement = 'top' ) {
if ( rtp_has_postmeta ( $position ) ) {
if ( $position == 'l' ) {
echo '<footer class="post-footer">';
- }
- ?>
+ } ?>
+
<div class="clearfix post-meta post-meta-<?php echo $placement; ?>"><?php
if ( 'bottom' == $placement )
rtp_hook_begin_post_meta_bottom();
@@ -89,44 +89,44 @@ function rtp_default_post_meta ( $placement = 'top' ) {
if ( $rtp_post_comments[ 'post_author_' . $position ] ) {
printf ( __ ( '<span class="">By</span> <span class="author">%s</span>', 'rtPanel' ), ( ! $rtp_post_comments[ 'author_link_' . $position ] ? get_the_author() . ( $rtp_post_comments[ 'author_count_' . $position ] ? '(' . get_the_author_posts() . ')' : '' ) : sprintf ( __ ( '<a class="fn" href="%1$s" title="%2$s">%3$s</a>', 'rtPanel' ), get_author_posts_url ( get_the_author_meta ( 'ID' ), get_the_author_meta ( 'user_nicename' ) ), esc_attr ( sprintf ( __ ( 'Posts by %s', 'rtPanel' ), get_the_author() ) ), get_the_author() ) . ( $rtp_post_comments[ 'author_count_' . $position ] ? '(' . get_the_author_posts() . ')' : '' ) ) );
}
-
+
echo ( $rtp_post_comments[ 'post_author_' . $position ] && $rtp_post_comments[ 'post_date_' . $position ] ) ? ' ' : '';
-
+
if ( $rtp_post_comments[ 'post_date_' . $position ] ) {
printf ( __ ( '<span class="rtp-meta-separator">&middot;</span> <time class="published" datetime="%s">%s</time>', 'rtPanel' ), get_the_date ( 'c' ), get_the_time ( $rtp_post_comments[ 'post_date_format_' . $position ] ) );
}
-
}
// Post Categories
echo ( get_the_category_list() && $rtp_post_comments[ 'post_category_' . $position ] ) ? ' <span class="rtp-meta-separator">&middot;</span> ' . get_the_category_list ( ', ' ) . '' : '';
+ // Comment Count
+ rtp_default_comment_count();
+
// Post Tags
- echo ( get_the_tag_list() && $rtp_post_comments[ 'post_tags_' . $position ] ) ? '<span class="post-tags alignleft">' . get_the_tag_list ( __ ( 'Tagged', 'rtPanel' ) . ': <span>', ', ', '</span>' ) . '</span>' : '';
+ echo ( get_the_tag_list() && $rtp_post_comments[ 'post_tags_' . $position ] ) ? '<p class="post-tags">' . get_the_tag_list ( __ ( 'Tagged', 'rtPanel' ) . ': <span>', ', ', '</span>' ) . '</p>' : '';
// Post Custom Taxonomies
$args = array( '_builtin' => false );
$taxonomies = get_taxonomies ( $args, 'objects' );
foreach ( $taxonomies as $key => $taxonomy ) {
( get_the_terms ( $post->ID, $key ) && isset ( $rtp_post_comments[ 'post_' . $key . '_' . $position ] ) && $rtp_post_comments[ 'post_' . $key . '_' . $position ] ) ? the_terms ( $post->ID, $key, '<span class="post-custom-tax post-' . $key . '">' . $taxonomy->labels->singular_name . ': ', ', ', '</span>' ) : '';
}
-
- rtp_default_comment_count();
-
+
if ( 'bottom' == $placement )
rtp_hook_end_post_meta_bottom();
else
rtp_hook_end_post_meta_top();
?>
</div><!-- .post-meta --><?php
+
if ( $position == 'l' ) {
echo '</footer>';
}
}
} elseif ( ! rtp_is_bbPress() ) {
- if ( get_edit_post_link() && ( 'top' == $placement ) ) {
- ?>
+ if ( get_edit_post_link() && ( 'top' == $placement ) ) { ?>
<div class="post-meta post-meta-top"><?php rtp_hook_end_post_meta_top(); ?></div><?php
}
}
View
BIN screenshot.png 100755 → 100644
Binary file not shown.
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit a0dc234

Please sign in to comment.