mirror of
https://github.com/Frumph/comicpress.git
synced 2026-01-31 02:05:17 +01:00
166 lines
3.0 KiB
PHP
166 lines
3.0 KiB
PHP
<?php
|
|
get_template_part( 'layout', 'foot' );
|
|
?>
|
|
<?php
|
|
if ( ! get_theme_mod( 'comicpress-customize-detach-footer', false ) ) {
|
|
?>
|
|
|
|
<footer id="footer">
|
|
|
|
<?php
|
|
do_action( 'comicpress-footer' );
|
|
?>
|
|
|
|
<div id="footer-sidebar-wrapper">
|
|
|
|
<?php
|
|
comicpress_get_sidebar( 'footer-left' );
|
|
comicpress_get_sidebar( 'footer' );
|
|
comicpress_get_sidebar( 'footer-right' );
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div id="footer-menubar-wrapper">
|
|
|
|
<?php
|
|
wp_nav_menu( array(
|
|
'sort_column' => 'menu_order',
|
|
'depth' => 1,
|
|
'fallback_cb' => false,
|
|
'container_class' => 'footmenu',
|
|
'theme_location' => 'Footer',
|
|
) );
|
|
?>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
if ( ! comicpress_themeinfo( 'disable_footer_text' ) ) comicpress_copyright_text();
|
|
?>
|
|
<?php
|
|
if ( comicpress_themeinfo( 'enable_debug_footer_code' ) ) {
|
|
?>
|
|
|
|
<p>
|
|
<?php
|
|
echo get_num_queries();
|
|
esc_html_e( 'queries.', 'comicpress' );
|
|
if ( function_exists( 'memory_get_usage' ) ) {
|
|
$unit = array(
|
|
'b',
|
|
'kb',
|
|
'mb',
|
|
'gb',
|
|
'tb',
|
|
'pb',
|
|
);
|
|
echo @round( memory_get_usage( true ) / pow( 1024, ( $i = floor( log( memory_get_usage( true ), 1024 ) ) ) ), 2 ) . ' ' . $unit[$i];
|
|
esc_html_e( 'Memory usage.', 'comicpress' );
|
|
}
|
|
timer_stop( 1 );
|
|
esc_html_e( 'seconds.', 'comicpress' );
|
|
?>
|
|
</p>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
</footer>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
</div> <!-- // #page -->
|
|
|
|
</div> <!-- / #page-wrap -->
|
|
|
|
<?php
|
|
if ( get_theme_mod( 'comicpress-customize-detach-footer', false ) ) {
|
|
?>
|
|
|
|
<footer id="footer">
|
|
|
|
<?php
|
|
do_action( 'comicpress-footer' );
|
|
?>
|
|
|
|
<div id="footer-sidebar-wrapper">
|
|
|
|
<?php
|
|
comicpress_get_sidebar( 'footer-left' );
|
|
comicpress_get_sidebar( 'footer' );
|
|
comicpress_get_sidebar( 'footer-right' );
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div id="footer-menubar-wrapper">
|
|
|
|
<?php
|
|
wp_nav_menu( array(
|
|
'sort_column' => 'menu_order',
|
|
'depth' => 1,
|
|
'fallback_cb' => false,
|
|
'container_class' => 'footmenu',
|
|
'theme_location' => 'Footer',
|
|
) );
|
|
?>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
if ( ! comicpress_themeinfo( 'disable_footer_text' ) ) comicpress_copyright_text();
|
|
?>
|
|
<?php
|
|
if ( comicpress_themeinfo( 'enable_debug_footer_code' ) ) {
|
|
?>
|
|
|
|
<p>
|
|
<?php
|
|
echo get_num_queries();
|
|
esc_html_e( 'queries.', 'comicpress' );
|
|
if ( function_exists( 'memory_get_usage' ) ) {
|
|
$unit = array(
|
|
'b',
|
|
'kb',
|
|
'mb',
|
|
'gb',
|
|
'tb',
|
|
'pb',
|
|
);
|
|
echo @round( memory_get_usage( true ) / pow( 1024, ( $i = floor( log( memory_get_usage( true ), 1024 ) ) ) ), 2 ) . ' ' . $unit[$i];
|
|
esc_html_e( 'Memory usage.', 'comicpress' );
|
|
}
|
|
timer_stop( 1 );
|
|
esc_html_e( 'seconds.', 'comicpress' );
|
|
?>
|
|
</p>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
</footer>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<?php
|
|
wp_footer();
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|