Changeset 5123 for trunk/themes/default


Ignore:
Timestamp:
Mar 13, 2010, 1:00:52 AM (15 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:
10 added
6 edited
21 copied

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.