Changeset 1087 for trunk


Ignore:
Timestamp:
2012-07-30T09:40:17+02:00 (3 years ago)
Author:
moo
Message:

htdocs: standard xhtml/css

Location:
trunk/htdocs
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/cacher/cacher.css

    r1085 r1087  
    1212.hitsgraph { margin: auto; }
    1313.hitsgraph a { display: block; float: left; border: 0 solid gray; }
     14.hitsgraph a { width: 2px; height: 20px; border-top-width: 1px; border-bottom-width: 1px; } /* update this along with index.php */
    1415.hitsgraph a * { display: block; }
    1516.hitsgraph a.active { border-top-color: yellow; }
  • trunk/htdocs/cacher/index.php

    r1086 r1087  
    112112
    113113    $html = array();
    114     static $cssOut = false;
    115     if (!$cssOut) {
    116         $cssOut = true;
    117         $html[] = '<style type="text/css">';
    118         $html[] = '.hitsgraph a { width: 2px; height: 20px; border-top-width: 1px; border-bottom-width: 1px; }';
    119         $html[] = '</style>';
    120     }
    121 
    122114    $width = count($ci[$key]) * 2;
    123115    $html[] = '<div class="hitsgraph" style="width: ' . $width . 'px">';
  • trunk/htdocs/common/common.css

    r1082 r1087  
    3737}
    3838#header #banner {
    39     font: 32px/51px serif;
     39    font: 32px/51px "arial", serif;
    4040    color: white;
    41     font-family: "arial", serif;
    4241}
    4342#header #banner a {
  • trunk/htdocs/common/common.php

    r1086 r1087  
    5252                "http://www.lighttpd.net/" => "Lighttpd",
    5353                ) as $url => $title) {
    54         $html[] = sprintf('<a href="%s" target="_blank">%s</a>', $url, $title);
     54        $html[] = sprintf('<a href="%s" rel="external">%s</a>', $url, $title);
    5555    }
    5656    return implode('|', $html);
     
    119119        }
    120120    }
    121     else if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
    122         foreach (explode(',', str_replace(' ', '', $_SERVER['HTTP_ACCEPT_LANGUAGE'])) as $lang) {
    123             $lang = strtok($lang, ':;');
    124             $file = get_language_file_ex($name, $lang);
    125             if (isset($file)) {
    126                 $config['lang'] = $lang;
    127                 break;
    128             }
    129             if (strpos($lang, '-') !== false) {
    130                 $file = get_language_file_ex($name, strtok($lang, ':-'));
     121    else {
     122        $config['lang'] = 'en';
     123
     124        if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
     125            foreach (explode(',', str_replace(' ', '', $_SERVER['HTTP_ACCEPT_LANGUAGE'])) as $lang) {
     126                $lang = strtok($lang, ':;');
     127                $file = get_language_file_ex($name, $lang);
    131128                if (isset($file)) {
    132129                    $config['lang'] = $lang;
    133130                    break;
     131                }
     132                if (strpos($lang, '-') !== false) {
     133                    $file = get_language_file_ex($name, strtok($lang, ':-'));
     134                    if (isset($file)) {
     135                        $config['lang'] = $lang;
     136                        break;
     137                    }
    134138                }
    135139            }
  • trunk/htdocs/common/footer.tpl.php

    r1068 r1087  
    44        <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" />
    55    </a>
    6     <a href="http://feed.w3.org/check.cgi?url=http://<?php echo $_SERVER["HTTP_HOST"], $_SERVER["REQUEST_URI"]; ?>">
    7         <img src="http://validator.w3.org/feed/images/valid-rss-rogers.png" alt="Valid RSS" title="Validate my RSS feed" />
     6    <a href="http://jigsaw.w3.org/css-validator/check/referer">
     7        <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" />
    88    </a>
    99    <div id="poweredBy">
  • trunk/htdocs/common/header.tpl.php

    r1085 r1087  
    1414<div id="header">
    1515    <div id="banner">
    16         <a href="http://xcache.lighttpd.net/" target="_blank"><img src="../common/xcache.png" id="logo" width="175" height="51" />
     16        <a href="http://xcache.lighttpd.net/" rel="external"><img src="../common/xcache.png" id="logo" alt="XCache logo" width="175" height="51" />
    1717            <?php echo $xcache_version; ?> - <?php echo ucfirst($GLOBALS['module']); ?>
    1818        </a>
Note: See TracChangeset for help on using the changeset viewer.