Permalink
Browse files

Fixing

  • Loading branch information...
1 parent b7a8d86 commit 26d3c99592f750c0c19210ef3a555240f7908801 @BeamerCola committed Jan 17, 2012
Showing with 138 additions and 28 deletions.
  1. +42 −1 css/style.scss
  2. +69 −27 style.css
  3. +27 −0 taxonomy-bc_leaderboard.php
View
@@ -416,6 +416,46 @@ ul.leaderboard {
}
}
+ul.category-leaderboard {
+ @include no-list;
+ li {
+ @include grid($grid_3);
+ margin-bottom: 1em;
+ width: 200px;
+ a.image {
+ display: block;
+ height: 150px;
+ overflow: hidden;
+ width: 200px;
+
+
+ background-color: #fff;
+ margin: .5em 0 .75em 0;
+ @include rounded(5px);
+ @include glow(#EFE9D8, 5px, 0);
+ &:hover {
+ @include glow(#ccc, 5px, 0);
+ }
+ img {
+ width: 200px;
+ }
+ }
+ h2 {
+ font-size: 12px;
+ }
+ h3 {
+ color: #B0AEA7;
+ font-size: 12px;
+ }
+ &:nth-child(3n) {
+ clear: right;
+ }
+ &:nth-child(3n+1) {
+ clear: left;
+ }
+ }
+}
+
@mixin box {
@include rounded(5px);
@@ -646,7 +686,8 @@ div#content {
}
}
-.leaderboard {
+div.leaderboard {
+ width: 450px;
.reviews {
.bc_review {
border-top: 1px solid #ddd;
View
@@ -816,6 +816,46 @@ ul.leaderboard {
list-style-type: none !important;
list-style-image: none !important; }
+ul.category-leaderboard {
+ list-style-type: none;
+ margin: 0;
+ padding: 0; }
+ ul.category-leaderboard li {
+ width: 235px;
+ display: inline;
+ float: left;
+ position: relative;
+ margin-left: 10px;
+ margin-right: 10px;
+ margin-bottom: 1em;
+ width: 200px; }
+ ul.category-leaderboard li a.image {
+ display: block;
+ height: 150px;
+ overflow: hidden;
+ width: 200px;
+ background-color: #fff;
+ margin: .5em 0 .75em 0;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ -o-border-radius: 5px;
+ box-shadow: 0px 0 5px #efe9d8;
+ -webkit-box-shadow: 0px 0 5px #efe9d8; }
+ ul.category-leaderboard li a.image:hover {
+ box-shadow: 0px 0 5px #cccccc;
+ -webkit-box-shadow: 0px 0 5px #cccccc; }
+ ul.category-leaderboard li a.image img {
+ width: 200px; }
+ ul.category-leaderboard li h2 {
+ font-size: 12px; }
+ ul.category-leaderboard li h3 {
+ color: #B0AEA7;
+ font-size: 12px; }
+ ul.category-leaderboard li:nth-child(3n) {
+ clear: right; }
+ ul.category-leaderboard li:nth-child(3n+1) {
+ clear: left; }
+
.box {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
@@ -1014,33 +1054,35 @@ div#content .side {
.specs strong {
display: block; }
-.leaderboard .reviews .bc_review {
- border-top: 1px solid #ddd;
- border-bottom: 1px solid #fff;
- padding: 1.5em 0; }
- .leaderboard .reviews .bc_review a:hover {
- color: #df5341; }
- .leaderboard .reviews .bc_review h2 {
- margin: 0; }
- .leaderboard .reviews .bc_review h3 {
- color: #df5341;
- font-size: 14px;
- margin: 0;
- padding: 0; }
- .leaderboard .reviews .bc_review img {
- background-color: #fff;
- margin-top: 1em;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- -o-border-radius: 5px;
- box-shadow: 0px 0 5px #cccccc;
- -webkit-box-shadow: 0px 0 5px #cccccc;
- width: 450px; }
- .leaderboard .reviews .bc_review:first-child {
- border-top-width: 0;
- padding-top: 0; }
- .leaderboard .reviews .bc_review:last-of-type {
- border-bottom-width: 0 !important; }
+div.leaderboard {
+ width: 450px; }
+ div.leaderboard .reviews .bc_review {
+ border-top: 1px solid #ddd;
+ border-bottom: 1px solid #fff;
+ padding: 1.5em 0; }
+ div.leaderboard .reviews .bc_review a:hover {
+ color: #df5341; }
+ div.leaderboard .reviews .bc_review h2 {
+ margin: 0; }
+ div.leaderboard .reviews .bc_review h3 {
+ color: #df5341;
+ font-size: 14px;
+ margin: 0;
+ padding: 0; }
+ div.leaderboard .reviews .bc_review img {
+ background-color: #fff;
+ margin-top: 1em;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ -o-border-radius: 5px;
+ box-shadow: 0px 0 5px #cccccc;
+ -webkit-box-shadow: 0px 0 5px #cccccc;
+ width: 450px; }
+ div.leaderboard .reviews .bc_review:first-child {
+ border-top-width: 0;
+ padding-top: 0; }
+ div.leaderboard .reviews .bc_review:last-of-type {
+ border-bottom-width: 0 !important; }
ul.categories {
list-style-type: none;
@@ -1,5 +1,32 @@
<?php get_header(); ?>
+<h1 class="page-title">Leaderboard: <?php single_tag_title() ?></h1>
+
+<ul class="category-leaderboard">
+ <?php while ( have_posts() ): the_post(); ?>
+ <li <?php post_class(); ?>>
+ <?php
+ $attachments = get_posts(array( 'post_type' => 'attachment', 'numberposts' => -1, 'orderby' => 'menu_order', 'order' => 'asc', 'post_status' => null, 'post_parent' => $post->ID ));
+ if(count($attachments) > 0) {
+ $image_attributes = wp_get_attachment_image_src( $attachments[0]->ID, array(450,450)); ?>
+ <a href="<?php echo the_permalink(); ?>" class="image"><img src="<?php echo $image_attributes[0]; ?>" width="200" /></a>
+ <?php } else {
+ echo '<a href="#" class="image"><img src="http://placehold.it/200x150" /></a>';
+ }
+ ?>
+ <a href="<?php echo the_permalink(); ?>">
+ <h2 class="entry-title"><a href="<?php echo the_permalink(); ?>"><?php the_title(); ?></a></h2>
+ <h3><?php echo get_post_meta($post->ID, $prefix.'sub_title', true);?></h3>
+ </a>
+ <div class="entry-content">
+ <?php echo substr(preg_replace("/Last Updated: .* \d{4}/i", "", get_the_excerpt()), 0, 80) . '...'; ?>
+ <a href="<?php echo the_permalink(); ?>">more</a>
+ </div><!-- .entry-content -->
+ </li><!-- #post -->
+ <?php endwhile; // end of the loop. ?>
+</ul>
+
+
<div class="grid_6 leaderboard article alpha">
<h1 class="page-title">Leaderboard: <?php single_tag_title() ?></h1>

0 comments on commit 26d3c99

Please sign in to comment.