Changeset 12764 for trunk/themes


Ignore:
Timestamp:
Dec 18, 2011, 10:46:24 PM (13 years ago)
Author:
mistic100
Message:

feature:2538 Make a unified messages management
use only $pageinfos and $pageerrors vars and and necessary template to all main pages

Location:
trunk/themes
Files:
1 added
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/Sylvia/theme.css

    r12671 r12764  
    250250        color:#f70;
    251251        border:0;
    252         background-color: transparent;
    253         margin-left:125px;
    254         padding:5px 0px 0pt 10pt;
    255         min-height: 48px;
     252        background:transparent url(icon/infos.png) no-repeat center right;
     253        margin-left:40px;
    256254        text-align:left;
    257255}
     
    259257        color:#f33;
    260258        border:0;
    261         background: transparent url(icon/errors.png) no-repeat scroll right top;
    262         margin-left:125px;
    263         padding:5px 0px 0pt 10pt;
    264         min-height: 48px;
     259        background:transparent url(icon/errors.png) no-repeat center right;
     260        margin-left:40px;
    265261        text-align:left;
    266262        font-weight:bold;
  • trunk/themes/default/template/about.tpl

    r10824 r12764  
    99    <h2>{'About'|@translate}</h2>
    1010  </div>
     11 
     12  {include file='infos_errors.tpl'}
     13 
    1114  <div id="piwigoAbout">
    1215  {$ABOUT_MESSAGE}
  • trunk/themes/default/template/comments.tpl

    r12479 r12764  
    1010        <h2>{'User comments'|@translate}</h2>
    1111</div>
     12
     13{include file='infos_errors.tpl'}
    1214
    1315<form class="filter" action="{$F_ACTION}" method="get">
  • trunk/themes/default/template/identification.tpl

    r12479 r12764  
    1111</div>
    1212
    13   {if isset($errors) }
    14   <div class="errors">
    15     <ul>
    16       {foreach from=$errors item=error}
    17       <li>{$error}</li>
    18       {/foreach}
    19     </ul>
    20   </div>
    21   {/if}
     13{include file='infos_errors.tpl'}
    2214
    2315<form action="{$F_LOGIN_ACTION}" method="post" name="login_form" class="properties">
  • trunk/themes/default/template/index.tpl

    r12677 r12764  
    8080</div>{* <!-- titrePage --> *}
    8181
     82{include file='infos_errors.tpl'}
     83
    8284{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
    8385
  • trunk/themes/default/template/nbm.tpl

    r10824 r12764  
    1010        </div>
    1111
    12   {if not empty($errors)}
    13   <div class="errors">
    14     <ul>
    15       {foreach from=$errors item=error}
    16       <li>{$error}</li>
    17       {/foreach}
    18     </ul>
    19   </div>
    20   {/if}
    21 
    22   {if not empty($infos)}
    23   <div class="infos">
    24     <ul>
    25       {foreach from=$infos item=info}
    26       <li>{$info}</li>
    27       {/foreach}
    28     </ul>
    29   </div>
    30   {/if}
     12{include file='infos_errors.tpl'}
    3113
    3214</div>
  • trunk/themes/default/template/notification.tpl

    r11182 r12764  
    1515    <h2>{'Notification'|@translate}</h2>
    1616  </div>
     17 
     18  {include file='infos_errors.tpl'}
    1719
    1820  <div class="notification">
  • trunk/themes/default/template/password.tpl

    r12479 r12764  
    1313  </div>
    1414
    15   {if count($errors)}
    16   <div class="errors">
    17     <ul>
    18       {foreach from=$errors item=error}
    19       <li>{$error}</li>
    20       {/foreach}
    21     </ul>
    22   </div>
    23   {/if}
    24 
    25   {if count($infos)}
    26   <div class="infos">
    27     <ul>
    28       {foreach from=$infos item=info}
    29       <li>{$info}</li>
    30       {/foreach}
    31     </ul>
    32   </div>
    33   {/if}
     15{include file='infos_errors.tpl'}
    3416
    3517{if $action ne 'none'}
  • trunk/themes/default/template/picture.tpl

    r12681 r12764  
    88{/if}
    99
    10 {if isset($errors)}
    11 <div class="errors">
    12         <ul>
    13                 {foreach from=$errors item=error}
    14                 <li>{$error}</li>
    15                 {/foreach}
    16         </ul>
    17 </div>
    18 {/if}
    19 {if isset($infos)}
    20 <div class="infos">
    21         <ul>
    22                 {foreach from=$infos item=info}
    23                 <li>{$info}</li>
    24                 {/foreach}
    25         </ul>
    26 </div>
    27 {/if}
     10{include file='infos_errors.tpl'}
    2811
    2912{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
  • trunk/themes/default/template/profile.tpl

    r10824 r12764  
    11{if isset($MENUBAR)}{$MENUBAR}{/if}
    22<div id="content" class="content">
    3 
    4 {if isset($errors)}
    5 <div class="errors">
    6   <ul>
    7     {foreach from=$errors item=error}
    8     <li>{$error}</li>
    9     {/foreach}
    10   </ul>
    11 </div>
    12 {/if}
    133
    144<div class="titrePage">
     
    2111</div>
    2212
     13{include file='infos_errors.tpl'}
     14
    2315{$PROFILE_CONTENT}
    2416</div> <!-- content -->
  • trunk/themes/default/template/register.tpl

    r12610 r12764  
    1313</div>
    1414
    15 {if isset($errors)}
    16   <div class="errors">
    17     <ul>
    18       {foreach from=$errors item=error}
    19       <li>{$error}</li>
    20       {/foreach}
    21     </ul>
    22   </div>
    23 {/if}
     15{include file='infos_errors.tpl'}
    2416
    2517<form method="post" action="{$F_ACTION}" class="properties" name="register_form">
  • trunk/themes/default/template/search.tpl

    r12693 r12764  
    3131        </div>
    3232
    33 {if isset($errors) }
    34 <div class="errors">
    35   <ul>
    36     {foreach from=$errors item=error}
    37     <li>{$error}</li>
    38     {/foreach}
    39   </ul>
    40 </div>
    41 {/if}
     33{include file='infos_errors.tpl'}
    4234
    4335<form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}">
  • trunk/themes/default/template/tags.tpl

    r11431 r12764  
    2020        <h2>{'Tags'|@translate}</h2>
    2121</div>
     22
     23{include file='infos_errors.tpl'}
    2224
    2325{if isset($tags)}
  • trunk/themes/default/theme.css

    r12671 r12764  
    735735        margin: 5px;
    736736        border: 1px solid red;
    737         background: #ffe1e1 url(icon/errors.png) no-repeat top right;
     737        background: #ffe1e1 url(icon/errors.png) no-repeat center right;
    738738        padding: 10px 50px 10px 10px;
    739739}
     
    742742.infos {
    743743        color: #002000;
    744         background: #98fb98 url(icon/infos.png) no-repeat top right;
     744        background: #98fb98 url(icon/infos.png) no-repeat center right;
    745745        margin: 5px;
    746746        padding: 10px 50px 10px 10px;
Note: See TracChangeset for help on using the changeset viewer.