<?php /*template name: Seasonal Offerings Menu*/ get_header(); ?>

<div class="uk-cover-container uk-text-center banner" uk-scrollspy="cls: uk-animation-fade; delay: 300">
    <canvas class="uk-visible@m" width="" height="300"></canvas>
    <canvas class="uk-hidden@m" width="" height="300"></canvas>


    <?php
      $image = get_field('banner_image');
      if( !empty( $image ) ): ?>
          <img uk-img data-src="<?php echo esc_url($image['url']); ?>');" data-width data-height uk-cover>
    <?php endif; ?>



	<div class="uk-position-cover uk-text-center uk-container uk-flex uk-flex-center uk-flex-middle" uk-scrollspy="cls: uk-animation-fade; delay: 500">
        <div>
           <h1 class="white">Seasonal Offerings Menu</h1>
        </div>
    </div>
</div>


<div class="uk-container uk-margin-large-top" uk-scrollspy="cls: uk-animation-fade; delay: 300">
	<main role="main">
		<section>


			<?php if (have_posts()): while (have_posts()) : the_post(); ?>

				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>




          <?php the_content(); ?>

          <a uk-sticky="position: bottom; offset: -20; end: true" class="totop" href="#" uk-totop uk-scroll></a>


								<?php

								// Check rows exists.
								if( have_rows('section') ):

								    // Loop through rows.
								    while( have_rows('section') ) : the_row();?>

                    <div class="menu-title uk-text-center uk-margin-medium-top">
                      <h2 class="green uk-text-center uk-margin-remove"><?php the_sub_field('section_title'); ?></h2>
                    </div>

                    <P class="uk-text-center uk-margin-remove-top uk-margin-medium-bottom"><?php the_sub_field('sub_title'); ?></P>


										<div class="uk-child-width-1-3@m uk-grid-large" uk-grid>
										<?php

										// Check rows exists.
										if( have_rows('menu_item') ):

										    // Loop through rows.
										    while( have_rows('menu_item') ) : the_row();?>
												<div>
													<h6 class="uk-text-center"><?php the_sub_field('name'); ?></h6>

													<P class="uk-text-center"><?php the_sub_field('description'); ?></P>
												</div>

												<?php


										    // End loop.
										    endwhile;

										// No value.
										else :
										    // Do something...
										endif;?>
									</div>

										<?php


								    // End loop.
								    endwhile;

								// No value.
								else :
								    // Do something...
								endif;?>




					<br class="clear">

					<p class="uk-text-right"><?php edit_post_link( __('Edit this page'), '', '', 0, 'post-edit-link uk-text-large uk-padding-small uk-button-large uk-button uk-button-primary' ); ?></p>

				</article>

			<?php endwhile; ?><?php endif; ?>

		</section>
	</main>
</div>


<?php include 'order-online.php';?>

<div class="uk-container uk-container-large">

	<div class="uk-margin-auto uk-width-2-5@m uk-text-center">
		<h1 class="brown uk-text-center">Thirsty? Take a look at our Specialty Drink Menu</h1>
		<P>At Bread Co., our specialty drinks are more than just refreshments; they are a masterpiece in every cup.</P>

		<a href="<?php echo home_url(); ?>/specialty-drinks/" class="brown-btn">Specialty Drinks Menu</a>

	</div>



	  <h3 class="tan uk-margin-large-top uk-text-center uk-margin-remove-bottom">great food and baked goods</h3>
	  <h1 class="green uk-text-center uk-margin-remove-top uk-margin-large-bottom">Discover Our Locations</h1>

	  <?php include 'location-maps.php';?>

</div>


<div class="lunch-banner uk-padding-large uk-padding-remove-horizontal uk-margin-xlarge-top uk-margin-xlarge-bottom">
  <div class="uk-container ">
    <div class="uk-child-width-1-2@m" uk-grid>
      <div>
        <h3 class="gold uk-margin-remove-bottom">bakery cafe</h3>
        <h1 class="white uk-margin-remove">Delight in Our Delectable Breakfasts and Lunches</h1>

      </div>
      <div>
        <h4 class="white uk-text-center uk-margin-medium-bottom">Whether you're starting your day with a hearty breakfast or savoring a delicious lunch, here's what sets our offerings apart:</h4>
        <div class="uk-text-center">
          <a href="<?php echo home_url(); ?>/breakfast-lunch-menu" class="white-btn">Breakfast &amp; Lunch Menu</a>
        </div>
      </div>
    </div>
  </div>
</div>


<div class="uk-container uk-container-large">
  <div class="uk-child-width-1-2@m uk-grid-large uk-flex uk-flex-middle" uk-grid>
    <div>
      <h3 class="tan uk-margin-remove">bonuses</h3>
      <h1 class="brown uk-margin-remove-top">Join the Bread Co. Rewards Program</h1>
      <P class="uk-text-justify">Get ready to enjoy exclusive rewards with the Bread Co. loyalty program with Get in the Loop! Earn points, unlock bonuses, and savour complimentary treats as a token of our appreciation for your loyalty. Join today and experience the perks of being a valued Bread Co. customer.</P>
    </div>
    <div>
      <img uk-img data-src="<?php echo get_template_directory_uri(); ?>/images/get-in-the-loop-logo.svg">

    </div>
  </div>

  <div class="uk-text-center">
    <a href="https://getintheloop.ca/" target="_BLANK"  class="brown-btn uk-margin-medium-top">Signup for Rewards</a>
  </div>

</div>

<?php get_footer(); ?>
