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

Last change on this file since 28994 was 28994, checked in by jmpp@…, 13 years ago
  • Rework the $mp_version* variables into $mp_version_major & $mp_version_latest, use them appropriately;
  • Abstract commonly used links in includes/common.inc and use them throughout all the files, but mainly in getmp.php;
  • Point the help section referenced in getmp.php to our trac portal;

NOTE: "Help" section and "SVN sources" in getmp.php still need to be rewritten.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1<?php
2/* $Id: header.inc 28994 2007-09-12 22:33:44Z jmpp@macports.org $ */
3global $mp_version_major, $trac_url;
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="http://svn.macports.org/repository/macports/downloads/MacPorts-<?php print "$mp_version_major"; ?>">MacPorts Downloads</a></li>
48                <li><a href="http://svn.macports.org/repository/macports/">Subversion Repository</a></li>
49                <li><a href="http://trac.macports.org/projects/macports/wiki/FAQ">MacPorts FAQ</a></li>
50                <li><a href="http://trac.macports.org/projects/macports/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.