diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-01-21 07:08:26 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-01-21 07:08:26 -0500 |
commit | d046a5814bf58efc5e2227877b79ddc55759e31c (patch) | |
tree | aa799043dcd9dbdb0872d1d1c04642df6fb5112e | |
parent | 2d28316ca7836cf79d8c6b570c63bb2f310b0f78 (diff) | |
download | edwinmattiacci.com-d046a5814bf58efc5e2227877b79ddc55759e31c.tar.gz edwinmattiacci.com-d046a5814bf58efc5e2227877b79ddc55759e31c.tar.bz2 edwinmattiacci.com-d046a5814bf58efc5e2227877b79ddc55759e31c.zip |
bootstrap/Functions: Rename title function
Let error headers use bootstrap directly
-rw-r--r-- | bootstrap/Functions.php | 2 | ||||
-rw-r--r-- | views/partials/header.error.php | 2 | ||||
-rw-r--r-- | views/partials/header.php | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap/Functions.php b/bootstrap/Functions.php index 2308f9b..b4f0ac0 100644 --- a/bootstrap/Functions.php +++ b/bootstrap/Functions.php @@ -38,7 +38,7 @@ function sendMail($name, $email, $message) } } -function webTitle() +function title() { switch ($_SERVER['REQUEST_URI']) { case '/feedback/': diff --git a/views/partials/header.error.php b/views/partials/header.error.php index 8564937..82b1597 100644 --- a/views/partials/header.error.php +++ b/views/partials/header.error.php @@ -1,3 +1,3 @@ -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Functions.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Bootstrap.php'; ?> <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/views/partials/header.php'; ?> diff --git a/views/partials/header.php b/views/partials/header.php index 790cbe5..87761cf 100644 --- a/views/partials/header.php +++ b/views/partials/header.php @@ -9,7 +9,7 @@ <meta charset="utf-8"> - <title>Edwin Mattiacci - <?php webTitle();?></title> + <title>Edwin Mattiacci - <?php title();?></title> <meta name="author" content="Edwin Mattiacci"> <meta name="description" content="Edwin Mattiacci Voiceover. Narration, Trailers, Commercials, and More."> @@ -24,6 +24,6 @@ </head> - <body id="main"> + <body> <?php require 'navigator.php'; ?> |