Changeset 2409 for trunk/template/yoga


Ignore:
Timestamp:
Jul 1, 2008, 4:09:21 AM (16 years ago)
Author:
rvelices
Message:
  • remember me cookie security improvement (the time when the cookie was generated is saved and checked in range [now-remember_me_length; now]
  • tags improvements
    • pass to templates all fields in table #tags (handy for plugins such as type tags)
    • fix issue with tag letter when first letter is accentuated (utf-8)
    • tags are sorted on url_name instead of name (accentuated first letter chars are the same as without accent)
    • better use of columns in by letter display mode
Location:
trunk/template/yoga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/menubar.css

    r2356 r2409  
    11#menubar {
    2     float: left;
    3     margin: 0 0 10px 1em;
    4     padding: 0;
    5     /* Fix against the "double margin of a floated item" IE bug */
    6     /* Damned: that screws up top_navbar in opera 7.54/Linux! */
    7     display: inline;
    8     text-align: left; /* follow-up of the "be nice to IE5" rule */
     2        float: left;
     3        margin: 0 0 10px 1em;
     4        padding: 0;
     5        display: inline;
     6        text-align: left; /* follow-up of the "be nice to IE5" rule */
    97}
    108
    119#menubar DL, #menubar DT, #menubar DD {
    12     margin: 0; padding: 0; display: block;
     10        margin: 0; padding: 0; display: block;
    1311}
    1412
    1513#menubar .button {
    16   margin: 0 2px;
    17   width: auto;
    18   padding: 0;
    19   text-indent: 0;
    20   list-style: none;
    21   text-align: center;
    22   float: right;
     14        margin: 0 2px;
     15        width: auto;
     16        padding: 0;
     17        text-indent: 0;
     18        list-style: none;
     19        text-align: center;
     20        float: right;
    2321}
    2422
    2523/* H2 properties copied here */
    2624#menubar DT {
    27     font-weight: bold; /* default for h2 */
    28     margin: 0;
    29     padding: 5px 5px 5px 5px;
    30     font-size: 120%;
    31     text-align: center;
     25        font-weight: bold;
     26        margin: 0;
     27        padding: 5px 5px 5px 5px;
     28        font-size: 120%;
     29        text-align: center;
    3230}
    3331
     
    3735#menubar P, /* ooh, careful... */
    3836#menubar .totalImages {
    39     font-size: 92%;
    40     margin: 10px 0 10px 10px;
     37        font-size: 92%;
     38        margin: 10px 0 10px 10px;
    4139}
    4240#menubar UL {
    43     list-style-type: square;
    44     list-style-position: inside;
    45     padding: 0 0 0 2px;
     41        list-style-type: square;
     42        list-style-position: inside;
     43        padding: 0 0 0 2px;
    4644}
    4745#menubar UL UL {
    48     font-size: 100%;
    49     margin-top: 0;
    50     margin-bottom: 0;
     46        font-size: 100%;
     47        margin-top: 0;
     48        margin-bottom: 0;
    5149}
    5250
    5351#menubar LI.selected A {
    54   font-weight: bold;
     52        font-weight: bold;
    5553}
    5654
    5755#menubar LI.selected LI A {
    58   font-weight: normal;
     56        font-weight: normal;
    5957}
    6058
     
    6563
    6664#menubar HR {
    67     display: block;
    68     margin: 10px auto;
    69     width: 90%;
     65        display: block;
     66        margin: 10px auto;
     67        width: 90%;
    7068}
    7169#menubar INPUT {
    72     text-indent: 2px;
     70        text-indent: 2px;
    7371}
    7472
    7573/* quickconnect form */
    7674FORM#quickconnect {
    77   margin: 0;
    78   padding: 5px;
     75        margin: 0;
     76        padding: 5px;
    7977}
    8078
    8179FORM#quickconnect FIELDSET {
    82   margin: 0;
    83   padding: 0 0 0.5em 0;
     80        margin: 0;
     81        padding: 0 0 0.5em 0;
    8482}
    8583
    8684FORM#quickconnect P {
    87   margin-left: 0;
    88   font-size: 100%;
    89   float: left;
    90   clear: left;
     85        margin-left: 0;
     86        font-size: 100%;
     87        float: left;
     88        clear: left;
    9189}
    9290
    9391FORM#quickconnect P INPUT {
    94   margin: 0;
     92        margin: 0;
    9593}
    9694
    9795FORM#quickconnect UL.actions {
    98   display: inline;
    99   float: right;
    100   padding: 0;
    101   text-align: right;    /* Opera 7.5 */
     96        display: inline;
     97        float: right;
     98        padding: 0;
     99        text-align: right;      /* Opera 7.5 */
    102100}
    103101FORM#quickconnect FIELDSET>UL.actions {
    104   width: 40%;           /* Opera 7.5 cannot find why width:auto fails :-( */
     102        width: 40%;             /* Opera 7.5 cannot find why width:auto fails :-( */
    105103}
    106104
     
    108106FORM#quickconnect P,
    109107FORM#quickconnect LABEL {
    110   padding: 0 0.5em 0 0.5em;
     108        padding: 0 0.5em 0 0.5em;
    111109}
    112110
    113111FORM#quickconnect LABEL {
    114   margin:0;
    115   width: 100%;
    116   box-sizing: border-box; /* CSS3 */
     112        margin:0;
     113        width: 100%;
     114        box-sizing: border-box; /* CSS3 */
    117115}
    118116
    119117FORM#quickconnect INPUT[type=text],
    120118FORM#quickconnect INPUT[type=password] {
    121   width: 100%;  /* mozilla can handle 100% */
     119        width: 100%;    /* mozilla can handle 100% */
    122120}
    123 /* same as above for IE with inputfix.htc              */
    124 /* unfortunately IE doesn't handle that correctly      */
    125 /* so you should set a width in em in local_layout.css */
     121/* same as above for IE with inputfix.htc
     122unfortunately IE doesn't handle that correctly
     123 so you should set a width in em in local_layout.css */
    126124/*FORM#quickconnect INPUT.text,
    127125FORM#quickconnect INPUT.password {
     
    130128
    131129FORM#quicksearch {
    132   margin-top: 4px;
    133   margin-bottom: 1px;
     130        margin-top: 4px;
     131        margin-bottom: 1px;
    134132}
    135 input#qsearchInput {
    136   width: 90%;
     133INPUT#qsearchInput {
     134        width: 90%;
    137135}
    138136#menubar #mbMenu p { margin: 0px; padding: 0px; }
    139137
    140138#menubar #menuTagCloud {
    141   text-align: center;
    142   margin: 5px 0;
     139        text-align: center;
     140        margin: 5px 0;
    143141}
    144142
    145143#menubar #menuTagCloud LI
    146144{
    147   display: inline;
    148   white-space: nowrap;  /* No line break in the LI but Opera set nowrap to */
     145        display: inline;
     146        white-space: nowrap;    /* No line break in the LI but Opera set nowrap to */
    149147}
  • trunk/template/yoga/menubar.tpl

    r2325 r2409  
    2222
    2323  {if isset($U_START_FILTER)}
    24   <a href="{$U_START_FILTER}" title="{'start_filter_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="{'start_filter_hint'|@translate}"></a>
     24  <a href="{$U_START_FILTER}" title="{'start_filter_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_filter.png" class="button" alt="start filter"></a>
    2525  {/if}
    2626  {if isset($U_STOP_FILTER)}
    27   <a href="{$U_STOP_FILTER}" title="{'stop_filter_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="{'stop_filter_hint'|@translate}"></a>
     27  <a href="{$U_STOP_FILTER}" title="{'stop_filter_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_filter.png" class="button" alt="stop filter"></a>
    2828  {/if}
    2929
     
    4949    {foreach from=$related_tags item=tag}
    5050    <li>
    51     {if !empty($tag.add) }
    52       <a href="{$tag.add.URL}"
    53         title="{$pwg->l10n_dec('%d element are also linked to current tags', '%d elements are also linked to current tags', $tag.add.COUNTER)}"
     51    {if !empty($tag.U_ADD) }
     52      <a href="{$tag.U_ADD}"
     53        title="{$pwg->l10n_dec('%d element are also linked to current tags', '%d elements are also linked to current tags', $tag.counter)}"
    5454        rel="nofollow">
    5555        <img src="{$ROOT_URL}{$themeconf.icon_dir}/add_tag.png" alt="+" />
    5656      </a>
    5757    {/if}
    58     <a href="{$tag.U_TAG}" class="{$tag.CLASS}" title="{'See elements linked to this tag only'|@translate}">{$tag.NAME}</a>
     58    <a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{'See elements linked to this tag only'|@translate}">{$tag.name}</a>
    5959    </li>
    6060    {/foreach}
  • trunk/template/yoga/tags.tpl

    r2396 r2409  
    2121  <ul id="fullTagCloud">
    2222    {foreach from=$tags item=tag}
    23     <li><a href="{$tag.URL}" class="{$tag.CLASS}" title="{$tag.TITLE}">{$tag.NAME}</a></li>
     23    <li><a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{$tag.counter}">{$tag.name}</a></li>
    2424    {/foreach}
    2525  </ul>
     
    3636      {foreach from=$letter.tags item=tag}
    3737      <tr class="tagLine">
    38         <td><a href="{$tag.URL}">{$tag.NAME}</a></td>
    39         <td class="nbEntries">{$pwg->l10n_dec('%d element', '%d elements', $tag.COUNTER)}</td>
     38        <td><a href="{$tag.URL}">{$tag.name}</a></td>
     39        <td class="nbEntries">{$pwg->l10n_dec('%d element', '%d elements', $tag.counter)}</td>
    4040      </tr>
    4141      {/foreach}
Note: See TracChangeset for help on using the changeset viewer.