Skip to content

Commit

Permalink
Homepage: Relocated the latest version text out of GetItNow panel
Browse files Browse the repository at this point in the history
The latest version element is now generated by the "latestversion"
HTML template. This should now be replaced with a jQuery of the
actual latest stable version, thereby removing another vector for
change when a new version is released.
  • Loading branch information
danij-deng committed Mar 30, 2012
1 parent cefbd37 commit 3f896ab
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
2 changes: 2 additions & 0 deletions web/plugins/z#home/home.php
Expand Up @@ -64,6 +64,8 @@ public function execute($args=NULL)
$FrontController->outputHeader($FrontController->siteDescription());
$FrontController->beginPage($this->title());

includeHTML('latestversion', 'z#home');

?><div class="asideboxgroup"><div id="downloadbox" class="asidebox"><?php

includeHTML('getitnow', 'z#home');
Expand Down
3 changes: 1 addition & 2 deletions web/plugins/z#home/html/getitnow.html
@@ -1,5 +1,4 @@
<a class="getitnow-label" href="http://sourceforge.net/project/platformdownload.php?group_id=74815" title="Download Doomsday Engine NOW for my platform">Get it <strong>NOW</strong> <span class="free-label">- free</span><br />
<span class="version-label">Doomsday 1.9.7</span></a>
<a class="getitnow-label" href="http://sourceforge.net/project/platformdownload.php?group_id=74815" title="Download Doomsday Engine NOW for my platform">Get it <strong>NOW</strong> <span class="free-label">- free</span></a>
<div class="hnav platform_buttons">
<ul>
<li><a href="/windows" class="platform_icon windows_icon" title="Doomsday for Windows"><span class="hidden">Download Doomsday Engine for Windows</span></a></li><li><a href="/mac_os" class="platform_icon macos_icon" title="Doomsday for Mac OS X"><span class="hidden">Download Doomsday Engine for Mac OS</span></a></li><li><a href="/ubuntu" class="platform_icon ubuntu_icon" title="Doomsday for Ubuntu"><span class="hidden">Download Doomsday Engine for Ubuntu</span></a></li><li><a href="/linux" class="platform_icon linux_icon" title="Doomsday for Linux"><span class="hidden">Download Doomsday Engine for Linux</span></a></li>
Expand Down
1 change: 1 addition & 0 deletions web/plugins/z#home/html/latestversion.html
@@ -0,0 +1 @@
<div id="latestversion"><h1>1.9.7</h1></div>
30 changes: 23 additions & 7 deletions web/style.css
Expand Up @@ -451,15 +451,32 @@ ol.jumplist li {
float: left;
margin-top: -5.4em;
white-space: nowrap;
color: white;
z-index: 1;
}

#pageheading h1 {
color: #ffffff;
#latestversion {
position: relative;
float: right;
margin-top: -5.4em;
white-space: nowrap;
color: white;
z-index: 1;
}

#pageheading h1,
#latestversion h1 {
font-size: 280%;
}

#pageheading h1 {
margin-left: .4em;
}

#latestversion h1 {
margin-right: .25em;
}

#contentbox, #contentbox2 {
background: #ffffff;
padding-left: .6em;
Expand Down Expand Up @@ -626,6 +643,10 @@ p.legal a {
text-align: center;
}

#downloadbox div.hnav ul {
margin-top: 0;
}

#downloadbox div.hnav ul li, div.platform_buttons ul li {
padding: 0;
margin: 0;
Expand Down Expand Up @@ -676,7 +697,6 @@ p.legal a {
.getitnow-label {
font-size: x-large;
text-align:center;
margin-left:-1em;
}

.getitnow-label a, a:hover, a:visited:hover {
Expand All @@ -688,10 +708,6 @@ p.legal a {
font-size: medium;
}

.getitnow-label span.version-label {
padding-left: 1em;
}

#socialbookmarkbox ul li {
list-style-type: none;
}
Expand Down

0 comments on commit 3f896ab

Please sign in to comment.