Changeset 507

Show
Ignore:
Timestamp:
08/16/06 08:48:32 (2 years ago)
Author:
ben
Message:

Editable template HTML has been extracted into pageshell and css files.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/config-dist.php

    r504 r507  
    135135// TEMPLATES HANDLING 
    136136//$CFG->disable_usertemplates = true;  // users can only choose from available templates 
     137 
     138//Templates root defaults to /_templates; if you change this, you will need 
     139//to move or copy /_templates/Default_Template/ to the new location 
     140//$CFG->templatesroot = '/some/path/'; // use on-disk templates instead of DB templates  
     141 
     142//Template file handing is not currently recommended. 
    137143//$CFG->templatestore = 'db';          // 'db' (default) or 'files' (requires $CFG->templatesroot to be set) 
    138 //$CFG->templatesroot = '/some/path/'; // use on-disk templates instead of DB templates  
    139144 
    140145// set up some LMS hosts. 
  • devel/lib/setup.php

    r506 r507  
    323323////// 
    324324if (!isset($CFG->templatestore)) { $CFG->templatestore = 'db' ;} 
     325if (!isset($CFG->templatesroot)) { $CFG->templatesroot = $CFG->wwwroot . "_templates/";} 
    325326if (!isset($PAGE->menu       )) { $PAGE->menu        = array();} 
    326327if (!isset($PAGE->menu_sub   )) { $PAGE->menu_sub    = array();} 
  • devel/lib/templates.php

    r499 r507  
    2020    $run_result = ''; 
    2121 
     22    $template_definition[] = array( 
     23                                    'id' => 'css', 
     24                                    'name' => gettext("Stylesheet"), 
     25                                    'description' => gettext("The Cascading Style Sheet for the template."), 
     26                                    'glossary' => array(), 
     27                                    'display'  => 1, 
     28                                    ); 
     29 
     30    $template['css'] = file_get_contents($CFG->templatesroot . "Default_Template/css"); 
     31     
    2232    $template_definition[] = array( 
    2333                                   'id' => 'pageshell', 
     
    3646    $welcome = gettext("Welcome"); // gettext variable 
    3747        
    38     $template['pageshell'] = <<< END 
    39      
    40 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    41 <html xmlns="http://www.w3.org/1999/xhtml"> 
    42 <head> 
    43 <title>{{title}}</title> 
    44 {{metatags}} 
    45 </head> 
    46 <body> 
    47 <!-- elgg banner and logo --> 
    48 <div id="container"><!-- start container --> 
    49     <div id="statusbar"><!-- start statusbar --> 
    50         <div id="welcome"><!-- start welcome --> 
    51             <p>$welcome {{userfullname}}</p> 
    52         </div><!-- end welcome --> 
    53         {{topmenu}} 
    54     </div><!-- end statusbar --> 
    55     <div id="header"><!-- start header --> 
    56         <h1>$sitename</h1> 
    57             <h2>Community learning space</h2> 
    58             <ul id="navigation"> 
    59                 {{menu}} 
    60             </ul> 
    61     </div><!-- end header --> 
    62     <div id="content_holder"><!-- start contentholder --> 
    63         <div id="maincontent_container"><!-- start main content --> 
    64             {{messageshell}} 
    65             {{mainbody}} 
    66         </div><!-- end main content --> 
    67         <div id="sidebar_container"> 
    68             <div id="sidebar"><!-- start sidebar --> 
    69                 <ul><!-- open sidebar lists --> 
    70                 {{sidebar}} 
    71                 </ul> 
    72             </div><!-- end sidebar --> 
    73         </div><!-- end sidebar_container --> 
    74     </div><!-- end contentholder --> 
    75     <div class="clearall" /> 
    76     <div id="footer"><!-- start footer --> 
    77         <a href="http://elgg.net/"><img src="{$CFG->wwwroot}_templates/elgg_powered.png" alt="Powered by Elgg" title="Powered by Elgg" border="0" /></a> 
    78     </div><!-- end footer --> 
    79 </div><!-- end container --> 
    80 </body> 
    81 </html> 
    82              
    83 END; 
     48    $template['pageshell'] = file_get_contents($CFG->templatesroot . "Default_Template/pageshell"); 
    8449 
    8550    // REMOVED stylesheet (was old version and should not have been here) 
     
    12091174            return url; 
    12101175            break; 
     1176         
     1177        case "sitename": 
     1178            return $CFG->sitename; 
     1179            break; 
    12111180 
    12121181        case "metatags": 
  • devel/units/templates/default_template.php

    r505 r507  
    1313                                    ); 
    1414 
    15     $template['css'] = <<< END 
    16 /* 
    17 Default CSS for the Elgg Learning Landscape 
    18 Version 0.65 - August 2006 
    19 */ 
    20  
    21 body {  
    22         margin:0; 
    23         font-family:Verdana, "Myriad Web", Arial, Helvetica, sans-serif; 
    24         color: #555; 
    25         line-height:1.6em; 
    26         font-size: 80%; 
    27         margin:0; 
    28         padding:0; 
    29         background:#fff url({{url}}_templates/default_images/bg.gif); 
    30 
    31  
    32 p { 
    33   color:#555; 
    34 
    35  
    36 a { 
    37   text-decoration:none; 
    38   color:#555; 
    39 
    40  
    41 ol, ul { 
    42   color:#555; 
    43 
    44  
    45 h2 { 
    46  font-size:100%; 
    47 
    48  
    49 blockquote{ 
    50         background: #EEE url({{url}}_templates/GreenTrack/blockquote.png) no-repeat bottom left; 
    51         padding: 10px; 
    52         padding-bottom: 40px; 
    53         margin: 1em; 
    54 
    55  
    56 input { 
    57                     margin: 0 5px 5px 0; 
    58                     font-family:Verdana, Arial, Helvetica, sans-serif; 
    59                 } 
    60  
    61 textarea { 
    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 */ 
    73  
    74 #container { 
    75         width:900px; 
    76         margin:0; 
    77         padding:0; 
    78         background:#fff; 
    79         border:1px solid #fff; 
    80 
    81  
    82 /* HEADER */ 
    83  
    84 #header { 
    85    margin:0 0 10px 0; 
    86    width:100%; 
    87    text-align:left; 
    88  } 
    89  
    90 #header #logo{ 
    91         margin: 0px; 
    92     padding:10px; 
    93         float:left; 
    94 
    95  
    96 #header #logo h1 { 
    97     font-size:1.4em; 
    98     padding:0; 
    99     margin:0 0 5px 0; 
    100 
    101  
    102 #header #logo h1 a{ 
    103    color:#4391B0; 
    104    padding:0; 
    105    margin:0; 
    106    font-family:Helvetica, "Myriad Web", Arial, sans-serif; 
    107    font-size:1.4em; 
    108 
    109  
    110 #header #logo h2{ 
    111    color:#6EAE87; 
    112    padding:0; 
    113    margin:0; 
    114    font-size:1.2em; 
    115 
    116  
    117 #header #global_menuoptions{ 
    118         float:right; 
    119         text-align:right; 
    120         background:#fff; 
    121         width:450px; 
    122         margin:0 10px 0 0; 
    123 
    124  
    125 #header #global_menuoptions ul { 
    126         margin:0 0 10px 0; 
    127 
    128  
    129 #header #global_menuoptions li { 
    130    margin: 0;  
    131     padding: 0; 
    132     display: inline; 
    133     list-style-type: none; 
    134     border: none; 
    135 
    136  
    137 #header #global_menuoptions li a{ 
    138    text-decoration:underline; 
    139    padding:0 10px 0 0; 
    140    color:#000; 
    141 
    142  
    143 #header #global_menuoptions p { 
    144   padding:0 10px 0 0; 
    145 
    146  
    147 #search_header { 
    148    text-align:right; 
    149    margin:0 0 0 30px ; 
    150 
    151  
    152 /* WRAPS THE MAIN CONTENT PANE AND THE SIDEBAR */ 
    153  
    154 #content_holder { 
    155    padding:0px; 
    156    margin:0px; 
    157    width:100%; 
    158    border-top:2px solid #eee; 
    159  } 
    160  
    161 /* WRAPS THE MAIN CONTENT PANE - THE LEFT HAND SIDE OF THE SCREEN */ 
    162  
    163 #maincontent_container { 
    164    padding:0 0 0 30px; 
    165  } 
    166  
    167 /* NAVIGATION */ 
    168  
    169 #navigation { 
    170     height: 19px; 
    171     margin: 0; 
    172     padding:0; 
    173     text-align:left; 
    174 
    175  
    176 #navigation li { 
    177     margin: 0;  
    178     padding: 0; 
    179     display: inline; 
    180     list-style-type: none; 
    181     border: none; 
    182 
    183  
    184 #navigation a:link, #navigation a:visited { 
    185  
    186     background: #eee; 
    187     font-weight: normal; 
    188     padding: 5px; 
    189     margin: 0 2px 0 0; 
    190     border: 0px solid #036; 
    191     text-decoration: none; 
    192     color: #333; 
    193        font-size:85%; 
    194 
    195  
    196 #navigation a:link.selected, #navigation a:visited.selected { 
    197     border-bottom: 1px solid #fff; 
    198     background: #4391B0; /*#FCD63F;*/ 
    199     color: #fff; /*#393;*/ 
    200     font-weight: bold; 
    201 
    202  
    203 #navigation a:hover { 
    204     color: #000; 
    205     background: #ffc; 
    206 
    207  
    208 #navigation li a:hover{ 
    209     background:#4391B0; /*#FCD63F;*/ 
    210        color: #C7D8D9; /*#000;*/ 
    211     } 
    212  
    213 /* MISC */ 
    214  
    215 .clearme{clear:both;} 
    216   
    217  
    218 /* SIDEBAR AND ITS CONTENTS */ 
    219  
    220 #sidebar { 
    221    background:#fff; 
    222    margin:0 40px 0 0; 
    223   } 
    224  
    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 */ 
    379  
    380 #footer { 
    381     background:#fff; 
    382     text-align: center; 
    383     padding:0; 
    384         border-top:1px solid #ccc; 
    385         border-bottom:1px solid #ccc; 
    386         font-size:0.8em; 
    387         width: 45em; 
    388         margin:20px 0 0 0; /* 10 auto; */ 
    389 
    390  
    391 #footer a:hover { 
    392    text-decoration:underline; 
    393  } 
    394  
    395 #footer a:link, #footer a:visited { 
    396     text-align:right; 
    397 
    398  
    399 /* Remove the search component from the sidebar - it is replaced by the search widget */ 
    400  
    401 #search { 
    402    display:none; 
    403 
    404  
    405 /* SYSTEM MESSAGES  */ 
    406  
    407 #system_message{  
    408     border:1px solid #D3322A; 
    409     background:#F7DAD8; 
    410     color:#000; 
    411     padding:3px 50px; 
    412     margin:20px 20px 0 0; 
    413 
    414  
    415 #system_message p{ 
    416    padding:0px; 
    417    margin:2px; 
    418  } 
    419  
    420 /* THIS DISPLAYS THE ACTUAL CONTENT WITHIN maincontent_container */ 
    421  
    422 #maincontent_display { 
    423     margin: 0; 
    424     padding: 20px 0 20px 0; 
    425     width: 95%; 
    426     text-align: left; 
    427     float: left; 
    428     background-color: #fff; 
    429     color:#000; 
    430 
    431  
    432 #maincontent_display h1 { 
    433     padding-bottom: 2px; 
    434     border-bottom: 1px solid #666; 
    435     margin: 0; 
    436     font-size:130%; 
    437     color: #666; 
    438     background-color: #fff; 
    439 
    440  
    441 #maincontent_display a { 
    442     /*color:#6EAE87;*/ 
    443 
    444  
    445 #maincontent_display a:hover { 
    446     text-decoration:underline; 
    447 
    448  
    449  
    450  
    451 /* SUB MENU attributes */ 
    452  
    453 #maincontent_display #sub_menu { 
    454     font-family: verdana; 
    455     padding: 0px; 
    456     margin: 5px 0 20px 0; 
    457     color: #000; 
    458     background-color:#fff; 
    459 
    460  
    461 #maincontent_display #sub_menu a { 
    462     font-weight:bold; 
    463     margin:0px; 
    464     padding:0px; 
    465     color:#777; 
    466 
    467  
    468 #maincontent_display #sub_menu a:hover { 
    469     text-decoration: underline; 
    470 
    471  
    472 #maincontent_display #sub_menu p { 
    473       margin:0px; 
    474       padding:0px; 
    475 
    476  
    477 /* INDIVIDUAL BLOG POSTS */ 
    478  
    479  
    480 /* wraps all blog components */ 
    481  
    482 .weblog_posts { 
    483    margin:0 0 15px 0; 
    484 
    485  
    486 .weblog_posts .entry h3 { 
    487    color:#1181AA; 
    488    background:#fff; 
    489    padding: 0 0 10px 110px; 
    490    font-size:1em; 
    491 
    492  
    493 .weblog_title h3 { 
    494    padding:0; 
    495    margin:0; 
    496  } 
    497  
    498 .user { 
    499     float: left; 
    500     margin: 0px; 
    501     padding:0 0 5px 0; 
    502     width: 105px; 
    503     text-align: left; 
    504 
    505  
    506 .user img { 
    507    border:2px solid #6EAE87; 
    508 
    509  
    510  
    511 .user a { 
    512      
    513 
    514  
    515 .post { 
    516     margin: 0 0 10px 0; 
    517     padding: 0 0 20px 110px; 
    518     font-family: arial; 
    519 
    520  
    521 .post a { 
    522   color:#6EAE87; 
    523 
    524  
    525 .post p { 
    526     padding: 0; 
    527     margin: 3px 0 10px 0; 
    528     line-height: 16px; 
    529     color:#555; 
    530 
    531  
    532 .post ol, .post ul { 
    533     margin: 3px 0 10px 0; 
    534     padding: 0; 
    535 
    536  
    537 .post li { 
    538     margin: 0 0 0 30px; 
    539     line-height: 16px; 
    540 
    541  
    542 .post ul li { 
    543     list-style-type: square; 
    544 
    545  
    546 .post .blog_edit_functions p { 
    547       margin:10px 0 0 0; 
    548       color:#777; 
    549 
    550  
    551 .post .blog_edit_functions a { 
    552           
    553 
    554  
    555 .post .weblog_keywords p { 
    556      margin:20px 20px 0 20px; 
    557      color:#6EAE87; 
    558      font-weight:bold; 
    559 
    560  
    561 .post .weblog_keywords a { 
    562      text-decoration:underline; 
    563      color:#6EAE87; 
    564 
    565  
    566 .info p { 
    567     padding: 4px; 
    568     margin: 20px 0 5px 0; 
    569     color: #666; 
    570     background:#fff; 
    571     font-family: verdana; 
    572     font-weight: normal; 
    573     line-height: 14px; 
    574     text-align: left; 
    575      border-left:4px solid #eee; 
    576    border-right:4px solid #eee; 
    577    border-top:1px solid #eee; 
    578    border-bottom:1px solid #eee; 
    579 
    580  
    581 .info p a { 
    582     color: #666; 
    583     background:#fff url({{url}}_templates/default_images/comment_add.gif) left no-repeat; 
    584     text-decoration: none; 
    585     /*border-bottom: 1px dotted #666;*/ 
    586     padding-bottom: 0; 
    587     padding:0 0 0 20px; 
    588 
    589  
    590 .external_services p { 
    591     padding: 2px; 
    592     margin: 20px 0 5px 0; 
    593     color: #666; 
    594     background:#fff; 
    595     font-family: verdana; 
    596     font-weight: normal; 
    597       text-align: left; 
    598      border-left:4px solid #eee; 
    599    border-right:4px solid #eee; 
    600    border-top:1px solid #eee; 
    601    border-bottom:1px solid #eee; 
    602 
    603  
    604  
    605 #comments ol, #comments ul { 
    606     margin: 3px 0 10px 0; 
    607     padding: 0; 
    608 
    609  
    610 #comments a { 
    611   color:#6EAE87; 
    612 
    613  
    614 #comments li { 
    615     margin: 10px 0 10px 30px; 
    616     line-height: 16px; 
    617 
    618  
    619 #comments ul li { 
    620     list-style-type: square; 
    621 
    622  
    623 #comments h4 { 
    624     /*color:#1181AA;*/ 
    625     background:url({{url}}_templates/default_images/comments.gif) left no-repeat; 
    626     padding:0 0 0 20px; 
    627 
    628  
    629 .comment_owner { 
    630     border:1px solid #eee; 
    631         background:#f2f7fb; 
    632         padding:5px; 
    633     margin:20px 0 5px 0; 
    634    height:50px; 
    635 
    636  
    637 .comment_owner img { 
    638    margin:0px 5px 0px 0px; 
    639    text-align:left; 
    640 
    641  
    642 .comment_owner a { 
    643    background:#f2f7fb; 
    644 
    645  
    646 .comment_owner p { 
    647   padding:0; 
    648   margin:0; 
    649 
    650  
    651 .weblog_dateheader { 
    652     padding: 0; 
    653     margin: 0 0 5px 0; 
    654     color: #ccc; /*#333;*/ 
    655     background:#fff; 
    656     font-weight: normal; 
    657     font-style: italic; 
    658     line-height: 12px; 
    659     border:0px; 
    660     border-bottom: 1px solid #ccc; 
    661    text-align:right; 
    662 
    663  
    664 .weblogdateheader { 
    665     padding: 0; 
    666     margin: 0 0 5px 0; 
    667     color: #ccc; /*#333;*/ 
    668     background:#fff; 
    669     font-weight: normal; 
    670     font-style: italic; 
    671     line-height: 12px; 
    672     border:0px; 
    673     border-bottom: 1px solid #ccc; 
    674    text-align:right; 
    675    font-size:0.9em; 
    676 
    677  
    678  
    679 /* YOUR RESOURCES */ 
    680  
    681 .feeds { 
    682   border-bottom: 1px dotted #aaaaaa; 
    683 
    684  
    685 .feed_content a { 
    686       color:#6EAE87; 
    687     border:0px; 
    688  } 
    689  
    690 .feed_content p { 
    691    padding:0 0 10px 0; 
    692 
    693  
    694 .feed_content a:hover{ 
    695     background:#fff; 
    696     } 
    697  
    698 .feed_content img { 
    699   border: 1px solid #666666; 
    700   padding:5px; 
    701 
    702  
    703 .feed_content h5 { 
    704    font-size:1.2em; 
    705    padding:0; 
    706    margin:0 0 10px 0; 
    707 
    708  
    709  
    710 .feed_content h3 { 
    711       padding:0 0 4px 0; 
    712       margin:0px; 
    713 
    714  
    715 .feed_content h3 a{ 
    716      color:black; 
    717      border:0px; 
    718      border-bottom:1px; 
    719      border-style:dotted; 
    720      border-color:#eee; 
    721 
    722  
    723 .feed_content h3 a:hover{ 
    724     background:#FCD63F; 
    725        color:#000; 
    726     } 
    727  
    728 .feed_date h2 { 
    729     font-size:13px; 
    730     line-height: 21px; 
    731   font-weight: bold; 
    732   padding: 5px 10px 5px 5px; 
    733   background: #C7D8D9; 
    734   color:#000; 
    735   text-decoration:none; 
    736 
    737  
    738 .via { 
    739    border-top:1px solid #eee; 
    740    border-bottom:1px solid #eee; 
    741    border-left:4px solid #eee; 
    742    border-right:4px solid #eee; 
    743    margin:20px; 
    744 
    745  
    746 .via a { 
    747     font-size:80%; 
    748     color:#1181AA; 
    749     background:#fff; 
    750 
    751  
    752 .via a:hover { 
    753     background:#ffc; 
    754     color:#1181AA; 
    755 
    756  
    757  
    758 /* 
    759 DIV's to help control look and feel - infoholder holds all the profile data 
    760 and is always located in within 'maincontentdisplay' 
    761 */ 
    762  
    763 /* holds profile data */ 
    764 .infoholder { 
    765     border:1px; 
    766     border-color:#eee; 
    767     border-style:solid; 
    768     margin:0 0 5px 0; 
    769 
    770  
    771 .infoholder p { 
    772    padding:0 0 0 5px; 
    773    margin:15px; 
    774 
    775  
    776 .infoholder a { 
    777    color:#6EAE87; 
    778 
    779  
    780 .infoholder a:hover { 
    781    text-decoration:underline; 
    782 
    783  
    784 .infoholder .fieldname h2 { 
    785           border:0; 
    786           border-bottom:1px; 
    787           border-color:#eee; 
    788           border-style:solid; 
    789           padding:3px; 
    790                   margin:0; 
    791           color:#666; 
    792           background:#fff; 
    793 }    
    794  
    795 .infoholder_twocolumn { 
    796     padding:4px; 
    797     border:1px; 
    798     border-color:#eee; 
    799     border-style:solid; 
    800     margin:0 0 10px 0; 
    801  } 
    802  
    803 .infoholder_twocolumn .fieldname h3{ 
    804     color:#666; 
    805     background:#fff; 
    806     border:0px; 
    807     border-bottom:1px; 
    808     border-color:#eee; 
    809     border-style:solid; 
    810 
    811  
    812 .infoholder_twocolumn h3 { 
    813     font-size:1.1em; 
    814     padding:0; 
    815     margin:0; 
    816 
    817  
    818 /* holds administration data */ 
    819  
    820 .admin_datatable { 
    821   border:1px; 
    822   border-color:#eee; 
    823   border-style:solid; 
    824   margin:0 0 5px 0; 
    825 
    826  
    827 .admin_datatable p { 
    828      padding:0px; 
    829      margin:0px; 
    830 
    831  
    832 .admin_datatable a { 
    833     
    834 
    835  
    836  
    837 .admin_datatable td { 
    838    text-align:left; 
    839    padding:0; 
    840    margin:0; 
    841 
    842  
    843 .admin_datatable h3{ 
    844      color:#666; 
    845      background:#fff; 
    846      padding:0; 
    847      margin:0; 
    848      font-size:1em; 
    849 
    850  
    851 .admin_datatable h4{ 
    852      color:#666; 
    853      background:#fff; 
    854      padding:0; 
    855      margin:0; 
    856      font-size:1em; 
    857 
    858  
    859 .admin_datatable h4 { 
    860 
    861  
    862 /* header plus one row of content */ 
    863  
    864 .databox_vertical { 
    865    background-color: #F9F9F9; 
    866    color:#000; 
    867    border:1px; 
    868    border-style:solid; 
    869    border-color:#DDD; 
    870    margin:15px 0 5px 0; 
    871    padding:5px; 
    872  } 
    873  
    874  #maincontent_display .databox_vertical p{ 
    875    padding:0; 
    876    margin:0 0 10px 0; 
    877    color:#1181AA; 
    878    background-color: #F9F9F9; 
    879  } 
    880  
    881 .databox_vertical .fieldname h3 { 
    882   padding:0px; 
    883   margin:0 0 15px 0; 
    884   color:#1181AA; 
    885   background-color: #F9F9F9; 
    886   font-size:1.2em; 
    887 
    888  
    889 /* holds file content */ 
    890  
    891 .filetable { 
    892    background-color: #F9F9F9; 
    893    color:#000; 
    894    border:1px; 
    895    border-style:solid; 
    896    border-color:#DDD; 
    897    margin:0 0 5px 0; 
    898    width:100%; 
    899  } 
    900  
    901  .filetable p{ 
    902    padding:0px; 
    903    margin:0px; 
    904    color:#000; /*#1181AA;*/ 
    905    background-color: #F9F9F9; 
    906  } 
    907  
    908 .filetable a{ 
    909    background-color: #F9F9F9; 
    910  } 
    911  
    912  
    913 .filetable table { 
    914     text-align:left; 
    915 
    916  
    917 #edit_files h4 { 
    918       
    919 
    920    
    921  
    922 /* holds fodler content */ 
    923  
    924 .foldertable { 
    925    background-color: #F9F9F9; 
    926    color:#000; 
    927    border:1px; 
    928    border-style:solid; 
    929    border-color:#DDD; 
    930    margin:0 0 5px 0; 
    931    width:100%; 
    932  } 
    933  
    934 .foldertable a{ 
    935   background-color: #F9F9F9; 
    936  } 
    937  
    938  .foldertable p{ 
    939    padding:0px; 
    940    margin:0px; 
    941    color:#1181AA; 
    942    background-color: #F9F9F9; 
    943  } 
    944  
    945 .foldertable table { 
    946     text-align:left; 
    947 
    948  
    949 /* holds network data */ 
    950  
    951 .networktable { 
    952     
    953 
    954  
    955  
    956 END; 
     15    $template['css'] = file_get_contents($CFG->templatesroot . "Default_Template/css"); 
    95716 
    95817    $template_definition[] = array( 
     
    97130                                    ); 
    97231     
    973     $welcome = gettext("Welcome"); // gettext variable 
    974      
    975     $template['pageshell'] = <<< END 
    976      
    977 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    978 <html xmlns="http://www.w3.org/1999/xhtml"> 
    979 <head> 
    980 <title>{{title}}</title> 
    981 {{metatags}} 
    982 </head> 
    983 <body> 
    984 <!-- elgg banner and logo --> 
    985 <center> 
    986 <table bgcolor="#fff" cellpadding="0" cellspacing="0" id="container"> 
    987 <tr> 
    988 <td> 
    989 <div id="header"><!-- open div header --> 
    990         <div id="logo"><!-- open div logo --> 
    991             <h1><a href="{{url}}">$sitename</a></h1> 
    992             <h2>Personal Learning Landscape</h2> 
    993         </div><!-- close div logo --> 
    994         <div id="global_menuoptions"><!-- open div global_menuoptions --> 
    995                   {{topmenu}} 
    996                   <p>Welcome {{userfullname}} </p> 
    997         </div><!-- close div global_menuoptions --> 
    998 </div><!-- close div header --> 
    999 <div class="clearme"/> 
    1000 </td> 
    1001 </tr> 
    1002 <tr> 
    1003 <td> 
    1004 <table cellpadding="3" cellspacing="0" border="0" id="content_holder"> 
    1005     <tr> 
    1006         <td valign="top" id="maincontent_container" align="left"> 
    1007         <ul id="navigation"> 
    1008                 {{menu}} 
    1009                <li></li><!-- used to validate --> 
    1010             </ul> 
    1011             {{messageshell}} 
    1012             {{mainbody}} 
    1013         </td> 
    1014         <td width="280px" valign="top" id="sidebar" align="left"> 
    1015                 <ul><!-- open sidebar lists --> 
    1016                 {{sidebar}} 
    1017                 </ul><!-- close sidebar lists --> 
    1018                 <div id="search_widget"><!-- open div search_widget --> 
    1019                 <img src="{{url}}_templates/default_images/own_ad_top.gif" alt="" border="0" /> 
    1020               <form name="searchform" action="/search/all.php"> 
    1021                 <script language="JavaScript" type="text/javascript"> 
    1022                         <!-- 
    1023                         function submitthis() 
    1024                         { 
    1025                           document.searchform.submit() ; 
    1026                         } 
    1027                         --> 
    1028                 </script> 
    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> 
    1030              </form> 
    1031                 <img src="{{url}}_templates/default_images/own_ad_bottom.gif" alt="" border="0" /> 
    1032                 </div><!-- close div search_widget --> 
    1033         </td> 
    1034    </tr> 
    1035 </table> 
    1036 </td> 
    1037 </tr> 
    1038 <tr> 
    1039 <td align="center"> 
    1040    <div id="footer"><!-- start footer --> 
    1041 <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> 
    1042 </div><!-- end footer --><br /> 
    1043 <a href="http://elgg.org"><img src="{{url}}_templates/elgg_powered.png" title="Elgg powered" border="0" alt="Elgg powered logo" /></a> 
    1044 <br /> 
    1045 </td> 
    1046 </tr> 
    1047 </table> 
    1048 </center> 
    1049 </body> 
    1050 </html>             
    1051  
    1052 END; 
     32    $template['pageshell'] = file_get_contents($CFG->templatesroot . "Default_Template/pageshell"); 
    105333 
    105434    $template_definition[] = array(