Viewing File: /home/maglabs/2vsa/wp-content/themes/cargohub/inc/frontend/footer.php

<?php
/**
 * Custom functions that act in the footer.
 *
 * Eventually, some of the functionality here could be replaced by core features.
 *
 * @package CargoHub
 */

/**
 *  Display site footer
 */
function cargohub_footer() {
	?>
	<div class="container">
		<div class="row">
			<div class="footer-copyright col-md-6 col-sm-12 col-sx-12">
				<div class="site-info">
					<?php echo do_shortcode( wp_kses( cargohub_get_option( 'footer_copyright' ), wp_kses_allowed_html( 'post' ) ) ); ?>
				</div><!-- .site-info -->
			</div>
			<div class="col-md-6 col-sm-12 col-xs-12 text-right footer-text">
				<?php echo do_shortcode( wp_kses( cargohub_get_option( 'footer_text' ), wp_kses_allowed_html( 'post' ) ) ) ?>
			</div>
		</div>
	</div>
	<?php
}

add_action( 'cargohub_footer', 'cargohub_footer' );

/**
 *  Display footer widget
 */
function cargohub_footer_widgets() {
	?>
		<div id="footer-widgets" class="footer-widgets widgets-area">
			<?php cargohub_footer_extra(); ?>
			<?php cargohub_footer_sidebar(); ?>
		</div>
	<?php
}

add_action( 'cargohub_before_footer', 'cargohub_footer_widgets' );


/**
 * Add off mobile menu to footer
 *
 * @since 1.0.0
 */
function cargohub_off_canvas_mobile_menu() {
	?>
	<div class="primary-mobile-nav" id="primary-mobile-nav" role="navigation">
		<a href="#" class="close-canvas-mobile-panel">
			&#215;
		</a>
		<?php
		wp_nav_menu( array(
			'theme_location' => 'primary',
			'container'      => false,
		) );
		?>
	</div>
	<?php
}

add_action( 'wp_footer', 'cargohub_off_canvas_mobile_menu' );

/**
 * Display a layer to close canvas panel everywhere inside page
 *
 * @since 1.0.0
 */
function cargohub_site_canvas_layer() {
	?>
	<div id="off-canvas-layer" class="off-canvas-layer"></div>
	<?php
}

add_action( 'wp_footer', 'cargohub_site_canvas_layer' );

/**
 * Display back to top
 *
 * @since 1.0.0
 */
function cargohub_back_to_top() {
	if ( cargohub_get_option( 'back_to_top' ) ) :
	?>
		<a id="scroll-top" class="backtotop" href="#page-top">
			<i class="fa fa-angle-up"></i>
		</a>
	<?php
	endif;
}
add_action( 'wp_footer', 'cargohub_back_to_top' );
Back to Directory File Manager