diff options
author | Thedro Neely <thedroneely@gmail.com> | 2018-11-22 01:47:25 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2018-11-22 01:47:25 -0500 |
commit | 945c6fee7c59559fbb1e6f00cebb7e83b8bfa422 (patch) | |
tree | d38b49d8114098105360587ac77b67bfdd7d0bcc /app/views | |
parent | 42b0d31422e28eb445735cd8477ef7a4fd0ee769 (diff) | |
download | thedroneely.com-945c6fee7c59559fbb1e6f00cebb7e83b8bfa422.tar.gz thedroneely.com-945c6fee7c59559fbb1e6f00cebb7e83b8bfa422.tar.bz2 thedroneely.com-945c6fee7c59559fbb1e6f00cebb7e83b8bfa422.zip |
app/views/partials: Dry up header views by splitting it up into snippets
Minor CSS changes
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/partials/header.php | 12 | ||||
-rw-r--r-- | app/views/partials/header.posts.php | 12 | ||||
-rw-r--r-- | app/views/resume.view.php | 14 | ||||
-rw-r--r-- | app/views/snippets/favicons.php | 7 | ||||
-rw-r--r-- | app/views/snippets/rss.php | 1 | ||||
-rw-r--r-- | app/views/snippets/stylesheets.php | 1 |
6 files changed, 19 insertions, 28 deletions
diff --git a/app/views/partials/header.php b/app/views/partials/header.php index e69aee4..558ea2a 100644 --- a/app/views/partials/header.php +++ b/app/views/partials/header.php @@ -12,16 +12,10 @@ <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="Thedro Neely"/> + <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php'; ?> - <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> - <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> - <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> - <link rel="manifest" href="/site.webmanifest"> - <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> - <meta name="msapplication-TileColor" content="#b91d47"> - <meta name="theme-color" content="#ffffff"> + <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php'; ?> - <link rel="stylesheet" href="/css/tdro.css"> + <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php'; ?> </head> diff --git a/app/views/partials/header.posts.php b/app/views/partials/header.posts.php index 5825116..6cd9b45 100644 --- a/app/views/partials/header.posts.php +++ b/app/views/partials/header.posts.php @@ -7,14 +7,8 @@ <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="Thedro Neely"/> + <<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php'; ?> - <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> - <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> - <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> - <link rel="manifest" href="/site.webmanifest"> - <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> - <meta name="msapplication-TileColor" content="#b91d47"> - <meta name="theme-color" content="#ffffff"> + <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php'; ?> - <link rel="stylesheet" href="/css/tdro.css"> + <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php'; ?> diff --git a/app/views/resume.view.php b/app/views/resume.view.php index 1e71523..9be1b31 100644 --- a/app/views/resume.view.php +++ b/app/views/resume.view.php @@ -12,15 +12,9 @@ <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="Thedro Neely"/> + <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php'; ?> - <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> - <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> - <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> - <link rel="manifest" href="/site.webmanifest"> - <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> - <meta name="msapplication-TileColor" content="#b91d47"> - <meta name="theme-color" content="#ffffff"> + <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php'; ?> <style> @@ -48,7 +42,7 @@ </style> - <link rel="stylesheet" href="/css/tdro.css"> + <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php'; ?> <link rel="stylesheet" href="/css/bulma-timeline.css"> </head> @@ -65,7 +59,7 @@ <br> - <a href="/contact" class="title has-text-weight-light is-size-7 has-text-white text__frame">Contact for Full Resume</a> + <a href="/contact/" class="title has-text-weight-light is-size-7 has-text-white text__frame">Contact for Full Resume</a> <br> diff --git a/app/views/snippets/favicons.php b/app/views/snippets/favicons.php new file mode 100644 index 0000000..4659f68 --- /dev/null +++ b/app/views/snippets/favicons.php @@ -0,0 +1,7 @@ + <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> + <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> + <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> + <link rel="manifest" href="/site.webmanifest"> + <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> + <meta name="msapplication-TileColor" content="#b91d47"> + <meta name="theme-color" content="#ffffff"> diff --git a/app/views/snippets/rss.php b/app/views/snippets/rss.php new file mode 100644 index 0000000..c803b00 --- /dev/null +++ b/app/views/snippets/rss.php @@ -0,0 +1 @@ +<link href="/rss.xml" rel="feed" type="application/rss+xml" title="Thedro Neely"/> diff --git a/app/views/snippets/stylesheets.php b/app/views/snippets/stylesheets.php new file mode 100644 index 0000000..9449c8a --- /dev/null +++ b/app/views/snippets/stylesheets.php @@ -0,0 +1 @@ +<link rel="stylesheet" href="/css/tdro.css"> |