aboutsummaryrefslogtreecommitdiff
path: root/_site/includes/modules/search.php
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-04 16:56:12 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-04 16:56:12 +0200
commit896fa7c96856142f844d958b049d5432f511641c (patch)
treed8bbbe327939ade9bd13276c6b4c6105adf95323 /_site/includes/modules/search.php
parent7df2fb3f5ee0ac5bd89e127c86ad0c2d6de126d1 (diff)
downloadunchainedtech-896fa7c96856142f844d958b049d5432f511641c.tar.gz
unchainedtech-896fa7c96856142f844d958b049d5432f511641c.tar.bz2
unchainedtech-896fa7c96856142f844d958b049d5432f511641c.zip
v2.0
Diffstat (limited to '_site/includes/modules/search.php')
-rw-r--r--_site/includes/modules/search.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/_site/includes/modules/search.php b/_site/includes/modules/search.php
new file mode 100644
index 0000000..fe37786
--- /dev/null
+++ b/_site/includes/modules/search.php
@@ -0,0 +1,16 @@
+<nav class="navbar navbar-expand-sm bg-dark navbar-dark" id="navbar-search">
+ <div class="container">
+ <a class="navbar-brand" href="/"><img src="/logo.svg" width="36px" style="vertical-align: middle;">&nbsp; <span style="vertical-align: middle;">UnchainedTech</span></a>
+
+ <form class="form-inline" action="/search" id="search-form">
+ <input class="form-control mr-sm-2" type="text" name="q" value="<?php
+
+ if (isset($_GET['q']) && strpos($_GET['q'], "/") === false && strpos($_GET['q'], "&") === false && strpos($_GET['q'], ">") === false && strpos($_GET['q'], ">") === false) {
+ echo($_GET['q']);
+ }
+
+ ?>" placeholder="Search articles">
+ <button class="btn btn-success" type="submit" id="search-submit">Search</button>
+ </form>
+ </div>
+</nav> \ No newline at end of file