Example #1
0
<!DOCTYPE html>
<html lang="en">
<head>
    <title>About the Brothers</title>

    <?php 
include "./template/head.php";
include "./template/footer.php";
include "./template/navbar.php";
loadHead();
?>
</head>
<body>
    <?php 
loadNavbar();
?>
    <div class="container-fluid">
        <div class="row top-buffer">
            <div class="col-md-3">
                <h1 class="text-center">About the Brothers</h1>
            </div>
        </div>
        <hr>
    </div>
    <div class="container-fluid">
        <!-- TODO:Add Parallax Scrolling Images-->
        <!-- TODO:Maybe add Instagram feed viewer-->
        <hr>
    </div>
    <?php 
loadFooter();
Example #2
0
<?php

namespace Components\Head;

function loadHead()
{
    $dom = \shgysk8zer0\DOM\HTML::getInstance();
    $url = \shgysk8zer0\Core\URL::getInstance();
    unset($url->path, $url->query, $url->fragment, $url->user, $url->pass);
    $frag = $dom->createDocumentFragment();
    $frag('title', 'Ad Insertion');
    $frag('link', null, ['rel' => 'icon', 'href' => 'favicon.svg', 'type' => 'image/svg+xml', 'sizes' => 'any']);
    $frag('link', null, ['rel' => 'stylesheet', 'href' => 'stylesheets/styles/styles.css', 'media' => 'all']);
    $frag('link', null, ['rel' => 'prefetch', 'href' => 'images/icons.svg', 'type' => 'image/svg+xml']);
    $frag('base', null, ['href' => $url]);
    $frag('script', null, ['type' => 'application/javascript', 'src' => 'scripts/custom.js', 'defer' => true]);
    $frag('meta', null, ['name' => 'description', 'content' => 'An ad insertion form for the Kern Valley Sun']);
    return $frag;
}
return loadHead();