Ignore:
Timestamp:
Mar 14, 2012, 2:34:13 PM (12 years ago)
Author:
plg
Message:

import theme Simple version 2.3

  • if cl_conflit is used, don't add jQuery.noConflict
  • fix the possibility to toggle visibility of image informations
  • show logout link when connected - thanks to gbo
  • update jquery to 1.4.4
  • backport commit from piwigo: r6244, r6430 & r6438
  • add gitignore
  • update javascripts + add script to combine/minify
  • apply r6594 from piwigo's trunk
  • move jquery in the header, using known_script
  • translation for the menu title
  • add 1px icon start_filter.png to avoid loading error with rvtree plugin
  • margin for error & info divs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/simple_themes/simple/template/picture.tpl

    r13548 r13549  
    8080    <div id="imageInfos">
    8181      <dl>
    82         {if $display_info.author}
     82        {if $display_info.author and isset($INFO_AUTHOR)}
    8383        <dt>{'Author'|@translate}</dt>
    8484        <dd>{$INFO_AUTHOR}</dd>
    8585        {/if}
    86          {if $display_info.created_on}
     86        {if $display_info.created_on and isset($INFO_CREATION_DATE)}
    8787        <dt>{'Created on'|@translate}</dt>
    8888        <dd>{$INFO_CREATION_DATE}</dd>
    8989        {/if}
    90                 {if $display_info.posted_on}
     90        {if $display_info.posted_on}
    9191        <dt>{'Posted on'|@translate}</dt>
    9292        <dd>{$INFO_POSTED_DATE}</dd>
    93                 {/if}
    94         {if isset($related_tags)}
     93        {/if}
     94        {if $display_info.tags and isset($related_tags)}
    9595        <dt>{'Tags'|@translate}</dt>
    96         <dd>{foreach from=$related_tags item=tag name=tag_loop}
     96        <dd>
     97          {foreach from=$related_tags item=tag name=tag_loop}
    9798          {if !$smarty.foreach.tag_loop.first}, {/if}
    98           <a href="{$tag.URL}">{$tag.name}</a>{/foreach}</dd>
     99          <a href="{$tag.URL}">{$tag.name}</a>{/foreach}
     100        </dd>
    99101        {/if}
    100          {if $display_info.tags}
     102        {if $display_info.categories and isset($related_categories)}
    101103        <dt>{'Categories'|@translate}</dt>
    102104        <dd>
    103105          {foreach from=$related_categories item=cat name=tag_loop}
    104           {if !$smarty.foreach.tag_loop.first}, {/if} {'&nbsp;'|@str_ireplace:'&#32;':$cat}{/foreach}
     106          {if !$smarty.foreach.tag_loop.first}, {/if}
     107          {'&nbsp;'|@str_ireplace:'&#32;':$cat}{/foreach}
    105108        </dd>
    106109        {/if}
    107                 {if $display_info.visits}
     110        {if $display_info.visits}
    108111        <dt>{'Visits'|@translate}</dt>
    109112        <dd>{$INFO_VISITS}</dd>
    110                  {/if}
    111         {if $display_info.average_rate and isset($rate_summary) }
     113        {/if}
     114        {if $display_info.average_rate}
     115        {if isset($rate_summary)}
    112116        <dt>{'Average rate'|@translate}</dt>
    113117        <dd id="ratingSummary">
     
    133137              {/if}
    134138              {/foreach}
    135               <script type="text/javascript" src="{$ROOT_URL}themes/{$themeconf.theme_dir}/js/rating.min.js"></script>
    136139              <script type="text/javascript">
    137140                makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}',
     
    145148          </form>
    146149        </dd>
     150        {/if}
    147151        {/if}
    148152      </dl>
Note: See TracChangeset for help on using the changeset viewer.