amp /files/g2data/smarty/templates_c/%%3363253927/%%3B^3B1^3B1A61A2%%ItemLinks.tpl.php

Language PHP Lines 39
MD5 Hash af3d576e13f5747f649abf7ccb3c8e00 Estimated Cost $585 (why?)
Repository https://github.com/radicaldesigns/amp.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php /* Smarty version 2.6.10, created on 2005-12-13 11:21:01
         compiled from gallery:modules/core/templates/blocks/ItemLinks.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'gallery:modules/core/templates/blocks/ItemLinks.tpl', 7, false),array('modifier', 'lower', 'gallery:modules/core/templates/blocks/ItemLinks.tpl', 20, false),)), $this); ?>
<?php $this->assign('lowercase', ((is_array($_tmp=@$this->_tpl_vars['lowercase'])) ? $this->_run_mod_handler('default', true, $_tmp, false) : smarty_modifier_default($_tmp, false)));  if (( isset ( $this->_tpl_vars['links'] ) || isset ( $this->_tpl_vars['theme']['itemLinks'] ) )): ?>
  <?php if (empty ( $this->_tpl_vars['item'] )):  $this->assign('item', $this->_tpl_vars['theme']['item']);  endif; ?>
  <?php if (! isset ( $this->_tpl_vars['links'] )):  $this->assign('links', $this->_tpl_vars['theme']['itemLinks']);  endif; ?>
  <?php if (! isset ( $this->_tpl_vars['useDropdown'] )):  $this->assign('useDropdown', true);  endif; ?>

  <?php if ($this->_tpl_vars['useDropdown'] && count ( $this->_tpl_vars['links'] ) > 1): ?>
  <div class="<?php echo $this->_tpl_vars['class']; ?>
">
    <select onchange="<?php echo 'if (this.value) { newLocation = this.value; this.options[0].selected = true; location.href= newLocation; }'; ?>
">
      <option label="<?php if ($this->_tpl_vars['item']['canContainChildren']):  echo $this->_reg_objects['g'][0]->text(array('text' => "&laquo; album actions &raquo;"), $this); else:  echo $this->_reg_objects['g'][0]->text(array('text' => "&laquo; item actions &raquo;"), $this); endif; ?>" value=""><?php if ($this->_tpl_vars['item']['canContainChildren']):  echo $this->_reg_objects['g'][0]->text(array('text' => "&laquo; album actions &raquo;"), $this); else:  echo $this->_reg_objects['g'][0]->text(array('text' => "&laquo; item actions &raquo;"), $this); endif; ?></option>
      <?php $_from = $this->_tpl_vars['links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['link']):
?>
	<?php if ($this->_tpl_vars['lowercase']):  $this->assign('linkText', ((is_array($_tmp=$this->_tpl_vars['link']['text'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)));  else: ?>
		       <?php $this->assign('linkText', $this->_tpl_vars['link']['text']);  endif; ?>
	<option label="<?php echo $this->_tpl_vars['linkText']; ?>
" value="<?php echo $this->_reg_objects['g'][0]->url(array('params' => $this->_tpl_vars['link']['params']), $this);?>
"><?php echo $this->_tpl_vars['linkText']; ?>
</option>
      <?php endforeach; endif; unset($_from); ?>
    </select>
  </div>
  <?php elseif (count ( $this->_tpl_vars['links'] ) > 0): ?>
  <div class="<?php echo $this->_tpl_vars['class']; ?>
">
    <?php $_from = $this->_tpl_vars['links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['link']):
?>
      <a href="<?php echo $this->_reg_objects['g'][0]->url(array('params' => $this->_tpl_vars['link']['params']), $this);?>
" class="gbAdminLink <?php echo $this->_reg_objects['g'][0]->linkid(array('urlParams' => $this->_tpl_vars['link']['params']), $this);?>
"><?php if ($this->_tpl_vars['lowercase']):  echo ((is_array($_tmp=$this->_tpl_vars['link']['text'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp));  else:  echo $this->_tpl_vars['link']['text'];  endif; ?></a>
    <?php endforeach; endif; unset($_from); ?>
  </div>
  <?php endif;  endif; ?>
Back to Top