Skip to content
Browse files

Worked on styling margins and post headings.

  • Loading branch information...
1 parent b24fc69 commit bca5e84fae4fe5c9d6617c1e8e5fed2a44e24f21 Mark P. Lindhout committed Mar 7, 2012
Showing with 43 additions and 147 deletions.
  1. +7 −97 functions.php
  2. +1 −1 loop.php
  3. +35 −49 style.css
View
104 functions.php
@@ -191,10 +191,10 @@ function manifestation_continue_reading_link() {
}
// Change the auto-generated excerpt's cut-off to something more typographically pleasing and usable
-function manifestation_auto_excerpt_more( $more ) {
+function manifestation_custom_auto_excerpt_more( $more ) {
return ' …' . manifestation_continue_reading_link();
}
-add_filter( 'excerpt_more', 'manifestation_auto_excerpt_more' );
+add_filter( 'excerpt_more', 'manifestation_custom_auto_excerpt_more' );
// Add 'read more' link to manual excerpt's ending
function manifestation_custom_excerpt_more( $output ) {
@@ -205,15 +205,11 @@ function manifestation_custom_excerpt_more( $output ) {
}
add_filter( 'get_the_excerpt', 'manifestation_custom_excerpt_more' );
-/***********************************************************************
- GALLERYS
-***********************************************************************/
-
-// Remove WP's gallery CSS.
-function manifestation_remove_gallery_css( $css ) {
- return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );
+function manifestation_custom_content_more_link( $output ) {
+ $output = '';
+ return manifestation_continue_reading_link();
}
-add_filter( 'gallery_style', 'manifestation_remove_gallery_css' );
+add_filter('the_content_more_link', 'manifestation_custom_content_more_link');
/***********************************************************************
COMMENTS
@@ -263,90 +259,4 @@ function manifestation_comment( $comment, $args, $depth ) {
endswitch;
}
-}
-
-function manifestation_remove_recent_comments_style() {
- global $wp_widget_factory;
- remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
-}
-add_action( 'widgets_init', 'manifestation_remove_recent_comments_style' );
-
-if ( ! function_exists( 'manifestation_posted_on' ) ) :
-
- function manifestation_posted_on() {
- printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'manifestation' ),
- 'meta-prep meta-prep-author',
- sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
- get_permalink(),
- esc_attr( get_the_time() ),
- get_the_date()
- ),
- 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' ) ),
- sprintf( esc_attr__( 'View all posts by %s', 'manifestation' ), get_the_author() ),
- get_the_author()
- )
- );
- }
-
-endif;
-
-/***********************************************************************
- POST META
-***********************************************************************/
-
-if ( ! function_exists( 'manifestation_posted_in' ) ) {
-
- function manifestation_posted_in() {
- // Retrieves tag list of current post, separated by commas.
- $tag_list = get_the_tag_list( '', ', ' );
- if ( $tag_list ) {
- $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'manifestation' );
- } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
- $posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'manifestation' );
- } else {
- $posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'manifestation' );
- }
- // Prints the string, replacing the placeholders.
- printf(
- $posted_in,
- get_the_category_list( ', ' ),
- $tag_list,
- get_permalink(),
- the_title_attribute( 'echo=0' )
- );
- }
-}
-
-/***********************************************************************
- POST CLASSES
-***********************************************************************/
-
-// add category nicenames in body and post class
-function manifestation_category_id_class($classes) {
- global $post;
- foreach((get_the_category($post->ID)) as $category) {
- $classes[] = $category->category_nicename;
- }
- return $classes;
-}
-add_filter('post_class', 'manifestation_category_id_class');
-add_filter('body_class', 'manifestation_category_id_class');
-
-/***********************************************************************
- CUSTOM POST TYPES
-***********************************************************************/
-
-// include( TEMPLATEPATH . '/admin/custom-content.php' );
-
-/***********************************************************************
- CUSTOM META BOXES
-***********************************************************************/
-
-// include( TEMPLATEPATH . '/admin/meta-boxes.php' );
-
-/***********************************************************************
- CUSTOM WIDGETS
-***********************************************************************/
-
-// include( TEMPLATEPATH . '/admin/widgets.php' );
+}
View
2 loop.php
@@ -17,7 +17,7 @@
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
- <div class="vcard author"><?php _e('by', 'manifestation'); ?> <span class="fn"><?php the_author(); ?></span></div>
+ <div class="vcard author"><?php _e('by', 'manifestation'); ?> <span class="fn"><?php the_author_link(); ?></span></div>
<?php } else { ?>
<time class="postDate" datetime="<?php the_time('c'); ?>" pubdate><span><?php echo date_i18n('j F Y', get_the_time('U')); ?></span></time>
<h2 class="entry-title">
View
84 style.css
@@ -21,9 +21,9 @@
body {
background: #fff;
- font-size: 15px;
- line-height: 150%;
- font-family: "Gentium Basic", Baskerville, Garamond, Palatino, "Palatino Linotype", "Hoefler Text", "Times New Roman", serif;
+ font-size: 16px;
+ line-height: 160%;
+ font-family: "Gentium Basic", "Baskerville", "Garamond", "Palatino", "Palatino Linotype", "Hoefler Text", "Georgia", "Times New Roman", serif;
font-variant-numeric: oldstyle-nums;
margin: 0 auto;
color: #333;
@@ -48,7 +48,7 @@ a:hover, a:active {
}
pre, code, tt {
- font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
+ font-family: "Monaco", "Bitstream Vera Sans Mono", "Lucida Console", "Terminal", "Andale Mono", monospace;
font-size: 86%;
}
@@ -168,8 +168,7 @@ input[type=submit]:hover, input[type=submit]:focus {
display: block;
}
-/* Dropdown menu
- -------------------------------------------------------------------- */
+/* Dropdown menu */
#mainNav {
margin-top: 1em;
@@ -307,88 +306,86 @@ input[type=submit]:hover, input[type=submit]:focus {
top: -3em;
}
-/* Main Content Body
- -------------------------------------------------------------------*/
+/* Main Content */
#coreContent {
float: left;
width: 100%;
}
-/* Posts
- -------------------------------------------------------------------*/
+/* Posts */
+
+.entry-title {
+ margin: 1.66em 0;
+ float: left;
+ width: 100%;
+}
.postDate {
float: left;
text-align: center;
display: block;
width: 100%;
- top: -3em;
- margin-bottom: 3em;
- font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
- font-size: 85%;
+ margin-bottom: 1em;
+ font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Verdana", "Tahoma", sans-serif;
+ font-size: 80%;
color: #999;
font-weight: normal;
- border-bottom: 1px solid #ddd;
+ border-bottom: 1px solid #DDD;
background: #fff;
}
.postDate span {
- display: inline-block;
+ display: inline;
position: relative;
margin: 0 auto;
padding: 0 .5em;
background: #fff;
- top: .85em;
+ top: 1em;
}
.author {
- position: relative;
- top: 0;
color: #999;
font-weight: normal;
font-style: italic;
border-bottom: none;
+ margin: 1em 0;
}
-.entry-content {
- text-align: left;
-}
-
-.entry-content a:link, .entry-content a:visited {
- text-decoration: underline;
+.author a {
+ color: #666;
}
-.hentry {
+article {
margin-bottom: 2em;
}
-#coreContent .postMeta {
- margin: 2em 0;
+.postMeta {
+ margin: 1.66em 0;
color: #999;
width: 100%;
float: left;
display: block;
}
-#coreContent .postMeta a:link,
-#coreContent .postMeta a:visited {
+.postMeta a:link,
+.postMeta a:visited {
color: #666;
}
-#coreContent .postMeta a:hover,
-#coreContent .postMeta a:active {
+.postMeta a:hover,
+.postMeta a:active {
color: #666;
}
-#coreContent .postMeta .published,
-#coreContent .postMeta .categories,
-#coreContent .postMeta .tags {
+.postMeta .published,
+.postMeta .categories,
+.postMeta .tags {
margin-bottom: .25em;
text-align: left;
}
-#coreContent .postMeta span {
+.postMeta span {
text-transform: uppercase;
}
@@ -507,13 +504,6 @@ input[type=submit]:hover, input[type=submit]:focus {
padding-bottom: 0;
}
-#coreContent .single .postMeta {
- margin: 1em 0 0;
- padding-top: 0;
- padding-bottom: 1em;
- text-align: left;
-}
-
/* Links Page
-------------------------------------------------------------------*/
@@ -998,10 +988,6 @@ ul#recentPosts li {
margin-top: -35px;
}
-.searchresults .postMeta {
- text-align: left;
-}
-
.searchpanel {
border-top: 1px solid #efefef;
border-bottom: 1px solid #efefef;
@@ -1103,7 +1089,7 @@ ul#recentPosts li {
/* Self Clearing Floats
-------------------------------------------------------------------- */
-#siteWrapper:after, .post:after, .commentEntry:after, .commentForm:after, #footer .elsewhere:after, #metaContent .metaExtend:after, #mainNav:after, #mainNav ul:after, #subNav ul:after, #archives ul:after, #coreContent .postMeta:after, #recentPosts li:after, #galleryNav:after, #galleryNav_controls:after {
+#siteWrapper:after, .post:after, .commentEntry:after, .commentForm:after, #footer .elsewhere:after, #metaContent .metaExtend:after, #mainNav:after, #mainNav ul:after, #subNav ul:after, #archives ul:after, .postMeta:after, #recentPosts li:after, #galleryNav:after, #galleryNav_controls:after {
content: ".";
display: block;
height: 0;
@@ -1158,6 +1144,6 @@ ul#recentPosts li {
/* Self Clearing Floats
-------------------------------------------------------------------- */
-.ie #siteWrapper, .ie .post, .ie .postContent, .ie .commentEntry, .ie .commentForm, .ie #footer .elsewhere, .ie #metaContent .metaExtend, .ie #mainNav, .ie #mainNav ul, .ie #archives ul, .ie #coreContent .postMeta, .ie #recentPosts li {
+.ie #siteWrapper, .ie .post, .ie .postContent, .ie .commentEntry, .ie .commentForm, .ie #footer .elsewhere, .ie #metaContent .metaExtend, .ie #mainNav, .ie #mainNav ul, .ie #archives ul, .ie .postMeta, .ie #recentPosts li {
zoom: 1;
}

0 comments on commit bca5e84

Please sign in to comment.
Something went wrong with that request. Please try again.