Changeset 494

Show
Ignore:
Timestamp:
08/11/06 11:23:18 (2 years ago)
Author:
dave
Message:

A few tweaks to make the default theme XHTML compliant.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/content/mainindex/content_loggedout.php

    r269 r494  
    77$run_result = "<h5>" . gettext("Welcome") . "</h5>"; 
    88$run_result .= "<p>" . sprintf(gettext("This is %s, a learning landscape. Why not check out <a href=\"%s\">what people are saying</a> right now."), $sitename, url . "_weblog/everyone.php") . "<br />"; 
    9 $run_result .= "<p>". sprintf(gettext("<a href=\"%s\">Find others</a> with similar interests and goals."), url . "search/tags.php") . "<br /><br />"; 
     9$run_result .= "<br />". sprintf(gettext("<a href=\"%s\">Find others</a> with similar interests and goals."), url . "search/tags.php") . "<br /><br />"; 
    1010 
    1111if ($users = get_records_sql("SELECT DISTINCT u.*,i.filename AS iconfile, ".$db->random." as rand  
  • devel/units/templates/default_template.php

    r488 r494  
    1414 
    1515    $template['css'] = <<< END 
    16 /*------------------------------------------------------------------- 
     16/* 
    1717Default CSS for the Elgg Learning Landscape 
    18 -------------------------------------------------------------------*/ 
     18Version 0.65 - August 2006 
     19*/ 
    1920 
    2021body {  
     
    5354} 
    5455 
    55 /*--------------------------------------------------------- 
    56 Wraps the whole page 
    57 ----------------------------------------------------------*/ 
     56input { 
     57                    margin: 0 5px 5px 0; 
     58                    font-family:Verdana, Arial, Helvetica, sans-serif; 
     59                } 
     60 
     61textarea { 
     62                        background-color: #FFF; 
     63                        color: #000; 
     64                        border: 1px solid #CCC; 
     65                        font-size: 1.4em; 
     66                        padding: 3px; 
     67                    margin: 0 0 5px; 
     68                    width:95%; 
     69                    height:100px; 
     70                } 
     71 
     72/* WRAPS THE WHOLE PAGE */ 
    5873 
    5974#container { 
     
    6580} 
    6681 
    67 /*--------------------------------------------------------- 
    68 HEADER 
    69 ---------------------------------------------------------*/ 
     82/* HEADER */ 
    7083 
    7184#header { 
     
    137150} 
    138151 
    139 /*---------------------------------------------------------- 
    140 Wraps the main content pane and the sidebar 
    141 ----------------------------------------------------------*/ 
     152/* WRAPS THE MAIN CONTENT PANE AND THE SIDEBAR */ 
    142153 
    143154#content_holder { 
     
    148159 } 
    149160 
    150 /*--------------------------------------------------------- 
    151 Wraps the main content pane - the left hand side of the 
    152 screen 
    153 ----------------------------------------------------------*/ 
     161/* WRAPS THE MAIN CONTENT PANE - THE LEFT HAND SIDE OF THE SCREEN */ 
    154162 
    155163#maincontent_container { 
     
    157165 } 
    158166 
    159 /*-------------------------------------------- 
    160 NAVIGATION  
    161 ----------------------------------------------*/ 
     167/* NAVIGATION */ 
    162168 
    163169#navigation { 
     
    205211    } 
    206212 
    207 /*------------------------------------------------------------- 
    208 Misc 
    209 --------------------------------------------------------------*/ 
     213/* MISC */ 
    210214 
    211215.clearme{clear:both;} 
    212216  
    213217 
    214 /*------------------------------------------------------------- 
    215 SIDEBAR and its contents 
    216 --------------------------------------------------------------*/ 
     218/* SIDEBAR AND ITS CONTENTS */ 
    217219 
    218220#sidebar { 
     
    221223  } 
    222224 
    223 /*------------------------------------------ 
    224   FOOTER  
    225   ------------------------------------------*/ 
     225/* ACTUAL SIDEBAR CONTENT */ 
     226 
     227 
     228#sidebar ul { 
     229    margin: 0; 
     230    padding: 0; 
     231    list-style: none; 
     232
     233 
     234#sidebar ul li { 
     235    margin: 10px 0; 
     236    padding-left: 0; 
     237
     238 
     239#sidebar ul li ul li{ 
     240    padding: 0 0 0 10px; 
     241
     242 
     243#sidebar h2 { 
     244    font-family: "Lucida Grande", arial, sans-serif; 
     245    font-weight: bold; 
     246    color: #333; 
     247    background:#fff; 
     248    margin: 20px 0 3px 0; 
     249    padding: 0; 
     250    border: none; 
     251
     252 
     253#sidebar h2 { 
     254    border-bottom: 0px solid #666; 
     255        text-align:center; 
     256    border-top:1px solid #777; 
     257    color:#777; 
     258        font-size:1em; 
     259        width:260px; 
     260
     261 
     262#search_widget { 
     263  background:url({{url}}_templates/default_images/own_ad_bg.gif) repeat-y; 
     264  text-align:center; 
     265  width:250px; 
     266  margin:0 0 0 10px; 
     267
     268 
     269#search_widget p { 
     270  margin:10px; 
     271  font-weight:bold; 
     272
     273 
     274#search_widget input { 
     275  margin:5px 0 5px 0; 
     276
     277 
     278/* SIDEBAR DISPLAY COMPONENTS */ 
     279 
     280#sidebar_user { 
     281
     282 
     283#recent_activity { 
     284
     285 
     286#community_owned { 
     287
     288 
     289#community_membership { 
     290
     291 
     292#sidebar_friends p { 
     293    padding:0 0 0 10px; 
     294
     295 
     296#search { 
     297
     298 
     299#me { 
     300    border:0px solid #086a89; 
     301        background:#4391B0 url({{url}}_templates/default_images/login_bg.gif); 
     302        width:260px; 
     303        padding:0; 
     304        margin:0; 
     305        text-align:left; 
     306        min-height:80px; 
     307
     308 
     309#me label { 
     310    padding:4px;  
     311        margin:0 0 5px 0; 
     312        color:#fff; 
     313
     314 
     315#me h2 { 
     316    color:#fff; 
     317        font-size:1.2em; 
     318        padding:5px; 
     319        margin:0 10px 0 10px; 
     320        background:#0C5896; 
     321
     322 
     323#me #icon { 
     324   margin:3px 0 0 4px; 
     325   float: left;  
     326   width: 70px; 
     327   padding:0; 
     328
     329 
     330#me #contents { 
     331   margin: 0 0 0 75px; 
     332   text-align: left; 
     333   padding:0; 
     334
     335 
     336#me a { 
     337  color:#fff; 
     338  text-decoration:underline; 
     339
     340 
     341#me p { 
     342  color:#fff; 
     343  margin:0; 
     344  padding:0 0 5px 0; 
     345
     346 
     347/* Two new divs to let put curved images around the 'me' box */ 
     348 
     349#me_top { 
     350  background:url({{url}}_templates/default_images/login_top.gif) bottom no-repeat; 
     351  height:9px; 
     352  width:260px; 
     353  padding:0; 
     354  margin:0; 
     355
     356 
     357#me_bottom { 
     358  background:url({{url}}_templates/default_images/login_bottom.gif) no-repeat; 
     359  height:9px; 
     360  width:260px; 
     361  margin:0; 
     362  padding:0; 
     363
     364 
     365/* extra div's when looking at someone else's page */ 
     366 
     367#sidebar_weblog { 
     368
     369 
     370#sidebar_files { 
     371
     372 
     373 
     374 #sidebar_user h2 { 
     375    display:none; 
     376
     377 
     378/* FOOTER */ 
    226379 
    227380#footer { 
     
    244397} 
    245398 
    246 /*----------------------------------------------------------- 
    247 Remove the search component from he sidebar - it is replaced by the search widget 
    248 -----------------------------------------------------------*/ 
     399/* Remove the search component from the sidebar - it is replaced by the search widget */ 
    249400 
    250401#search { 
     
    252403} 
    253404 
    254 /*--------------------------------------- 
    255   SYSTEM MESSAGES  
    256   ---------------------------------------*/ 
     405/* SYSTEM MESSAGES  */ 
    257406 
    258407#system_message{  
     
    269418 } 
    270419 
    271 /*----------------------------------------- 
    272 ACTUAL SIDEBAR CONTENT 
    273 -------------------------------------------*/ 
    274  
    275  
    276 #sidebar ul { 
    277     margin: 0; 
    278     padding: 0; 
    279     list-style: none; 
    280 
    281  
    282 #sidebar ul li { 
    283     margin: 10px 0; 
    284     padding-left: 0; 
    285 
    286  
    287 #sidebar ul li ul li{ 
    288     padding: 0 0 0 10px; 
    289 
    290  
    291 #sidebar h2 { 
    292     font-family: "Lucida Grande", arial, sans-serif; 
    293     font-weight: bold; 
    294     color: #333; 
    295     background:#fff; 
    296     margin: 20px 0 3px 0; 
    297     padding: 0; 
    298     border: none; 
    299 
    300  
    301 #sidebar h2 { 
    302     border-bottom: 0px solid #666; 
    303         text-align:center; 
    304     border-top:1px solid #777; 
    305     color:#777; 
    306         font-size:1em; 
    307         width:260px; 
    308 
    309  
    310 #search_widget { 
    311   background:url({{url}}_templates/default_images/own_ad_bg.gif) repeat-y; 
    312   text-align:center; 
    313   width:250px; 
    314   margin:0 0 0 10px; 
    315 
    316  
    317 #search_widget p { 
    318   margin:10px; 
    319   font-weight:bold; 
    320 
    321  
    322 #search_widget input { 
    323   margin:5px 0 5px 0; 
    324 
    325  
    326 /*------------------------------------------- 
    327 SIDEBAR DISPLAY COMPONENTS  
    328 ----------------------------------------------*/ 
    329  
    330 #sidebar_user { 
    331 
    332  
    333 #recent_activity { 
    334 
    335  
    336 #community_owned { 
    337 
    338  
    339 #community_membership { 
    340 
    341  
    342 #sidebar_friends p { 
    343     padding:0 0 0 10px; 
    344 
    345  
    346 #search { 
    347 
    348  
    349 #me { 
    350     border:0px solid #086a89; 
    351         background:#4391B0 url({{url}}_templates/default_images/login_bg.gif); 
    352         width:260px; 
    353         padding:0; 
    354         margin:0; 
    355         text-align:left; 
    356         min-height:80px; 
    357 
    358  
    359 #me label { 
    360     padding:4px;  
    361         margin:0 0 5px 0; 
    362         color:#fff; 
    363 
    364  
    365 #me h2 { 
    366     color:#fff; 
    367         font-size:1.2em; 
    368         padding:5px; 
    369         margin:0 10px 0 10px; 
    370         background:#0C5896; 
    371 
    372  
    373 #me #icon { 
    374    margin:3px 0 0 4px; 
    375    float: left;  
    376    width: 70px; 
    377    padding:0; 
    378 
    379  
    380 #me #contents { 
    381    margin: 0 0 0 75px; 
    382    text-align: left; 
    383    padding:0; 
    384 
    385  
    386 #me a { 
    387   color:#fff; 
    388   text-decoration:underline; 
    389 
    390  
    391 #me p { 
    392   color:#fff; 
    393   margin:0; 
    394   padding:0 0 5px 0; 
    395 
    396  
    397 /*----------------------------------------------------------------- 
    398 Two new divs to let me put curved images around the me box 
    399 -----------------------------------------------------------------*/ 
    400  
    401 #me_top { 
    402   background:url({{url}}_templates/default_images/login_top.gif) bottom no-repeat; 
    403   height:9px; 
    404   width:260px; 
    405   padding:0; 
    406   margin:0; 
    407 
    408  
    409 #me_bottom { 
    410   background:url({{url}}_templates/default_images/login_bottom.gif) no-repeat; 
    411   height:9px; 
    412   width:260px; 
    413   margin:0; 
    414   padding:0; 
    415 
    416  
    417 /*--- extra div's when looking at someone else's page ---*/ 
    418  
    419 #sidebar_weblog { 
    420 
    421  
    422 #sidebar_files { 
    423 
    424  
    425  
    426  #sidebar_user h2 { 
    427     display:none; 
    428 
    429  
    430 /*------------------------------------------------------------- 
    431 THIS DISPLAYS THE ACTUAL CONTENT WITHIN maincontent_container 
    432 --------------------------------------------------------------*/ 
     420/* THIS DISPLAYS THE ACTUAL CONTENT WITHIN maincontent_container */ 
    433421 
    434422#maincontent_display { 
     
    461449 
    462450 
    463 /*---- Sub Menu attributes ----*/ 
     451/* SUB MENU attributes */ 
    464452 
    465453#maincontent_display #sub_menu { 
     
    487475} 
    488476 
    489 /*------------------------------------------- 
    490   INDIVIDUAL BLOG POSTS  
    491   -------------------------------------------*/ 
    492  
    493  
    494 /*------ wraps all blog components ------*/ 
     477/* INDIVIDUAL BLOG POSTS */ 
     478 
     479 
     480/* wraps all blog components */ 
    495481 
    496482.weblog_posts { 
     
    691677 
    692678 
    693 /*--------------------------------------------- 
    694   Your Resources 
    695 -----------------------------------------------*/ 
     679/* YOUR RESOURCES */ 
    696680 
    697681.feeds { 
     
    772756 
    773757 
    774 /*----------------------------------------------------------------------- 
     758/* 
    775759DIV's to help control look and feel - infoholder holds all the profile data 
    776760and is always located in within 'maincontentdisplay' 
    777  
    778 -------------------------------------------------------------------------*/ 
    779  
    780 /*------ holds profile data -------*/ 
     761*/ 
     762 
     763/* holds profile data */ 
    781764.infoholder { 
    782765    border:1px; 
     
    827810} 
    828811 
    829 .infoholder_twocolumn h2 { 
    830     font-size:1.2em; 
    831 
    832  
    833 /*----------- holds administration data---------*/ 
     812.infoholder_twocolumn h3 { 
     813    font-size:1.1em; 
     814    padding:0; 
     815    margin:0; 
     816
     817 
     818/* holds administration data */ 
    834819 
    835820.admin_datatable { 
     
    861846     padding:0; 
    862847     margin:0; 
    863      font-size:1.2em; 
     848     font-size:1em; 
    864849} 
    865850 
     
    869854     padding:0; 
    870855     margin:0; 
     856     font-size:1em; 
    871857} 
    872858 
     
    874860} 
    875861 
    876 /*---- header plus one row of content ------*/ 
     862/* header plus one row of content */ 
    877863 
    878864.databox_vertical { 
     
    898884  color:#1181AA; 
    899885  background-color: #F9F9F9; 
    900 
    901  
    902 /*------- holds file content ----*/ 
     886  font-size:1.2em; 
     887
     888 
     889/* holds file content */ 
    903890 
    904891.filetable { 
     
    933920   
    934921 
    935 /*------- holds fodler content ------*/ 
     922/* holds fodler content */ 
    936923 
    937924.foldertable { 
     
    960947} 
    961948 
    962 /*------- holds network data ------*/ 
     949/* holds network data */ 
    963950 
    964951.networktable { 
     
    966953} 
    967954 
    968 /*--------------------------------------------- 
    969 INPUT FIELDS 
    970 ----------------------------------------------*/ 
    971  
    972 input { 
    973                         background-color: #FFF; 
    974                         color: #000; 
    975                         border: 1px solid #CCC; 
    976                         font-size: 1.2em; 
    977                         padding: 3px; 
    978                     margin: 0 0 5px; 
    979                     font-family:Verdana, Arial, Helvetica, sans-serif; 
    980                 } 
    981  
    982 input:hover, input select:hover, input textbox:hover { 
    983         background-color: #F0F8FF; 
    984 } 
    985  
    986 input:focus { 
    987    background-color: #F0F8FF; 
    988    border-color:#777; 
    989 } 
    990  
    991 textarea { 
    992                         background-color: #FFF; 
    993                         color: #000; 
    994                         border: 1px solid #CCC; 
    995                         font-size: 1.4em; 
    996                         padding: 3px; 
    997                     margin: 0 0 5px; 
    998                     width:95%; 
    999                     height:100px; 
    1000                 } 
    1001955 
    1002956END; 
     
    1033987<tr> 
    1034988<td> 
    1035 <div id="header"><!-- open div logo --> 
    1036         <div id="logo"> 
     989<div id="header"><!-- open div header --> 
     990        <div id="logo"><!-- open div logo --> 
    1037991            <h1><a href="{{url}}/index.php">$sitename</a></h1> 
    1038992            <h2>Personal Learning Landscape</h2> 
    1039993        </div><!-- close div logo --> 
    1040         <div id="global_menuoptions"> 
     994        <div id="global_menuoptions"><!-- open div global_menuoptions --> 
    1041995                  {{topmenu}} 
    1042996                  <p>Welcome {{userfullname}} </p> 
    1043         </div> 
    1044 </div> 
     997        </div><!-- close div global_menuoptions --> 
     998</div><!-- close div header --> 
    1045999<div class="clearme"/> 
    10461000</td> 
     
    10531007        <ul id="navigation"> 
    10541008                {{menu}} 
     1009               <li></li><!-- used to validate --> 
    10551010            </ul> 
    10561011            {{messageshell}} 
     
    10601015                <ul><!-- open sidebar lists --> 
    10611016                {{sidebar}} 
    1062                 </ul> 
    1063                 <div id="search_widget"> 
     1017                </ul><!-- close sidebar lists --> 
     1018                <div id="search_widget"><!-- open div search_widget --> 
    10641019                <img src="{{url}}_templates/default_images/own_ad_top.gif" alt="" border="0" /> 
    10651020              <form name="searchform" action="/search/all.php"> 
     
    10721027                        --> 
    10731028                </script> 
    1074              <p><label>Search</label> <input type="text" size="20" name="tag" value="" /> <select name=""><option value="all">--- all ---</option></select> <br /><input type="submit" name="" value="search" /></p> 
     1029             <p><label>Search</label><br /><input type="text" size="20" name="tag" value="" /> <select name=""><option value="all">--- all ---</option></select> <br /><input type="submit" name="" value="search" /></p> 
    10751030             </form> 
    10761031                <img src="{{url}}_templates/default_images/own_ad_bottom.gif" alt="" border="0" /> 
    1077                 </div> 
     1032                </div><!-- close div search_widget --> 
    10781033        </td> 
    10791034   </tr> 
     
    10861041<span style="color:#FF934B">$sitename</span> <a href="{{url}}content/terms.php">Terms and conditions</a>&nbsp;|&nbsp;<a href="{{url}}content/privacy.php">Privacy Policy</a> 
    10871042</div><!-- end footer --><br /> 
    1088 <a href="http://elgg.org"><img src="{{url}}_templates/elgg_powered.png" title="Elgg powered" border="0" alt="Elgg powered logo"></a> 
     1043<a href="http://elgg.org"><img src="{{url}}_templates/elgg_powered.png" title="Elgg powered" border="0" alt="Elgg powered logo" /></a> 
    10891044<br /> 
    1090 </div> 
    10911045</td> 
    10921046</tr> 
     
    10951049</body> 
    10961050</html>             
     1051 
    10971052END; 
    10981053