Created
March 26, 2013 19:49
-
-
Save whyisjake/5248583 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
$id = get_queried_object_id(); | |
$name = get_cat_name( $id ); | |
?> | |
<div class="grey child"> | |
<div class="container"> | |
<div class="row"> | |
<div class="span12"> | |
<?php | |
make_carousel( array( | |
'cat' => $id, | |
'title' => $name . ' On the Blog', | |
'post_type' => 'post' | |
) ); | |
?> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="span12"> | |
<?php | |
make_carousel( array( | |
'cat' => $id, | |
'title' => $name . ' Projects', | |
'post_type' => 'projects' | |
) ); | |
?> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="span12"> | |
<?php | |
make_carousel( array( | |
'cat' => $id, | |
'title' => $name . ' Videos', | |
'post_type' => 'video' | |
) ); | |
?> | |
</div> | |
</div> | |
<?php | |
if ( is_category( array( '157499811', '5094' ) ) ) { ?> | |
<div class="row"> | |
<div class="span12"> | |
<?php | |
make_carousel( array( | |
'cat' => $id, | |
'title' => $name . ' Reviews', | |
'post_type' => 'review' | |
) ); | |
?> | |
</div> | |
</div> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment