Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • preview
  • feat-lsky
  • 2.3.3
  • 2.3.2
  • 2.3.1
  • 2.3.0
  • 2.2.12
  • 2.2.11
  • 2.2.7
  • 2.2.6.1
  • 2.2.6
  • 2.2.5
  • 2.2.1
  • 2.2.0.1
  • 2.2.0
  • 2.1.1.1
  • 2.1.1
  • 2.1.0.2
  • 2.1.0.1
  • 2.1.0
  • 2.0.1.1
  • 2.0.1
23 results

404.php

Blame
  • user avatar
    KotoriK authored
    16551c9a
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    404.php 2.68 KiB
    <?php
    
    /**
     * The template for displaying 404 pages (not found).
     *
     * @link https://codex.wordpress.org/Creating_an_Error_404_Page
     *
     * @package Akina
     */
    
    ?>
    <html <?php language_attributes(); ?>>
    
    <head>
        <meta charset="<?php bloginfo('charset'); ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="shortcut icon" href="<?php echo iro_opt('favicon_link', ''); ?>" />
        <link type="text/css" media="all" href="https://cdn.jsdelivr.net/gh/Fuukei/Public_Repository@latest/static/css/basic/404_lib.css" rel="stylesheet" />
        <?php wp_head(); ?>
        <?php
        /* <script>
    var the_url=window.location.href;
    var the_dom="<?php echo str_replace("http://", "", str_replace("https://", "", get_site_url())); ?>";
    var no_report = false;
    if (the_dom!= '2heng.xin') {
        no_report = true;
    }
    var the_ua=navigator.userAgent;
    var the_ref=document.referrer;
    function httpGet(theUrl) {
        var xmlHttp = new XMLHttpRequest();
        xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
        xmlHttp.send( null );
        return xmlHttp.responseText;
    }
    var report_url = "https://api.mashiro.top/count/404/?" + "url="+the_url+"&ua="+the_ua+"&ref="+the_ref;
    if (!no_report) httpGet(report_url);
    </script> */
        ?>
    </head>
    
    <body <?php body_class(); ?>>
        <section class="error-404 not-found">
            <div class="error-img">
                <div class="anim-icon" id="404" style="height: 66%;"></div>
            </div>
            <div class="err-button back">
                <a id="golast" href=javascript:history.go(-1);><?php _e('return to previous page', 'sakurairo');/*返回上一页*/ ?></a>
                <a id="gohome" href="<?php bloginfo('url'); ?>"><?php _e('return to home page', 'sakurairo');/*返回主页*/ ?></a>
            </div>
            <div style="display:block; width:284px;margin: auto;">
                <p style="margin-bottom: 1em;margin-top: 1.5em;text-align: center;font-size: 15px;"><?php _e('Don\'t worry, search in site?', 'sakurairo');/*别急,试试站内搜索?*/ ?></p>
                <form class="s-search" method="get" action="/" role="search">
                    <i class="iconfont icon-search" style="bottom: 9px;left: 15px;"></i>
                    <input class="text-input" style="padding: 8px 20px 8px 46px;" type="search" name="s" placeholder="<?php _e('Search...', 'akina') ?>" required>
                </form>
            </div>
        </section>
        <?php
        $base_path = "";
        if (iro_opt('local_application_library')) {
            $base_path = get_template_directory_uri();
        } else {
            $base_path = 'https://cdn.jsdelivr.net/gh/mirai-mamori/Sakurairo@' . IRO_VERSION;
        }
        ?>
        <script src="<?php echo $base_path . '/js/anf.js' ?>" type="text/javascript"></script>
    </body>