Example #1
0
function ocp_body_bg()
{
    $layout = get_field('layout', 'option');
    if ($layout !== 'boxed') {
        return;
    }
    ob_start();
    the_background('body_background', true);
    $style = ob_get_contents();
    ob_end_clean();
    echo ' style="' . $style . '"';
}
Example #2
0
?>
" alt="<?php 
the_image('main_image', 'alt');
?>
" class="img-responsive" />
            </div> 
        </div><!--/end row-->
    </div>
    <!--=== End Container Part ===-->

	<?php 
if (have_rows('stats')) {
    ?>
    <!--=== Parallax Counter v4 ===-->
    <div class="parallax-counter-v4 parallaxBg" style="<?php 
    the_background('stats_background');
    ?>
">
        <div class="container content-sm">
            <div class="row">
				<?php 
    while (have_rows('stats')) {
        the_row();
        ?>
                <div class="<?php 
        echo get_col_x(get_field('stats'), 'sm');
        ?>
 md-margin-bottom-50">
                    <i class="fa <?php 
        the_sub_field('icon');
        ?>
Example #3
0
<ul class="location-accordion" data-accordion>
	<li class="location-accordion-navigation">
		<a href="#<?php 
the_slug();
?>
">

			<div class="location-card" style="background-image: url('<?php 
the_background();
?>
');">
				<div class="location-name"><?php 
the_title();
?>
</div>
			</div>
		</a>
		<div id="<?php 
the_slug();
?>
" class="content">
			<p>
                <a href="tel:<?php 
the_phone();
?>
">
                    <i class="mdi mdi-phone"></i> <?php 
the_phone();
?>
                </a>
            </p>