forked from processing/p5.js-website-OLD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
47 lines (39 loc) · 2.02 KB
/
sidebar.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
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<?php
$tagline;
$path = getcwd();
if (strpos($path, "download") !== false) {
$tagline = "Processing fun times JavaScript quirkiness";
} else if (strpos($path, "get") !== false) {
$tagline = "Processing simplicity times JavaScript flexibility";
} else if (strpos($path, "reference") !== false || strpos($path, "libraries") !== false) {
$tagline = "Processing intuition times JavaScript power";
} else if (strpos($path, "learn") !== false) {
$tagline = "Processing creativity times JavaScript dynamism";
} else if (strpos($path, "contribute") !== false) {
$tagline = "Processing community times JavaScript community";
} else {
$tagline = "the power of Processing times the reach of JavaScript";
}
?>
<?php include('heading.php'); ?>
<!-- site navigation -->
<div class="column-span">
<ul id="menu">
<li><a href="<?php echo getRoot(); ?>">Home</a></li>
<li><a href="<?php echo getRoot(); ?>download/">Download</a></li>
<li><a href="<?php echo getRoot(); ?>get-started/">Get Started</a></li>
<li><a href="<?php echo getRoot(); ?>reference/">Reference</a></li>
<li><a href="<?php echo getRoot(); ?>libraries/">Libraries</a></li>
<li><a href="<?php echo getRoot(); ?>learn/">Learn</a></li>
<li><a href="<?php echo getRoot(); ?>learn/#examples">Examples</a></li>
<li><a href="<?php echo getRoot(); ?>contribute/">Contribute</a></li>
<li><a href="http://forum.processing.org/two/" target=_blank class="other-link">Forum</a></li>
<li><a href="http://github.com/processing/p5.js" target=_blank class="other-link">Github</a></li>
<li><a href="http://twitter.com/p5xjs" target=_blank class="other-link">Twitter</a></li>
</ul>
<br />
</div>
<script src="<?php echo getRoot(); ?>js/scroll.js"></script>