Example #1
0
// Template Name: Home
?>

<?php 
while (have_posts()) {
    the_post();
    $home = get_field('home');
    $home = $home[0];
    ?>

  <?php 
    if (!empty($home)) {
        ?>
    <section class="block">
      <div class="readable">
        <?php 
        echo $home['content'];
        ?>
      </div>
      <?php 
        majestic_gallery($home['gallery'], $home['grid_layout']);
        ?>
    </section>

  <?php 
    }
    ?>

<?php 
}
Example #2
0
        ?>
    </div>
    <?php 
        majestic_gallery($the_space['gallery'], $the_space['grid_layout'], 'gallery-the-sapce');
        ?>
  </section>
<?php 
    }
    ?>

<?php 
    // Events
    if (!empty($events)) {
        ?>
  <section id="events" class="events-section block">
    <div class="readable">
      <h2 class="section-heading"><span>Events</span></h2>
      <?php 
        echo $events['content'];
        ?>
    </div>
    <?php 
        majestic_gallery($events['gallery'], $events['grid_layout'], 'gallery-events');
        ?>
  </section>
<?php 
    }
    ?>

<?php 
}
Example #3
0
        if ($about['content']) {
            ?>
          <?php 
            echo $about['content'];
            ?>
        <?php 
        }
        ?>
        <div class="npl--bird-logo">
          <?php 
        svg_sprite('npl');
        ?>
        </div>
      </div>
      <?php 
        majestic_gallery($about['gallery'], $about['grid_layout'], 'gallery-about');
        ?>
    </section>
  <?php 
    }
    ?>

  <section id="events" class="events-section block">
    <div class="readable">
      <h2 class="section-heading"><span>Events</span></h2>
    </div>
    <ul class="events-list"></ul>
  </section>

<?php 
}