summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-12-18 15:27:07 +0100
committerPierre Schmitz <pierre@archlinux.de>2008-12-18 15:27:07 +0100
commitde5fed526fb1bc218abe51b166691ebc3bd113b6 (patch)
treede78077e58b853cc7e5fee022a0c8ddf4ad73bff /skins
parentae18aacce078c32d8ad4b9876e4257fdcb02e181 (diff)
added english logo; make main menu configurable
Diffstat (limited to 'skins')
-rw-r--r--skins/ArchLinux.php53
-rw-r--r--skins/archlinux/archlinux.css2
-rw-r--r--skins/archlinux/logo-de.png (renamed from skins/archlinux/logo.png)bin8241 -> 8241 bytes
-rw-r--r--skins/archlinux/logo-en.pngbin0 -> 4462 bytes
4 files changed, 15 insertions, 40 deletions
diff --git a/skins/ArchLinux.php b/skins/ArchLinux.php
index 179b5eb6..5ccdfe0e 100644
--- a/skins/ArchLinux.php
+++ b/skins/ArchLinux.php
@@ -13,9 +13,7 @@ if( !defined( 'MEDIAWIKI' ) )
/**
* Inherit main code from SkinTemplate, set the CSS and template filter.
* @todo document
- * @addtogroup Skins
- * @package MediaWiki
- * @subpackage Skins
+ * @ingroup Skins
*/
class SkinArchLinux extends SkinTemplate {
/** Using archlinux. */
@@ -45,7 +43,7 @@ class ArchLinuxTemplate extends QuickTemplate {
* @access private
*/
function execute() {
- global $wgRequest;
+ global $wgRequest, $wgArchNavBar, $wgArchNavBarSelected;
$this->skin = $skin = $this->data['skin'];
$action = $wgRequest->getText( 'action' );
@@ -94,31 +92,29 @@ class ArchLinuxTemplate extends QuickTemplate {
<script type="<?php $this->text('jsmimetype') ?>"><?php $this->html('userjsprev') ?></script>
<?php }
if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>
- <link rel="shortcut icon" href="favicon.ico" />
</head>
<body<?php if($this->data['body_ondblclick']) { ?> ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
<?php if($this->data['body_onload']) { ?> onload="<?php $this->text('body_onload') ?>"<?php } ?>
class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?>">
<?php if (empty($_REQUEST['printable'])) {?>
- <h1 id="logo">Arch Linux</h1>
+ <a id="logo" style="background-image: url(<?php $this->text('logopath') ?>);" <?php
+ ?>href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"<?php
+ echo $skin->tooltipAndAccesskey('n-mainpage') ?>></a>
<div id="nav_bar">
<ul id="nav">
<?php
- $donateTab = '';
- $wikiTab = '';
-
- if ($this->data['title'] == 'Spenden') {
- $donateTab = ' class="selected"';
- } else {
- $wikiTab = ' class="selected"';
+ if (isset($wgArchNavBar)) {
+ foreach ($wgArchNavBar as $name => $url) {
+ if (isset($wgArchNavBarSelected) && $name == $wgArchNavBarSelected) {
+ $selected = ' class="selected"';
+ } else {
+ $selected = '';
+ }
+ echo '<li'.$selected.'><a href="'.$url.'">'.$name.'</a></li>';
+ }
}
?>
- <li<?php echo $donateTab; ?>><a href="http://wiki.archlinux.de/title/Spenden">Spenden</a></li>
- <li><a href="http://www.archlinux.de/?page=Packages">Pakete</a></li>
- <li<?php echo $wikiTab; ?>><a href="http://wiki.archlinux.de/title/Hauptseite">Wiki</a></li>
- <li><a href="http://forum.archlinux.de/?page=Forums;id=20">Forum</a></li>
- <li><a href="http://www.archlinux.de/?page=Start">Start</a></li>
</ul>
</div>
<div id="subnav_bar"></div>
@@ -188,13 +184,6 @@ class ArchLinuxTemplate extends QuickTemplate {
</ul>
</div>
</div>
- <!--
- <div class="portlet" id="p-logo">
- <a style="background-image: url(<?php $this->text('logopath') ?>);" <?php
- ?>href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"<?php
- echo $skin->tooltipAndAccesskey('n-mainpage') ?>></a>
- </div>
- -->
<script type="<?php $this->text('jsmimetype') ?>"> if (window.isMSIE55) fixalpha(); </script>
<?php
$sidebar = $this->data['sidebar'];
@@ -216,20 +205,6 @@ class ArchLinuxTemplate extends QuickTemplate {
</div><!-- end of the left (by default at least) column -->
<div class="visualClear"></div>
<div id="footer">
-<?php
- if($this->data['poweredbyico']) { ?>
- <!--
- <div id="f-poweredbyico"><?php $this->html('poweredbyico') ?></div>
- -->
-<?php }
- if($this->data['copyrightico']) { ?>
- <!--
- <div id="f-copyrightico"><?php $this->html('copyrightico') ?></div>
- -->
-<?php }
-
- // Generate additional footer links
-?>
<ul id="f-list">
<?php
$footerlinks = array(
diff --git a/skins/archlinux/archlinux.css b/skins/archlinux/archlinux.css
index c769c4ec..548ed678 100644
--- a/skins/archlinux/archlinux.css
+++ b/skins/archlinux/archlinux.css
@@ -31,7 +31,7 @@ a:hover {
left: 25px;
width: 350px;
text-indent: -9999px;
- background: transparent url("logo.png") top left no-repeat;
+ background: transparent top left no-repeat;
border:none;
width: 350px;
height: 103px;
diff --git a/skins/archlinux/logo.png b/skins/archlinux/logo-de.png
index 32467a84..32467a84 100644
--- a/skins/archlinux/logo.png
+++ b/skins/archlinux/logo-de.png
Binary files differ
diff --git a/skins/archlinux/logo-en.png b/skins/archlinux/logo-en.png
new file mode 100644
index 00000000..0e7929bf
--- /dev/null
+++ b/skins/archlinux/logo-en.png
Binary files differ