|
@@ -263,11 +263,16 @@
|
|
<h4><em>Projects</em></h4>
|
|
<h4><em>Projects</em></h4>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="row">
|
|
- <?php query_posts('category_name=studio&showposts=3'); ?>
|
|
|
|
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
|
|
+ <?php $i = 0; $query = new WP_Query(array('category_name' => 'studio', 'posts_per_page' => -1)); while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-sm-4">
|
|
<div class="col-sm-4">
|
|
<div class="studio-thumbnail">
|
|
<div class="studio-thumbnail">
|
|
- <?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'studio'); ?>
|
|
|
|
|
|
+ <?php
|
|
|
|
+ if (has_post_thumbnail()) {
|
|
|
|
+ $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'studio');
|
|
|
|
+ } else {
|
|
|
|
+ $img_url = get_post_meta( get_the_ID(), 'featured_image_url');
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img class="studio-thumb" src="<?php echo $img_url[0];?>" width="100%" alt="<?php the_title(); ?>"/></a>
|
|
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img class="studio-thumb" src="<?php echo $img_url[0];?>" width="100%" alt="<?php the_title(); ?>"/></a>
|
|
</div>
|
|
</div>
|
|
<article class="studio">
|
|
<article class="studio">
|
|
@@ -277,110 +282,11 @@
|
|
</div>
|
|
</div>
|
|
</article>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
- <?php endwhile; ?>
|
|
|
|
- </div>
|
|
|
|
- <div class="row">
|
|
|
|
- <?php query_posts('category_name=studio&offset=3&showposts=3'); ?>
|
|
|
|
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
- <div class="col-sm-4">
|
|
|
|
- <div class="studio-thumbnail">
|
|
|
|
- <?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'studio'); ?>
|
|
|
|
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img class="studio-thumb" src="<?php echo $img_url[0];?>" width="100%" alt="<?php the_title(); ?>"/></a>
|
|
|
|
- </div>
|
|
|
|
- <article class="studio">
|
|
|
|
- <div class="entry-content">
|
|
|
|
- <h4><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
|
|
|
|
- <?php dw_good_excerpt(110); ?>
|
|
|
|
- </div>
|
|
|
|
- </article>
|
|
|
|
- </div>
|
|
|
|
- <?php endwhile; ?>
|
|
|
|
- </div>
|
|
|
|
- <div class="row">
|
|
|
|
- <?php query_posts('category_name=studio&offset=6&showposts=3'); ?>
|
|
|
|
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
- <div class="col-sm-4">
|
|
|
|
- <div class="studio-thumbnail">
|
|
|
|
- <?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'studio'); ?>
|
|
|
|
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img class="studio-thumb" src="<?php echo $img_url[0];?>" width="100%" alt="<?php the_title(); ?>"/></a>
|
|
|
|
- </div>
|
|
|
|
- <article class="studio">
|
|
|
|
- <div class="entry-content">
|
|
|
|
- <h4 class="tight"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
|
|
|
|
- <?php dw_good_excerpt(110); ?>
|
|
|
|
- </div>
|
|
|
|
- </article>
|
|
|
|
- </div>
|
|
|
|
- <?php endwhile; ?>
|
|
|
|
- </div>
|
|
|
|
- <div class="row">
|
|
|
|
- <?php query_posts('category_name=studio&offset=9&showposts=3'); ?>
|
|
|
|
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
- <div class="col-sm-4">
|
|
|
|
- <div class="studio-thumbnail">
|
|
|
|
- <?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'studio'); ?>
|
|
|
|
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img class="studio-thumb" src="<?php echo $img_url[0];?>" width="100%" alt="<?php the_title(); ?>"/></a>
|
|
|
|
- </div>
|
|
|
|
- <article class="studio">
|
|
|
|
- <div class="entry-content">
|
|
|
|
- <h4 class="tight"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
|
|
|
|
- <?php dw_good_excerpt(110); ?>
|
|
|
|
- </div>
|
|
|
|
- </article>
|
|
|
|
- </div>
|
|
|
|
- <?php endwhile; ?>
|
|
|
|
- </div>
|
|
|
|
- <div class="row">
|
|
|
|
- <?php query_posts('category_name=studio&offset=12&showposts=3'); ?>
|
|
|
|
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
- <div class="col-sm-4">
|
|
|
|
- <div class="studio-thumbnail">
|
|
|
|
- <?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'studio'); ?>
|
|
|
|
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img class="studio-thumb" src="<?php echo $img_url[0];?>" width="100%" alt="<?php the_title(); ?>"/></a>
|
|
|
|
- </div>
|
|
|
|
- <article class="studio">
|
|
|
|
- <div class="entry-content">
|
|
|
|
- <h4 class="tight"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
|
|
|
|
- <?php dw_good_excerpt(110); ?>
|
|
|
|
- </div>
|
|
|
|
- </article>
|
|
|
|
- </div>
|
|
|
|
- <?php endwhile; ?>
|
|
|
|
- </div>
|
|
|
|
- <div class="row">
|
|
|
|
- <?php query_posts('category_name=studio&offset=15&showposts=3'); ?>
|
|
|
|
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
- <div class="col-sm-4">
|
|
|
|
- <div class="studio-thumbnail">
|
|
|
|
- <?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'studio'); ?>
|
|
|
|
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img class="studio-thumb" src="<?php echo $img_url[0];?>" width="100%" alt="<?php the_title(); ?>"/></a>
|
|
|
|
- </div>
|
|
|
|
- <article class="studio">
|
|
|
|
- <div class="entry-content">
|
|
|
|
- <h4 class="tight"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
|
|
|
|
- <?php dw_good_excerpt(110); ?>
|
|
|
|
- </div>
|
|
|
|
- </article>
|
|
|
|
- </div>
|
|
|
|
- <?php endwhile; ?>
|
|
|
|
- </div>
|
|
|
|
- <div class="row">
|
|
|
|
- <?php query_posts('category_name=studio&offset=18&showposts=3'); ?>
|
|
|
|
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
- <div class="col-sm-4">
|
|
|
|
- <div class="studio-thumbnail">
|
|
|
|
- <?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'studio'); ?>
|
|
|
|
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><img class="studio-thumb" src="<?php echo $img_url[0];?>" width="100%" alt="<?php the_title(); ?>"/></a>
|
|
|
|
- </div>
|
|
|
|
- <article class="studio">
|
|
|
|
- <div class="entry-content">
|
|
|
|
- <h4 class="tight"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
|
|
|
|
- <?php dw_good_excerpt(110); ?>
|
|
|
|
- </div>
|
|
|
|
- </article>
|
|
|
|
- </div>
|
|
|
|
- <?php endwhile; ?>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
|
|
+ <?php if((++$i % 3) == 0): ?>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="row">
|
|
|
|
+ <?php endif; ?>
|
|
|
|
+ <?php endwhile; $i++;?>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<?php get_footer('home'); ?>
|
|
<?php get_footer('home'); ?>
|