芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/wp-content/plugins/uicore-framework/includes/templates/footer.php
for maintenance mode // add_action('wp_loaded', function () { /* * Theme builder footer priority = 5; * Theme Builder footer can remove this action if needed */ add_action('uicore_content_end', [$this, 'footer_display'], 10); // }); } public function footer_display() { //continue only if is not in maintenance mode $is_maintenance = Helper::get_option('gen_maintenance') == 'false'; if (!$is_maintenance && !is_user_logged_in()) { return; } $enable = \apply_filters('uicore-footer-cache', true); //Elementor PRO Theme Builder First!!! if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'footer' ) ) { global $post; //check if post id is setted if not return 0 $post_id = $post->ID ?? 0; $footer = Helper::po('footer', 'footer', 'true', $post_id); $copyrights = Helper::po('copyright', 'copyrights', 'true', $post_id); $show_footer = ($footer == 'true' || $copyrights == 'true'); $show_footer = apply_filters('uicore_is_footer', $show_footer); if ($show_footer) { //start the footer markup echo ''; } } } /** * Render our search html * * @return void */ public function footer() { //get the footer column number $layout = Helper::get_option('footer_layout'); if ($layout == 'one') { $n = 1; } if ($layout != 'one') { $n = 2; } if ($layout != 'two' && $layout != 'two_left' && $layout != 'two_right' && $layout != 'one') { $n = 3; } if ( $layout == 'four' || $layout == 'four_left' || $layout == 'four_right' || $layout == 'four_left_2' || $layout == 'four_right_2' ) { $n = 4; } if ($layout == 'five' || $layout == 'five_left' || $layout == 'five_right') { $n = 5; } if ( !( is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3') || is_active_sidebar('footer-4') || is_active_sidebar('footer-5') ) ) { return; } ?>