<?php 
//Company Info
$compSetting = comp_settings();
//trace($compSetting);
$compContact = comp_contact();
//trace($compContact);
$compFacts = comp_facts();
//trace($compFacts);
//Address
$city = $location = "";
$state = "";
if (is_array($compContact) && !empty($compContact)) {
  $city = get_db_field_value("wps_cities_list", "city", "WHERE id = '" . $compContact['city'] . "'");
  $state = get_db_field_value("wps_states_list", "name", "WHERE id = '" . $compContact['state'] . "'");
}
if ($state)
  $location .= $state;
if ($city) {
  if ($state)
    $location .= ', ';
  $location .= $city;
}

//Categories
$cat = $this->db->query("SELECT friendly_url, category_name FROM wps_company_categories WHERE companyId = '" . $compContact['customers_id'] . "' AND status = '1'")->result_array();
?>

<section class="webpule_quote">
  <div class="container">
    <div class="row">
      <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="banner-content">
          <?php if(!empty($compFacts['establishment_year'])){?>
          <h4><?php echo $compContact['company_name']; ?> established since <?php echo $compFacts['establishment_year']; ?></h4>
          <?php } ?>
          <div class="banner-contact">
            <span class="call-us"><i class="fa fa-phone"></i>Call Us : <?php echo $this->mem_mobile_no;?></span><span>Or</span>
            <a class="banner-btn" href="javascript:void()" data-toggle="modal" data-target="#myModal">Get a Quote</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- Footer -->
<footer class="web-pulse-india">
  <div class="container">
    <div class="row">
      <div class="col-lg-4 col-md-4 col-sm-6 wow fadeInDown animated" data-wow-delay=".5s">
        <h4>About <span>WPS GROUP</span></h4>
        <p><?php echo char_limiter($compFacts['about_company'], 150); ?></p>
        <a class="read_more" href="<?php echo comp_url(); ?>about-us">Read More</a>
      </div>
      <div class="col-lg-2 col-md-2 col-sm-6  wow fadeInDown animated" data-wow-delay=".3s">
        <h4>Important <span>Links</span></h4>
        <ul class="footer-links">
          <li><a href="<?php echo comp_url(); ?>" title="Home"><i class="fa fa-caret-right"></i> Home</a></li>
          <li><a href="<?php echo comp_url(); ?>about-us" title="Company Profile"><i class="fa fa-caret-right"></i> Company Profile</a></li>
          <li><a href="<?php echo comp_url(); ?>product-listing" title="Our Services"><i class="fa fa-caret-right"></i> Our Products</a></li>
          <li><a href="<?php echo comp_url(); ?>contact-us" title="Contact Us"><i class="fa fa-caret-right"></i> Contact Us</a></li>
          <li><a href="<?php echo comp_url(); ?>photo" title="Gallery"><i class="fa fa-caret-right"></i> Photo Gallery</a></li>
          <li><a href="<?php echo comp_url(); ?>video" title="Gallery"><i class="fa fa-caret-right"></i> Video Gallery</a></li>
          <li><a href="<?php echo comp_url(); ?>blogs" title="Blog"><i class="fa fa-caret-right"></i> Blog</a></li>
          <!--<li><a href="sitemap.php" title="Sitemap"><i class="fa fa-caret-right"></i> Sitemap</a></li>-->
        </ul>
      </div>

      <div class="col-lg-2 col-md-2 col-sm-6 wow fadeInDown animated" data-wow-delay=".4s">
        <?php if(is_array($cat) && !empty($cat)){?>
        <h4>Our <span>Products</span></h4>
        <ul class="footer-links">
          <?php
          foreach ($cat as $catRes) {
            ?>
            <li><a href="<?php echo site_url().$catRes['friendly_url']; ?>" title="<?php echo $catRes['category_name']; ?>"><i class="fa fa-caret-right"></i> <?php echo $catRes['category_name']; ?></a></li>
            <?php
          }
          ?>
        </ul>
        <?php } ?>
      </div>


      <div class="col-lg-4 col-md-4 col-sm-6 wow fadeInDown animated" data-wow-delay=".7s">
        <h4>Know Us <span>More</span></h4>
        <p>
          <strong>Address :</strong> <?php echo $compContact['address'] . ', ' . $compContact['locality']; ?>, <?php echo $state; ?>, <?php echo $city; ?> - <?php echo $compContact['country']; ?><br>
          Mobile : <?php echo $this->mem_mobile_no; ?> <?php echo ($compContact['alt_mobile'] != '' && $compContact['alt_mobile'] != $compContact['mobile_number']) ? ', ' . $compContact['alt_mobile'] : ''; ?><br>

          <?php if(is_array($compSetting)&& !empty($compSetting)){ ?>
          <h4>You can <span>Follow us at:</span></h4>
          <ul class="social-icons">
            <li><a class="facebook" title="Facebook" itemprop="url" target="_blank" href="<?php echo ($compSetting['facebook_link']) ? $compSetting['facebook_link'] : 'javascript:void()'; ?>"><i class="fa fa-facebook"></i></a></li>
            <li><a class="twitter" title="Twitter" itemprop="url" target="_blank" href="<?php echo ($compSetting['twitter_link']) ? $compSetting['twitter_link'] : 'javascript:void()'; ?>"><i class="fa fa-twitter"></i></a></li>
            <li><a class="linkedin" title="Linkedin" itemprop="url" target="_blank" href="<?php echo ($compSetting['linkedin_link']) ? $compSetting['linkedin_link'] : 'javascript:void()'; ?>"><i class="fa fa-linkedin"></i></a></li>
            <li><a class="youtube" title="Youtube" itemprop="url" target="_blank" href="<?php echo ($compSetting['youtube_link']) ? $compSetting['youtube_link'] : 'javascript:void()'; ?>"><i class="fa fa-youtube"></i></a></li>
          </ul>
        <?php } ?>

      </div>
    </div>
  </div>
</footer>

<!-- footer Bottom  -->
<div class="wps_copy">
  <div class="container">
    <div class="row">
      <div class="col-lg-5 col-md-4">© <?php echo date('Y'); ?> WPS Group. All Rights Reserved.</div>
      <div class="col-lg-7 col-md-8 text-right">Free Member @ NTI Crafted with <i class="fa fa-heart"></i> by Webpulse - <a href="https://www.webpulseindia.com/web-designing" target="_blank" title="Web Designing" style="display:inline;font-size:13px">Web Designing,</a> <a href="https://www.webpulseindia.com/digital-marketing" target="_blank" title="Digital Marketing" style="display:inline;font-size:13px">Digital Marketing &</a> <a href="https://www.webpulseindia.com/branding" target="_blank" title="Branding Company" style="display:inline;font-size:13px">Branding Company </a>

      </div>
    </div>
  </div>
</div>
<?php //echo '<pre>'; print_r($this->uri->segments);print_r($this->uri->rsegments); ?>

