Changeset 5123 for trunk/themes


Ignore:
Timestamp:
Mar 13, 2010, 1:00:52 AM (14 years ago)
Author:
plg
Message:

feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It
supports multiple level inheritance.

Location:
trunk/themes
Files:
13 added
15 edited
26 copied

Legend:

Unmodified
Added
Removed
  • trunk/themes/Sylvia/mail-css.tpl

    r3283 r5123  
    66#copyright {ldelim} background: transparent url({$ROOT_URL}template/{$themeconf.template}/mail/text/html/images/footer-bg.jpg) no-repeat scroll left bottom;
    77min-height: 220px; height: 220px; width: 100%; min-width: 100%; padding: 10px 100px 30px 100px; }
    8 h2 {ldelim} color:#f70;background: transparent url({$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/images/fillet.gif) repeat-x scroll left bottom; padding-bottom: 5px;}
     8h2 {ldelim} color:#f70;background: transparent url({$ROOT_URL}template/{$themeconf.template}/themes/{$themeconf.theme}/images/fillet.gif) repeat-x scroll left bottom; padding-bottom: 5px;}
    99img {ldelim} margin: 16px; border: 16px solid #444; -moz-border-radius: 4px; border-radius: 4px 4px; }
    1010img:hover {ldelim} padding: 15px; border: 0; background-color:#222;-moz-border-radius: 4px; border-radius: 4px 4px; }
  • trunk/themes/Sylvia/themeconf.inc.php

    r3282 r5123  
    11<?php
    22$themeconf = array(
    3   'template' => 'yoga',
    4   'theme' => 'Sylvia',
    5   'icon_dir' => 'template/yoga/theme/Sylvia/icon',
    6   'admin_icon_dir' => 'template/yoga/icon/admin',
    7   'mime_icon_dir' => 'template/yoga/theme/Sylvia/icon/mimetypes/',
    8   'local_head' => '
    9 <!--[if IE]>
    10         <link rel="stylesheet" href="template/yoga/theme/Sylvia/theme-ie.css" type="text/css">
    11 <![endif]-->
    12   ',
     3  'theme'         => 'Sylvia',
     4  'parent'        => 'default',
     5  'icon_dir'      => 'themes/Sylvia/icon',
     6  'mime_icon_dir' => 'themes/Sylvia/icon/mimetypes/',
    137);
    148?>
  • trunk/themes/clear/themeconf.inc.php

    r3282 r5123  
    11<?php
    22$themeconf = array(
    3   'template' => 'yoga',
    4   'theme' => 'clear',
    5   'icon_dir' => 'template/yoga/icon',
    6   'admin_icon_dir' => 'template/yoga/icon/admin',
    7   'mime_icon_dir' => 'template/yoga/icon/mimetypes/',
    8   'local_head' => '',
     3  'theme'  => 'clear',
     4  'parent' => 'default',
    95);
    106?>
  • trunk/themes/dark/mail-css.tpl

    r3283 r5123  
    66#copyright {ldelim} background: transparent url({$ROOT_URL}template/{$themeconf.template}/mail/text/html/images/footer-bg.png) no-repeat scroll left bottom;
    77color: #69c;}
    8 h2 {ldelim} background-color: #333;color:#fff48e;background-image: url({$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/images/tableh1_bg.png);}
     8h2 {ldelim} background-color: #333;color:#fff48e;background-image: url({$ROOT_URL}template/{$themeconf.template}/themes/{$themeconf.theme}/images/tableh1_bg.png);}
    99img {ldelim} margin: 16px; border: 16px solid #111; -moz-border-radius: 4px; border-radius: 4px 4px; }
    1010img:hover {ldelim} padding: 15px; border: 1px solid yellow;background-color:#444;-moz-border-radius: 4px; border-radius: 4px 4px; }
  • trunk/themes/dark/themeconf.inc.php

    r3282 r5123  
    11<?php
    22$themeconf = array(
    3   'template' => 'yoga',
    4   'theme' => 'dark',
    5   'icon_dir' => 'template/yoga/icon',
    6   'admin_icon_dir' => 'template/yoga/icon/admin',
    7   'mime_icon_dir' => 'template/yoga/icon/mimetypes/',
    8   'local_head' => '',
     3  'theme'  => 'dark',
     4  'parent' => 'default',
    95);
    106?>
  • trunk/themes/default/default-layout.css

    r3283 r5123  
    273273        cursor : pointer;
    274274}
     275
     276/* Set the width of the menubar for the galery */
     277#menubar {
     278  width: 18em;
     279}
     280.content {
     281  margin-left: 20em;  /* = #menubar width + 2em */
     282}
     283/* Set minimum width of the page before getting a scrollbar */
     284/* IE5 and IE6 don't get that */
     285BODY {
     286  min-width: 60em;  /* ~ 3* #menubar width */
     287}
     288BODY#thePopuphelpPage {
     289  min-width: 0;
     290}
     291
     292/* Set some sizes according to your maximum thumbnail width and height */
     293.content UL.thumbnails SPAN,
     294.content UL.thumbnails SPAN.wrap2 A,
     295.content UL.thumbnails LABEL,
     296.content DIV.thumbnailCategory DIV.illustration {
     297  width: 140px;      /* max thumbnail width + 2px */
     298}
     299.content UL.thumbnails SPAN.wrap2,
     300.content DIV.thumbnailCategory DIV.description {
     301  height: 140px;    /* max thumbnail height + 2px */
     302}
     303
     304
     305/* Category thumbnails on main page */
     306.content UL.thumbnailCategories LI {
     307  width: 49.7%;    /* 49.7% for 2 per line, 33.2% for 3 per line*/
     308}
     309
     310/* Set defaults for thumbnails legend */
     311.content UL.thumbnails SPAN.thumbLegend {
     312  display: block;  /* display: none; if you don't want legend */
     313  height: 4em;    /* legend height (don't set auto to be Gecko friendly)*/
     314}
  • trunk/themes/default/template/header.tpl

    r5095 r5123  
    2121<title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>{else}
    2222<title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>{/if}
    23 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">
     23<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
    2424
    2525<link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >
     
    3131{if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
    3232
    33 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/layout.css">
    34 {* the next css is used to fix khtml (Konqueror/Safari) issue the "text/nonsense" prevents gecko based browsers to load it *}
    35 <link rel="stylesheet" type="text/nonsense" href="{$ROOT_URL}template/{$themeconf.template}/fix-khtml.css">
    36 <!--[if lt IE 7]>
    37         <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie5-ie6.css">
    38 <![endif]-->
    39 <!--[if gt IE 6]>
    40         <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/fix-ie7.css">
    41 <![endif]-->
    42 <!--[if !IE]> <-->
    43         <link rel="stylesheet" href="{$ROOT_URL}template/{$themeconf.template}/not-ie.css" type="text/css">
    44 <!--> <![endif]-->
    45 <link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}template/{$themeconf.template}/print.css">
    46 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
    47 {$themeconf.local_head}
     33{foreach from=$themes item=theme}
     34{if isset($theme.local_head)}{include file=$theme.local_head}{/if}
     35<link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.name}/theme.css">
     36{/foreach}
     37
    4838{if isset($U_PREFETCH)          }<link rel="prefetch" href="{$U_PREFETCH}">{/if}
    4939
    5040{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
    5141
    52 <script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
     42<script type="text/javascript" src="{$ROOT_URL}{$themeconf.js_dir}/scripts.js"></script>
    5343<!--[if lt IE 7]>
    54 <style>
    55         {* only because we need {$ROOT_URL} otherwise use fix-ie5-ie6.css *}
    56         BODY {ldelim} behavior:url("{$ROOT_URL}template-common/csshover.htc"); }
    57         A IMG, .button, .icon {ldelim}
    58                 behavior:url("{$ROOT_URL}template-common/tooltipfix.htc");
    59         }
    60         FORM {ldelim} behavior: url("{$ROOT_URL}template-common/inputfix.htc"); }
    61 </style>
    62 <script type="text/javascript" src="{$ROOT_URL}template-common/pngfix.js"></script>
     44<script type="text/javascript" src="{$ROOT_URL}{$themeconf.js_dir}/pngfix.js"></script>
    6345<![endif]-->
    6446
  • trunk/themes/default/template/include/autosize.inc.tpl

    r5095 r5123  
    1 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    2 {known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.autogrow-textarea.js"}
     1{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
     2{known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.autogrow-textarea.js"}
    33
    44{* Auto size and auto grow textarea *}
  • trunk/themes/default/template/include/datepicker.inc.tpl

    r5095 r5123  
    11
    2 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    3 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/packed/ui.core.packed.js"}
    4 {known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"template-common/lib/ui/packed/ui.datepicker.packed.js"}
    5 {known_script id="datepicker.js" src=$ROOT_URL|@cat:"template-common/datepicker.js"}
     2{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
     3{known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
     4{known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.datepicker.packed.js"}
     5{known_script id="datepicker.js" src=$ROOT_URL|@cat:"themes/default/js/datepicker.js"}
    66
    7 {assign var="datepicker_language" value="template-common/lib/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
     7{assign var="datepicker_language" value="themes/default/js/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
    88
    99{if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists}
     
    1212
    1313{html_head}
    14 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}template-common/lib/ui/theme/ui.datepicker.css">
     14<link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/default/js/ui/themes/ui.datepicker.css">
    1515{/html_head}
    1616
  • trunk/themes/default/template/include/resize.inc.tpl

    r5095 r5123  
    1 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    2 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/packed/ui.core.packed.js"}
    3 {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/packed/ui.resizable.packed.js"}
     1{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
     2{known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
     3{known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"}
    44
    55{* Resize possible *}
  • trunk/themes/default/template/picture.tpl

    r5112 r5123  
    191191                        {/if}
    192192                        {/foreach}
    193                         <script type="text/javascript" src="{$ROOT_URL}template/{$themeconf.template}/rating.js"></script>
     193                        <script type="text/javascript" src="{$ROOT_URL}themes/default/js/rating.js"></script>
    194194                        <script type="text/javascript">
    195195                        makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id},
  • trunk/themes/default/template/profile_content.tpl

    r5095 r5123  
    6060          <label for="template">{'Interface theme'|@translate}</label>
    6161        </span>
    62         {html_options name=template options=$template_options selected=$template_selection}
     62        {html_options name=theme options=$template_options selected=$template_selection}
    6363      </li>
    6464      <li>
  • trunk/themes/p0w0/mail-css.tpl

    r3283 r5123  
    66#copyright {ldelim} background: transparent url({$ROOT_URL}template/{$themeconf.template}/mail/text/html/images/footer-bg.png) no-repeat scroll left bottom;
    77color: #69c;}
    8 h2 {ldelim} color:#fff;background: #369 url({$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/images/button-bg.png);}
     8h2 {ldelim} color:#fff;background: #369 url({$ROOT_URL}template/{$themeconf.template}/themes/{$themeconf.theme}/images/button-bg.png);}
    99img {ldelim} margin:16px;padding:15px;border:1px solid #69c;background-color:#eef;-moz-border-radius:4px; border-radius:4px 4px; }
    1010img:hover {ldelim} border: 1px solid #c60; -moz-border-radius:4px; border-radius:4px 4px; }
  • trunk/themes/p0w0/themeconf.inc.php

    r3282 r5123  
    11<?php
    22$themeconf = array(
    3   'template' => 'yoga',
    4   'theme' => 'p0w0',
    5   'icon_dir' => 'template/yoga/icon',
    6   'admin_icon_dir' => 'template/yoga/icon/admin',
    7   'mime_icon_dir' => 'template/yoga/icon/mimetypes/',
    8   'local_head' => '',
     3  'theme'  => 'p0w0',
     4  'parent' => 'default',
    95);
    106?>
  • trunk/themes/wipi/mail-css.tpl

    r3283 r5123  
    66#copyright {ldelim} background: transparent url({$ROOT_URL}template/{$themeconf.template}/mail/text/html/images/footer-bg.png) no-repeat scroll left bottom;
    77color: #69c;}
    8 h2 {ldelim} background-color: #222;color:#eee;background-image: url({$ROOT_URL}template/{$themeconf.template}/theme/{$themeconf.theme}/images/tableh1_bg.png);}
     8h2 {ldelim} background-color: #222;color:#eee;background-image: url({$ROOT_URL}template/{$themeconf.template}/themes/{$themeconf.theme}/images/tableh1_bg.png);}
    99img {ldelim} margin: 16px; padding:15px;border:1px solid #eee; -moz-border-radius: 4px; border-radius: 4px 4px; }
    1010img:hover {ldelim} border:1px solid #69c; -moz-border-radius: 4px; border-radius: 4px 4px; }
  • trunk/themes/wipi/themeconf.inc.php

    r3282 r5123  
    11<?php
    22$themeconf = array(
    3   'template' => 'yoga',
    4   'theme' => 'wipi',
    5   'icon_dir' => 'template/yoga/icon',
    6   'admin_icon_dir' => 'template/yoga/icon/admin',
    7   'mime_icon_dir' => 'template/yoga/icon/mimetypes/',
    8   'local_head' => '',
     3  'theme'  => 'wipi',
     4  'parent' => 'default',
    95);
    106if ( !isset($lang['Theme: wipi']) )
Note: See TracChangeset for help on using the changeset viewer.