Changeset 2328 for trunk/template/yoga


Ignore:
Timestamp:
May 3, 2008, 7:28:15 PM (16 years ago)
Author:
vdigital
Message:

Start of Stripy look on Admin page (Not stable for all browsers)

Location:
trunk/template/yoga
Files:
9 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/admin/intro.tpl

    r2235 r2328  
    11{* $Id$ *}
    22<h2>{'title_default'|@translate}</h2>
    3 {if isset($pwgmenu)}
    4 <ul class="pwgmenu">
    5   <!-- Keep Doctype XHTML Strict acceptable even in Admin -->
    6   <!-- New window is open if Js available (Webmasters accept it usually) -->
    7   <li><a href="{$pwgmenu.HOME}" onclick="window.open(this.href, ''); return false;">{'HOME'|@translate}</a></li>
    8   <li><a href="{$pwgmenu.WIKI}" onclick="window.open(this.href, ''); return false;">{'WIKI / DOC'|@translate}</a></li>
    9   <li><a href="{$pwgmenu.FORUM}" onclick="window.open(this.href, ''); return false;">{'FORUM'|@translate}</a></li>
    10   <li><a href="{$pwgmenu.BUGS}" onclick="window.open(this.href, ''); return false;">{'BUGS'|@translate}</a></li>
    11   <li><a href="{$pwgmenu.EXTENSIONS}" onclick="window.open(this.href, ''); return false;">{'EXTENSIONS'|@translate}</a></li>
    12 </ul>   
    13 {/if}
    143<dl>
    154  <dt>{'PhpWebGallery version'|@translate}</dt>
  • trunk/template/yoga/header.tpl

    r2289 r2328  
    6868
    6969<div id="theHeader">{$PAGE_BANNER}</div>
    70 
     70{if isset($pwgmenu)}
     71<ul class="pwgmenu">
     72  <li><a href="{$pwgmenu.HOME}" onclick="window.open(this.href, ''); return false;"><span class="bg">{'HOME'|@translate}<span></a></li>
     73  <li><a href="{$pwgmenu.WIKI}" onclick="window.open(this.href, ''); return false;"><span class="bg">{'WIKI / DOC'|@translate}<span></a></li>
     74  <li><a href="{$pwgmenu.FORUM}" onclick="window.open(this.href, ''); return false;"><span class="bg">{'FORUM'|@translate}<span></a></li>
     75  <li><a href="{$pwgmenu.EXTENSIONS}" onclick="window.open(this.href, ''); return false;"><span class="bg">{'EXTENSIONS'|@translate}<span></a></li>
     76</ul>   
     77{/if}
    7178{if not empty($header_notes)}
    7279<div class="header_notes">
  • trunk/template/yoga/theme/admin/theme.css

    r2318 r2328  
    7272#theAdminPage h2, #theAdminPage h3 { border-bottom: 1px solid #69c; }
    7373#imageHeaderBar, #theAdminPage #the_page {
    74   background-color: #111;
     74  background-color: transparent;
    7575}
    7676#imageToolBar, .header_notes {
     
    9090}
    9191#theAdminPage #the_page #content, #theAdminPage #the_page .content {
    92   background-color: #111;
     92  background-color: transparent;
    9393  border-width: 0px;
    9494  padding: 5px;
     
    138138}
    139139#thePicturePage #the_page {
    140   background-color: #111;
     140  background-color: transparent;
    141141}
    142142#thePicturePage #imageHeaderBar {
     
    145145}
    146146#thePicturePage #imageToolBar {
    147   background-color: #111;
     147  background-color: transparent;
    148148  border-bottom: 2px solid #69c;
    149149}
    150150#thePicturePage #theImage {
    151   background-color: #111;
     151  background-color: transparent;
    152152  margin: 0px;
    153153  padding: 3px 0px 15px 0px;
     
    303303.statBar { background-color: #e60; }
    304304#imageToolBar .randomButtons a:hover,
    305 #imageToolBar .navButtons a:hover { background-color: #111; }
     305#imageToolBar .navButtons a:hover { background-color: transparent; }
    306306#menubar .menuInfoCat,
    307307#menubar .menuInfoCatByChild,
     
    330330list-style-type:none; padding: 0pt;
    331331 /*default-layout.cs... (line 23) */
    332 margin: 0pt 0pt 0pt 13.5em; background: transparent url(images/content-bg.png)
     332margin: 0pt 0pt 0pt 200px; background: transparent url(images/content-bg.png)
    333333  repeat-y scroll right top;}
    334334#theAdminPage #menubar ul { list-style-image:url(images/list-image.png); }
     
    337337#menubar a { border-bottom:0; text-decoration:none; font-style: italic;}
    338338body#theAdminPage #theHeader {
    339   background:#111 url(images/logo23.jpg) no-repeat top left; height:105px;
     339  background:transparent url(images/piwigo_logo_sombre_214x100.png) no-repeat 230px top; height:105px;
    340340}
    341341body#theAdminPage #post-header {
    342   background: transparent url(images/tableh1_bg.png) repeat-x top left;
    343   width: 100%; height: 4px;
     342  background-color: transparent;
     343  width: 60%; height: 4px; margin-left:40%;
    344344}
    345345#theHeader h1 { /*default-layout.cs... (line 204) */
     
    374374border-bottom:0;
    375375border-right:0;
    376 border-top:1px solid #222;
    377 background: transparent url(images/pre-menubar-bg.png) no-repeat scroll left top;
     376border-top:0px solid #222;
     377background-color: transparent;
    378378}
    379379#theAdminPage #menubar dt.pre-menubar {
     
    382382}
    383383.pwgmenu { /*theme.css (line 335)*/
    384 background:transparent;
    385 display:table;
     384background:transparent url(images/header_bottom.png) repeat-x scroll left 25px;
     385float:right;
    386386font-family:verdana,arial,helvetica,sans-serif;
    387387font-size:70%;
     
    389389list-style-image:none;
    390390list-style-type:none;
    391 margin:1px 8px 1px 00;
    392 padding:3px;
    393 position:relative;
    394 right:-406px;
    395 text-decoration:none;
    396 top:-93px;
    397 white-space:nowrap;
    398 width:636px;
     391margin:1px 8px 1px 0pt;
     392padding:3px 3px 3px 101px;
     393text-decoration:none; top:-35px;
     394width:587px;
    399395}
    400396.pwgmenu li { /*default-layout.cs... (line 151)*/
     
    406402}
    407403.pwgmenu a { /*theme.css (line 344)*/
    408 background:#FF3366 url(images/select_bt.png) repeat scroll left top;
     404background:transparent url(images/onglet_inactif_transp.png) no-repeat scroll left 3px;
    409405border:0pt none;
    410 color:#CCCCCC;
     406color:#FF3333;
    411407display:block;
    412 font-size:140%;
    413 height:15px;
    414 padding:15px 0pt 0pt;
    415 text-align:center;
    416 text-decoration:none;
    417 width:126px !important;
    418 }
     408font-size:40%; height:33px;
     409padding:3px 0pt 5px 10pt; text-align:left;
     410text-decoration:none; width:126px !important;
     411}
     412.pwgmenu a:hover { /*theme.css (line 344)*/
     413background:transparent url(images/onglet_actif_transp.png) no-repeat scroll left 2px;
     414color: #ff7700; }
    419415#content h2:before, #content h2:after,
    420416#menubar DT:before, #menubar DT:after { content: ""; }
     
    430426#theAdminPage h2 { /* theme.css (line 72) */ border-bottom:0px; }
    431427body#theAdminPage { /*theme.css (line 324) */
    432 background:#111111 url(images/menubar-bg.png) repeat-y scroll left top;}
     428background:#111111 url(images/top-left-bg.png) no-repeat scroll left top;}
    433429#theAdminPage #the_page { /*theme.css (line 73)*/
    434 background:transparent url(images/content-bg.png) repeat-y scroll right top; }
     430background:transparent url(images/bottom-left-bg.png) no-repeat fixed left bottom; }
    435431#the_page { /*theme.css (line 348)*/ padding-bottom:30px;}
    436432#content, .content {background-color:transparent;}
    437433body#theAdminPage #menubar {  /* theme.css (line 324) */
    438 background:transparent none repeat-y scroll right top; border-bottom:0px; }
     434background:transparent none repeat-y scroll right top; border-bottom:0px; margin-top:150px;}
    439435#theAdminPage #the_page #content, #theAdminPage #the_page .content { /*theme.css (line 91)*/
    440 background-color:#111111; border-width:0px; padding:5px 35px 5px 5px; }
     436background-color:transparent; border-width:0px; padding:5px 35px 5px 5px; }
    441437body#theAdminPage #menubar dl.selected dd { padding-bottom: 145px; }
    442438.header_notes {/*default-colors.cs... (line 91)*/
    443439background-image:url(icon/note.png); background-position:left top;
    444 background-repeat:no-repeat; border:1px solid #AAAAAA;
    445 font-weight:bold; margin:14px; padding:5px 0px 0px;
    446 position:absolute; right:31px; text-align:center; top:96px;  width:50%; }
     440background-repeat:no-repeat; border:1px solid #AAAAAA; font-weight:bold;
     441margin:14px; padding:5px 0px 0px; position:absolute; right:31px;
     442text-align:center; top:96px; width:502px; }
     443#theAdminPage #menubar dl.selected {/*theme.css (line 372)*/
     444background:transparent url(images/menubar-top.png) no-repeat scroll left top;
     445}
     446#theAdminPage #menubar dl {/*theme.css (line 372)*/
     447background:transparent url(images/menubar-top.png) no-repeat scroll left top; width: 198px;
     448}
     449#theAdminPage #menubar dt { background: none; left:10px; position:relative; text-align:left; top:-10px;}
     450#theAdminPage #menubar dd { background: transparent url(images/menubar-detail.png) repeat-y top left;
     451margin: 0px 0px 0px 4px; padding: 0px;}
     452span.bg { background-color: #111111; padding-right: 3px; }
  • trunk/template/yoga/theme/admin/themeconf.inc.php

    r2317 r2328  
    11<?php
     2/**
     3 * Accordion menus need to be stable
     4 */
     5function selected_admin_menu()
     6{
     7  if (isset($_GET['page']))
     8  {
     9    switch ($_GET['page']) {
     10      case 'configuration':
     11        return 1;
     12      case 'site_manager':
     13      case 'site_update':
     14      case 'cat_list':
     15      case 'cat_modify':
     16      case 'element_set':
     17      case 'cat_perm':
     18      case 'picture_modify':
     19        if (isset($_GET['cat']) and $_GET['cat']='caddie') {
     20          return 3;
     21        }
     22        return 2;
     23      case 'comments':
     24      case 'thumbnail':
     25      case 'rating':
     26      case 'tags':
     27        return 3;
     28      case 'user_list':
     29      case 'group_list':
     30      case 'notification_by_mail':
     31        return 4;
     32      case 'stats':
     33      case 'history':
     34      case 'maintenance':
     35      case 'advanced_feature':
     36      case 'wd_checker':
     37      case 'plugins_list':
     38      case 'plugin':
     39        return 5;
     40    }
     41  }
     42  return 0;
     43}
     44
    245$themeconf = array(
    346  'template' => 'yoga',
     
    1861    jQuery(\'#menubar\').accordion({
    1962      header: "dt.rdion",
    20       event: "mouseover"
     63      event: "mouseover",
     64      active: '. selected_admin_menu() . '
    2165    });
    2266  });
Note: See TracChangeset for help on using the changeset viewer.