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 pathdevelopment.php
142 lines (122 loc) · 5.64 KB
/
development.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
/**
* Development Page - Refactor this.
*
* @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 = 'development';
if (!$smarty->isCached('base.tpl', $cache_id)) {
smarty_scaffolding($smarty, $config);
// Create Meta & Page Settings
$smarty->assign('page_title', 'Your Friendly Neighborhood Web Developer, Since 1999 :: ChristopherL');
$smarty->assign('page_desc', 'It doesn\'t take a HubSpot Inbound Certification to know how to build a good website. But it helps. And ChristopherL has both.');
$smarty->assign('page_url', '/development');
$smarty->assign('active_nav', 'development');
$smarty->assign('hero_image', complete_url('/img/heros/development.jpg', 1));
// Social Images
$smarty->assign('image_facebook', '/img/social/development.jpg');
$smarty->assign('image_twitter', '/img/social/development.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>Working the 1s and 0s</h1>
<img src="{$image_root}/img/at-desk.jpg"
alt="A Person Sitting at a Desk"
title="Poet At Work"
width="300">
<p>
Long ago a, now ubiquitous, <a href="https://wordpress.org/" target="_blank">blogging software</a> project popularized the phrase
<i>code is poetry</i>. We at ChristopherL believe that it should be. Creating software is not dissimilar to creating art. The software
development process is a journey, the poetry of source code tells the story of that journey and the people who share it.
</p>
<h2>Open Source Software</h2>
<p>
At ChristopherL we want to share our journey with as many people as possible, in our own small way, which is why we release
all our projects as open source.
</p>
<p>
All of the following are available for you to enjoy for free,
<a href="https://en.wikipedia.org/wiki/Gratis_versus_libre" target="_blank">as in beer and speech</a>.
</p>
<ul>
<li>
<a href="https://github.com/christopherldotcom/ChristopherL" target="_blank">ChristopherL</a>
- The code that runs this very website. You're using it right now!
</li>
<li>
<a href="https://github.com/christopherldotcom/utm.codes" target="_blank">utm.codes</a>
- A helpful WordPress plugin.
</li>
<li>
<a href="https://github.com/christopherldotcom/cl_database" target="_blank">cl_database</a>
– A simple PHP database class.
</li>
<li>
<a href="https://github.com/christopherldotcom/cl_session" target="_blank">cl_session</a>
– A friendly PHP session class.
</li>
<li>
<a href="https://github.com/christopherldotcom/Helios-Calendar" target="_blank">Helios Calendar</a>
– A once grand web calendar, now filled with nostalgia.
</li>
<li>
<a href="https://github.com/christopherldotcom/dots" target="_blank">dots</a>
- A collection of odds and ends to help make machine setup easier.
</li>
</ul>
</div>
</section>
<section class="highlight logos">
<div class="the-outer-limits container row">
<div class="two columns">
<img src="{$image_root}/img/logos/php.png" alt="PHP Logo" height="50">
</div>
<div class="two columns">
<img src="{$image_root}/img/logos/mysql.png" alt="MySQL Logo" height="50">
</div>
<div class="two columns">
<img src="{$image_root}/img/logos/javascript.png" alt="JavaScript Logo" height="50">
</div>
<div class="two columns">
<img src="{$image_root}/img/logos/html_css.png" alt="HTML5 and CSS3 Logos" height="50">
</div>
<div class="two columns">
<img src="{$image_root}/img/logos/apache.png" alt="Apache Logo" height="50">
</div>
<div class="two columns">
<img src="{$image_root}/img/logos/others_dev.png" alt="Other Development Tool Logos" height="50">
</div>
</div>
</section>
{$footer_cta}
<span class="lightbox egg" data-featherlight="#fl1" data-event="dev easter egg">:)</span>
<img src="{$image_root}/img/stocking-hat.jpg"
alt="A Dragon in a Stocking Hat"
title="It Keeps His Ears Warm While He Codes"
id="fl1"
class="fl"
width="500">
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);