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/admin/themes
Files:
3 added
4 edited
48 copied

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/admin.tpl

    r5098 r5123  
    1 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/packed/ui.core.packed.js" }
    2 {known_script id="jquery.ui.accordion" src=$ROOT_URL|@cat:"template-common/lib/ui/packed/ui.accordion.packed.js" }
    3 {known_script id="jquery.tipTip" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.tipTip.minified.js" }
     1{known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js" }
     2{known_script id="jquery.ui.accordion" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.accordion.packed.js" }
     3{known_script id="jquery.tipTip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.tipTip.minified.js" }
    44
    55<script type="text/javascript">
  • trunk/admin/themes/default/template/cat_list.tpl

    r5079 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.sortable" src=$ROOT_URL|@cat:"template-common/lib/ui/packed/ui.sortable.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.sortable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.sortable.packed.js" }
    44
    55<script type="text/javascript">
  • trunk/admin/themes/default/template/element_set_ranks.tpl

    r3282 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.sortable" src=$ROOT_URL|@cat:"template-common/lib/ui/packed/ui.sortable.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.sortable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.sortable.packed.js" }
    44
    55{literal}
  • trunk/admin/themes/default/template/header.tpl

    r5098 r5123  
    1212<meta name="generator" content="Piwigo (aka PWG), see piwigo.org">
    1313<title>{$GALLERY_TITLE} :: {$PAGE_TITLE}</title>
    14 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">
     14<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
    1515
    16 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/layout.css">
     16{foreach from=$themes item=theme}
     17{if isset($theme.local_head)}{include file=$theme.local_head}{/if}
     18<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/{$theme.name}/theme.css">
     19{/foreach}
     20
     21{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=1} {*jQuery is always available by default*}
     22
     23<script type="text/javascript" src="{$ROOT_URL}themes/default/js/scripts.js"></script>
    1724<!--[if lt IE 7]>
    18   <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/fix-ie5-ie6.css">
    19 <![endif]-->
    20 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/default-colors.css">
    21 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
    22 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js" now=1} {*jQuery is always available by default*}
    23 {$themeconf.local_head}
    24 <script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
    25 <!--[if lt IE 7]>
    26 <style>
    27   {* only because we need {$ROOT_URL} otherwise use fix-ie5-ie6.css *}
    28   BODY {ldelim} behavior:url("{$ROOT_URL}template-common/csshover.htc"); }
    29   A IMG, .button, .icon {ldelim}
    30     behavior:url("{$ROOT_URL}template-common/tooltipfix.htc");
    31   }
    32   FORM {ldelim} behavior: url("{$ROOT_URL}template-common/inputfix.htc"); }
    33 </style>
    34 <script type="text/javascript" src="{$ROOT_URL}template-common/pngfix.js"></script>
     25<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
    3526<![endif]-->
    3627
     
    5041  <h1>
    5142    <a href="{$U_RETURN}" title="Visit Gallery">
    52       <img src="admin/template/goto/icon/home.png" alt="{'Home'|@translate}">
     43      <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/home.png" alt="{'Home'|@translate}">
    5344      {$GALLERY_TITLE}
    5445    </a>
     
    6051    <a href="{$U_CHANGE_THEME}" title="Switch to clear theme for administration">Change Theme</a> |
    6152    <a href="{$U_LOGOUT}">{'Logout'|@translate}</a>
    62     <a href="{$U_FAQ}" title="{'Instructions'|@translate}" id="instructions"><img style="padding-left:10px;" src="{$ROOT_URL}admin/template/goto/icon/help.png" class="button" alt="(?)"></a>
     53    <a href="{$U_FAQ}" title="{'Instructions'|@translate}" id="instructions"><img style="padding-left:10px;" src="{$ROOT_URL}{$themeconf.admin_icon_dir}/help.png" class="button" alt="(?)"></a>
    6354  </div>
    6455</div>
  • trunk/admin/themes/default/template/include/autosize.inc.tpl

    r3283 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/admin/themes/default/template/include/datepicker.inc.tpl

    r3283 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
     
    1919{ldelim}
    2020  return pwg_common_initialization_datepicker(
    21     "{$ROOT_URL}admin/template/{$themeconf.template}/icon/datepicker.png",
     21    "{$ROOT_URL}{$themeconf.admin_icon_dir}/datepicker.png",
    2222    day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date);
    2323}
  • trunk/admin/themes/default/template/include/dbselect.inc.tpl

    r3283 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/admin/themes/default/template/include/resize.inc.tpl

    r3283 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/admin/themes/default/template/install.tpl

    r5022 r5123  
    66<meta http-equiv="Content-script-type" content="text/javascript">
    77<meta http-equiv="Content-Style-Type" content="text/css">
    8 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">
    9 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/layout.css">
    10 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/default-colors.css">
    11 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
    12 {include file="include/install.inc.tpl"}
     8<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
     9
     10{foreach from=$themes item=theme}
     11{if isset($theme.local_head)}{include file=$theme.local_head}{/if}
     12<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/{$theme.name}/theme.css">
     13{/foreach}
     14
     15<script type="text/javascript" src="themes/default/js/jquery.packed.js"></script>
    1316{literal}
     17<script type="text/javascript">
     18$(function() {
     19    $option_selected = $('#dblayer option:selected').attr('value');
     20    if ($option_selected=='sqlite' || $option_selected=='pdo-sqlite') {
     21       $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide();
     22    }
     23    $('#dblayer').change(function() {
     24        $db = this;
     25        if ($db.value=='sqlite' || $db.value=='pdo-sqlite') {
     26           $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide();
     27        } else {
     28           $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().show();
     29        }
     30      });
     31  });
     32</script>
     33
    1434<style type="text/css">
    1535.content {
  • trunk/admin/themes/default/template/intro.tpl

    r5021 r5123  
    1 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.cluetip.packed.js"}
     1{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
     2{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
    33
    44<script type="text/javascript">
  • trunk/admin/themes/default/template/menubar.tpl

    r4919 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-tablednd" src=$ROOT_URL|@cat:"template-common/lib/jquery.tablednd.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-tablednd" src=$ROOT_URL|@cat:"themes/default/js/jquery.tablednd.js"}
    44
    55{literal}
  • trunk/admin/themes/default/template/photos_add_direct.tpl

    r5098 r5123  
    1 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
     1{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
    22
    33{literal}
  • trunk/admin/themes/default/template/picture_modify.tpl

    r5067 r5123  
    33{include file='include/datepicker.inc.tpl'}
    44
    5 {known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.fcbkcomplete.js"}
     5{known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"}
    66{literal}
    77<script type="text/javascript">
  • trunk/admin/themes/default/template/plugins_new.tpl

    r5036 r5123  
    1 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.cluetip.packed.js"}
     1{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
     2{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
    33
    44<script type="text/javascript">
  • trunk/admin/themes/default/template/plugins_update.tpl

    r5039 r5123  
    1 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.cluetip.packed.js"}
     1{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
     2{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
    33
    44<script type="text/javascript">
  • trunk/admin/themes/default/template/upgrade.tpl

    r5021 r5123  
    66<meta http-equiv="Content-script-type" content="text/javascript">
    77<meta http-equiv="Content-Style-Type" content="text/css">
    8 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">
    9 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/layout.css">
    10 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/default-colors.css">
    11 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
     8<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
     9
     10{foreach from=$themes item=theme}
     11{if isset($theme.local_head)}{include file=$theme.local_head}{/if}
     12<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/{$theme.name}/theme.css">
     13{/foreach}
     14
    1215{literal}
    1316<style type="text/css">
  • trunk/admin/themes/default/template/user_list.tpl

    r5036 r5123  
    219219    <td>{'Interface theme'|@translate}</td>
    220220    <td>
    221       <label><input type="radio" name="template_action" value="leave" checked="checked"> {'leave'|@translate}</label>
    222       <label><input type="radio" name="template_action" value="set" id="template_action_set"> {'set to'|@translate}</label>
    223       <select onchange="document.getElementById('template_action_set').checked = true;" name="template" size="1">
    224         {html_options values=$template_options output=$template_options selected=$template_selected}
     221      <label><input type="radio" name="theme_action" value="leave" checked="checked"> {'leave'|@translate}</label>
     222      <label><input type="radio" name="theme_action" value="set" id="theme_action_set"> {'set to'|@translate}</label>
     223      <select onchange="document.getElementById('theme_action_set').checked = true;" name="theme" size="1">
     224        {html_options values=$theme_options output=$theme_options selected=$theme_selected}
    225225      </select>
    226226    </td>
Note: See TracChangeset for help on using the changeset viewer.