diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-04 16:56:12 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-04 16:56:12 +0200 |
commit | 896fa7c96856142f844d958b049d5432f511641c (patch) | |
tree | d8bbbe327939ade9bd13276c6b4c6105adf95323 /_site/includes/modules/search.php | |
parent | 7df2fb3f5ee0ac5bd89e127c86ad0c2d6de126d1 (diff) | |
download | unchainedtech-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.php | 16 |
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;"> <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 |