<?php
	/**
	 * footer.php
	 * The footer used in Ainex
	 * @author Vu Ngoc Linh
	 * @package Ainex
	 * @since 1.0.0
	*/
  global $ainex;
?>
    <?php if (!is_home() && !is_front_page()): ?>
      <?php if ($ainex['footer_switch_paragraph'] == true): ?>
        <div class="bottom_section">
          <div class="waves_graph2"></div>
            <div class="container">
              <div class="big_text2"><?php echo $ainex['footer_paragraph_title']; ?></div>
            </div>
            <div class="clearfix mar_top3"></div>
        </div>
      <?php endif ?>
    <?php endif ?>

    <div class="footer">
      <?php if( $ainex['footer_switch_widget']== true ){ ?>
        <?php get_template_part('content-parts/footer','widgets' ); ?>
      <?php } ?>

      <?php if ($ainex['footer_switch_client']): ?>
        <div class="footer_sectwo">
          <div class="container">
              <div class="free_scripts">
                <?php if ($ainex['footer_switch_client_left_title']): ?>
                  <h4><?php echo $ainex['footer_left_title']; ?></h4>
                <?php endif ?>

                <?php if (isset($ainex['footer_left_gallery'])): ?>
                  <?php if ($ainex['footer_left_gallery']!=''): ?>
                    <?php $left_gallery = explode(",", $ainex['footer_left_gallery']); ?>
                    <ul>
                      <?php foreach ($left_gallery as $key => $value) { ?>
                        <li><img src="<?php echo wp_get_attachment_url($value); ?>" alt="" /></li>
                      <?php } ?>
                    </ul>
                  <?php endif ?>
                <?php endif ?>
              </div><!-- end free script installs -->
              <div class="payments_list">
                <?php if ($ainex['footer_switch_client_right_title']): ?>
                  <h4><?php echo $ainex['footer_right_title']; ?></h4>
                <?php endif ?>
                <?php if (isset($ainex['footer_right_gallery'])): ?>
                  <?php if ($ainex['footer_right_gallery']): ?>
                    <?php $right_gallery = explode(",", $ainex['footer_right_gallery']); ?>
                    <ul>
                      <?php foreach ($right_gallery as $key => $value) { ?>
                        <li><img src="<?php echo wp_get_attachment_url($value); ?>" alt="" /></li>
                      <?php } ?>
                    </ul>
                  <?php endif ?>
                <?php endif ?>
              </div><!-- end payments accept -->
          </div>
        </div>
      <?php endif ?>
    </div>
    <div class="clearfix"></div>

    <div class="copyright_info">
      <div class="container"> 
        <div class="one_half">
          <?php echo $ainex['copyright_text'] ?>
        </div>

        <?php if( $ainex['footer_switch_social']== true ){ ?>
          <?php get_template_part('content-parts/footer','socials' ); ?>
        <?php } ?>
      </div>
    </div>
    <div class="clearfix"></div>
    <!-- Footer
    ======================================= -->
    <a href="#" class="scrollup">Scroll</a><!-- end scroll to top of the page-->
  </div>
  <?php if(isset($ainex['theme_view_layout'])): ?>
    <?php if ($ainex['theme_view_layout']=='boxed'): ?>
      </div>
    <?php endif; ?>
  <?php else : ?>
    </div>
  <?php endif; ?>
<?php wp_footer(); ?>
</body>
<a title="cmsnulled.com" href="http://cmsnulled.com/" target="_blank">Downloaded From Cms Nulled</a>
</html>