Changeset 853

Show
Ignore:
Timestamp:
01/23/07 02:42:53 (2 years ago)
Author:
sven
Message:

css & html validation fixes (e.g. <style> is head-only). killed a php notice.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/file/lib.php

    r845 r853  
    234234            foreach($CFG->folders->handler as $key => $handler) { 
    235235                $html .= "<option value=\"" . $key . "\""; 
    236                 if ($key == $folder->handler) { 
     236                if (!empty($folder->handler) && $key == $folder->handler) { 
    237237                    $html .= " selected=\"selected\""; 
    238238                } 
  • devel/mod/template/templates/Default_Template/css

    r849 r853  
    55Theme Name: Light 
    66Theme URI: http://vaguedream.com/wordpress-themes/ 
    7 Description: A theme created by <a href="http://vaguedream.com" target="_blank">Stephen Reinhardt</a>
     7Description: A theme created by Stephen Reinhardt
    88Version: 1.0     
    99Author: Stephen Reinhardt 
     
    1616 
    1717body {  
    18         background:#e5e5e5; url({{url}}mod/template/templates/Default_Template/images/wrap.gif) repeat-y; 
     18        background:#e5e5e5; 
     19        /* url({{url}}mod/template/templates/Default_Template/images/wrap.gif) repeat-y; */ 
    1920color:#697C83; 
    2021font-family:'Trebuchet MS','Lucida Grande', Arial, sans-serif; 
     
    363364   padding:0 0 0 10px; 
    364365   margin:0; 
    365    color:#99000
     366   color:#990000
    366367} 
    367368 
  • devel/mod/template/templates/theme_master/css

    r829 r853  
    360360   padding:0 0 0 10px; 
    361361   margin:0; 
    362    color:#99000
     362   color:#990000
    363363} 
    364364 
  • devel/mod/toolbar/lib.php

    r818 r853  
    22 
    33    function toolbar_pagesetup() { 
     4        global $CFG, $metatags; 
     5        require_once($CFG->dirroot.'lib/filelib.php'); // to ensure file_get_contents() 
     6        $css = file_get_contents($CFG->dirroot . "mod/toolbar/css"); 
     7        $css = str_replace("{{url}}", $CFG->wwwroot, $css); 
     8        $metatags .= $css; 
    49    } 
    510     
     
    1217    function toolbar_mainbody($vars) { 
    1318         
    14         global $CFG;                
     19        global $CFG; 
     20        require_once($CFG->dirroot.'lib/filelib.php'); // to ensure file_get_contents() 
    1521        $toolbar = file_get_contents($CFG->dirroot . "mod/toolbar/toolbar.inc"); 
    1622        $toolbar = str_replace("{{url}}", $CFG->wwwroot, $toolbar); 
     
    3339         
    3440        <div id="search-header"><!-- open search-header div --> 
    35             <form id="searchform" action="{$CFG->wwwroot}search/index.php" method="get"> 
    36                                                 <p><input type="text" size="20" name="tag" value="search" /> 
    37                                                 <select name="user_type"> 
    38                                                         <option value="">-- {$all} --</option> 
    39  
    40                                                         <option value="person">{$people}</option> 
    41                                                         <option value="community">{$communities}</option> 
    42                                                 </select> 
    43                                                 <input type="submit" value="Go" /><span><br />[<a href="{$CFG->wwwroot}search/tags.php"><b>{$tagcloud}</b></a>]</span></p> 
    44             </form> 
     41        <form id="searchform" action="{$CFG->wwwroot}search/index.php" method="get"> 
     42            <p><input type="text" size="20" name="tag" value="search" /> 
     43            <select name="user_type"> 
     44                <option value="">-- {$all} --</option> 
     45                <option value="person">{$people}</option> 
     46                <option value="community">{$communities}</option> 
     47            </select> 
     48            <input type="submit" value="Go" /><span><br />[<a href="{$CFG->wwwroot}search/tags.php"><b>{$tagcloud}</b></a>]</span></p> 
     49        </form> 
    4550        </div><!-- close search-header div --> 
    4651         
  • devel/mod/toolbar/toolbar.inc

    r851 r853  
    1 <style type="text/css"> 
    2 /*  
    3    USER TOOLBAR: IN DEFAULT ELGG, THIS SITS 
    4    AT THE VERY TOP OF THE PAGE. 
    5 */ 
    6  
    7 div#toolbar { 
    8  height:25px; 
    9  position:absolute; 
    10  top:0; 
    11  left: 0; 
    12  width:100%; 
    13  background:url({{url}}mod/toolbar/images/toolbar-bg.gif) repeat-x bottom; 
    14  color:#fff; 
    15  margin:0; 
    16  padding:0 0 4px 0; 
    17 } 
    18  
    19 div#toolbar p { 
    20   margin:0; 
    21   padding:4px 0 0 5px; 
    22   color:#91B6C0; 
    23   font-size:0.8em; 
    24 } 
    25  
    26 div#toolbar span a { 
    27   color:#91B6C0; 
    28   border:1px solid #777; 
    29   padding:2px 4px 2px 4px; 
    30 } 
    31  
    32 div#toolbar span a:hover { 
    33   text-decoration:none; 
    34 } 
    35  
    36 div#toolbar img { 
    37   padding:0; 
    38   margin:0 5px 0 0; 
    39   border:0; 
    40 } 
    41  
    42 /*  
    43    GLOBAL USER OPTIONS: LOGOUT AND ACCOUNT SETTINGS, TOP RIGHT 
    44 */ 
    45  
    46 div#toolbar #global-menuoptions{ 
    47         float:right; 
    48         text-align:right; 
    49         width:300px; 
    50         margin:0 10px 0 0; 
    51         font-size:0.9em; 
    52 } 
    53  
    54 div#toolbar #global-menuoptions ul { 
    55         margin:0; 
    56         padding:0; 
    57 } 
    58  
    59 div#toolbar #global-menuoptions li { 
    60     margin: 0;  
    61     padding: 0; 
    62     display: inline; 
    63     list-style-type: none; 
    64     border: none; 
    65 } 
    66  
    67 div#toolbar #global-menuoptions li a{ 
    68    text-decoration:underline; 
    69    padding:0 10px 0 0; 
    70    margin:20px 0 0 0; 
    71    color:#fff; 
    72    background:transparent; 
    73 } 
    74  
    75 div#toolbar #global-menuoptions p { 
    76   padding:0 10px 0 0; 
    77 } 
    78  
    79 div#toolbar #global-menuoptions img { 
    80   padding:0; 
    81   margin:0 10px 0 0; 
    82 } 
    83  
    84 /*  
    85    USER NAVIGATION: THIS STYLES THE USERS MAIN NAV IN THE TOOLBAR, 
    86    IN DEFAULT ELGG IT SITS OVER ON THE LEFT HAND SIDE 
    87 */ 
    88  
    89 div#toolbar #navigation { 
    90     height: 19px; 
    91     margin: 4px 0 0 4px; 
    92     padding:0; 
    93     text-align:left; 
    94     float:left; 
    95 } 
    96  
    97 div#toolbar #navigation li { 
    98     margin: 0;  
    99     padding: 0; 
    100     display: inline; 
    101     list-style-type: none; 
    102     float: left; 
    103 } 
    104  
    105 div#toolbar #navigation a:link, div#toolbar #navigation a:visited { 
    106     margin: 0 2px 0 0; 
    107     text-decoration: none; 
    108     font-size:85%; 
    109     color:#91B6C0; 
    110     border:1px solid #777; 
    111     padding:2px 4px 2px 4px; 
    112 } 
    113  
    114 div#toolbar #navigation a:link.selected, div#toolbar #navigation a:visited.selected { 
    115     text-decoration:underline; 
    116     color: #fff; /*#393;*/ 
    117     font-weight: bold; 
    118 } 
    119  
    120 div#toolbar #navigation li a:hover{ 
    121     background:#6EAE87; 
    122     color: #C7D8D9; 
    123 } 
    124  
    125 div#container { 
    126         margin-top:29px; 
    127         margin-left: auto; 
    128         margin-right: auto; 
    129         margin-bottom:0; 
    130 } 
    131  
    132 </style> 
    1331<div id="toolbar"><!-- start toolbar --> 
    134        <ul id="navigation"><!-- open div navigation --> 
    135            {{menu}} 
    136        </ul><!-- close div navigation --> 
     2    <ul id="navigation"><!-- open div navigation --> 
     3        {{menu}} 
     4    </ul><!-- close div navigation --> 
    1375        <div id="global-menuoptions"><!-- open div global_menuoptions --> 
    138           {{topmenu}} 
    139        </div><!-- close div global_menuoptions --> 
     6       {{topmenu}} 
     7    </div><!-- close div global_menuoptions --> 
    1408</div><!-- end toolbar div --> 
    1419<div style="clear:both;" />