Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
130 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,10 @@ | |
?> | ||
</div> | ||
|
||
<div id="beta"></div> | ||
<div id="beta"> | ||
<?php get_sidebar(); ?> | ||
</div> | ||
|
||
<?php | ||
get_footer(); | ||
?> | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<section id="recent"> | ||
<h1>ac.recent</h1> | ||
<ul> | ||
<?php | ||
$args = array( 'numberposts' => '5', 'post_status' => 'publish' ); | ||
$posts= wp_get_recent_posts($args); | ||
foreach ($posts as $post): | ||
?> | ||
<li> | ||
<a class="post" href="<?php echo get_permalink($post["ID"]); ?>" title="<?php echo $post["post_title"]; ?>"> | ||
<div class="sidebar-post-title"><?php echo $post["post_title"]; ?></div> | ||
<div class="sidebar-post-metadata"> | ||
<?php echo date('M j', strtotime($post["post_date"])); ?> | ||
<?php | ||
$categories = array(); | ||
foreach (array_slice(get_the_category($post["ID"]), 0, 2) as $cat) { | ||
$categories[] = $cat->cat_name; | ||
} | ||
$category_str = join(', ', $categories); | ||
?> | ||
<span class="sidebar-post-categories"><?php echo $category_str; ?></span> | ||
</div> | ||
</a> | ||
</li> | ||
<?php endforeach; ?> | ||
</ul> | ||
</section> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Sidebar styles. | ||
|
||
@import "config"; | ||
@import "mixins"; | ||
|
||
#beta { | ||
margin-top: 40px; | ||
font-family: $font-default; | ||
|
||
h1 { | ||
font-size: 22px; | ||
font-weight: normal; | ||
font-family: $font-raleway; | ||
color: $color-ter-dark; | ||
margin-bottom: 10px; | ||
} | ||
|
||
ul { | ||
list-style: none; | ||
} | ||
|
||
li { | ||
padding: 5px 0; | ||
line-height: 18px; | ||
} | ||
} | ||
|
||
#recent { | ||
li { | ||
margin-bottom: 5px; | ||
overflow: hidden; | ||
} | ||
|
||
.post { | ||
&:hover { | ||
color: $color-link + #222; | ||
.sidebar-post-title { | ||
@include box-shadow(0px 2px 3px rgba(150, 176, 201, 0.5)); | ||
} | ||
} | ||
.sidebar-post-title { | ||
font-family: $font-gothic; | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.15); | ||
padding-bottom: 3px; | ||
} | ||
.sidebar-post-metadata { | ||
font-size: 12px; | ||
padding-top: 3px; | ||
color: $color-link + #111; | ||
} | ||
.sidebar-post-categories { | ||
color: #aaa; | ||
float: right; | ||
} | ||
} | ||
} |