<?php
$gallerysObj =  new  gallerys();
$searchStr = " gallery_status = '1' AND on_client_logo='1'";
$gallerysDetails = $gallerysObj->getAllRecords('*',$searchStr," ORDER BY gallery_order ","");

$pages = $pagesObj->getAllRecords("*"," page_status = '1' AND on_footer = '1' "," ORDER BY page_order",""); 

$newsObj = new news();
$newsList = $newsObj->getAllRecords("*"," news_status = '1'"," ORDER BY news_date DESC");

?>
<section class="ticker-content ticker">
    <div class="content5">
      <div class="container5">
        <div class="marquee">
        <?php if($gallerysDetails && count($gallerysDetails) > 0 ){ $caOrder =1;  ?>
                <ul class="marquee-content-items">
                    <?php foreach ($gallerysDetails as $gallerys){  ?>
                    <?php if($gallerys->gallery_banner!='' && file_exists(DIR_UPLOAD_BANNER.$gallerys->gallery_banner)) {?>
                <li><img src="<?php echo DIR_UPLOAD_BANNER_SHOW.$gallerys->gallery_banner ?>" /></li>
                <?php } ?>
            <?php } ?> 
            </ul>
		<?php } ?>
          
        </div>
      </div>
      <footer> 
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> 
        <script type="text/javascript" src="js/marquee.js"></script> 
        <script>
					$(function (){

						createMarquee({
							duration:30000,
						});

						//example of overwriting defaults: 
						
						// createMarquee({
						// 		duration:30000, 
						// 		padding:20, 
						// 		marquee_class:'.example-marquee', 
						// 		container_class: '.example-container', 
						// 		sibling_class: '.example-sibling', 
						// 		hover: false});
						// });
					});

				</script> 
      </footer>
    </div>
  </section>

<footer class="content footer-outer">
  <div class="col-lg-12 col-md-12 col-xs-12 ">
    <div class="container-fluid">
      <div class="row">
        <div class="col-lg-4 col-md-4 col-xs-12 footer-left ">
          <div class="footer-title" align="center">NEWSLETTER</div>
          <div class="footer-content">Subscribe to our Newsletter to be updated, we promise not to spam.</div>
          <div class="subscribe">
            <form class="" method="post" name="subscribe" id="eSubscribe" action="<?php echo SITE_URL.'form-submission.php'?>">
              <input type="email" name="email" id="emailSub" placeholder="Email Address *" required="required" style="background:#313131; border:1px solid #ccc; width:60%; outline:#CCC !important;  " >
              <input type="hidden" name="action_sub" value="email_sub" />
              <button type="submit" class="footer-submit"> Submit </button>
            </form>
          </div>
        </div>
        <div class="col-lg-4 col-md-4 col-xs-12 footer-middle ">
          <div align="center"><img src="images/logo.png" width="217" height="90" /></div>
          <div  class="welcome-note-writeup" style="text-align:center; padding-top:40px; padding-bottom:40px;"><?php echo FOOTER_TEXT ?></div>
          <div align="center">
              <a href="#" style="color:#333; "><i class="fa fa-facebook" style="padding-right:20px;"></i></a>
              <a href="#" style="color:#333; "><i class="fa fa-twitter" style="padding-right:20px;"></i> </a>
              <a href="#" style="color:#333;"><i class="fa fa-instagram" style="padding-right:20px;"></i></a>
              <a href="#" style="color:#333; "><i class="fa fa-linkedin" style="padding-right:20px;"></i></a>
              <a href="#" style="color:#333; "><i class="fa fa-youtube" style="padding-right:20px;"></i></a>
          </div>
        </div>
        <div class="col-lg-4 col-md-4 col-xs-12 footer-bottom ">
          <div class="footer-title" align="center">NEWS & EVENTS</div>
          <div class="footer-content">
            
            
            
            <?php if($newsList && count($newsList) > 0 ){ $caOrder =1; 
						foreach ($newsList as $news){  ?>
                        <div class="one">
              <div><?php echo $news->news_title;?></div>
              <div class="date-name"><span style="padding-right:20px;"><?php echo date('F d, Y',strtotime($news->news_date));  ?></span> <span><i class="fa fa-user" style="margin-right:5px;"></i><?php echo $news->news_slug;?></span></div>
            </div>
		  <?php } 
         
         } ?>
          </div>
        </div>
      </div>
    </div>
  </div>
</footer>
