Current File : /home/mdkeenpw/www/wp-content/themes/globallogistics/footer.php |
<?php
/**
* The Footer: widgets area, logo, footer menu and socials
*
* @package GLOBALLOGISTICS
* @since GLOBALLOGISTICS 1.0
*/
do_action( 'globallogistics_action_page_content_end_text' );
// Widgets area below the content
globallogistics_create_widgets_area( 'widgets_below_content' );
do_action( 'globallogistics_action_page_content_end' );
?>
</div>
<?php
do_action( 'globallogistics_action_after_page_content' );
// Show main sidebar
get_sidebar();
do_action( 'globallogistics_action_content_wrap_end' );
?>
</div>
<?php
do_action( 'globallogistics_action_after_content_wrap' );
// Widgets area below the page and related posts below the page
$globallogistics_body_style = globallogistics_get_theme_option( 'body_style' );
$globallogistics_widgets_name = globallogistics_get_theme_option( 'widgets_below_page' );
$globallogistics_show_widgets = ! globallogistics_is_off( $globallogistics_widgets_name ) && is_active_sidebar( $globallogistics_widgets_name );
$globallogistics_show_related = globallogistics_is_single() && globallogistics_get_theme_option( 'related_position' ) == 'below_page';
if ( $globallogistics_show_widgets || $globallogistics_show_related ) {
if ( 'fullscreen' != $globallogistics_body_style ) {
?>
<div class="content_wrap">
<?php
}
// Show related posts before footer
if ( $globallogistics_show_related ) {
do_action( 'globallogistics_action_related_posts' );
}
// Widgets area below page content
if ( $globallogistics_show_widgets ) {
globallogistics_create_widgets_area( 'widgets_below_page' );
}
if ( 'fullscreen' != $globallogistics_body_style ) {
?>
</div>
<?php
}
}
do_action( 'globallogistics_action_page_content_wrap_end' );
?>
</div>
<?php
do_action( 'globallogistics_action_after_page_content_wrap' );
// Don't display the footer elements while actions 'full_post_loading' and 'prev_post_loading'
if ( ( ! globallogistics_is_singular( 'post' ) && ! globallogistics_is_singular( 'attachment' ) ) || ! in_array ( globallogistics_get_value_gp( 'action' ), array( 'full_post_loading', 'prev_post_loading' ) ) ) {
// Skip link anchor to fast access to the footer from keyboard
?>
<a id="footer_skip_link_anchor" class="globallogistics_skip_link_anchor" href="#"></a>
<?php
do_action( 'globallogistics_action_before_footer' );
// Footer
$globallogistics_footer_type = globallogistics_get_theme_option( 'footer_type' );
if ( 'custom' == $globallogistics_footer_type && ! globallogistics_is_layouts_available() ) {
$globallogistics_footer_type = 'default';
}
get_template_part( apply_filters( 'globallogistics_filter_get_template_part', "templates/footer-" . sanitize_file_name( $globallogistics_footer_type ) ) );
do_action( 'globallogistics_action_after_footer' );
}
?>
<?php do_action( 'globallogistics_action_page_wrap_end' ); ?>
</div>
<?php do_action( 'globallogistics_action_after_page_wrap' ); ?>
</div>
<?php do_action( 'globallogistics_action_after_body' ); ?>
<?php wp_footer(); ?>
</body>
</html>