Created
January 12, 2016 18:12
-
-
Save lizkaraffa/e219d0beda6fae225c09 to your computer and use it in GitHub Desktop.
Original template file before my changes.
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
<?php $pageOne = get_theme_mod( 'page_one', '2' ); $pageTwo = get_theme_mod( 'page_two', '2' ); $pageThree = get_theme_mod( 'page_three', '2' ); ?> | |
<?php if ( 'false' == ( $pageOne ) || '' != ( $pageOne ) && 'false' == ( $pageTwo ) || '' != ( $pageTwo ) && 'false' == ( $pageThree ) || '' != ( $pageThree ) ) { ?> | |
<!-- BEGIN .row --> | |
<div class="row featured-pages"> | |
<!-- BEGIN .content --> | |
<div class="content"> | |
<!-- BEGIN .sixteen columns --> | |
<div class="sixteen columns"> | |
<!-- BEGIN .postarea full --> | |
<div class="postarea full"> | |
<?php if ( 'false' == ( $pageOne ) || '' != ( $pageOne ) ) { ?> | |
<?php $recent = new WP_Query(array('post_type' => 'page', 'page_id' => get_theme_mod('page_one', '2') ) ); ?> | |
<?php if ($recent->have_posts()) : while($recent->have_posts()) : $recent->the_post(); ?> | |
<?php get_template_part( 'content/page', 'featured' ); ?> | |
<?php endwhile; endif; ?> | |
<?php } ?> | |
<?php if ( 'false' == ( $pageTwo ) || '' != ( $pageTwo ) ) { ?> | |
<?php $recent = new WP_Query(array('post_type' => 'page', 'page_id' => get_theme_mod('page_two', '2') ) ); ?> | |
<?php if ($recent->have_posts()) : while($recent->have_posts()) : $recent->the_post(); ?> | |
<?php get_template_part( 'content/page', 'featured' ); ?> | |
<?php endwhile; endif; ?> | |
<?php } ?> | |
<?php if ( 'false' == ( $pageThree ) || '' != ( $pageThree ) ) { ?> | |
<?php $recent = new WP_Query(array('post_type' => 'page', 'page_id' => get_theme_mod('page_three', '2') ) ); ?> | |
<?php if ($recent->have_posts()) : while($recent->have_posts()) : $recent->the_post(); ?> | |
<?php get_template_part( 'content/page', 'featured' ); ?> | |
<?php endwhile; endif; ?> | |
<?php } ?> | |
<!-- END .postarea full --> | |
</div> | |
<!-- END .sixteen columns --> | |
</div> | |
<!-- END .content --> | |
</div> | |
<!-- END .row --> | |
</div> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment