<?php
/**
 * The template for displaying the footer
 *
 * Contains footer content and the closing of the #main and #page div elements.
 *
 * @package i-one
 * @since i-one 1.0
 */
$default_copyright = 'Copyright &copy; '.get_bloginfo( 'name' ) ; 
$no_footer = "";
if ( function_exists( 'rwmb_meta' ) ) {
	$no_footer = rwmb_meta('ione_no_footer');
}  
?>

		</div><!-- #main -->
        <div class="tx-footer-filler"></div>
		<footer id="colophon" class="site-footer" role="contentinfo">
        <?php if( $no_footer != 1 ) : ?>
        	<div class="footer-bg clearfix">
                <div class="widget-wrap">
                    <?php get_sidebar( 'main' ); ?>
                </div>
			</div>
        <?php endif; ?>    
			<div class="site-info">
                <div class="copyright">
					<?php echo esc_attr(get_theme_mod('copyright_text', $default_copyright )); ?>
                </div>            
            	<div class="credit-info">
					<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'i-one' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'i-one' ); ?>">
						<?php printf( esc_html( 'Powered by %s', 'i-one' ), 'WordPress' ); ?>
                    </a>
                    <?php esc_html_e( ', Designed and Developed by', 'i-one' ); ?> 
                    <a href="<?php echo esc_url( __( 'http://www.templatesnext.org/', 'i-one' ) ); ?>">
                   		<?php esc_html_e( 'templatesnext', 'i-one' ); ?>
                    </a>
                </div>

			</div><!-- .site-info -->
		</footer><!-- #colophon -->
	</div><!-- #page -->

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