Changeset 5098


Ignore:
Timestamp:
Mar 10, 2010, 12:19:11 AM (15 years ago)
Author:
plg
Message:

feature 1491: administration panel header/footer. Graphicaly outside the
administration theme. The header includes the gallery title with a link to
gallery, a theme changer, an explicit "visit gallery" link, a logout link.
The footer includes links to piwigo.org (homepage, documentation, forum) and
the contact webmaster link.

Due to new header/footer, I've removed the "Links" section in the menubar.

The new footer sticks to the bottom of the browser window.

I've slightly "rounded" grum tabs to look like the menubar borders.

Graphical illustration (top left and bottom left leaves) were removed to
improve readability. They make things beautiful on gallery side, they
decrease usability on admin side.

Piwigo logo was removed to save space on administration footer. It would be
nice to have a small logo to place bottom left in the footer next to
"Powered by Piwigo".

Links>Administration link was replaced by a big link box just above the
menubar.

The H2 was outside the #content box, nearly invisible on top right corner.
Now it is 1) easy to read 2) inside #content.

feature 1490: ability to switch from goto/roma to goto/clear with a single
click in administration header.

The global organisation of the page is quite heavily changed. The global
layout is:

body#theAdminPage
body#theAdminPage > #the_page
body#theAdminPage > #the_page > #pwgHead
body#theAdminPage > #the_page > #pwgMain
body#theAdminPage > #the_page > #pwgMain > #menubar
body#theAdminPage > #the_page > #pwgMain > #content
body#theAdminPage > #the_page > #footer

