
  <!-- Start main-content -->
  <div class="main-content">

    <!-- Section: inner-header -->
    <section class="inner-header divider parallax layer-overlay overlay-dark-5" data-stellar-background-ratio="0.5" data-bg-img="images/bg/bg1.jpg">
      <div class="container pt-10 pb-10">
        <!-- Section Content -->
        <div class="section-content">
          <div class="row"> 
            <div class="col-md-12">
              <h3 class="title text-white"><?php echo $page_title->menu_name_events; ?></h3>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- Section: Causes -->
    <section>
      <div class="container">
        <div class="row mtli-row-clearfix">
          <?php if($all_event): 
            foreach ($all_event as $event):?>
            <div class="col-xs-12 col-sm-6 col-md-4">
              <article class="post clearfix mb-30 bg-lighter">
                <div class="entry-header">
                  <div class="post-thumb thumb"> 
                    <img src="<?php echo base_url(); ?><?php echo $event->page_event_image ?>" alt="<?php echo $event->page_event_title ?>" class="img-responsive img-fullwidth"> 
                  </div>
                </div>
                <div class="entry-content p-20 pr-10">
                  <div class="entry-meta media mt-0 no-bg no-border">
                    <div class="entry-date media-left text-center flip bg-theme-colored pt-5 pr-15 pb-5 pl-15">
                      <ul>
                        <li class="font-16 text-white font-weight-600 border-bottom"><?php echo date('d', strtotime($event->page_event_date_time)); ?></li>
                        <li class="font-12 text-white text-uppercase"><?php echo date('M', strtotime($event->page_event_date_time)); ?></li>
                      </ul>
                    </div>
                    <div class="media-body pl-15">
                      <div class="event-content pull-left flip">
                        <h4 class="entry-title text-white text-uppercase m-0 mt-5"><a href="<?php echo base_url(); ?>/event-details/<?php echo $event->page_event_slug; ?>"><?php echo mb_strimwidth($event->page_event_title, 0, 50, "..."); ?></a></h4>
                        <span class="mb-10 text-gray-darkgray mr-10 font-13"><i class="fa fa-clock-o  mr-5 text-theme-colored"></i> at <?php echo date('h:i A', strtotime($event->page_event_date_time)); ?></span>                       
                        <span class="mb-10 text-gray-darkgray mr-10 font-13"><i class="fa fa-map-marker mr-5 text-theme-colored"></i> <?php echo $event->page_event_location; ?></span>                       
                      </div>
                    </div>
                  </div>
                  <p class="mt-10"><?php echo mb_strimwidth($event->page_event_short_description, 0, 100, "..."); ?></p>
                  <a href="<?php echo base_url(); ?>/event-details/<?php echo $event->page_event_slug; ?>" class="btn-read-more"><?php echo read_more(); ?></a>
                  <div class="clearfix"></div>
                </div>
              </article>
            </div>
          <?php endforeach;
          else: ?>
            <div class="col-xs-12 col-sm-12 col-md-12 text-center">
              <h3><?php echo update_soon(); ?></h3>
            </div>
          <?php endif; ?>
        </div>
      </div>
    </section>

  </div>
  <!-- end main-content -->