~ubuntu-branches/ubuntu/lucid/gallery2/lucid

« back to all changes in this revision

Viewing changes to modules/core/templates/blocks/ItemLinks.tpl

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2008-10-19 05:01:26 UTC
  • mfrom: (1.1.8 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081019050126-25a4kxy8z7orqxx5
Tags: 2.3-1
New upstream release (Closes: #502681)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{*
2
 
 * $Revision: 15342 $
3
 
 * If you want to customize this file, do not edit it directly since future upgrades
4
 
 * may overwrite it.  Instead, copy it into a new directory called "local" and edit that
5
 
 * version.  Gallery will look for that file first and use it if it exists.
 
2
 * $Revision: 16931 $
 
3
 * Read this before changing templates!  http://codex.gallery2.org/Gallery2:Editing_Templates
6
4
 *}
7
5
{if !isset($links) && isset($theme.itemLinks)}
8
6
  {assign var="links" value=$theme.itemLinks}
30
28
          {/if}
31
29
        </option>
32
30
        {foreach from=$links item="link"}
33
 
          <option value="{if isset($link.script)}{$link.script}{else}window.location = '{g->url params=$link.params|default:null options=$link.options|default:null}'{/if}"{if !empty($link.selected)} selected="selected"{/if}>
34
 
            {if $lowercase}
35
 
              {$link.text|lower}
36
 
            {else}
37
 
              {$link.text}
38
 
            {/if}
39
 
          </option>
 
31
          {g->itemLink link=$link type="option" lowercase=$lowercase}
40
32
        {/foreach}
41
33
      </select>
42
34
    {else}
43
35
      {foreach from=$links item="link"}
44
 
        <a class="gbAdminLink {g->linkid urlParams=$link.params|default:null}" href="{g->url params=$link.params|default:null options=$link.options|default:null}"{if isset($link.script)} onclick="{$link.script}"{/if}{if isset($link.attrs)} {$link.attrs}{/if}>{if $lowercase}{$link.text|lower}{else}{$link.text}{/if}</a>
 
36
        {g->itemLink link=$link lowercase=$lowercase}
45
37
      {/foreach}
46
38
    {/if}
47
39
  </div>