PageRenderTime 73ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/files/g2data/smarty/templates_c/%%3363253927/%%55^55E^55E14245%%SystemLinks.tpl.php

https://github.com/radicaldesigns/amp
PHP | 40 lines | 35 code | 5 blank | 0 comment | 9 complexity | 88be33eb9ac042de1a83053a90acd9ec MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, BSD-3-Clause, LGPL-2.0, CC-BY-SA-3.0, AGPL-1.0
  1. <?php /* Smarty version 2.6.10, created on 2005-12-13 11:21:00
  2. compiled from gallery:modules/core/templates/blocks/SystemLinks.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', 'gallery:modules/core/templates/blocks/SystemLinks.tpl', 7, false),array('modifier', 'default', 'gallery:modules/core/templates/blocks/SystemLinks.tpl', 8, false),array('modifier', 'split', 'gallery:modules/core/templates/blocks/SystemLinks.tpl', 8, false),)), $this); ?>
  5. <?php $this->assign('class', ((is_array($_tmp=$this->_tpl_vars['class'])) ? $this->_run_mod_handler('replace', true, $_tmp, 'SystemLinks', 'SystemLink') : smarty_modifier_replace($_tmp, 'SystemLinks', 'SystemLink'))); $this->assign('order', ((is_array($_tmp=((is_array($_tmp=@$this->_tpl_vars['order'])) ? $this->_run_mod_handler('default', true, $_tmp, "") : smarty_modifier_default($_tmp, "")))) ? $this->_run_mod_handler('split', true, $_tmp) : smarty_modifier_split($_tmp))); $this->assign('othersAt', ((is_array($_tmp=@$this->_tpl_vars['othersAt'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0))); $this->assign('othersAt', $this->_tpl_vars['othersAt']-1); $this->assign('separator', ((is_array($_tmp=@$this->_tpl_vars['separator'])) ? $this->_run_mod_handler('default', true, $_tmp, "") : smarty_modifier_default($_tmp, ""))); ?>
  6. <?php ob_start(); ?>
  7. <?php $_from = $this->_tpl_vars['theme']['systemLinks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  8. foreach ($_from as $this->_tpl_vars['linkId'] => $this->_tpl_vars['link']):
  9. ?>
  10. <?php if (! in_array ( $this->_tpl_vars['linkId'] , $this->_tpl_vars['order'] )): ?>
  11. <span class="<?php echo $this->_tpl_vars['class']; ?>
  12. ">
  13. <a href="<?php echo $this->_reg_objects['g'][0]->url(array('params' => $this->_tpl_vars['link']['params']), $this);?>
  14. "><?php echo $this->_tpl_vars['link']['text']; ?>
  15. </a>
  16. </span>
  17. <?php echo $this->_tpl_vars['separator']; ?>
  18. <?php endif; ?>
  19. <?php endforeach; endif; unset($_from); $this->_smarty_vars['capture']['SystemLinks'] = ob_get_contents(); ob_end_clean(); ?>
  20. <?php $_from = $this->_tpl_vars['order']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  21. foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['linkId']):
  22. ?>
  23. <?php if ($this->_tpl_vars['index'] == $this->_tpl_vars['othersAt']): ?>
  24. <?php $this->assign('SystemLinksShown', true); ?>
  25. <?php echo $this->_smarty_vars['capture']['SystemLinks']; ?>
  26. <?php endif; ?>
  27. <?php if (isset ( $this->_tpl_vars['theme']['systemLinks'][$this->_tpl_vars['linkId']] )): ?>
  28. <span class="<?php echo $this->_tpl_vars['class']; ?>
  29. ">
  30. <a href="<?php echo $this->_reg_objects['g'][0]->url(array('params' => $this->_tpl_vars['theme']['systemLinks'][$this->_tpl_vars['linkId']]['params']), $this);?>
  31. "><?php echo $this->_tpl_vars['theme']['systemLinks'][$this->_tpl_vars['linkId']]['text']; ?>
  32. </a>
  33. </span>
  34. <?php echo $this->_tpl_vars['separator']; ?>
  35. <?php endif; endforeach; endif; unset($_from); if (! isset ( $this->_tpl_vars['SystemLinksShown'] )): echo $this->_smarty_vars['capture']['SystemLinks']; endif; ?>