source: trunk/www/includes/header.inc @ 29011

Last change on this file since 29011 was 29011, checked in by jmpp@…, 13 years ago

Rework the URL abstraction variables and extend their usage to the remaining pages.
Also correct some href's to reflect the flat directory layout we now have for all
our pages (that is, no more hardcoded 'macports' dir).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1<?php
2/* $Id: header.inc 29011 2007-09-13 05:41:18Z jmpp@macports.org $ */
3global $mp_version_major, $trac_url, $svn_url, $downloads;
4?>
5
6<h1>
7    <a href="http://www.macports.org/" title="MacPorts"><span class="accessibility">MacPorts</span></a>
8</h1>
9<p class="accessibility"><a href="#content">Skip to Content</a></p>
10<div id="header">
11    <a id="download" href="getmp.php"><span class="accessibility">Download MacPorts</span></a>
12    <span class="accessibility">View site in</span>
13    <span><a href="#" id="language"><img src="img/en-enabled.png" alt="English" width="30" height="48" /></a></span>
14    <span id="languages">
15        <a href="#"><img src="img/fr-disabled.png" alt="Fran&ccedil;ais" width="30" height="48" /></a><a href="#"><img src="img/es-disabled.png" alt="Espa&ntilde;ol" width="30" height="48" /></a><a href="#"><img src="img/ru-disabled.png" alt="" width="30" height="48" /></a><a href="#"><img src="img/it-disabled.png" alt="Italiano" width="30" height="48" /></a>
16    </span>
17</div>
18
19<div id="navigation">
20    <dl>
21        <dt>Getting Started</dt>
22        <dd>
23            <ul>
24<?php
25                $PHP_SELF = $_SERVER['PHP_SELF'];
26                $pages = array (
27                    'Home' => 'index.php',
28                    'Get MacPorts' => 'getmp.php',
29                    'Available Ports' => 'ports.php',
30                    'Documentation' => 'http://geeklair.net/new_macports_guide',
31                    'Support &amp; Development' => "$trac_url"
32                );
33
34                foreach ($pages as $title => $url) {
35                    if ($PHP_SELF == $url) {
36                        echo "<li class=\"selected\"><a href=\"$url\" title=\"$title\">$title</a></li>\n";
37                    } else {
38                        echo "<li><a href=\"$url\" title=\"$title\">$title</a></li>\n";
39                    }
40                }
41?>
42            </ul>
43        </dd>
44        <dt>Shortcuts</dt>
45        <dd>
46            <ul>
47                <li><a href="<?php print $downloads; ?>">MacPorts Downloads</a></li>
48                <li><a href="<?php print $svn_url; ?>">Subversion Repository</a></li>
49                <li><a href="<?php print $trac_url . 'wiki/FAQ'; ?>">MacPorts FAQ</a></li>
50                <li><a href="<?php print $trac_url . 'newticket'; ?>">Report a Bug</a></li>
51            </ul>
52        </dd>
53    </dl>
54</div>
55
56<p class="warning"> Warning: This is just a test installation of a new design for the MacPorts project page,
57official site is located at <a href="http://www.macports.org">http://www.macports.org</a> as always.</p>
Note: See TracBrowser for help on using the repository browser.