Skip to content
This repository has been archived by the owner on Jun 26, 2018. It is now read-only.

Commit

Permalink
added banner announcement (for mySoc recruitment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Whiteland committed Jan 24, 2012
1 parent b0610ab commit c6631a0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
11 changes: 10 additions & 1 deletion templates/website/header.php
Expand Up @@ -7,6 +7,9 @@

/* XXX @import url('...') uses single-quotes to hide the style-sheet
* from Mac IE. Ugly, but it works. */

$announcement = "Would you like to work with the team that built this site?
<strong><a href='http://mysocietyltd.theresumator.com/apply/'>We're recruiting.</a></strong>";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="<?=$lang ?>">
Expand Down Expand Up @@ -59,7 +62,7 @@

// Start flyers-printing again
if ($params['noprint']) print '</div> <!-- noprint -->';

// Display who is logged in
if ($P) {
print '<p id="signedon" class="noprint">';
Expand All @@ -78,6 +81,12 @@
<?=_('Search for pledges:')?> <input type="text" id="q" name="q" size="25" value="<?=htmlspecialchars(get_http_var('q', true))?>"><input type="submit" value="<?=_('Search')?>">
</form>

<? if ($announcement && ! $params['noprint']) { ?>
<div id="banner-announcement">
<?= $announcement ?>
</div>
<? }?>

<?=$params['banner']?>

<div id="pbcontent">
Expand Down
14 changes: 14 additions & 0 deletions web/pb.2.css
Expand Up @@ -169,6 +169,20 @@ h2 {
text-decoration: none;
}

#banner-announcement {
clear:both;
color:#fff;
background-color: #9C7BBD;
border-bottom: solid 1px #522994;
border-top: solid 1px #522994;
font-size:83%;
padding:0.5em;
margin-bottom: 1em;
}
#banner-announcement a:visited{
color: #522994;
}

#language {
width: 10em;
}
Expand Down

0 comments on commit c6631a0

Please sign in to comment.