Show
Ignore:
Timestamp:
05/25/05 22:07:27 (4 years ago)
Author:
bergius
Message:

Minor layout fixes

Files:

Legend:

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

    r7976 r7977  
    1 <?xml version="1.0" encoding='ISO-8859-1'?> 
    2 <!-- $Id$ --> 
    3 <Database xmlns="http://www.midgard-project.org/repligard/1.4"> 
    4 <style id="3856f2f54ac289a5204d657b90178bfc" changed="20050525214239"> 
    5         <up></up> 
    6         <name><![CDATA[template_Textual]]></name> 
    7         <owner></owner> 
    8 </style> 
    9 <element id="4078721078f1651ebf3a64c0d7bd9c38" changed="20050525214426"> 
    10         <value><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    11     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    12 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="&(midcom_site["site_language"]);" lang="&(midcom_site["site_language"]);"> 
    13   <head> 
    14     <title><(page-title)></title> 
    15     <meta http-equiv="Content-Type" content="text/html; charset=&(midcom_site["site_encoding"]);"/> 
    16     <(head-extra)> 
    17     <link rel="stylesheet" href="&(midcom_site["uri"]);style.css" type="text/css"/> 
    18     <style type="text/css"> 
    19       <!-- 
    20        <(css-extra)> 
    21        <(css-local)> 
    22       --> 
    23     </style> 
    24   </head> 
    25   <body<(bodytag-extra)>> 
     1#!/bin/sh 
     2########################################################################## 
     3# Textual layout yamp configuration 
     4########################################################################## 
     5# VARIABLES 
    266 
    27    
    28    
    29 <div id="container"> 
     7PACKAGE_NAME="layout-textual" 
     8VERSION="0.1" 
     9PACKAGES="layout-textual" 
     10OTHER_FILES="" 
    3011 
     12ALL_COMMANDS="xml package" 
    3113 
    32 <div id="branding"> 
    33         <div id="logo"> 
    34         <h1><a href="&(midcom_site["uri"]);">&(midcom_site["site_title"]);</a></h1> 
    35         <!--<a href="/"><img src="i/noimage.gif" alt="Invenive Company"></a>--> 
    36         <p class="tagline"><?php echo $GLOBALS["midcom_site"]['site_welcome']; ?></p> 
    37     </div> 
    38          
     14REPLIGARD="/usr/local/bin/repligard" 
     15REPLIGARD_PARAM="-p -a" 
     16REPLIGARD_CONFIG="-c" 
    3917 
    40         <!-- 
    41         <p class="access"><a href="#content">Jump to main content</a></p>--> 
     18CVS="cvs" 
    4219 
    43         <div id="language"> 
    44                 <!-- Language switching links --> 
    45         </div> 
     20CONFIG_VERSION=1 
    4621 
    47         <div id="searchui"> 
    48         </div> 
    49          
    50 </div> 
    51 <!-- END branding --> 
     22########################################################################## 
     23# HELPER FUNCTION extract-custom-op 
     24extractcustomop() { 
     25        if [ $# = 0 ]; then 
     26                echo "YAMP $VERSION ERROR:" 
     27                echo "Usage: extract-custom-op {xml file}" 
     28                exit 127 
     29        fi 
    5230 
    53  
    54 <div id="nav-main"> 
    55   <(navi-top)> 
    56 </div> 
    57  
    58  
    59 <div id="content"> 
    60  
    61          
    62     <div id="breadcrumb"> 
    63        <(breadcrumb)>  
    64     </div> 
    65  
    66         <div id="main"> 
    67                 <div class="content"> 
    68  
    69           <(content)> 
    70            
    71                 </div> 
    72     </div> 
    73          
    74         <div id="sidebar"> 
    75                 <div class="content"> 
    76       <!--<h4>Secondary navigation</h4>--> 
    77                    <(navi)> 
    78                 </div> <!-- // sidebar --> 
    79         </div> <!-- // .content --> 
    80         <hr /> 
    81 </div> <!-- // content--> 
    82  
    83 <div id="site-info"> 
    84          
    85         <div class="legal"> 
    86                 <!-- Copyright disclaimer and possible licensing --> 
    87         </div> 
    88  
    89          
    90         <div id="credits"> 
    91         <!--Credits and/or technology stuff here --> 
    92         <?php 
    93         if ($GLOBALS["midcom_site"]['show_advertisements'] != "NO")  
    94         { 
    95             ?><p>Design by <a href="http://www.inventive.fi" title="Inventive Company">Inventive Design</a> and powered by <a href="http://www.midgard-project.org/" title="Midgard - Open Source Content Management System">Midgard CMS</a>.</p><?php 
    96         } 
    97         ?> 
    98         </div> 
    99  
    100         <div id="midgard"> 
    101             <(edit-this-page)> 
    102         </div> 
    103          
    104         <div id="nav-extra"> 
    105                 <!--Extra navigation here--> 
    106                 <p><a href="&(midcom_site["uri"]);">&(midcom_site["site_title"]);</a><!-- | <a href="/sitemap">Sitemap</a>--></p> 
    107         </div> 
    108          
    109 </div><!--END site-info--> 
    110  
    111 </div><!--END container --> 
    112          
    113 </body> 
    114 </html>]]></value> 
    115         <style>3856f2f54ac289a5204d657b90178bfc</style> 
    116         <name><![CDATA[ROOT]]></name> 
    117 </element> 
    118 <element id="5b6589475f81029cb747ba7cebeeee06" changed="20050525214229"> 
    119         <value><![CDATA["default" => array ( 
    120  
    121     "name"        => "default", 
    122     "description" => "Textual layout configuration", 
    123     "fields"      => array ( 
    124         "header_background" => array ( 
    125             "description" => "Header background image", 
    126             "helptext"    => "Big image, for example a scenery photo", 
    127             "datatype"    => "image", 
    128             "location"    => "attachment", 
    129             "widget_image_simple" => true, 
    130             "start_fieldgroup" => array(),   
    131         ), 
    132         "color_dark" => array ( 
    133             "description" => "Dark color", 
    134             "default"     => "#000", 
    135             "datatype"    => "text", 
    136             "location"    => "config", 
    137             "config_domain" => "layout", 
    138             "config_key" => "color_dark", 
    139         ), 
    140         "color_medium" => array ( 
    141             "description" => "Medium color", 
    142             "default"     => "#f60", 
    143             "datatype"    => "text", 
    144             "location"    => "config", 
    145             "config_domain" => "layout", 
    146             "config_key" => "color_medium", 
    147         ), 
    148         "color_medium_dim" => array ( 
    149             "description" => "Medium color (dim version)", 
    150             "default"     => "#c30", 
    151             "datatype"    => "text", 
    152             "location"    => "config", 
    153             "config_domain" => "layout", 
    154             "config_key" => "color_medium_dim", 
    155             "end_fieldgroup" => "",  
    156         ), 
    157     ), 
    158 ),]]></value> 
    159         <style>3856f2f54ac289a5204d657b90178bfc</style> 
    160         <name><![CDATA[__schema]]></name> 
    161 </element> 
    162 <record_extension id="b3002fd1ae902508084fd956ae71aadd" changed="20050525210034"> 
    163         <tablename>style</tablename> 
    164         <domain><![CDATA[midgard.admin.sitewizard]]></domain> 
    165         <value><![CDATA[Standards-based layout for content-oriented sites like weblogs]]></value> 
    166         <oid>3856f2f54ac289a5204d657b90178bfc</oid> 
    167         <name><![CDATA[template_description]]></name> 
    168 </record_extension> 
    169 <element id="ca55de6ff68a37e568a9e96e2e7c0b1a" changed="20050525214410"> 
    170         <value><![CDATA[/*      -------------------------------------    
    171         Midgard Templates 
    172         FTC 
    173         Style for modern Browsers 
    174         12.5.2005 
    175         Inventive Design / Lasse Larvanko 
    176         ------------------------------------ */ 
    177 <?php 
    178 // Default style settings 
    179  
    180 /* 
    181 // GNOME colors: 
    182 $color_dark = "#D1940C"; 
    183 $color_medium = "#663822"; 
    184 $color_medium_dim = "#884631"; 
    185 */ 
    186 // Original 
    187 $color_dark = "#000"; 
    188 $color_medium = "#f60"; 
    189 $color_medium_dim = "#c30"; 
    190  
    191 $header_background = ""; 
    192  
    193 // Check if user has defined other settings 
    194 $style = mgd_get_style($_MIDGARD["style"]); 
    195 if ($style)  
    196 
    197  
    198     // Customize colors 
    199     if ($style->parameter("layout","color_dark")) 
    200     { 
    201         $color_dark = $style->parameter("layout","color_dark"); 
    202     } 
    203     if ($style->parameter("layout","color_medium")) 
    204     { 
    205         $color_dark = $style->parameter("layout","color_medium"); 
    206     } 
    207     if ($style->parameter("layout","color_medium_dim")) 
    208     { 
    209         $color_dark = $style->parameter("layout","color_medium_dim"); 
    210     } 
    211  
    212     // Customize header 
    213     $atts = $style->listattachments(); 
    214     if ($atts) 
    215     { 
    216         while ($atts->fetch()) 
    217         { 
    218             if ($atts->parameter("midcom.helper.datamanager.datatype.blob","fieldname") == "header_background") 
    219             { 
    220                 $header_background = " background-image: url(\"".$_MIDGARD["self"]."midcom-serveattachmentguid-".$atts->guid()."/".$atts->name."\");"; 
    221                 break; 
    222             } 
    223         } 
    224     } 
    225 
    226 ?> 
    227  
    228 body { text-align:center; margin:0 auto; padding: 0;    border: 0;      font: small/1.5 Verdana, Arial, Helvetica, sans-serif;  background:#eee;        } 
    229         /* IE5 hack  */  
    230         body { font-size: x-small; /* IE5 Win */ voice-family: "\"}\""; voice-family: inherit; font-size: small; } html>body { /* be nice to Opera */ font-size: small; } 
    231         /* END IE5 hack */ 
    232  
    233 /*      Page positions  
    234         ----------------------------------- */ 
    235 #container { width: 640px;  text-align:left; margin:0 auto; background:#fff; }   
    236         #content {  background: #fff; } 
    237         #breadcrumb { width:640px; border-bottom:1px solid #999;} 
    238         #breadcrumb ul { padding:0.3em 20px; margin:0;} 
    239          
    240         #main {float:left; width:420px;  border-right:1px solid #999;} 
    241         .content {padding:0 20px 20px 20px;} 
    242          
    243         #sidebar { float:right; width:219px; } 
    244                 #sidebar .content ul li a { text-decoration: none; } 
    245          
    246         #site-info { float:left; background:#fff; clear:both; width:640px; border-top:1px solid #999; color:#333; } 
    247                 #nav-extra { padding:.5em 25px; background:&(color_dark);; border-top:1px solid &(color_medium);; } 
    248                         #nav-extra p {margin:0; padding:0; } 
    249                         #nav-extra a:link, #nav-extra a:visited {color:&(color_medium);; text-decoration: none; } 
    250                 .legal { padding:.2em 25px; margin:0; color:#666; font-size:87%;} 
    251                         .lagel p { margin:0 !important; padding:0 !important;} 
    252                 #credits { padding:.2em 25px; color:#666; font-size:87%;  } 
    253                         #credits p { margin:0 !important; padding:0 !important;} 
    254                 #midgard { border: none; padding: 2px 1em 2px 1em; text-align: center; } 
    255  
    256 /*      END Page positions ---------------- */ 
    257          
    258 /*      Branding area 
    259         ------------------------------------ */ 
    260 #branding { width:640px; background:&(color_dark);; float:left; &(header_background:h); } 
    261  
    262         #branding p {padding:0; margin:0;} 
    263         #branding #logo {float:left; width:350px;} 
    264         /*#branding #logo a:link, #branding #logo a:visited, */ 
    265         #logo h1 {color:&(color_medium); !important; font-size:3em; margin:0; padding:20px 0 0 20px; width:330px; float:left;} 
    266         #logo h1 a {color:&(color_medium);; text-decoration: none;} 
    267         #branding #logo em {font-weight:normal; color:#fff !important;} 
    268         #branding .tagline {margin: 0 0 8px 20px;  color:#fff; font-family:trebuchet, "trebuchet ms", Arial, Helvetica, Sans-serif; } 
    269         #branding #language { float:right; width:240px; margin:5px 25px 5px 0; text-align:right; color:#ccc; font-size:.87em;} 
    270         p.access a {display:none; } 
    271          
    272         #searchui {  width:240px; margin:5px 25px 5px 0; float:right; text-align:right;  } 
    273         #search {width:120px; font-size:.8em;} 
    274         #searchui form {} 
    275         #searchui fieldset {border:0; padding:0; margin:0;} 
    276         #searchui label { color:#ccc;} 
    277 /*      END branding ----------------------     */ 
    278  
    279 /*      Main Navigation 
    280         ----------------------------------- */ 
    281 /*      Main Navigation 
    282         ----------------------------------- */ 
    283 #nav-main {  
    284         float:left; 
    285         width:640px; 
    286         background:&(color_dark);; 
    287         border-top:1px solid #fff; 
    288         border-bottom:1px solid &(color_medium);; 
    289 
    290 #nav-main ul { margin:0/* 0 0 20px*/; padding:0; } 
    291 #nav-main ul li {  display:inline;      } 
    292 #nav-main ul li a:link, 
    293 #nav-main ul li a:visited, 
    294 #nav-main ul li a:hover {  
    295         float:left; 
    296         display:block; 
    297         margin:0 10px 0 0; 
    298         padding:.5em 5px .5em 5px; 
    299         color:&(color_medium);; 
    300         text-decoration:none; 
    301         text-transform:uppercase; 
    302         font-weight:bold; 
    303         font-size:87%; 
    304 
    305 #nav-main a:link.active, #nav-main a:visited.active, #nav-main a:hover, #nav-main .selected { 
    306         color:#fff !important;  background:url('../i/nav-main-here.gif')  50% bottom no-repeat; 
     31        case "$1" in 
     32                *) 
     33                        sort_by_guid.pl $1 
     34                        clean_linefeeds.pl $1 
     35                        clean_user_references.pl $1 
     36                        remove_grps.pl $1 
     37                        remove_persons.pl $1 
     38                ;; 
     39        esac 
    30740} 
    30841 
    309          
    310 /*      Secondary Navigation 
    311                 ----------------------------------- */ 
    312                  
    313 #sidebar ul { margin:0; padding:0;} 
    314 #sidebar li { padding:.5em 3px ; list-style:none; font-weight:bold; text-decoration:none !important;} 
    315 #sidebar .selected { padding: 2px 0; border:1px solid #333; } 
    316 #sidebar .selected ul {background:#fff; margin:0; /*width:101%; margin:0 -1px;*/} 
    317 #sidebar ul ul {margin:0 0 0 1em;} 
    318 #sidebar ul ul li {  padding:3px 3px 3px 13px; font-weight:normal;} 
    319  
    320 #sidebar a {color:&(color_medium);;} 
    321 #sidebar a:hover {color:black;} 
    322  
    323 #sidebar h4 {margin:0; padding:0 0 1em 0;} 
    324  
    325  
    326 /*      Content stylings  
    327                 ------------------------------------ */ 
    328  
    329 /*      Basic element stylings 
    330         ----------------------------------- */ 
    331          
    332 a:link          { color:/*green #00c*/  &(color_medium);; text-decoration:underline;} 
    333 a:visited       { color:/*green #66f*/  &(color_medium_dim);; text-decoration:underline;} 
    334 a:hover         { color:/*green #f30*/  #f00; text-decoration:underline;} 
    335 a:active        { color:/*green #f30*/  #f00;} 
    336  
    337 img {border:0;} 
    338          
    339          
    340 h1, h2, h3, h4, h5, h6 {margin:0; padding:0; color: #333; font-family:trebuchet, "trebuchet ms", Arial, Helvetica, Sans-serif;} 
    341 h1 { font-size:2em; letter-spacing:-2px; font-weight:normal; padding:1em 0 0 0;} 
    342 h2 {font-size:1.6em; letter-spacing:-1px; padding:.7em 0;} 
    343 h3 {font-size:1.4em; letter-spacing:-1px; padding:.4em 0 0 0;} 
    344 h4 {font-size:1.2em; letter-spacing:-1px; padding:.4em 0 0 0; font-weight:normal;} 
    345 h5 {font-size:1em;} 
    346 h6 {font-size:1em;} 
    347  
    348 p { margin:0; padding:0 0 1em 0; } 
    349 #main p {text-align:justify;} 
    350 ul {} 
    351 ul li {} 
    352 ol {} 
    353 ol li {} 
    354 dl {} 
    355 dt {} 
    356 dd {} 
    357  
    358 blockquote { font-style:italic; color:#999; text-align:right;} 
    359 code {} 
    360 pre {} 
    361 i, em {} 
    362 b, strong { font-family:trebuchet, "trebuchet ms", Arial, Helvetica, Sans-serif;} 
    363 hr {} 
    364  
    365 abbr {} 
    366 acronym {} 
    367  
    368 form {} 
    369 fieldset {} 
    370 legend {} 
    371 label {} 
    372 button {} 
    373 input {} 
    374 optgroup {} 
    375 option {} 
    376  
    377 table {} 
    378 caption {} 
    379 th {} 
    380 tr {} 
    381  
    382 .date {color:#666; font-size:87%; padding:0; margin:0 0 0 15px;} 
    383 .author {color:#333;} 
    384  
    385 .intro {font-weight:bold; margin:0 0 0 15px;} 
    386  
    387 #content hr { 
    388   clear: both; 
    389   color: #ffffff; 
    390   background-color: #ffffff; 
    391   border: none; 
    392   margin: 0px; 
    393   padding: 0px; 
    394   height: 1px; 
    395 } 
    396 ]]></value> 
    397         <style>3856f2f54ac289a5204d657b90178bfc</style> 
    398         <name><![CDATA[css]]></name> 
    399 </element> 
    400 <record_extension id="e21c3a95bd15ae1c3b5ffee2b22aa3a5" changed="20050525205939"> 
    401         <tablename>style</tablename> 
    402         <domain><![CDATA[midgard.admin.sitewizard]]></domain> 
    403         <value><![CDATA[Lasse Larvanko, Inventive Design]]></value> 
    404         <oid>3856f2f54ac289a5204d657b90178bfc</oid> 
    405         <name><![CDATA[template_credits]]></name> 
    406 </record_extension> 
    407 <element id="f77819e2306568430f87a9fb89f7db7f" changed="20050525204044"> 
    408         <value><![CDATA[<?php 
    409 // Check if we're under this topic 
    410 $class = ""; 
    411 if ($_MIDGARD["uri"] == $GLOBALS["midcom_site"]["uri"]) 
    412 { 
    413     $class = " class=\"selected\""; 
    414 } 
    415 ?> 
    416 <ul> 
    417   <li><a href="&(midcom_site["uri"]);"&(class:h);>&(midcom_site["site_title"]);</a></li> 
    418 <?php 
    419 if ($_MIDGARD["self"] == $GLOBALS["midcom_site"]["uri"] && is_object($GLOBALS["midcom"])) 
    420 { 
    421     // We're in the actual MidCOM site, list nodes 
    422     $nodes = $GLOBALS["midcom_site"]["nap"]->list_nodes($GLOBALS["midcom_site"]["nap"]->get_root_node()); 
    423     if ($nodes) 
    424     { 
    425         foreach ($nodes as $node_id) 
    426         { 
    427             $node = $GLOBALS["midcom_site"]["nap"]->get_node($node_id); 
    428  
    429             // Check if we're under this topic 
    430             $class = ""; 
    431             if ($_MIDGARD["argc"] > 0 && $_MIDGARD["argv"][0]."/" == $node[MIDCOM_NAV_URL]) 
    432             { 
    433                 $class = " class=\"selected\""; 
    434             } 
    435             ?> 
    436             <li><a href="&(node[MIDCOM_NAV_FULLURL]);"&(class:h);>&(node[MIDCOM_NAV_NAME]);</a></li> 
    437             <?php 
    438         } 
    439     } 
    440 } 
    441 ?> 
    442 </ul>]]></value> 
    443         <style>3856f2f54ac289a5204d657b90178bfc</style> 
    444         <name><![CDATA[navi-top]]></name> 
    445 </element> 
    446 <element id="fa8fb16ae282eceafa967ebd5d4d7cfd" changed="20050525205624"> 
    447         <value><![CDATA[<?php 
    448 if ($GLOBALS["midcom_site"]["in_ais"]) 
    449 { 
    450     // AIS needs more space 
    451     ?> 
    452     #sidebar { 
    453         display: none; 
    454     } 
    455     #main { 
    456         width: 640px; 
    457     } 
    458     <?php 
    459 } 
    460 ?>]]></value> 
    461         <style>3856f2f54ac289a5204d657b90178bfc</style> 
    462         <name><![CDATA[css-local]]></name> 
    463 </element> 
    464  
    465  
    466 </Database>