Exemplo n.º 1
0
uf('ban_button_link');
?>
" title="<?php 
strip_tags(uf('ban_button_text'));
?>
" class="anchor button white medium wow fadeInUp"><?php 
uf('ban_button_text');
?>
</a>
        </article>
    </div>
    <!-- //Hero -->

    <!-- Tab navigation -->
    <?php 
$ctas = get_uf_repeater('cta_repeater');
if (!empty($ctas)) {
    if (count($ctas) > 4) {
        $class = 'four';
    } else {
        $class = number_to_words(count($ctas));
    }
    echo '<nav class="tabs ' . $class . '" role="navigation">
            <ul class="wrap">';
    for ($i = 0; $i < (count($ctas) > 4 ? 4 : count($ctas)); $i++) {
        echo '<li><a href="' . $ctas[$i]['cta_link'] . '" title="' . strip_tags($ctas[$i]['cta_text']) . '">
                    <img src="' . $ctas[$i]['cta_image'] . '" alt="" /> ' . $ctas[$i]['cta_text'] . '
                </a></li>';
    }
    echo '</ul>
            </nav>';
Exemplo n.º 2
0
                <h1><?php 
        the_title();
        ?>
</h1>
                <?php 
        the_content();
        ?>
            </div>
        </header>
        <!-- //Intro -->

        <!-- Content -->
        <div class="content crew">
            <!-- Item -->
            <?php 
        $staff = get_uf_repeater('staff_details');
        foreach ($staff as $s) {
            $staff_image = !empty($s['staff_image']) ? $s['staff_image'] : 'http://placehold.it/675x500';
            echo '<article class="one-half item">';
            echo '<figure><img src="' . $staff_image . '" alt="crew" /></figure>';
            echo '<div class="box-white">';
            echo '<h2>' . $s['staff_name'] . '</h2>';
            echo '<span class="sub">' . $s['staff_job_title'] . '</span>';
            echo '<div class="skills">';
            echo $s['staff_introduction'];
            echo '</div>';
            echo '</div>';
            echo '</article>';
        }
        ?>
            <!-- //Item -->