Changeset 31627 for trunk/www


Ignore:
Timestamp:
Dec 1, 2007, 1:00:32 AM (12 years ago)
Author:
jmpp@…
Message:

Turn warning boxes into classes until I can figure out a smarter way of outputting the div delimiters in case there are no warnings to print
(currently, if we're running from www.macports.org and we're not referred to it by our beloved leech, no warnings are printed but the divs
still are -- since they're outside the if conditionals --, which gives us a resulting empty & meaningless pink box at the top of our pages).

Location:
trunk/www
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/includes/warnings.inc

    r31476 r31627  
    66
    77
    8 <div id="warnings">
    9 
    108<?php
    119# Warning against darwinports.com leech!
    1210if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'darwinports.com') !== false) {
    1311?>
     12
     13    <div class="warnings">
    1414
    1515    <p>You have arrived at the <b>Official MacPorts Web Site</b> from <i>darwinports.com</i>.</p>
     
    2121    in any way by <i>The MacPorts Project</i>. For the most accurate information about MacPorts, please bookmark this site,
    2222    <a href="http://www.macports.org">http://www.macports.org</a>.</p>
     23   
     24    </div>
    2325
    2426<?php       
     
    2931?>
    3032
     33    <div class="warnings">
     34
    3135    <p>Warning: This is a temporary installation of the new &amp; re-designed website for The MacPorts Project. Official site
    3236    is located at <a href="http://www.macports.org">http://www.macports.org</a> as always.</p>
     37   
     38    </div>
    3339
    3440<?php
    3541}
    3642?>
    37 
    38 </div>
  • trunk/www/macports.css

    r31597 r31627  
    169169}
    170170
    171 #warnings p {
     171.warnings p {
    172172    margin: 1em 0 0 0;
    173173}
    174174
    175 #warnings p:first-child {
     175.warnings p:first-child {
    176176    margin: 0;
    177177}
Note: See TracChangeset for help on using the changeset viewer.