Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix home page team icon artifacts, team sub-pages

  • Loading branch information...
commit 251a278337cfe04216dc9947c608515def814486 1 parent 948a282
@craigcook craigcook authored
View
2  themes/QMO5/home.php
@@ -22,7 +22,7 @@
<li id="page-<?php echo $post->ID; ?>" class="team">
<a href="<?php the_permalink() ?>" rel="bookmark">
<?php if (function_exists('the_post_thumbnail') && has_post_thumbnail($post->ID) ) : ?>
- <?php echo get_the_post_thumbnail( $post->ID, 'team-icon-small', array('alt' => "", 'title' => "") ); ?>
+ <?php echo get_the_post_thumbnail( $post->ID, 'thumbnail', array('alt' => "", 'title' => "") ); ?>
<?php endif; ?>
<?php the_title(); ?>
</a>
View
17 themes/QMO5/style.css
@@ -163,10 +163,10 @@ legend { color: #2a7e00; font-size: 1.2em; }
#home-head { padding: 0 0 2em; margin-bottom: 2em; background: url("img/squiggle.png") 100% 100% repeat-x; }
#tagline { color: #999; font-size: 2.33em; }
#tagline strong { color: #369; }
-#home-head ul.teams-list { list-style: none; margin: 1em -3% 1em 0; font-size: 1.231em; line-height: 1.2; overflow: hidden; }
-#home-head ul.teams-list li { width: 14%; margin-right: 2.5%; float: left; text-align: center; }
-#home-head ul.teams-list a img { width: 70%; height: auto; text-decoration: none; display: block; margin: 0 auto .5em; }
-#home-head ul.teams-list a:hover img, #home-head ul.teams-list a:focus img, #home-head ul.teams-list a:active img { opacity: .85; }
+#home-head .teams-list { list-style: none; margin: 1em -3% 1em 0; font-size: 1.231em; line-height: 1.2; overflow: hidden; }
+#home-head .teams-list li { width: 14%; margin-right: 2.5%; float: left; text-align: center; }
+#home-head .teams-list a img { opacity: .99; max-width: 80%; text-decoration: none; display: block; margin: 0 auto .5em; }
+#home-head .teams-list a:hover img, #home-head ul.teams-list a:focus img, #home-head ul.teams-list a:active img { opacity: .85; }
#home-head .video_wrap { display: block; width: 640px; max-width: 98%; height: auto; margin: 2em auto 1em; text-align: center; border: 7px solid #eee; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
#home-head .video_wrap video, #home-head .video_wrap object { width: 100%; height: auto; margin: 0 0 -5px; }
@@ -722,12 +722,13 @@ ul.wp-tag-cloud li { display: inline; }
/* @Single @Team @Detail page *********/
.team-page .wp-post-image { float: right; margin: 0 0 1em 30px; padding: 5px; background: #fff; border: 1px solid #eee; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
-#sub-teams .team { padding: 2em 0 0; margin: 0; }
-#sub-teams .section-title { font-size: 1.69em; }
-#sub-teams h2, #sub-teams h3 { font-size: 1.125em; }
+#sub-pages { padding-top: 2em; background: url("img/pencil-line.png") center top repeat-x; }
+#sub-pages .page { padding: 2em 0 0; margin: 0; }
+#sub-pages .section-title { font-size: 1.69em; }
+#sub-pages h2, #sub-pages h3 { font-size: 1.125em; }
/* @Tabbed boxes *********/
-.tabbed-on ul.index { list-style: none; clear: both; margin: 0 0 1.6em; font-family: Verdana, Tahoma, sans-serif; }
+.tabbed-on ul.index { list-style: none; clear: both; margin: 0 0 1.6em; font-family: Verdana, Tahoma, sans-serif; border-bottom: 1px solid #ccc; }
.tabbed-on ul.index li { display: inline; padding-right: 10px; margin-right: 10px; border-right: 1px solid #ccc; color: #369; }
.tabbed-on ul.index li:hover { text-decoration: underline; cursor: pointer; }
.tabbed-on ul.index li:focus { outline: 0; }
View
4 themes/QMO5/template-team-single.php
@@ -26,7 +26,7 @@
<?php $children = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = ".$post->ID." AND post_type = 'page' ORDER BY menu_order", 'OBJECT'); ?>
<?php if ( $children ) : ?>
- <div id="sub-teams" class="tabbed">
+ <div id="sub-pages" <?php if ( sizeof($children) > 1 ) : ?>class="tabbed"<?php endif; ?>>
<?php foreach ( $children as $child ) : setup_postdata( $child ); ?>
<h1 class="section-title"><?php echo $child->post_title; ?></h1>
<div class="entry-content">
@@ -81,7 +81,7 @@
<?php $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0&sort_column=menu_order');
if ($children) : ?>
<div class="widget related_pages">
- <h3 class="widgettitle">Sub-teams</h3>
+ <h3 class="widgettitle">Sub-pages</h3>
<ul class="page-tree">
<?php echo $children; ?>
</ul>
Please sign in to comment.
Something went wrong with that request. Please try again.