summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorYannis Chatzimichos <feedward@gmail.com>2012-07-27 00:46:09 +0200
committerTheo Chatzimichos <tampakrap@gentoo.org>2012-07-27 00:46:09 +0200
commit88fe8bdde817372cd7597a5a857c6aa93dbd4f13 (patch)
tree7bfdae3ba46d36a63bc4a94ff1d853213e279002 /themes
parentAdd some oxygen icons (diff)
downloadblogs-gentoo-88fe8bdde817372cd7597a5a857c6aa93dbd4f13.tar.gz
blogs-gentoo-88fe8bdde817372cd7597a5a857c6aa93dbd4f13.tar.bz2
blogs-gentoo-88fe8bdde817372cd7597a5a857c6aa93dbd4f13.zip
- Put the date in a pretty calendar
- Move author / categories / tags / edit / add comment on top Still WIP Signed-off-by: Yannis Chatzimichos <feedward@gmail.com> Signed-off-by: Theo Chatzimichos <tampakrap@gentoo.org>
Diffstat (limited to 'themes')
-rw-r--r--themes/kde-breathe-tampakrap/functions.php7
-rw-r--r--themes/kde-breathe-tampakrap/loop.php41
-rw-r--r--themes/kde-breathe-tampakrap/style.css33
3 files changed, 57 insertions, 24 deletions
diff --git a/themes/kde-breathe-tampakrap/functions.php b/themes/kde-breathe-tampakrap/functions.php
index f8c2a451..45fad396 100644
--- a/themes/kde-breathe-tampakrap/functions.php
+++ b/themes/kde-breathe-tampakrap/functions.php
@@ -396,12 +396,13 @@ if ( ! function_exists( 'twentyten_posted_on' ) ) :
* @since Twenty Ten 1.0
*/
function twentyten_posted_on() {
- printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
+ printf( __( '<div class="%1$s">%2$s</div><span class="meta-sep"></span> %3$s', 'twentyten' ),
'meta-prep meta-prep-author',
- sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
+ sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><div class="entry-date">%3$s<br /><span style="font-size: 20px">%4$s</span></div></a>',
get_permalink(),
esc_attr( get_the_time() ),
- get_the_date()
+ date('M'),
+ date('j')
),
sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
get_author_posts_url( get_the_author_meta( 'ID' ) ),
diff --git a/themes/kde-breathe-tampakrap/loop.php b/themes/kde-breathe-tampakrap/loop.php
index 27242525..8d103d39 100644
--- a/themes/kde-breathe-tampakrap/loop.php
+++ b/themes/kde-breathe-tampakrap/loop.php
@@ -80,8 +80,8 @@
<div class="entry-content">
<?php if ( post_password_required() ) : ?>
<?php the_content(); ?>
-<?php else : ?>
- <?php
+<?php else : ?>
+ <?php
$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
if ( $images ) :
$total_images = count( $images );
@@ -147,38 +147,37 @@
<div class="entry-meta">
<?php twentyten_posted_on(); ?>
- </div><!-- .entry-meta -->
-
- <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
- <div class="entry-summary">
- <?php the_excerpt(); ?>
- </div><!-- .entry-summary -->
- <?php else : ?>
- <div class="entry-content">
- <?php the_content( __( 'Continue reading', 'twentyten' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
- </div><!-- .entry-content -->
- <?php endif; ?>
-
- <div class="entry-utility">
<?php if ( count( get_the_category() ) ) : ?>
+ <br />
<span class="cat-links">
- <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
+ <?php printf( __( '%2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
</span>
- <span class="meta-sep">|</span>
+ <br />
<?php endif; ?>
<?php
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ):
?>
<span class="tag-links">
- <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
+ <?php printf( __( '%2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
</span>
- <span class="meta-sep">|</span>
+ <br />
<?php endif; ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
- </div><!-- .entry-utility -->
+ </div><!-- .entry-meta -->
+
+ <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
+ <div class="entry-summary">
+ <?php the_excerpt(); ?>
+ </div><!-- .entry-summary -->
+ <?php else : ?>
+ <div class="entry-content">
+ <?php the_content( __( 'Continue reading', 'twentyten' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
+ </div><!-- .entry-content -->
+ <?php endif; ?>
+
</div><!-- plasma-post-center -->
<div class="plasma-left-bottom" ></div>
<div class="plasma-bottom" ></div>
diff --git a/themes/kde-breathe-tampakrap/style.css b/themes/kde-breathe-tampakrap/style.css
index 9aad0f19..c591584f 100644
--- a/themes/kde-breathe-tampakrap/style.css
+++ b/themes/kde-breathe-tampakrap/style.css
@@ -374,6 +374,7 @@ a:hover {
color: #000;
font-weight: bold;
text-decoration: none;
+ text-shadow: 2px 2px 2px #ddd;
}
#site-description {
clear: right;
@@ -1472,3 +1473,35 @@ code {
margin:6px;
padding:2.5px;
}
+
+.entry-date {
+ background-color: white;
+ float: left;
+ background: url(images/calendar.png);
+ width: 50px;
+ text-align: center;
+ line-height: 20px;
+}
+
+.cat-links {
+ background: url('images/mini-category.png');
+ background-repeat: no-repeat;
+ padding-left: 20px;
+}
+.tag-links {
+ background: url('images/mini-tag.png');
+ background-repeat: no-repeat;
+ padding-left: 20px;
+}
+
+.comments-link {
+ background: url('images/mini-comment.png');
+ background-repeat: no-repeat;
+ padding-left: 20px;
+}
+
+.author {
+ background: url('images/mini-user.png');
+ background-repeat: no-repeat;
+ padding-left: 20px;
+}