Skip to content

Commit

Permalink
Added links and cleaned up - FULL RELASE
Browse files Browse the repository at this point in the history
  • Loading branch information
teamcoltra committed Jun 19, 2012
1 parent c6eb32c commit ca5e4ba
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
43 changes: 43 additions & 0 deletions archives.php
@@ -0,0 +1,43 @@
<?php
/*
Template Name: Archives
*/
?>


<?php get_header(); ?>
<div id="content">
<?php
$debut = 0; //The first article to be displayed
?>

<?php while(have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>

<ul id="archives">
<div class="alignright search"><form role="search" method="get" id="searchform" action="http://excid3.com/blog/">
<div>
<input type="text" value="" name="s" id="s" placeholder="Search Terms">
<input type="submit" id="searchsubmit" value="Search">
</div>
</form></div>

<?php
$myposts = get_posts('numberposts=-1&offset=$debut');
$last_post_date = "";
foreach($myposts as $post) :
$post_date = mysql2date("Y", $post->post_date_gmt);
if ($last_post_date != $post_date) {
$last_post_date = $post_date;
?>
<li class="archive-year"><?php echo $last_post_date?></li>
<?php } ?>

<li><span class="archive-date"><?php the_time('M j') ?></span> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
<?php endwhile; ?>
</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>
1 change: 1 addition & 0 deletions header.php
Expand Up @@ -29,4 +29,5 @@
<a href="<?php echo get_option('home'); ?>/"><?php echo get_avatar(get_bloginfo( admin_email )); ?></a>
<h2><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h2>
<div class="about"><?php bloginfo('description'); ?></div>
<div class="headlinks"><?php wp_nav_menu( array('menu' => 'headlinks' )); ?></div>
</div>
24 changes: 23 additions & 1 deletion style.css
Expand Up @@ -158,4 +158,26 @@ margin-top:-30px !important;
#footer ul li a { margin: 8px 8px 8px 0; }

/*Adding Tumblog Support*/
.post .post-icon a { top: 20px !important; right: -50px !important; }
.post .post-icon a { top: 20px !important; right: -50px !important; }
.headlinks {
padding-top:10px;
text-align:right;
}
.headlinks ul {
margin-left: 0;
padding-left: 0;
display: inline;
}

.headlinks ul li {
margin-left: 0;
margin-bottom: 0;
padding: 2px 15px 5px;
list-style: none;
display: inline;
}
.search {font-size:0.7em; font-weight:200;margin-top: 30px;}
ul#archives {margin:0; padding:0; list-style-type:none;}
ul#archives li {font-size:1.1em; font-weight:200;}
ul#archives li.archive-year {color:#888; border-bottom:1px solid #bbb; font-weight:normal;}
ul#archives span.archive-date {color:#888; display:inline-block; font-size:0.8em; font-weight:normal; margin-right:15px; text-align:right; text-transform:uppercase; width: 60px;}

0 comments on commit ca5e4ba

Please sign in to comment.