View difference between Paste ID: PgdmVzNv and MS6MZQGc
SHOW: | | - or go back to the newest paste.
1
<?php
2-
				
2+
$boxes = $list = '';
3-
            	if( get_field('treatments_featured') )
3+
4-
				{
4+
if( get_field('treatments_featured') )
5-
	 			 ?>
5+
{
6-
                
6+
	$boxes .= '<div class="fivecol">
7-
                <div class="fivecol">
7+
		<div class="treatimg">' . the_post_thumbnail('medium'). '</div><!--Closing treatimg-->
8-
                    <div class="treatimg"><?php the_post_thumbnail('medium'); ?></div><!--Closing treatimg-->
8+
		<span class="treattitle">' . the_title(). '</span>
9-
                    <span class="treattitle"><?php the_title(); ?></span>
9+
	</div><!--CLosing fivecol-->';
10-
                </div><!--CLosing fivecol-->
10+
} else {
11-
                
11+
	$list .= '<li>' . the_title() .'</li>';
12-
				<?php 
12+
}
13-
                } 
13+
14-
                ?>
14+
wp_reset_query();
15-
                           
15+
?>
16-
            </div><!--Closing treatment-->
16+
17-
            
17+
<div class="treatment">
18-
			<?php
18+
<?=$boxes?>
19-
			else
19+
</div><!--Closing treatment-->
20-
			{
20+
21-
			?>
21+
<ul>
22-
            
22+
<?=$list?>
23-
             <ul>
23+
</ul>