Exemplo n.º 1
0
                            </ul>
                        </aside>
                    </div><!-- /column -->

                    <div class="col-xs-12 col-sm-8">
                        <article class="main-article">
                            <?php 
    include "" . $_SERVER["DOCUMENT_ROOT"] . "/wp-content/themes/vbyc-custom/inc/mini-gallery.php";
    ?>
                            <ul class="content-list list-multiple-details list-unstyled">
                            <?php 
    while (have_rows('with_side_nav_row')) {
        the_row();
        $headline = get_sub_field('title');
        $description = get_sub_field('description');
        $anchor_link = convertToLinkable($headline);
        $image_primary = get_sub_field('primary_photo');
        if ($image_primary['sizes']['content-primary']) {
            $image_primary_url = $image_primary['sizes']['content-primary'];
        } else {
            $image_primary_url = $image_primary['url'];
        }
        $image_secondary_1 = get_sub_field('secondary_photos_1');
        if ($image_secondary_1['sizes']['content-secondary']) {
            $image_secondary_1_url = $image_secondary_1['sizes']['content-secondary'];
        } else {
            $image_secondary_1_url = $image_secondary_1['url'];
        }
        $image_secondary_2 = get_sub_field('secondary_photos_2');
        if ($image_secondary_2['sizes']['content-secondary']) {
            $image_secondary_2_url = $image_secondary_2['sizes']['content-secondary'];
Exemplo n.º 2
0
                                    }
                                    // Both dates
                                    $display_dates = $date_start_display.$date_end_display;

                                    // If this is a new group (age group) separate it 
                                    if ($grade_other) {
                                        // Non-regular Session
                                        $group_current = $grade_other;
                                        $group_current_label = $grade_other;

                                    } else {
                                        // Regular Session 
                                        $group_current = $grade_start.'-'.$grade_end;
                                        $group_current_label = 'Grades '.$group_current;
                                    }
                                    $grade_current_link = convertToLinkable($group_current);
                                    
                                    if ($group_current != $group_last) { 
                                            /* Uness it's the very first rgoup on the page, close off the previous group */

                                            if ($group_last) { ?>

                                            </li>
                                        </ul>

                                        <?  } ?>
                                            
                                        <!-- Group <?=$group_current?> -->
                                        <h2 id="grades-<?=$grade_current_link?>" class="h2-alt heading-category"><?=$group_current_label?></h2>
                                        <ul class="content-list list-multiple-details sidenav-anchor-target list-unstyled">
                                            <li class="item">
Exemplo n.º 3
0
        <?php 
if (have_rows('faq_row')) {
    ?>
        <section class="main-content">
            <div class="container"> 
                <div class="row">
                    <div class="col-xs-12 col-md-offset-2 col-md-8">
                        <article class="main-article">
                            <ul class="content-list list-multiple-details list-unstyled">
                                <?php 
    while (have_rows('faq_row')) {
        the_row();
        $question = get_sub_field('question');
        $answer = get_sub_field('answer');
        $anchor_link = convertToLinkable($question);
        ?>
                                <li id="<?php 
        echo $anchor_link;
        ?>
" class="item">                                    
                                    <h2 class="heading"><?php 
        echo $question;
        ?>
</h2>
                                    <?php 
        echo $answer;
        ?>
                                </li>
                                <?php 
    }