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

https://github.com/radicaldesigns/amp · PHP · 39 lines · 38 code · 1 blank · 0 comment · 15 complexity · af3d576e13f5747f649abf7ccb3c8e00 MD5 · raw file

  1. <?php /* Smarty version 2.6.10, created on 2005-12-13 11:21:01
  2. compiled from gallery:modules/core/templates/blocks/ItemLinks.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. 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); ?>
  5. <?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'] ) )): ?>
  6. <?php if (empty ( $this->_tpl_vars['item'] )): $this->assign('item', $this->_tpl_vars['theme']['item']); endif; ?>
  7. <?php if (! isset ( $this->_tpl_vars['links'] )): $this->assign('links', $this->_tpl_vars['theme']['itemLinks']); endif; ?>
  8. <?php if (! isset ( $this->_tpl_vars['useDropdown'] )): $this->assign('useDropdown', true); endif; ?>
  9. <?php if ($this->_tpl_vars['useDropdown'] && count ( $this->_tpl_vars['links'] ) > 1): ?>
  10. <div class="<?php echo $this->_tpl_vars['class']; ?>
  11. ">
  12. <select onchange="<?php echo 'if (this.value) { newLocation = this.value; this.options[0].selected = true; location.href= newLocation; }'; ?>
  13. ">
  14. <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>
  15. <?php $_from = $this->_tpl_vars['links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  16. foreach ($_from as $this->_tpl_vars['link']):
  17. ?>
  18. <?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: ?>
  19. <?php $this->assign('linkText', $this->_tpl_vars['link']['text']); endif; ?>
  20. <option label="<?php echo $this->_tpl_vars['linkText']; ?>
  21. " value="<?php echo $this->_reg_objects['g'][0]->url(array('params' => $this->_tpl_vars['link']['params']), $this);?>
  22. "><?php echo $this->_tpl_vars['linkText']; ?>
  23. </option>
  24. <?php endforeach; endif; unset($_from); ?>
  25. </select>
  26. </div>
  27. <?php elseif (count ( $this->_tpl_vars['links'] ) > 0): ?>
  28. <div class="<?php echo $this->_tpl_vars['class']; ?>
  29. ">
  30. <?php $_from = $this->_tpl_vars['links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  31. foreach ($_from as $this->_tpl_vars['link']):
  32. ?>
  33. <a href="<?php echo $this->_reg_objects['g'][0]->url(array('params' => $this->_tpl_vars['link']['params']), $this);?>
  34. " class="gbAdminLink <?php echo $this->_reg_objects['g'][0]->linkid(array('urlParams' => $this->_tpl_vars['link']['params']), $this);?>
  35. "><?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>
  36. <?php endforeach; endif; unset($_from); ?>
  37. </div>
  38. <?php endif; endif; ?>