<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package Insurer Pro
 */
$footerlayout = of_get_option('footerlayout');
?>

<div id="footer-wrapper">
  <div class="container footer" <?php if($footerlayout=='onecolumnnone'){ ?> style="display:none" <?php } ?> >
    <div class="footer-shadow <?php if($footerlayout=='onecolumn'){ ?>footer-shadow-one <?php } ?>">
      <?php if($footerlayout=='onecolumnnone'){ ?>
      <?php 
            }
             elseif($footerlayout=='onecolumn'){ ?>
      <div class="cols-1">
        <?php if(!dynamic_sidebar('footer-1')) : ?>
        <div class="widget-column-1">
          <div class="footer-navigation">
            <?php wp_nav_menu( array( 'theme_location' => 'footer') ); ?>
          </div>
        </div>
        <?php endif; ?>
        <div class="clear"></div>
      </div>
      <?php 
            }
             elseif ($footerlayout=='twocolumn'){ ?>
      
      <!-- =============================== Column Two - 2 =================================== -->
      
      <div class="cols-2">
        <?php if(!dynamic_sidebar('footer-1')) : ?>
        <div class="widget-column-1">
          <?php if( of_get_option('abouttitle') != '') { ?>
          <h5 class="footer-highlight">
            <?php if( of_get_option('abouttitle') != ''){ echo of_get_option('abouttitle');}; ?>
          </h5>
          <?php } ?>
          <?php if( of_get_option('aboutusdescription') != '') { echo do_shortcode(of_get_option('aboutusdescription')); } ; ?>
          <?php if( of_get_option('clientlogos') != '') { echo do_shortcode(of_get_option('clientlogos')); } ; ?>
        </div>
        <?php  endif; ?>
        <?php if(!dynamic_sidebar('footer-2')) : ?>
        <div class="widget-column-2">
          <?php if( of_get_option('contacttitle',true) != ''){ ?>
          <h5><?php echo of_get_option('contacttitle'); ?></h5>
          <?php } ?>
           <div class="contactdetail">
            <?php if( of_get_option('address',true) != ''){ ?>
            <p class="address-info"><?php echo of_get_option('address'); ?>
            <div class="clear"></div>
            </p>
            <?php } ?>
            <?php if( of_get_option('phone',true) != ''){ ?>
            <p><span>Phone:</span> <a href="tel:<?php echo of_get_option('phone'); ?>"><?php echo of_get_option('phone'); ?></a>
            <div class="clear"></div>
            </p>
            <?php } ?>
            <?php if( of_get_option('email',true) != ''){ ?>
            <p><span>E-mail:</span> <a href="mailto:<?php echo of_get_option('email'); ?>"><?php echo of_get_option('email'); ?></a>
            <div class="clear"></div>
            </p>
            <?php } ?>
            <?php if( of_get_option('website',true) != ''){ ?>
            <p><span>Website:</span> <?php echo of_get_option('website'); ?>
            <div class="clear"></div>
            </p>
            <?php } ?>
          </div>
          <?php if( of_get_option('footersocialicon') != '') { echo do_shortcode(of_get_option('footersocialicon')); } ; ?>
        </div>
        <?php endif; ?>
        <div class="clear"></div>
      </div>
      <!--end .cols-2-->
      <?php 
            }
            elseif($footerlayout=='threecolumn'){ ?>
      
      <!-- =============================== Column Three - 3 =================================== -->
      <div class="cols-3">
        <?php if(!dynamic_sidebar('footer-1')) : ?>
        <div class="widget-column-1">
          <?php if( of_get_option('abouttitle') != '') { ?>
          <h5 class="footer-highlight">
            <?php if( of_get_option('abouttitle') != ''){ echo of_get_option('abouttitle');}; ?>
          </h5>
          <?php } ?>
          <?php if( of_get_option('aboutusdescription') != '') { echo do_shortcode(of_get_option('aboutusdescription')); } ; ?>
          <?php if( of_get_option('clientlogos') != '') { echo do_shortcode(of_get_option('clientlogos')); } ; ?>
        </div>
        <?php  endif; ?>
        <?php if(!dynamic_sidebar('footer-2')) : ?>
        <div class="widget-column-2">
          <h5>
            <?php if( of_get_option('footermenutitle') != ''){ echo of_get_option('footermenutitle');}; ?>
          </h5>
          <?php wp_nav_menu( array( 'theme_location' => 'footer') ); ?>
          <div class="clear"></div>
        </div>
        <?php endif; ?>
        <?php if(!dynamic_sidebar('footer-3')) : ?>
        <div class="widget-column-3">
          <?php if( of_get_option('contacttitle',true) != ''){ ?>
          <h5><?php echo of_get_option('contacttitle'); ?></h5>
          <?php } ?>
           <div class="contactdetail">
            <?php if( of_get_option('address',true) != ''){ ?>
            <p class="address-info"><?php echo of_get_option('address'); ?>
            <div class="clear"></div>
            </p>
            <?php } ?>
            <?php if( of_get_option('phone',true) != ''){ ?>
            <p><span>Phone:</span> <a href="tel:<?php echo of_get_option('phone'); ?>"><?php echo of_get_option('phone'); ?></a>
            <div class="clear"></div>
            </p>
            <?php } ?>
            <?php if( of_get_option('email',true) != ''){ ?>
            <p><span>E-mail:</span> <a href="mailto:<?php echo of_get_option('email'); ?>"><?php echo of_get_option('email'); ?></a>
            <div class="clear"></div>
            </p>
            <?php } ?>
            <?php if( of_get_option('website',true) != ''){ ?>
            <p><span>Website:</span> <?php echo of_get_option('website'); ?>
            <div class="clear"></div>
            </p>
            <?php } ?>
          </div>
          <?php if( of_get_option('footersocialicon') != '') { echo do_shortcode(of_get_option('footersocialicon')); } ; ?>
        </div>
        <?php endif; ?>
        <div class="clear"></div>
      </div>
      <!--end .cols-3-->
      <?php
            }
            elseif($footerlayout=='fourcolumn'){ ?>
      
      <!-- =============================== Column Fourth - 4 =================================== -->
      
      <div class="cols-4">
        <?php if(!dynamic_sidebar('footer-1')) : ?>
        <div class="widget-column-1">
          <?php if( of_get_option('abouttitle') != '') { ?>
          <h5 class="footer-highlight">
            <?php if( of_get_option('abouttitle') != ''){ echo of_get_option('abouttitle');}; ?>
          </h5>
          <?php } ?>
          <?php if( of_get_option('aboutusdescription') != '') { echo do_shortcode(of_get_option('aboutusdescription')); } ; ?>
        
        <?php if( of_get_option('clientlogos') != '') { echo do_shortcode(of_get_option('clientlogos')); } ; ?>
        
        </div>
        <?php  endif; ?>
        <?php if(!dynamic_sidebar('footer-2')) : ?>
        <div class="widget-column-2">
          <h5>
            <?php if( of_get_option('usefulllinkmenutitle') != ''){ echo of_get_option('usefulllinkmenutitle');}; ?>
          </h5>
          <?php wp_nav_menu( array( 'theme_location' => 'footer2') ); ?>
        </div>
        <?php endif; ?>
        <?php if(!dynamic_sidebar('footer-3')) : ?>
        <div class="widget-column-3">
          <h5>
            <?php if( of_get_option('footermenutitle') != ''){ echo of_get_option('footermenutitle');}; ?>
          </h5>
          <?php wp_nav_menu( array( 'theme_location' => 'footer') ); ?>
        </div>
        <?php endif; ?>
        <?php if(!dynamic_sidebar('footer-4')) : ?>
        <div class="widget-column-4">
          <?php if( of_get_option('contacttitle',true) != ''){ ?>
          <h5><?php echo of_get_option('contacttitle'); ?></h5>
          <?php } ?>
          <div class="contactdetail">
            <?php if( of_get_option('address',true) != ''){ ?>
            <p class="address-info"><?php echo of_get_option('address'); ?>
            <div class="clear"></div>
            </p>
            <?php } ?>
            <?php if( of_get_option('phone',true) != ''){ ?>
            <p><span>Phone:</span> <a href="tel:<?php echo of_get_option('phone'); ?>"><?php echo of_get_option('phone'); ?></a>
            <div class="clear"></div>
            </p>
            <?php } ?>
            <?php if( of_get_option('email',true) != ''){ ?>
            <p><span>E-mail:</span> <a href="mailto:<?php echo of_get_option('email'); ?>"><?php echo of_get_option('email'); ?></a>
            <div class="clear"></div>
            </p>
            <?php } ?>
            <?php if( of_get_option('website',true) != ''){ ?>
            <p><span>Website:</span> <?php echo of_get_option('website'); ?>
            <div class="clear"></div>
            </p>
            <?php } ?>
          </div>
          <?php if( of_get_option('footersocialicon') != '') { echo do_shortcode(of_get_option('footersocialicon')); } ; ?>
        </div>
        <?php endif; ?>
        <div class="clear"></div>
      </div>
      <!--end .cols-4-->
      <?php } ?>
      <div class="clear"></div>
    </div>
    <!--end .footer-shadow--> 
  </div>
  <!--end .container-->
  
  <div class="container">
    <div class="copyright-wrapper">
      <div class="copyright-txt">
        <?php if( of_get_option('copytext',true) != ''){ echo of_get_option('copytext',true); }; ?>
      </div>
      <div class="visalogo">
        <?php if( of_get_option( 'visalogo', true ) != '' ) { ; ?>
            <img src="<?php echo esc_url( of_get_option( 'visalogo', true )); ?>"/ > 
        <?php } ?>
      </div>
      <div class="design-by">
        <?php if( of_get_option('ftlink', true) != ''){echo of_get_option('ftlink',true);}; ?>
      </div>
      <div class="clear"></div>
    </div>
  </div>
</div>
<?php if( of_get_option('backtotop') != '') { echo do_shortcode(of_get_option('backtotop')); } ; ?>

<?php wp_footer(); ?>
</div>
</body></html>