diff options
author | Minteck <contact@minteck.org> | 2023-03-05 16:56:48 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-03-05 16:56:48 +0100 |
commit | c1c8c5e12af20df4aa10ce712e9826e91a0bb1f4 (patch) | |
tree | 85c872311a11080f345232f7bd6a68f7528c419d | |
parent | ec92f00814887c11a6cceb1c9baf5f737ab63855 (diff) | |
download | booru-c1c8c5e12af20df4aa10ce712e9826e91a0bb1f4.tar.gz booru-c1c8c5e12af20df4aa10ce712e9826e91a0bb1f4.tar.bz2 booru-c1c8c5e12af20df4aa10ce712e9826e91a0bb1f4.zip |
Updated includes/header.php and added icon.svg (automated)
-rw-r--r-- | icon.svg | 12 | ||||
-rw-r--r-- | includes/header.php | 17 |
2 files changed, 28 insertions, 1 deletions
diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..7236332 --- /dev/null +++ b/icon.svg @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 26.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve"> +<style type="text/css"> + .st0{fill:#00434A;} + .st1{fill:#008897;stroke:#008897;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} +</style> +<circle class="st0" cx="8" cy="8" r="8"/> +<path class="st1" d="M10.8,2.6L9.4,3.7L8,2.8l0.7,1.7L7.3,5.2h1.5l-4.5,8l0.3,0.2l4.5-8l0.5,1.5L10,5.2l1.8-0.1l-1.5-0.9L10.8,2.6" + /> +</svg> diff --git a/includes/header.php b/includes/header.php index f2d52d8..6955ca3 100644 --- a/includes/header.php +++ b/includes/header.php @@ -15,6 +15,20 @@ function parseFilters($filters, $ignore = []) { } $filters[$name] = substr($text, 0, -3); + + if ($name === "nsfw") { + $text = ""; + + foreach ($filter as $item) { + if ($item === "close-up") continue; + + if (!in_array($item, $ignore)) { + $text .= "-" . $item . ", "; + } + } + + $filters["nsfw_closeup"] = substr($text, 0, -3); + } } return $filters; @@ -30,6 +44,7 @@ function parseFilters($filters, $ignore = []) { <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="/css/bootstrap.min.css"> <script src="/js/bootstrap.bundle.min.js"></script> + <link rel="icon" href="/icon.svg" type="image/svg+xml"> <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> <title><?= isset($title) ? $title . " - Booru" : "Booru" ?></title> <script> @@ -207,7 +222,7 @@ function parseFilters($filters, $ignore = []) { <body> <nav class="navbar navbar-expand-sm bg-light navbar-light"> <div class="container-fluid"> - <a class="navbar-brand" href="/">Booru</a> + <a class="navbar-brand" href="/"><img src="/icon.svg" alt="Booru" style="width: 32px; height: 32px;"></a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsibleNavbar"> <span class="navbar-toggler-icon"></span> </button> |