-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
184 lines (163 loc) · 7.89 KB
/
index.php
File metadata and controls
184 lines (163 loc) · 7.89 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?php
// vars
$today = '';
$thisMonth = ' This Month';
// if you must, manually put in a date
$third_Tuesday = '';
if($third_Tuesday === ''){
$currMonth = date("n");
$currYear = date("Y");
$currThirdTuesday = date("d", strtotime("third tuesday", mktime(0,0,0,$currMonth,1,$currYear)));
if ($currThirdTuesday < date("d")){
// if day has past
$third_Tuesday = date("l, F d, Y", strtotime("third tuesday", mktime(0,0,0,$currMonth+1,1,$currYear)));
$thisMonth = ' Next Month';
}
else if($currThirdTuesday == date("d")){
// if today
$third_Tuesday = date("l, F d, Y", strtotime("third tuesday", mktime(0,0,0,$currMonth,1,$currYear)));
$today = 'today, ';
$thisMonth = ' Tonight';
}
else {
// is a day yet to come this month
$third_Tuesday = date("l, F d, Y", strtotime("third tuesday", mktime(0,0,0,$currMonth,1,$currYear)));
}
}
// page variables
$title = "Coding Meetup for Jackson, TN | CO:de";
$description = "Become a coder. Join us" . $today . $third_Tuesday . "@theCO";
$shareImage = "./assets/images/code-page.png";
$pageURL = "http://code.attheco.com";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
<title><?php echo $title; ?></title>
<meta name="description" content="<?php echo $description; ?>">
<!-- for Google -->
<meta name="description" content="<?php echo $description; ?>" />
<meta name="author" content="theCO" />
<!-- for Facebook -->
<meta property="og:title" content="<?php echo $title; ?>" />
<meta property="og:type" content="website" />
<meta property="og:image" content="<?php echo $shareImage; ?>" />
<meta property="og:url" content="<?php echo $pageURL; ?>" />
<meta property="og:description" content="<?php echo $description; ?>" />
<!-- for Twitter -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="<?php echo $title; ?>" />
<meta name="twitter:description" content="<?php echo $description; ?>" />
<meta name="twitter:image" content="<?php echo $shareImage; ?>" />
<!-- fonts -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700|Open+Sans:400,700" rel="stylesheet">
<!-- styles -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/main.css">
<!-- scripts -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Heap analytics -->
<script type="text/javascript">
window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=t.forceSSL||"https:"===document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=(r?"https:":"http:")+"//cdn.heapanalytics.com/js/heap-"+e+".js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n);for(var o=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","removeEventProperty","setEventProperties","track","unsetEventProperty"],c=0;c<p.length;c++)heap[p[c]]=o(p[c])};
heap.load("129897973");
</script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-brand logo">
<a href="http://code.attheco.com" class="brand">CO:de</a>
<a href="http://attheco.com" class="umbrella-brand">@theCO</a>
</div>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-right" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="https://www.attheco.com/allevents/code">Meetups</a>
</li>
<li>
<a href="https://www.youtube.com/playlist?list=PLnmaTbl4XQyQfwDVYnq9q5Tf4pNdl1Dh1">Videos</a>
</li>
<li>
<a href="http://devcatalyst.com">Dev.Catalyst</a>
</li>
<!-- <li>
<a href="http://bit.ly/codemeetupsurvey">Survey</a>
</li> -->
<li>
<a href="http://eepurl.com/cGc24v">Sign Up</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<div class="header-wrap">
<div class="container header section-space">
<div class="row">
<div class="col-md-8 col-md-offset-2 text-center">
<h1>Build Your Coding Skills Together</h1>
<!-- <p>Our next meetup is <?php echo $today; ?><?php echo $third_Tuesday; ?> @theCO.</p>
<a href="https://www.attheco.com/allevents/2017/10/16/code" class="btn btn-default">Join Us<?php echo $thisMonth; ?></a> -->
</div>
</div>
</div> <!-- /container -->
</div>
<div class="container section-space">
<div class="row">
<div class="col-md-6">
<h2>Watch videos from the last meetup.</h2>
<p>Every month we have new instructional videos from the last meetup's coding talks.</p>
<p>
<a href="https://www.youtube.com/playlist?list=PLnmaTbl4XQyQfwDVYnq9q5Tf4pNdl1Dh1"><img src="./assets/images/code-videos.gif" alt="code-videos" class="img-responsive"></a>
</p>
<p><a href="https://www.youtube.com/playlist?list=PLnmaTbl4XQyQfwDVYnq9q5Tf4pNdl1Dh1" class="btn btn-default">Start Learning Now</a></p>
</div>
<div class="col-md-6">
<h2>Web Developer Toolbelt</h2>
<p>Here are some tools we love and encourage beginners to learn about.</p>
<p>
<a href="https://www.sublimetext.com/3" class="btn btn-default btn-outline btn-pill"><i class="fa fa-link"></i> sublime text</a>
<a href="https://try.github.io/levels/1/challenges/1" class="btn btn-default btn-outline btn-pill"><i class="fa fa-link"></i> git</a>
<a href="http://fontawesome.io/icons/" class="btn btn-default btn-outline btn-pill"><i class="fa fa-link"></i> font awesome</a>
</p>
<h2>Want to be a CO:de Speaker?</h2>
<p>Show what you know, gain experience, and give back to the community.</p>
<p><a href="https://william10.typeform.com/to/vp9Cfo" class="btn btn-default btn-outline">Speaker Registration</a></p>
</div>
</div>
</div> <!-- /container -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<p class="text-center">© <?php echo date('Y'); ?> theCO | 541 Wiley Parker Rd, Jackson, Tennessee 38305 | 731.554.5555 | <a target="_blank" href="mailto:info@attheco.com">email us</a></p>
</div>
</div>
</div>
</footer> <!-- /container -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-23645646-6', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>