Changeset 8065

Show
Ignore:
Timestamp:
06/15/05 09:01:09 (3 years ago)
Author:
bergius
Message:

Made the layout wider and fixed some bugs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/templates/layout-textual.xml

    r7978 r8065  
    88        <owner></owner> 
    99</style> 
    10 <element id="4078721078f1651ebf3a64c0d7bd9c38" changed="20050525220607"> 
     10<element id="4078721078f1651ebf3a64c0d7bd9c38" changed="20050615081830"> 
    1111        <value><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    1212    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
     
    7979                   <h4></h4> 
    8080                   <(navi)> 
     81                   <(sidebar-extra)> 
    8182                </div> <!-- // sidebar --> 
    8283        </div> <!-- // .content --> 
     
    120121</element> 
    121122 
    122 <element id="5b6589475f81029cb747ba7cebeeee06" changed="20050525214229"> 
     123<element id="5b6589475f81029cb747ba7cebeeee06" changed="20050615085110"> 
    123124        <value><![CDATA["default" => array ( 
    124125 
     
    128129        "header_background" => array ( 
    129130            "description" => "Header background image", 
    130             "helptext"    => "Big image, for example a scenery photo", 
     131            "helptext"    => "Big image, for example a scenery photo. At minimum 750 pixels wide", 
    131132            "datatype"    => "image", 
    132133            "location"    => "attachment", 
    133134            "widget_image_simple" => true, 
     135            "datatype_image_thumbwidth" => 750, 
     136            "datatype_image_thumbheight" => 4000, // Don't limit this so width will rule 
    134137            "start_fieldgroup" => array(),   
    135138        ), 
     
    236239        <pid>3856f2f54ac289a5204d657b90178bfc</pid> 
    237240</blobs> 
    238 <element id="ca55de6ff68a37e568a9e96e2e7c0b1a" changed="20050525220524"> 
     241<element id="ca55de6ff68a37e568a9e96e2e7c0b1a" changed="20050615090001"> 
    239242        <value><![CDATA[/*      -------------------------------------    
    240243        Midgard Templates 
     
    287290            if ($atts->parameter("midcom.helper.datamanager.datatype.blob","fieldname") == "header_background") 
    288291            { 
    289                 $header_background = " background-image: url(\"".$_MIDGARD["self"]."midcom-serveattachmentguid-".$atts->guid()."/".$atts->name."\");"; 
     292                $guid = $atts->guid(); 
     293 
     294                // Use thumbnail instead if available 
     295                $thumbguid = $atts->parameter("midcom.helper.datamanager.datatype.image","thumbguid"); 
     296                if ($thumbguid) { 
     297                    $guid = $thumbguid; 
     298                } 
     299 
     300                $host = mgd_get_host($_MIDGARD["host"]); 
     301 
     302                $header_background = " background-image: url(\"".$host->prefix."/midcom-serveattachmentguid-".$guid."/".$atts->name."\");"; 
    290303                break; 
    291304            } 
     
    302315/*      Page positions  
    303316        ----------------------------------- */ 
    304 #container { width: 640px;  text-align:left; margin:0 auto; background:#fff; }         
     317#container { width: 750px;  text-align:left; margin:0 auto; background:#fff; }         
    305318        #content {  background: #fff; } 
    306         #breadcrumb { width:640px; border-bottom:1px solid #999;} 
    307         #breadcrumb p { padding:0.3em 20px; margin:0;} 
    308          
    309         #main {float:left; width:420px;  border-right:1px solid #999;} 
     319        #breadcrumb { width:750px; border-bottom:1px solid #999;} 
     320        #breadcrumb p { padding: 0.3em 20px; margin:0;} 
     321        #breadcrumb a { text-decoration: none; } 
     322 
     323        #main {float:left; width: 500px;  border-right:1px solid #999;} 
    310324        .content {padding:0 20px 20px 20px;} 
    311325         
    312         #sidebar { float:right; width:219px; } 
     326        #sidebar { float:right; width:239px; } 
    313327                #sidebar .content ul li a { text-decoration: none; } 
    314328         
    315         #site-info { float:left; background:#fff; clear:both; width:640px; border-top:1px solid #999; color:#333; } 
     329        #site-info { float:left; background:#fff; clear:both; width: 750px; border-top:1px solid #999; color:#333; } 
    316330                #nav-extra { padding:.5em 25px; background:&(color_dark);; border-top:1px solid &(color_medium);; } 
    317331                        #nav-extra p {margin:0; padding:0; } 
     
    321335                #credits { padding:.2em 25px; color:#666; font-size:87%;  } 
    322336                        #credits p { margin:0 !important; padding:0 !important;} 
    323                 #midgard { border: none; padding: 2px 1em 2px 1em; text-align: center; } 
     337                #midgard { border: none; padding: .2em 25px; } 
     338                #midgard ul { padding: 0px; } 
     339                #midgard a { text-decoration: none; } 
     340 
    324341 
    325342/*      END Page positions ---------------- */ 
     
    327344/*      Branding area 
    328345        ------------------------------------ */ 
    329 #branding { width:640px; background:&(color_dark);; float:left; &(header_background:h); } 
     346#branding { width: 750px; background:&(color_dark);; float:left; &(header_background:h); } 
    330347 
    331348        #branding p {padding:0; margin:0;} 
    332         #branding #logo {float:left; width:350px;} 
     349        #branding #logo {float:left; width: 400px;} 
    333350        /*#branding #logo a:link, #branding #logo a:visited, */ 
    334351        #logo h1 {color:&(color_medium); !important; font-size:3em; margin:0; padding:20px 0 0 20px; width:330px; float:left;} 
     
    352369#nav-main {  
    353370        float:left; 
    354         width:640px; 
     371        width: 718px; 
    355372        background:&(color_dark);; 
    356373        border-top:1px solid #fff; 
    357374        border-bottom:1px solid &(color_medium);; 
     375        padding-left: 16px; 
     376        padding-right: 16px; 
    358377} 
    359378#nav-main ul { margin:0/* 0 0 20px*/; padding:0; } 
     
    427446blockquote { font-style:italic; color:#999; text-align:right;} 
    428447code {} 
    429 #main pre { width: 380px; overflow: auto; background: #eee; } 
    430 #main img { max-width: 380px; } 
     448#main pre { width: 480px; overflow: auto; background: #eee; } 
     449#main img { max-width: 480px; } 
    431450i, em {} 
    432451b, strong { font-family:trebuchet, "trebuchet ms", Arial, Helvetica, Sans-serif;} 
     
    464483  height: 1px; 
    465484} 
    466 ]]></value> 
     485 
     486#aismaintable td.aismaintable_navigation div { width: 150px; } 
     487 
     488 
     489/* Styles for nicer-looking component output */ 
     490 
     491/* net.nemein.rss */ 
     492div.rss-item-postinfo, div.rss-item-postinfo a { 
     493  color: #c0c0c0; 
     494  background-color: transparent; 
     495
     496h2.rss-item-title { 
     497  margin-bottom: 0px; 
     498  padding-bottom: 0px; 
     499
     500div.rss-item { 
     501  padding-bottom: 10px; 
     502  margin-bottom: 10px; 
     503  border-bottom: 1px #c0c0c0 dashed; 
     504}]]></value> 
    467505        <style>3856f2f54ac289a5204d657b90178bfc</style> 
    468506        <name><![CDATA[css]]></name>