'; echo code_profiler_display_tabs( 1 ); $error = 0; if (! function_exists('register_tick_function') ) { $error = 'register_tick_function'; } elseif (! function_exists('stream_wrapper_unregister') ) { $error = 'stream_wrapper_unregister'; } elseif (! function_exists('stream_wrapper_register') ) { $error = 'stream_wrapper_register'; } elseif (! function_exists('stream_wrapper_restore') ) { $error = 'stream_wrapper_restore'; } if (! empty( $error ) ) { printf( CODE_PROFILER_ERROR_NOTICE, sprintf( esc_html__('Your PHP configuration is missing the "%s" function. Code Profiler cannot run without it. Please contact your server administrator about this error.', 'code-profiler'), $error ) ); } $home = home_url( '/' ); // Get user login name $current_user = wp_get_current_user(); // Profile's name $profile = code_profiler_profile_name(); ?>

         


">

'; $disabled_button = ' disabled'; } else { echo '
/>    
'. esc_html__('Homepage', 'code-profiler') .''; $args = array( 'posts_per_page' => -1, 'post_type' => array( 'page' ), 'post_status' => 'publish', 'orderby' => 'post_name', 'order' => 'ASC', ); $query = new WP_Query( $args ); if ( $query ) { $items = $query->posts; foreach( $items as $item ) { if ( empty( $item->post_title ) ) { $item->post_title = __('Untitled'); } $permalink = get_permalink( $item->ID ); $pages .= ''; } } return sprintf( '%s', esc_attr__('Pages', 'code-profiler'), $pages ); } // ===================================================================== // Fetch admin pages (backend) function code_profiler_fetch_admin_pages( $home ) { $backend = ''; if (! empty( $GLOBALS[ 'menu' ] ) ) { foreach( $GLOBALS[ 'menu' ] as $menu => $value ) { if (! empty( $value[0] ) && substr( $value[2], -4 ) == '.php' ) { // E.g., "Comments", "Plugins" etc $value[0] = trim( preg_replace( '/\s+<.+$/', '', $value[0] ) ); $backend .= ''; } } } if ( empty( $backend ) ) { $backend = ''; } return $backend; } // ===================================================================== // EOF