diff options
author | Thedro Neely <thedroneely@gmail.com> | 2018-08-30 04:30:53 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2018-08-30 04:30:53 -0400 |
commit | 2bdcd9d9283b44e7c35822aa1317013928006fd8 (patch) | |
tree | ca2bf097e4dfcfdabba36a5cb2643560ab03b926 /app | |
download | thedroneely.com-2bdcd9d9283b44e7c35822aa1317013928006fd8.tar.gz thedroneely.com-2bdcd9d9283b44e7c35822aa1317013928006fd8.tar.bz2 thedroneely.com-2bdcd9d9283b44e7c35822aa1317013928006fd8.zip |
Initialize Repo: First Commit
Diffstat (limited to 'app')
-rw-r--r-- | app/Functions.php | 11 | ||||
-rw-r--r-- | app/Routes.php | 15 | ||||
-rw-r--r-- | app/controllers/contact.controller.php | 3 | ||||
-rw-r--r-- | app/controllers/index.controller.php | 3 | ||||
-rw-r--r-- | app/controllers/mail.controller.php | 19 | ||||
-rw-r--r-- | app/model/Form.php | 85 | ||||
-rw-r--r-- | app/model/Navigation.php | 31 | ||||
-rw-r--r-- | app/views/404.view.php | 31 | ||||
-rw-r--r-- | app/views/contact.view.php | 101 | ||||
-rw-r--r-- | app/views/contact.view.php.bak | 134 | ||||
-rw-r--r-- | app/views/index.view.php | 113 | ||||
-rw-r--r-- | app/views/mail-error.view.php | 29 | ||||
-rw-r--r-- | app/views/mail-sent.view.php | 24 | ||||
-rw-r--r-- | app/views/partials/footer.php | 117 | ||||
-rw-r--r-- | app/views/partials/header.php | 23 | ||||
-rw-r--r-- | app/views/partials/header.posts.php | 16 | ||||
-rw-r--r-- | app/views/partials/navigator.php | 36 |
17 files changed, 791 insertions, 0 deletions
diff --git a/app/Functions.php b/app/Functions.php new file mode 100644 index 0000000..af05451 --- /dev/null +++ b/app/Functions.php @@ -0,0 +1,11 @@ +<?php + +function generateTitle() +{ + switch ($_SERVER['REQUEST_URI']) { + case '/contact/': + $uri = $_SERVER['REQUEST_URI']; + echo $titleHeader = 'Contact - '; + break; + } +} diff --git a/app/Routes.php b/app/Routes.php new file mode 100644 index 0000000..2def144 --- /dev/null +++ b/app/Routes.php @@ -0,0 +1,15 @@ +<?php + +/* public routes */ + +$router->get('', '../app/controllers/index.controller.php'); + +$router->get('contact', '../app/controllers/contact.controller.php'); + + +$router->head('', '../app/controllers/index.controller.php'); + +$router->head('contact', '../app/controllers/contact.controller.php'); + + +$router->post('?sent', '../app/controllers/mail.controller.php'); diff --git a/app/controllers/contact.controller.php b/app/controllers/contact.controller.php new file mode 100644 index 0000000..60f5f08 --- /dev/null +++ b/app/controllers/contact.controller.php @@ -0,0 +1,3 @@ +<?php + +require '../app/views/contact.view.php'; diff --git a/app/controllers/index.controller.php b/app/controllers/index.controller.php new file mode 100644 index 0000000..7ec4a52 --- /dev/null +++ b/app/controllers/index.controller.php @@ -0,0 +1,3 @@ +<?php + +require '../app/views/index.view.php'; diff --git a/app/controllers/mail.controller.php b/app/controllers/mail.controller.php new file mode 100644 index 0000000..d22b487 --- /dev/null +++ b/app/controllers/mail.controller.php @@ -0,0 +1,19 @@ +<?php +$form = new Form( + $name = $_POST['26471'], + $email = $_POST['26472'], + $message = $_POST['26478'] +); + +$form->isSubmit(); + +// require '../app/views/mail-sent.view.php'; +// fastcgi_finish_request(); + +$contact['database']->insert( + 'contactform', [ + 'name' => $form->name, + 'email' => $form->email, + 'message' => $form->message, + ] +); diff --git a/app/model/Form.php b/app/model/Form.php new file mode 100644 index 0000000..4e6d3f3 --- /dev/null +++ b/app/model/Form.php @@ -0,0 +1,85 @@ +<?php + +// PHP mailer namespace +use PHPMailer\PHPMailer\PHPMailer; +use PHPMailer\PHPMailer\Exception; + +class Form +{ + public $name; + public $email; + public $message; + + public function __construct($name, $email, $message) + { + $this->name = $name; + $this->email = $email; + $this->message = $message; + + $this->isSpam(); + $this->isEmpty(); + } + + public function isSpam() + { + $spam = false; + + if (isset($_POST['contact'])) { + $spam = $_POST['contact']; + } + + if ((bool) $spam == true) { + http_response_code(403); + error_log('Contact Form Spam: Error 403'); + exit; + } + } + + public function isEmpty() + { + if ((bool) empty($this->name) == true + || (bool) empty($this->email) == true + || (bool) empty($this->message) == true + ) { + header('Location: /contact'); + exit; + } + } + + public function isSubmit() + { + // Include mail config + $config = include '../AppConfig.php'; + + $mail = new PHPMailer(true); + + try { + //Server settings + //$mail->SMTPDebug = 2; // Enable verbose debug output + $mail->isSMTP(); // Set mailer to use SMTP + $mail->Host = $config['mail']['host']; // Specify main and backup SMTP servers + $mail->SMTPAuth = true; // Enable SMTP authentication + $mail->Username = $config['mail']['username']; // SMTP username + $mail->Password = $config['mail']['password']; // SMTP password + $mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted + $mail->Port = $config['mail']['port']; // TCP port to connect to + + //Recipients + $mail->setFrom('thedroneely@gmail.com', 'Thedro Neely'); + $mail->addAddress('thedroneely@gmail.com', 'Thedro Neely'); + $mail->addReplyTo($this->email, $this->name); + + //Content + $mail->isHTML(true); + $mail->Subject = 'New message from ' . $this->name; + $mail->Body = $this->message; + $mail->AltBody = $this->message; + + //Send Mail + $mail->send(); + + } catch (Exception $e) { + include '../app/views/mail-error.view.php'; + } + } +} diff --git a/app/model/Navigation.php b/app/model/Navigation.php new file mode 100644 index 0000000..4db89b5 --- /dev/null +++ b/app/model/Navigation.php @@ -0,0 +1,31 @@ +<?php + +class Navigation +{ + public function generateHomeButton() + { + if ($_SERVER['REQUEST_URI'] === '/') { + echo '<a class="navbar-active navbar-item" href="/">Home</a>'; + return; + } + echo '<a class="navbar-item" href="/">Home</a>'; + } + + public function generateNavBar() + { + $navbar = [ + 'Posts' => ['uri' => '/post/'], + 'Projects' => ['uri' => '/project/'], + 'Profile' => ['uri' => '/about/'], + 'Contact' => ['uri' => '/contact/'], + ]; + + foreach ($navbar as $title => $route) { + $append =''; + if ($route['uri'] === $_SERVER['REQUEST_URI'] || strpos($_SERVER['REQUEST_URI'], $route['uri']) !== false) { + $append = ' navbar-active'; + } + echo str_repeat("\t", 4) . "<a class=\"navbar-item$append\"" . ' href="' . $route['uri'] . '">' . $title . '</a>' . "\n"; + } + } +} diff --git a/app/views/404.view.php b/app/views/404.view.php new file mode 100644 index 0000000..f0bbae0 --- /dev/null +++ b/app/views/404.view.php @@ -0,0 +1,31 @@ +<?php require __DIR__ . '/partials/header.php'; ?> + + <section class="section hero is-fullheight" itemscope itemtype="http://schema.org/HomePage"> + <div class="hero-head"> + + <?php require __DIR__ . '/partials/navigator.php'; ?> + + </div> + + <div class="hero-body"> + <div class="container"> + <div class="columns"> + <div class="column is-8 is-offset-2 has-text-centered"> + + <h1 style="font-size: 3em;">404</h1> + + <br> + + <h2>Page Not Found</h2> + <p>Sorry, this page does not exist.<p> + + <br> + + <p>You can head back to <a href="/">homepage</a>.</p> + + </div> + </div> + </div> + </div> + +<?php require __DIR__ . '/partials/footer.php'; ?> diff --git a/app/views/contact.view.php b/app/views/contact.view.php new file mode 100644 index 0000000..7cbf752 --- /dev/null +++ b/app/views/contact.view.php @@ -0,0 +1,101 @@ +<?php require __DIR__ . '/partials/header.php'; ?> + + <body> + + <section class="section hero" itemscope itemtype="http://schema.org/WebPage"> + + <div class="hero-head"> + + <?php require __DIR__ . '/partials/navigator.php'; ?> + + </div> + +<div id="contact-vue"> + <div class="hero-body"> + <div class="container"> + <div class="columns"> + + <div class="contact-notification notification is-success"> + <button class="delete"></button> + <p class="is-size-7"> + <strong>Message delivered.</strong> + <br> + Thank you for your message. + <br> + <a href="#">Return to the home page</a> + </p> + </div> + + <div class="column is-6 is-offset-3 has-text-centered"> + <h1 class="title is-3">Contact</h1> + + <div class="content"> + + <p> + Interested in collaborating together? + Complete the form below with basic info about your project or idea. + Please allow 24-48 hours for a response. + </p> + + </div> + + <form method="post" action="/?sent"> + + <div class="field is-horizontal"> + <div class="field-body"> + <div class="field is-expanded"> + <label class="label">Name <span class="alert" v-show="!name">*</span></label> + <div class="field has-addons"> + <p class="control is-expanded"> + <input v-model="name" class="input" type="text" name="26471" placeholder="Jason Response"> + </p> + </div> + </div> + <div class="field is-expanded"> + <label class="label">Email <span class="alert" v-show="!email">*</span></label> + <div class="field has-addons"> + <p class="control is-expanded"> + <input v-model="email" class="input" type="email" name="26472" placeholder="user@domain.com"> + </p> + </div> + </div> + </div> + </div> + + <label class="label">Message <span class="alert" v-show="!message">*</span></label> + <div class="field is-horizontal"> + <div class="field-body"> + <div class="field"> + <div class="control"> + <textarea v-model="message" class="textarea" name="26478" placeholder="How would you describe your project?"></textarea> + </div> + </div> + </div> + </div> + + <br> + + <div class="field is-horizontal"> + <div class="field-body"> + <div class="field"> + <div class="control"> + <button class="button is-primary"> + Send message + </button> + </div> + </div> + </div> + </div> + + <input type="checkbox" name="contact" class="form" tabindex="-1" autocomplete="off"> + + </form> + + </div> + </div> + </div> + </div> + <!-- <pre>{{ $data | json }} </pre> --> +</div> + +<?php require __DIR__ . '/partials/footer.php'; ?> diff --git a/app/views/contact.view.php.bak b/app/views/contact.view.php.bak new file mode 100644 index 0000000..ec41085 --- /dev/null +++ b/app/views/contact.view.php.bak @@ -0,0 +1,134 @@ +<?php require __DIR__ . '/partials/header.php'; ?> + <body> + + <section class="section hero is-fullheight" itemscope itemtype="http://schema.org/WebPage"> + + <div class="hero-head"> + + <?php require __DIR__ . '/partials/navigator.php'; ?> + + </div> + + <div class="hero-body"> + <div class="container"> + <div class="columns"> + <div class="column is-8 is-offset-2 has-text-centered"> + <h1 class="title is-3">Contact</h1> + + <div class="content"> + + <p> + Interested in collaborating together? Complete the form below with basic info about your project or idea. Please allow 24-48 hours for a response. + </p> + + </div> + + <form class="form-limit" method="post" action="/?sent"> + + <div class="field is-horizontal"> + <div class="field-body"> + <div class="field is-expanded"> + <label class="label">Name</label> + <div class="field has-addons"> + <p class="control is-expanded"> + <input class="input" type="text" name="26471" placeholder="Jason Response"> + </p> + </div> + </div> + <div class="field is-expanded"> + <label class="label">Email</label> + <div class="field has-addons"> + <p class="control is-expanded"> + <input class="input" type="email" name="26472" placeholder="user@domain.com"> + </p> + </div> + </div> + </div> + </div> + + <div class="field is-horizontal"> + <div class="field-body"> + <div class="field is-expanded"> + <label class="label">Phone</label> + <div class="field has-addons"> + <p class="control is-expanded"> + <input class="input" type="tel" name="26473" placeholder="242 777 7777"> + </p> + </div> + </div> + <div class="field is-expanded"> + <label class="label">Budget</label> + <div class="field has-addons"> + <p class="control is-expanded"> + <input class="input" type="text" name="26474" placeholder="Tell us your budget"> + </p> + </div> + </div> + </div> + </div> + + <div class="field is-horizontal"> + <div class="field-body"> + <div class="field is-expanded"> + <label class="label">Timeline</label> + <div class="field has-addons"> + <p class="control is-expanded"> + <input class="input" type="text" name="26475" placeholder="3 weeks and 2 days"> + </p> + </div> + </div> + <div class="field is-expanded"> + <label class="label">Website</label> + <div class="field has-addons"> + <p class="control is-expanded"> + <input class="input" type="text" name="26476" placeholder="http://www.example.com"> + </p> + </div> + </div> + </div> + </div> + + <label class="label">Subject</label> + <div class="field is-horizontal"> + <div class="field-body"> + <div class="field"> + <input class="input" type="text" name="26477" placeholder="Bonjour!"> + </div> + </div> + </div> + + <label class="label">Message</label> + <div class="field is-horizontal"> + <div class="field-body"> + <div class="field"> + <div class="control"> + <textarea class="textarea" name="26478" placeholder="How would you describe your project?"></textarea> + </div> + </div> + </div> + </div> + + <br> + + <div class="field is-horizontal"> + <div class="field-body"> + <div class="field"> + <div class="control"> + <button class="button is-primary"> + Send message + </button> + </div> + </div> + </div> + </div> + + <input type="checkbox" name="contact" class="form" tabindex="-1" autocomplete="off"> + + </form> + + </div> + </div> + </div> + </div> + +<?php require __DIR__ . '/partials/footer.php'; ?> diff --git a/app/views/index.view.php b/app/views/index.view.php new file mode 100644 index 0000000..0487beb --- /dev/null +++ b/app/views/index.view.php @@ -0,0 +1,113 @@ +<?php require __DIR__ . '/partials/header.php'; ?> + + <body> + + <section class="section hero" itemscope itemtype="http://schema.org/HomePage"> + <div class="hero-head"> + + <?php require __DIR__ . '/partials/navigator.php'; ?> + + </div> + <div class="hero-body"> + <div class="container" style="max-width: 882px"> + <div class="columns"> + <div class="column is-8 has-text-left"> + <h1 class="title"><span>Web<span class="has-text-danger"> Developer</span></span></h1> + <h2 class="subtitle"> + Thedro Neely + + </h2> + <div class="content"> + + <p class="has-text-left has-text-black"> + My name is Thedro (tee-dro) — a web developer and self-taught + <a href="https://en.wikipedia.org/wiki/Linux">linux and unix-like</a> + system administrator. + There are many different tools and programming languages I've come across. + Welcome to my small part of the web. Here you'll find things I've + worked on as well as other interesting discoveries. + </p> + + </div> + + <div class="columns"> + <div class="column"> + <h3 class="subtitle has-text-greyer is-marginless">Recent Posts</h3> + <br> + <ul> + + <li><a href="/post/mixing-php-into-hugo/">Mixing PHP into Hugo</a></li> + <li><a href="/post/now-dns-pfsense/">Now-DNS and pfSense</a></li> + + <br> + + <li><a class="front-frame" href="post/">More posts<span class="icon">➤</span></a></li> + + </ul> + </div> + + <div class="column"> + <h3 class="subtitle has-text-greyer is-marginless">Recent Projects</h3> + <br> + <ul> + + <li><a href="/project/personal-portfolio/">Personal Portfolio</a></li> + <li><a href="/project/voiceover-website/">Voiceover Website</a></li> + + <br> + + <li><a class="front-frame" href="project/">More projects<span class="icon">➤</span></a></li> + </ul> + </div> + </div> + </div> + + <div class="column is-4 has-text-left"> + + <div class="tabs is-boxed" style="margin-bottom: 0;"> + <ul> + <li class="is-active"> + <a> + <span class="is-size-7">Activity</span> + </a> + </li> + <li> + <a style="background-color: #fff; color: #999; border: 1px solid #fff"> + <span class="is-size-7">Status</span> + </a> + </li> + </ul> + + </div> + + <div style="background-color: #f2f2f2; padding: 10px;border: 1px solid #dbdbdb; min-height: 350px;"> + + + +<div class="card"> + <header class="card-header"> + <p class="card-header-title is-size-7"> + Last Github Commit + </p> + <a href="#" class="card-header-icon" aria-label="more options"> + </a> + </header> + <div class="card-content" style="padding: 0.5rem;"> + <div class="content is-size-7"> + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris. + </div> + </div> +</div> + + + + + </div> + + </div> + + </div> + </div> + </div> + +<?php require __DIR__ . '/partials/footer.php'; ?> diff --git a/app/views/mail-error.view.php b/app/views/mail-error.view.php new file mode 100644 index 0000000..a4dec11 --- /dev/null +++ b/app/views/mail-error.view.php @@ -0,0 +1,29 @@ +<?php require __DIR__ . '/partials/header.php'; ?> + +<body> + + <section class="section hero is-fullheight" itemscope itemtype="http://schema.org/WebPage"> + + <div class="hero-head"> + + <?php require __DIR__ . '/partials/navigator.php'; ?> + + </div> + + <div class="hero-body"> + <div class="container"> + <div class="columns"> + <div class="column is-8 is-offset-2 has-text-centered"> + + <br> + <p><?php echo 'Message could not be sent. Mailer Error: <br>', $mail->ErrorInfo; ?></p> + <br> + <a href="/contact"><b>Return to the Contact Page</b></a> + <br> + + </div> + </div> + </div> + </div> + +<?php require __DIR__ . '/partials/footer.php'; ?> diff --git a/app/views/mail-sent.view.php b/app/views/mail-sent.view.php new file mode 100644 index 0000000..3ba0794 --- /dev/null +++ b/app/views/mail-sent.view.php @@ -0,0 +1,24 @@ +<?php require __DIR__ . '/partials/header.php'; ?> + + <body> + + <section class="section hero is-fullheight" itemscope itemtype="http://schema.org/HomePage"> + <div class="hero-head"> + + <?php require __DIR__ . '/partials/navigator.php'; ?> + + </div> + <div class="hero-body"> + <div class="container"> + <div class="columns"> + <div class="column is-8 is-offset-2 has-text-centered"> + <article style="text-align: center;"> + <h3>Thank you for your message.</h3> + <a href="/"><b>Return to the Home Page</b></a> + </article> + </div> + </div> + </div> + </div> + +<?php require __DIR__ . '/partials/footer.php'; ?> diff --git a/app/views/partials/footer.php b/app/views/partials/footer.php new file mode 100644 index 0000000..e25fc85 --- /dev/null +++ b/app/views/partials/footer.php @@ -0,0 +1,117 @@ +<div class="hero-foot"> + + <footer class="footer footer__custom"> + + <div class="columns"> + + <div class="column footer__left"> + + <div class="has-text-centered"> + <div class="footer-left has-text-black is-size-7"> + + <p>Design inspired by <a class="has-text-black" href="https://github.com/solutionroute/hugo-smorg">Smorg</a></p> + <p>Built with <a class="has-text-black" href="https://secure.php.net/">PHP</a> | <a class="has-text-black" href="https://gohugo.io/">Hugo</a> | <a class="has-text-black" href="https://posativ.org/isso/">Isso</a></p> + <p>© Thedro Neely</p></li> + + </div> + </div> + + </div> + + <div class="column footer__middle"> + + <div class="has-text-centered"> + <div class="footer-left is-size-7"> + + <p><a class="has-text-black" href="https://github.com/tdro">Github Profile</a></p> + <p><a class="has-text-black" href="https://gitlab.com/tdro">Gitlab Repository</a></p> + <p><a class="has-text-black" href="#">Contact Page</a></p> + + </div> + </div> + + </div> + + <div class="column footer__right"> + + <div class="has-text-centered is-size-7"> + <div> + + <p class="img__margin"><a href="/pgp.asc"><img src="/images/pgp.png" height="111" width="111" alt="PGP Key"></a></p> + <p><a class="has-text-black" href="/pgp.asc">— PGP Public Key —</a></p> + + </div> + </div> + + </div> + + </div> + + </footer> + +</div> + +</section> + +<script type="application/ld+json"> +{ + "@context": "http://schema.org", + "@type": "WebSite", + "mainEntityOfPage": { + "@type": "WebPage", + "@id": "/" + }, + "name": "Thedro Neely: Portfolio", + "description": "Thedro's Personal Website", + "author": { + "@type": "Person", + "name": "Thedro Neely", + "email": "thedroneely@gmail.com" + }, + "publisher": { + "name": "Thedro Neely", + "type": "Person" + + } +} +</script> + +<script> +document.addEventListener('DOMContentLoaded', function () { + var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0); + if ($navbarBurgers.length > 0) { + $navbarBurgers.forEach(function ($el) { + $el.addEventListener('click', function () { + var target = $el.dataset.target; + var $target = document.getElementById(target); + $el.classList.toggle('is-active'); + $target.classList.toggle('is-active'); + }); + }); + } +}); +</script> + +<?php if (trim($_SERVER['REQUEST_URI'], '/') == 'contact') { ?> + +<script src="https://cdn.jsdelivr.net/npm/vue"></script> + +<!-- development version, includes helpful console warnings --> +<!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> --> + +<script> + new Vue({ + el: '#contact-vue', + data: { + name: '', + email: '', + message: '' + } + + }); +</script> + +<?php } ?> + +</body> +</html> diff --git a/app/views/partials/header.php b/app/views/partials/header.php new file mode 100644 index 0000000..2162868 --- /dev/null +++ b/app/views/partials/header.php @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html class="has-navbar-fixed-top" lang="en-us"> +<head> + + <meta charset="utf-8"> + + <title><?php generateTitle(); ?>Portfolio - Thedro Neely</title> + + <meta name="description" content="Thedro's Portfolio Website"> + <meta name="keywords" content="Thedro,Neely,Portfolio,Website"> + <meta name="author" content="Thedro Neely"> + + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="robots" content="index,follow"> + + <link href="/rss.xml" rel="feed" type="application/rss+xml" title="Edwin Mattiacci"/> + + <link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32"> + <link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16"> + + <link rel="stylesheet" href="/css/smorg.css"> + +</head> diff --git a/app/views/partials/header.posts.php b/app/views/partials/header.posts.php new file mode 100644 index 0000000..87189bd --- /dev/null +++ b/app/views/partials/header.posts.php @@ -0,0 +1,16 @@ + + <meta charset="utf-8"> + + <meta name="description" content="Thedro's Portfolio Website Posts"> + <meta name="keywords" content="Thedro,Neely,Portfolio,Website,Posts"> + <meta name="author" content="Thedro Neely"> + + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="robots" content="index,follow"> + + <link href="/rss.xml" rel="feed" type="application/rss+xml" title="Edwin Mattiacci"/> + + <link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32"> + <link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16"> + + <link rel="stylesheet" href="/css/smorg.css"> diff --git a/app/views/partials/navigator.php b/app/views/partials/navigator.php new file mode 100644 index 0000000..96facde --- /dev/null +++ b/app/views/partials/navigator.php @@ -0,0 +1,36 @@ +<?php include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/model/Navigation.php'; ?> + +<?php $navigation = new Navigation(); ?> + + <nav class="navbar navbar__custom is-fixed-top" aria-label="main navigation"> + <div class="container"> + <div class="navbar-brand"> + + <?php $navigation->generatehomeButton(); ?> + + <div class="navbar-burger burger has-text-white" data-target="navMenu"> + <span></span> + <span></span> + <span></span> + </div> + </div> + <div class="navbar-menu" id="navMenu"> + + <div class="navbar-start"> + + <div class="navbar-item"> + <div class="control"> + <input class="navbar__search input" type="text"> + </div> + </div> + + </div> + + <div class="navbar-end"> + + <?php $navigation->generateNavBar(); ?> + + </div> + </div> + </div> + </nav> |