%PDF- %PDF-
Direktori : /usr/local/sakura-blog/themes/theme-basic/orange/v1.1.5/templates/pages/search/ |
Current File : //usr/local/sakura-blog/themes/theme-basic/orange/v1.1.5/templates/pages/search/result-keyword.php |
<?php require_once(__DIR__ . "/../../../utils.php"); ?> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <?php if ($blog->meta_description !== "") { ?> <meta name="description" content="<?= sanitizeHTML(nl2empty($blog->meta_description)) ?>" /> <?php } ?> <link rel="stylesheet" href="/assets/css/search_result.css" type="text/css" /> <title><?= sanitizeHTML($blog->title) ?></title> </head> <body> <?= component("header", [ "blog" => $blog, ]) ?> <div class="layout"> <div class="layout__mv"></div> <div class="content"> <div class="container"> <main class="main search-result"> <h1 class="page-title">記事を探す</h1> <form class="keyword-form" action="/search" method="GET"> <div class="input"> <input id="keyword" type="text" name="keyword" placeholder="タイトルやキーワードで記事を検索" /> <button type="submit"> <i class="fa-solid fa-magnifying-glass"></i> </button> </div> </form> <?php if ($is_found) { ?> <h2 class="page-title color-blue"> <span class="speech-bubble blue"> <i class="fa-solid fa-magnifying-glass"></i> </span> <span class="page-title__text"><?= sanitizeHTML($keyword) ?></span> </h2> <?php } else { ?> <p class="not-found-message">"<?= sanitizeHTML($keyword) ?>"に一致する記事が見つかりませんでした。</p> <h2 class="page-title color-blue"> <span class="speech-bubble blue"> <i class="new-icon"></i> </span> <span class="page-title__text">新しい記事</span> </h2> <?php } ?> <?= component("article-list", [ "articles" => $articles, ]) ?> <?= component("pagination", [ "page" => $page, "total" => $total, "total_pages" => $total_pages, ]) ?> </main> <aside class="widgets"> <?= component("blog-profile", $blog_profile) ?> <?= component("category-list", [ "categories" => $categories, ]) ?> <?= component("tag-list", [ "tags" => $tags, ]) ?> <?= component("archive-list", [ "archives" => $archives, ]) ?> </aside> </div> </div> </div> <?= component("breadcrumb", [ "items" => [ ["href" => "/search", "label" => "記事を探す"], ["label" => $keyword, "is_current" => true], ], ]) ?> <?= component("footer", [ "blog" => $blog, "categories" => $categories, "tags" => $tags, ]) ?> </body> </html>