Exemplo n.º 1
0
	
							  </div>	
						  	<div class="column-text">
									<h4><a href="<?php 
        echo get_field('column_link');
        ?>
" target="_blank"><?php 
        echo the_title();
        ?>
</a></h4>
									<div class="column-post-date"><?php 
        echo get_the_date('F jS');
        ?>
</div>
									<div class="column-text"><?php 
        echo get_blog_excerpt();
        ?>
<a href="<?php 
        echo get_field('column_link');
        ?>
" target="_blank">Read More</a></div>
						  	</div>
						  </div>							
							
						<?php 
    }
    ?>
						<?php 
    wp_reset_postdata();
    ?>
					<?php 
Exemplo n.º 2
0
function jeff_resources()
{
    ?>
	<div class="row">
		<div class="large-4 columns resource-col recent-cols">
			<h4>Recent Column</h4>
			<div class="inner-column">
				<?php 
    $args = array('post_type' => 'post', 'posts_per_page' => 1);
    $the_query = new WP_Query($args);
    ?>
				<?php 
    if ($the_query->have_posts()) {
        ?>
				<?php 
        while ($the_query->have_posts()) {
            $the_query->the_post();
            ?>
					<div class="blog-post-date"><?php 
            echo get_the_date('l, F jS, Y');
            ?>
</div>
					<hr>				
					<h5><span><a href="<?php 
            echo get_field('column_link');
            ?>
" target="_blank"><?php 
            the_title();
            ?>
</a></span></h5>
					<div class="blog-text"><?php 
            echo get_blog_excerpt();
            ?>
</div>
					<a href="/columns" class="button hide-for-large">See All Columns</a>
					<?php 
        }
        ?>
					<?php 
        wp_reset_postdata();
        ?>
				<?php 
    }
    ?>
			</div>	
		</div>
		<div class="large-4 columns resource-col book-speak">
			<h4>Book Jeff to Speak</h4>	
			<div class="inner-column">
				<img src="<?php 
    echo get_field('book_jeff_image');
    ?>
"/>
				<p><?php 
    echo get_field('book_jeff_text');
    ?>
</p>
				<a href="/contact" class="button hide-for-large">Book Jeff</a>
			</div>		
		</div>
		<div class="large-4 columns resource-col upcoming-events">
			<h4>Upcoming Appearances</h4>			
			<div class="inner-column">

					<?php 
    if (have_rows('upcoming_events', 9)) {
        ?>
					
						<?php 
        while (have_rows('upcoming_events', 9)) {
            the_row();
            // vars
            $event_month = get_sub_field('event_month');
            $event_info = get_sub_field('event_info');
            ?>
					
								<?php 
            if ($event_month) {
                ?>
									<strong><?php 
                echo $event_month;
                ?>
</strong>
								<?php 
            }
            ?>
										
									<?php 
            if (have_rows('event_info')) {
                ?>
									
										<ul class="events">
									
											<?php 
                while (have_rows('event_info')) {
                    the_row();
                    ?>
											
												<?php 
                    echo get_sub_field('event');
                    ?>
												
											<?php 
                }
                ?>
									
										</ul>
									
									<?php 
            }
            ?>
																
					
						<?php 
        }
        ?>
					
					<?php 
    }
    ?>
					
				
				<a href="/speaking" class="button hide-for-large">See Appearances</a>
			</div>
		</div>	
	</div>	
	<div class="row show-for-large">	
		<div class="large-4 columns">
			<a href="/columns" class="button">See All Columns</a>
		</div>			
		<div class="large-4 columns"><a href="/contact" class="button">Book Jeff</a></div>			
		<div class="large-4 columns"><a href="/speaking" class="button">See All Appearances</a></div>					
	</div>
<?php 
}