This repository has been archived by the owner on Aug 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
109 lines (86 loc) · 4.01 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
/**
* Our Homepage - Where the magic happens.
*
* @package ChristopherL.com
* @copyright 2016-2018 ChristopherL (https://github.com/christopherldotcom)
* @license http://www.gnu.org/licenses/gpl-2.0.html
*/
// Load Site Configuration
require_once('include/config.inc.php');
require_once('include/functions.inc.php');
// Load Smarty Library and Plugin
require_once('include/libs/smarty/Smarty.class.php');
// Instantiate Smarty Class then build page if not cached
$smarty = new Smarty();
$cache_id = 'homepage';
if (!$smarty->isCached('base.tpl', $cache_id)) {
smarty_scaffolding($smarty, $config);
// Create Meta & Page Settings
$smarty->assign('page_title', 'Serious Business, Since 1999 :: ChristopherL');
$smarty->assign('page_desc', 'More than a homepage, ChristopherL has been serious about web development and digital marketing since 1999. Join us for a look at the brand behind the geek.');
$smarty->assign('page_url', '/');
$smarty->assign('active_nav', 'home');
$smarty->assign('hero_image', complete_url('/img/heros/homepage.jpg', 1));
// Social Images
$smarty->assign('image_facebook', '/img/social/home.jpg');
$smarty->assign('image_twitter', '/img/social/home.jpg');
// Optional Extras
$smarty->assign('head_extras', '');
$smarty->assign('body_header_extras', '');
$smarty->assign('body_footer_extras', '');
$footer_cta = newsletter_subscribe();
$image_root = complete_url('', 1);
// Page Content
$content = <<<HTML
<section class="image-right">
<div class="the-outer-limits">
<h1>Greetings & Salutations</h1>
<p>
It's a big internet out there, thank you for visiting this little corner of it. Since you're here you may find yourself asking,
<i>"What is ChristopherL?"</i> An idea? A dream? A vision? A tongue in cheek brand for a Portland, Oregon based web developer?
… The truth is, it's all these things, and much more.
</p>
<p>
We're stoked for an opportunity to help you get to know ChristopherL better. So pull up a chair, get comfortable,
and <i>do it</i>.
</p>
<div class="shia" style="background: url('{$image_root}/img/shia.png');">
<div class="play-button" data-featherlight="#fl1" data-event="play pep talk video"></div>
</div>
</div>
</section>
<section class="highlight button-links">
<div class="the-outer-limits container row">
<div class="six columns">
<h3><span class="hidden-phone">Web</span> Development</h3>
<p>
We call it <i>Codetry</i>®, and it's about more than just good software.
</p>
<a href="development"><span class="action-desktop">Click</span><span class="action-mobile">Tap</span> to View Source</a>
</div>
<div class="six columns">
<h3><span class="hidden-phone">Digital</span> Marketing</h3>
<p>
Data insights and automation isn't just for nerds anymore.
</p>
<a href="marketing"><span class="action-desktop">Click</span><span class="action-mobile">Tap</span> to Get Inbound</a>
</div>
</div>
</section>
{$footer_cta}
<iframe src="https://www.youtube-nocookie.com/embed/ZXsQAXx_ao0?showinfo=0&showsearch=0&rel=0&iv_load_policy=3&cc_load_policy=0&hd=1"
frameborder="0"
width="560"
height="315"
allowfullscreen
id="fl1" class="fl"
sandbox="allow-same-origin allow-scripts"></iframe>
HTML;
$smarty->assign('content', smarty_content($content));
// Smoosh it all down, this will make viewing the page source a pain for people
// but will save literally 10 of milliseconds in page download time.
smarty_smoosh();
}
// Output the page
$smarty->display('base.tpl', $cache_id);