Location:
trunk
Files:
2 added
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r5089 r5098  
    6060}
    6161
     62// theme changer
     63if (isset($_GET['change_theme']))
     64{
     65  $admin_themes = array('goto/roma', 'goto/clear');
     66
     67  $new_admin_theme = array_pop(
     68    array_diff(
     69      $admin_themes,
     70      array($conf['admin_layout'])
     71      )
     72    );
     73
     74  $query = '
     75DELETE
     76  FROM '.CONFIG_TABLE.'
     77  WHERE param = "admin_layout"
     78;';
     79  pwg_query($query);
     80
     81  $query = '
     82INSERT
     83  INTO '.CONFIG_TABLE.'
     84  SET param = "admin_layout"
     85    , value = "'.$new_admin_theme.'"
     86;';
     87  pwg_query($query);
     88
     89  redirect('admin.php');
     90}
     91
    6292// +-----------------------------------------------------------------------+
    6393// |                    synchronize user informations                      |
     
    95125$template->assign(
    96126  array(
     127    'USERNAME' => $user['username'],
    97128    'U_SITE_MANAGER'=> $link_start.'site_manager',
    98129    'U_HISTORY_STAT'=> $link_start.'stats',
     
    124155    'U_PLUGINS'=> $link_start.'plugins_list',
    125156    'U_ADD_PHOTOS' => $link_start.'photos_add',
     157    'U_CHANGE_THEME' => PHPWG_ROOT_PATH.'admin.php?change_theme=1',
    126158    )
    127159  );
  • trunk/admin/template/goto/admin.tpl

    r5089 r5098  
    11{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/packed/ui.core.packed.js" }
    22{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" }
    34
    45<script type="text/javascript">
     
    1314
    1415<div id="menubar">
     16  <div id="adminHome"><a href="{$U_ADMIN}">Administration Home</a></div>
    1517  <dl class="first">
    16     <dt class="rdion"><span>{'Links'|@translate}&nbsp;</span></dt>
    17     <dd>
    18       <ul>
    19         <li><a href="{$U_RETURN}">{'Home'|@translate}</a></li>
    20         <li><a href="{$U_FAQ}">{'Instructions'|@translate}</a></li>
    21         <li><a href="{$U_ADMIN}" title="{'Administration'|@translate}">{'Administration'|@translate}</a></li>
    22         <li><a href="{$U_LOGOUT}">{'Logout'|@translate}</a></li>
    23 {if isset($pwgmenu)}
    24         <li class="external"><a class="external" href="{$pwgmenu.WIKI}" onclick="window.open(this.href, '');
    25           return false;">{'Documentation'|@translate}</a></li>
    26         <li class="external"><a class="external" href="{$pwgmenu.FORUM}" onclick="window.open(this.href, '');
    27           return false;">{'Support'|@translate}</a></li>
    28 {/if}
    29        
    30       </ul>
    31     </dd>
    32   </dl>
    33   <dl>
    3418    <dt class="rdion"><span>{'Configuration'|@translate}&nbsp;</span></dt>
    3519    <dd>
  • trunk/admin/template/goto/content.css

    r3283 r5098  
    11/* .Content  is on every pages so it is common and it will no longer be a specific css */
    22.content { margin-right: 1em; margin-bottom: 1em; }
    3 .content h2 { margin-bottom: 3px;}
     3.content h2 {margin: 0; padding: 5px 0.5em 5px 0.5em; text-align: right; font-size: 120%;}
    44.content .navigationBar { margin: 10px 0; text-align: center; }
    55.content form { text-align: left; }
  • trunk/admin/template/goto/default-layout.css

    r5089 r5098  
    211211        padding: 0;
    212212        font-size: 0.8em;
    213         font-family: Univers, Helvetica, Optima, "Bitstream Vera Sans", sans-serif;
     213        font-family: "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif;
    214214        text-align: center; /* be nice to IE5 */
    215215}
    216216
    217217H1 {
    218         text-align: center;
    219         font-size: 150%;
    220         font-weight: bold;
    221         padding: 0;
    222         margin: 0.5em 0 1em 0;
    223 }
    224 
    225 H2 {
    226         margin: 0;
    227         padding: 5px 0.5em 5px 0.5em;
    228         text-align: left;
    229         font-size: 120%;
    230 }
     218color:#eee;
     219letter-spacing:1px;
     220text-align: left;
     221font-size: 150%;
     222font-weight: normal;
     223font-style:italic;
     224padding: 8px 0 0 10px;
     225margin: 0;
     226float:left;
     227}
     228
     229#pwgHead {color:#aaa;}
     230#pwgHead A {color:#ccc;}
     231#pwgHead A:hover {color:#fff;border-bottom:1px solid #fff}
     232#pwgHead A#instructions:hover {border:none;}
     233
     234#headActions {float:right; height:46px; line-height:46px; margin-right:10px;}
    231235
    232236A {
     
    247251        visibility: hidden;
    248252        clear: both;
    249 }
    250 
    251 #copyright {
    252         clear: both;
    253         font-size: 83%;
    254         text-align: center;
    255         margin: 0 0 10px 0;
    256253}
    257254
     
    549546  width:50%;
    550547}
     548
     549#pwgHead {
     550  background-color:#464646;
     551  height:46px;
     552}
     553
     554html, body {height:100%; margin:0; padding:0;}
     555#the_page {min-height:100%; position:relative; padding:0;margin:0;}
     556#pwgMain {padding:10px;padding-bottom:60px;}
     557
     558#footer {
     559  position:absolute;
     560  bottom:0;
     561  width:100%;
     562  height:46px;
     563  background-color:#464646;
     564  color:#aaa;
     565  line-height:46px;
     566}
     567
     568#footer A {color:#ccc;}
     569#footer A:hover {color:#fff;border-bottom:1px solid #fff;}
     570
     571#adminHome {
     572  text-align:center;
     573  margin-bottom:15px;
     574  line-height:30px;
     575  width:200px;
     576  margin-left:5px;
     577  -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px;
     578}
     579
     580#adminHome A {display:block; font-size:1.1em; font-weight:bold;}
     581#adminHome A {border:none;}
     582
     583#piwigoInfos {float:left; margin-left:10px;}
     584#pageInfos {float:right; margin-right:10px;}
     585
     586/* TipTip CSS - Version 1.2 */
     587
     588#tiptip_holder {
     589        display: none;
     590        position: absolute;
     591        top: 0;
     592        left: 0;
     593        z-index: 99999;
     594}
     595
     596#tiptip_holder.tip_top {
     597        padding-bottom: 5px;
     598}
     599
     600#tiptip_holder.tip_bottom {
     601        padding-top: 5px;
     602}
     603
     604#tiptip_holder.tip_right {
     605        padding-left: 5px;
     606}
     607
     608#tiptip_holder.tip_left {
     609        padding-right: 5px;
     610}
     611
     612#tiptip_content {
     613        font-size: 11px;
     614        color: #fff;
     615        text-shadow: 0 0 2px #000;
     616        padding: 4px 8px;
     617        border: 1px solid rgba(255,255,255,0.25);
     618        background-color: rgb(25,25,25);
     619        background-color: rgba(25,25,25,0.92);
     620        background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#000));
     621        border-radius: 3px;
     622        -webkit-border-radius: 3px;
     623        -moz-border-radius: 3px;
     624        box-shadow: 0 0 3px #555;
     625        -webkit-box-shadow: 0 0 3px #555;
     626        -moz-box-shadow: 0 0 3px #555;
     627}
     628
     629#tiptip_arrow, #tiptip_arrow_inner {
     630        position: absolute;
     631        border-color: transparent;
     632        border-style: solid;
     633        border-width: 6px;
     634        height: 0;
     635        width: 0;
     636}
     637
     638#tiptip_holder.tip_top #tiptip_arrow {
     639        border-top-color: #fff;
     640        border-top-color: rgba(255,255,255,0.35);
     641}
     642
     643#tiptip_holder.tip_bottom #tiptip_arrow {
     644        border-bottom-color: #fff;
     645        border-bottom-color: rgba(255,255,255,0.35);
     646}
     647
     648#tiptip_holder.tip_right #tiptip_arrow {
     649        border-right-color: #fff;
     650        border-right-color: rgba(255,255,255,0.35);
     651}
     652
     653#tiptip_holder.tip_left #tiptip_arrow {
     654        border-left-color: #fff;
     655        border-left-color: rgba(255,255,255,0.35);
     656}
     657
     658#tiptip_holder.tip_top #tiptip_arrow_inner {
     659        margin-top: -7px;
     660        margin-left: -6px;
     661        border-top-color: rgb(25,25,25);
     662        border-top-color: rgba(25,25,25,0.92);
     663}
     664
     665#tiptip_holder.tip_bottom #tiptip_arrow_inner {
     666        margin-top: -5px;
     667        margin-left: -6px;
     668        border-bottom-color: rgb(25,25,25);
     669        border-bottom-color: rgba(25,25,25,0.92);
     670}
     671
     672#tiptip_holder.tip_right #tiptip_arrow_inner {
     673        margin-top: -6px;
     674        margin-left: -5px;
     675        border-right-color: rgb(25,25,25);
     676        border-right-color: rgba(25,25,25,0.92);
     677}
     678
     679#tiptip_holder.tip_left #tiptip_arrow_inner {
     680        margin-top: -6px;
     681        margin-left: -7px;
     682        border-left-color: rgb(25,25,25);
     683        border-left-color: rgba(25,25,25,0.92);
     684}
     685
     686/* Webkit Hacks  */
     687@media screen and (-webkit-min-device-pixel-ratio:0) { 
     688        #tiptip_content {
     689                padding: 4px 8px 5px 8px;
     690                background-color: rgba(45,45,45,0.88);
     691        }
     692        #tiptip_holder.tip_bottom #tiptip_arrow_inner {
     693                border-bottom-color: rgba(45,45,45,0.88);
     694        }
     695        #tiptip_holder.tip_top #tiptip_arrow_inner {
     696                border-top-color: rgba(20,20,20,0.92);
     697        }
     698}
  • trunk/admin/template/goto/footer.tpl

    r5021 r5098  
    33          don't be confusing with the public page footer
    44*}
    5 <div id="copyright">
    6  <a name="EoP"></a> <!-- End of ADMIN Page -->
    7  {if isset($debug.TIME) }
    8  {'SQL queries in'|@translate} {$debug.TIME} ({$debug.NB_QUERIES} {'SQL queries in'|@translate} {$debug.SQL_TIME}) -
    9  {/if}
    10 
    11  {* Please, do not remove this copyright. If you really want to,
    12       contact us on http://piwigo.org to find a solution on how
    13       to show the origin of the script...
    14   *}
    15 
    16   {'Powered by'|@translate}
    17   <a href="{$PHPWG_URL}" class="Piwigo">
    18   <span class="Piwigo">Piwigo</span></a>
    19   {$VERSION}
    20   {if isset($CONTACT_MAIL)}
    21   - {'Contact'|@translate}
    22   <a href="mailto:{$CONTACT_MAIL}?subject={'title_send_mail'|@translate|@escape:url}">{'Webmaster'|@translate}</a>
    23   {/if}
    24 
    25 </div> <!-- copyright -->
     5</div> <!-- pwgMain -->
    266{if isset($footer_elements)}
    277{foreach from=$footer_elements item=v}
     
    3414</div>
    3515{/if}
     16
     17<div id="footer">
     18  <div id="piwigoInfos">
     19 {* Please, do not remove this copyright. If you really want to,
     20      contact us on http://piwigo.org to find a solution on how
     21      to show the origin of the script...
     22  *}
     23
     24  {'Powered by'|@translate}
     25  <a href="{$PHPWG_URL}" title="Visit Piwigo project website">
     26  <span class="Piwigo">Piwigo</span></a>
     27  {$VERSION}
     28  | <a class="external" href="{$pwgmenu.WIKI}" title="Read Piwigo Documentation" onclick="window.open(this.href, ''); return false;">{'Documentation'|@translate}</a>
     29  | <a class="external" href="{$pwgmenu.FORUM}" title="Get Support on Piwigo Forum" onclick="window.open(this.href, ''); return false;">{'Support'|@translate}</a>
     30  </div> <!-- piwigoInfos -->
     31
     32  <div id="pageInfos">
     33 {if isset($debug.TIME) }
     34 {'SQL queries in'|@translate} {$debug.TIME} ({$debug.NB_QUERIES} {'SQL queries in'|@translate} {$debug.SQL_TIME}) -
     35 {/if}
     36
     37
     38  {'Contact'|@translate}
     39  <a href="mailto:{$CONTACT_MAIL}?subject={'title_send_mail'|@translate|@escape:url}">{'Webmaster'|@translate}</a>
     40  </div> <!-- pageInfos -->
     41
     42</div> <!-- footer -->
    3643</div> <!-- the_page -->
     44
     45{literal}
     46<script type='text/javascript'>
     47  $(function() {
     48    $('#pwgHead A, #footer A').tipTip({
     49        'delay' : 0,
     50        'fadeIn' : 200,
     51        'fadeOut' : 200,
     52    });
     53  });
     54</script>
     55{/literal}
    3756
    3857</body>
  • trunk/admin/template/goto/header.tpl

    r3283 r5098  
    4444
    4545<body id="{$BODY_ID}">
    46 <div id="headbranch"></div> {* Dummy block for double background management *}
     46
    4747<div id="the_page">
     48
     49<div id="pwgHead">
     50  <h1>
     51    <a href="{$U_RETURN}" title="Visit Gallery">
     52      <img src="admin/template/goto/icon/home.png" alt="{'Home'|@translate}">
     53      {$GALLERY_TITLE}
     54    </a>
     55  </h1>
     56
     57  <div id="headActions">
     58    Hello {$USERNAME} :
     59    <a href="{$U_RETURN}" title="Visit Gallery">Visit Gallery</a> |
     60    <a href="{$U_CHANGE_THEME}" title="Switch to clear theme for administration">Change Theme</a> |
     61    <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>
     63  </div>
     64</div>
     65
     66<div style="clear:both;"></div>
    4867
    4968{if not empty($header_msgs)}
     
    5675
    5776<div id="theHeader">{*$PAGE_BANNER*}</div>
     77
    5878{if not empty($header_notes)}
    5979<div class="header_notes">
     
    6383</div>
    6484{/if}
     85
     86<div id="pwgMain">
  • trunk/admin/template/goto/photos_add_direct.tpl

    r5089 r5098  
    7272{/if}
    7373
    74 <div class="titrePage" style="height:25px">
     74<div class="titrePage">
    7575  <h2>{'Upload photos'|@translate}</h2>
    7676</div>
  • trunk/admin/template/goto/theme/clear/theme.css

    r5090 r5098  
    2323html, body { min-height: 100%; }
    2424body { margin: 0; padding: 0; background:#eeeeee }
    25 #the_page { margin: 0; padding: 0; z-index: 1; top:0px;
    26 padding-top: 0; min-height: 100%; width:100%; position:absolute; left:0px; }
     25/* #the_page { margin: 0; padding: 0; z-index: 1; top:0px; */
     26/* padding-top: 0; min-height: 100%; width:100%; position:absolute; left:0px; } */
    2727#headbranch { width: 233px; height: 240px; margin: 0; padding: 0;
    2828position:absolute; left:0px; top:0px; z-index: 0;
     
    4141/*.content h2:before, .content h2:after, */
    4242.content h2 {
    43 letter-spacing:2px; margin-right:30px; text-align:right; color: #999;
     43letter-spacing:2px; margin-right:30px; text-align:left; color: #999;
    4444text-transform:none; font-weight:bold; padding-left:20px; width:54%; }
    4545.content h2:lang(en) { text-transform:capitalize; }
     
    9797.content .navigationBar {color:#999;}
    9898ul.actions, .content form#waiting  {text-align:center;}
    99 h2 { display:block; font-size:28px; letter-spacing:-1px;
    100 margin:0 20px; height:40px; overflow:hidden; padding:0; position:absolute;
    101 right:0; text-align:right; top:0; width:770px; }
     99h2 { font-size:28px; letter-spacing:-1px;padding:0; text-align:left;}
    102100.header_msgs { background:transparent url(images/header_msgs-bg.gif) repeat scroll right top;
    103101border:0; color:#ccc; font-size:24px; height:30px; left:0; margin:0; padding:10px 0 0; position:absolute;
  • trunk/admin/template/goto/theme/roma/theme.css

    r5096 r5098  
    99INPUT[type="submit"], INPUT[type="reset"]  { color:#999; border: 1px solid #666; background-color: #444; padding: 1px 15px; }
    1010input.rateButton, legend, h3 { color: #666; }
    11 #theAdminPage h2 { color: #333; }
     11#theAdminPage h2 { color: #ccc; letter-spacing:2px; font-weight:bold;}
    1212.content .infos { color: #f70; border:0; background-color: transparent;
    1313padding:5px 60px 0pt 10pt; min-height: 48px; text-align:left; background-position:left top;}
     
    1616.content .errors { color: #f33; border:0; background-color: transparent;
    1717padding:5px 60px 0pt 10pt; min-height: 48px; text-align:left; font-weight:bold; background-position:left top;  }
    18 #copyright { color:#666; margin:60px auto 0px 240px; text-align:center;
    19 padding-bottom: 15px; }
    2018.header_notes { background: transparent url(../../icon/note.png) no-repeat right top;
    2119border:0; font-weight:bold; min-height: 48px;
     
    2422html, body { min-height: 100%; }
    2523body { margin: 0; padding: 0;
    26 background:#111111 url(images/bottom-left-bg.jpg) no-repeat fixed left bottom; }
    27 #the_page { margin: 0; padding: 0; z-index: 1; top:0px;
    28 padding-top: 0; min-height: 100%; width:100%; position:absolute; left:0px; }
     24background-color:#111111; }
     25/* #the_page { margin: 0; padding: 0; z-index: 1; top:0px; */
     26/* padding-top: 0; min-height: 100%; width:100%; position:absolute; left:0px; } */
    2927#headbranch { width: 233px; height: 240px; margin: 0; padding: 0;
    3028position:absolute; left:0px; top:0px; z-index: 0;
    31 background:transparent url(images/top-left-bg.jpg) no-repeat scroll left top; }
    32 #theHeader { min-height:105px; margin: 0; padding: 0;
     29}
     30#theHeader { display:none;min-height:105px; margin: 0; padding: 0;
    3331background:transparent url(images/piwigo_logo_sombre_214x100.png) no-repeat scroll 245px top; }
    3432h3, #imageToolBar a:hover, .row2, .content { background-color: #222; }
    3533.throw, .row1 { background-color:#111; }
    3634.throw em { font-style: normal; color: #ff3363; }
    37 #content { min-height: 466px; margin-top: 9px; }
     35
     36#content { min-height: 466px; margin-top: 15px; }
    3837.content { padding:0 5px 5px; margin: 0 10px 0 248px; z-index:99; }
    39 .content h3 { font-size:20px; letter-spacing:-0.4px; margin:0 20px 12px 0;
    40  text-align:center; background:none; border: 0; }
     38
     39.content h3 { font-size:20px; letter-spacing:-0.4px; margin:0 20px 12px 0; text-align:center; background:none; border: 0; }
    4140.content h3 ~ h3{ margin-top: 40px; }
    4241.content h4 { font-size:14px; text-align:left; padding:3px; margin: 2px;}
    43 /*.content h2:before, .content h2:after, */
    44 .content h2 {
    45 letter-spacing:2px; margin-right:30px; text-align:right; color: #666;
    46 text-transform:none; font-weight:bold; padding-left:20px; width:54%; }
    47 .content h2:lang(en) { text-transform:capitalize; }
     42
     43/*.content h2:before, .content h2:after, */
     44h2:lang(en) { text-transform:capitalize; }
    4845
    4946.content dl, dd { margin:5px; }
    50 .content div.titrePage { height:55px; }
     47.content div.titrePage {}
    5148.instructions { height:450px; overflow:scroll; padding:0 20px 0; text-align:left; margin-bottom: 20px;
    5249font-size:14px; line-height:21px; }
     
    108105.content .navigationBar {color:#666;}
    109106ul.actions, .content form#waiting  {text-align:center;}
    110 h2 { display:block; font-size:28px; letter-spacing:-1px;
    111 margin:0 20px; height:104px; overflow:hidden; padding:0; position:absolute;
    112 right:0; text-align:right; top:0; width:770px; }
     107
    113108.header_msgs { background:transparent url(images/header_msgs-bg.gif) repeat scroll right top;
    114109border:0; color:#333; font-size:24px; height:30px; left:0; margin:0; padding:10px 0 0; position:absolute;
     
    125120top:-2px; white-space:nowrap; margin: 0 0 0 -5px; padding-left:10px;
    126121width:100%; }
    127 .tabsheet li { background:#222222; float:left; margin:0 6px 0 0; overflow:hidden; text-align:right; border:1px solid #ff3363; border-bottom:none; position:relative; top:11px; }
     122.tabsheet li { background:#222222; float:left; margin:0 6px 0 0; overflow:hidden; text-align:right; border:1px solid #ff3363; border-bottom:none; position:relative; top:11px; -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px;}
    128123.tabsheet a {
    129124color:#666; display:block; font-size:11px; border:0;
     
    143138#menubar {
    144139background:transparent url(images/menuBoxBottom_new.png) no-repeat scroll left bottom;
    145 border:0; display:inline; float:left; left:0; margin: 0 0 0 35px; min-height:475px; height:475px; /* should be 477 */
    146 padding:0; width:207px; z-index:99; text-align: left; }
     140border:0; display:inline; float:left; left:0; margin: 10px 0 0 10px; min-height:475px; height:475px; /* should be 477 */
     141padding:0; width:230px; z-index:99; text-align: left; }
    147142#menubar ul.scroll { height:163px; margin-right:10px; overflow-y:auto;
    148143 /* Only IE family supports colored scrollbar */
     
    218213*+html  .bigtext { left: 70px; }
    219214*+html  .bigbutton input, * html  .bigbutton input  { left:0px; position:relative; top:-40px; }
     215
    220216* html .bigtext { margin-right: 300px; }
     217
     218#adminHome       {background-color:#222;}
     219#adminHome:hover {background-color:#333;}
Note: See TracChangeset for help on using the changeset viewer.