Browse code

Made a project function and loaded a couple to test

Philip I. Thomas authored on 19/10/2012 at 04:05:41
Showing 1 changed files
... ...
@@ -212,9 +212,10 @@ iprogram('Unix System Administration','40');
212 212
 		<h4>Select Projects</h4>
213 213
 		<hr />
214 214
 		<ul>
215
-			<li>One project</li>
216
-			<li>Another Project</li>
217
-			<li>A third project. That's pretty cool.</li>
215
+		<?php
216
+			project('Food Trucks Near Me','http://foodtrucksnearme.com','');
217
+			project('Computational Analysis of Diffusion as a Stochastic System','','http://github.com/philipithomas/diffusion');
218
+		?>
218 219
 		</ul>
219 220
 	</div>
220 221
 </div>
... ...
@@ -287,6 +288,7 @@ function position($company,$city,$job,$dates,$blob) {
287 287
 }
288 288
 
289 289
 function iprogram($language,$percent) {
290
+	// Progress bars for technical section
290 291
 	echo '
291 292
 	<div class="row">
292 293
 	    <div class="span2">
... ...
@@ -303,4 +305,17 @@ function iprogram($language,$percent) {
303 303
 	';
304 304
 	
305 305
 }
306
+
307
+function project($name,$look,$code) {
308
+	// Makes lists for displaying projects
309
+	echo '<li>'.$name;
310
+	if (!empty($look)) {
311
+		// link to look at completed project
312
+		echo ' <a href="'.$look.'" target="_BLANK" class="badge"><i class="icon-play"></i></a>';
313
+	}
314
+	if (!empty($code)) {
315
+		// link to look at completed project
316
+		echo ' <a href="'.$code.'" target="_BLANK" class="badge"><i class="icon-cog"></i></a>';
317
+	}
318
+}
306 319
 ?>
307 320
\ No newline at end of file