PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/files/g2data/smarty/templates_c/%%3363253927/%%42^42C^42CE7724%%album.tpl.php

https://github.com/radicaldesigns/amp
PHP | 205 lines | 170 code | 35 blank | 0 comment | 34 complexity | 1cf7b084bb7d416d5145158a3e3355ae 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:themes/matrix/templates/album.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'markup', 'gallery:themes/matrix/templates/album.tpl', 21, false),array('modifier', 'entitytruncate', 'gallery:themes/matrix/templates/album.tpl', 114, false),)), $this); ?>
  5. <table width="100%" cellspacing="0" cellpadding="0">
  6. <tr valign="top">
  7. <?php if (! empty ( $this->_tpl_vars['theme']['params']['sidebarBlocks'] )): ?>
  8. <td id="gsSidebarCol">
  9. <?php echo $this->_reg_objects['g'][0]->theme(array('include' => "sidebar.tpl"), $this);?>
  10. </td>
  11. <?php endif; ?>
  12. <td>
  13. <div id="gsContent" class="gcBorder1">
  14. <div class="gbBlock gcBackground1">
  15. <table style="width: 100%">
  16. <tr>
  17. <td>
  18. <?php if (! empty ( $this->_tpl_vars['theme']['item']['title'] )): ?>
  19. <h2> <?php echo ((is_array($_tmp=$this->_tpl_vars['theme']['item']['title'])) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp)); ?>
  20. </h2>
  21. <?php endif; ?>
  22. <?php if (! empty ( $this->_tpl_vars['theme']['item']['description'] )): ?>
  23. <p class="giDescription">
  24. <?php echo ((is_array($_tmp=$this->_tpl_vars['theme']['item']['description'])) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp)); ?>
  25. </p>
  26. <?php endif; ?>
  27. </td>
  28. <td style="width: 30%">
  29. <?php echo $this->_reg_objects['g'][0]->block(array('type' => "core.ItemInfo",'item' => $this->_tpl_vars['theme']['item'],'showDate' => true,'showSize' => true,'showOwner' => true,'class' => 'giInfo'), $this);?>
  30. </td>
  31. </tr>
  32. </table>
  33. </div>
  34. <?php if (! empty ( $this->_tpl_vars['theme']['navigator'] )): ?>
  35. <div class="gbBlock gcBackground2 gbNavigator">
  36. <?php echo $this->_reg_objects['g'][0]->block(array('type' => "core.Navigator",'navigator' => $this->_tpl_vars['theme']['navigator'],'reverseOrder' => true), $this);?>
  37. </div>
  38. <?php endif; ?>
  39. <?php if (! count ( $this->_tpl_vars['theme']['children'] )): ?>
  40. <div class="gbBlock giDescription gbEmptyAlbum">
  41. <h3 class="emptyAlbum">
  42. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "This album is empty."), $this);?>
  43. <?php if (isset ( $this->_tpl_vars['theme']['permissions']['core_addDataItem'] )): ?>
  44. <br/>
  45. <a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ItemAdmin",'arg2' => "subView=core.ItemAdd",'arg3' => "itemId=".($this->_tpl_vars['theme']['item']['id'])), $this);?>
  46. "> <?php echo $this->_reg_objects['g'][0]->text(array('text' => "Add a photo!"), $this);?>
  47. </a>
  48. <?php endif; ?>
  49. </h3>
  50. </div>
  51. <?php else: ?>
  52. <?php $this->assign('childrenInColumnCount', 0); ?>
  53. <div class="gbBlock">
  54. <table id="gsThumbMatrix" width="100%">
  55. <tr valign="top">
  56. <?php $_from = $this->_tpl_vars['theme']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  57. foreach ($_from as $this->_tpl_vars['child']):
  58. ?>
  59. <?php if (( $this->_tpl_vars['childrenInColumnCount'] == $this->_tpl_vars['theme']['params']['columns'] )): ?>
  60. </tr>
  61. <tr valign="top">
  62. <?php $this->assign('childrenInColumnCount', 0); ?>
  63. <?php endif; ?>
  64. <?php $this->assign('childrenInColumnCount', ($this->_tpl_vars['childrenInColumnCount']+1)); ?>
  65. <td class="<?php if ($this->_tpl_vars['child']['canContainChildren']): ?>giAlbumCell gcBackground1<?php else: ?>giItemCell<?php endif; ?>"
  66. style="width: <?php echo $this->_tpl_vars['theme']['columnWidthPct']; ?>
  67. %">
  68. <?php if ($this->_tpl_vars['child']['canContainChildren']): ?>
  69. <?php $this->assign('frameType', 'albumFrame'); ?>
  70. <?php else: ?>
  71. <?php $this->assign('frameType', 'itemFrame'); ?>
  72. <?php endif; ?>
  73. <div>
  74. <?php if (isset ( $this->_tpl_vars['theme']['params'][$this->_tpl_vars['frameType']] ) && isset ( $this->_tpl_vars['child']['thumbnail'] )): ?>
  75. <?php $this->_tag_stack[] = array('container', array('type' => "imageframe.ImageFrame",'frame' => $this->_tpl_vars['theme']['params'][$this->_tpl_vars['frameType']]), $this); $this->_reg_objects['g'][0]->container($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat=true); while ($_block_repeat) { ob_start();?>
  76. <a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem",'arg2' => "itemId=".($this->_tpl_vars['child']['id'])), $this);?>
  77. ">
  78. <?php echo $this->_reg_objects['g'][0]->image(array('id' => "%ID%",'item' => $this->_tpl_vars['child'],'image' => $this->_tpl_vars['child']['thumbnail'],'class' => "%CLASS% giThumbnail"), $this);?>
  79. </a>
  80. <?php $_obj_block_content = ob_get_contents(); ob_end_clean(); echo $this->_reg_objects['g'][0]->container($this->_tag_stack[count($this->_tag_stack)-1][1], $_obj_block_content, $this, $_block_repeat=false);} array_pop($this->_tag_stack);?>
  81. <?php elseif (isset ( $this->_tpl_vars['child']['thumbnail'] )): ?>
  82. <a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem",'arg2' => "itemId=".($this->_tpl_vars['child']['id'])), $this);?>
  83. ">
  84. <?php echo $this->_reg_objects['g'][0]->image(array('item' => $this->_tpl_vars['child'],'image' => $this->_tpl_vars['child']['thumbnail'],'class' => 'giThumbnail'), $this);?>
  85. </a>
  86. <?php else: ?>
  87. <a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem",'arg2' => "itemId=".($this->_tpl_vars['child']['id'])), $this);?>
  88. "
  89. class="giMissingThumbnail">
  90. <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'no thumbnail'), $this);?>
  91. </a>
  92. <?php endif; ?>
  93. </div>
  94. <?php echo $this->_reg_objects['g'][0]->block(array('type' => "core.ItemLinks",'item' => $this->_tpl_vars['child'],'links' => $this->_tpl_vars['child']['itemLinks']), $this);?>
  95. <?php if (! empty ( $this->_tpl_vars['child']['title'] )): ?>
  96. <p class="giTitle">
  97. <?php if ($this->_tpl_vars['child']['canContainChildren']): ?>
  98. <?php echo $this->_reg_objects['g'][0]->text(array('text' => "Album: %s",'arg1' => ((is_array($_tmp=$this->_tpl_vars['child']['title'])) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp))), $this);?>
  99. <?php else: ?>
  100. <?php echo ((is_array($_tmp=$this->_tpl_vars['child']['title'])) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp)); ?>
  101. <?php endif; ?>
  102. </p>
  103. <?php endif; ?>
  104. <?php if (! empty ( $this->_tpl_vars['child']['summary'] )): ?>
  105. <p class="giDescription">
  106. <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['child']['summary'])) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp)))) ? $this->_run_mod_handler('entitytruncate', true, $_tmp, 256) : smarty_modifier_entitytruncate($_tmp, 256)); ?>
  107. </p>
  108. <?php endif; ?>
  109. <?php if (( $this->_tpl_vars['theme']['item']['canContainChildren'] && $this->_tpl_vars['theme']['params']['showAlbumOwner'] ) || ( ! $this->_tpl_vars['theme']['item']['canContainChildren'] && $this->_tpl_vars['theme']['params']['showImageOwner'] )): ?>
  110. <?php $this->assign('showOwner', true); ?>
  111. <?php else: ?>
  112. <?php $this->assign('showOwner', false); ?>
  113. <?php endif; ?>
  114. <?php echo $this->_reg_objects['g'][0]->block(array('type' => "core.ItemInfo",'item' => $this->_tpl_vars['child'],'showDate' => true,'showOwner' => $this->_tpl_vars['showOwner'],'showSize' => true,'showViewCount' => true,'showSummaries' => true,'class' => 'giInfo'), $this);?>
  115. </td>
  116. <?php endforeach; endif; unset($_from); ?>
  117. <?php unset($this->_sections['flush']);
  118. $this->_sections['flush']['name'] = 'flush';
  119. $this->_sections['flush']['start'] = (int)$this->_tpl_vars['childrenInColumnCount'];
  120. $this->_sections['flush']['loop'] = is_array($_loop=$this->_tpl_vars['theme']['params']['columns']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  121. $this->_sections['flush']['show'] = true;
  122. $this->_sections['flush']['max'] = $this->_sections['flush']['loop'];
  123. $this->_sections['flush']['step'] = 1;
  124. if ($this->_sections['flush']['start'] < 0)
  125. $this->_sections['flush']['start'] = max($this->_sections['flush']['step'] > 0 ? 0 : -1, $this->_sections['flush']['loop'] + $this->_sections['flush']['start']);
  126. else
  127. $this->_sections['flush']['start'] = min($this->_sections['flush']['start'], $this->_sections['flush']['step'] > 0 ? $this->_sections['flush']['loop'] : $this->_sections['flush']['loop']-1);
  128. if ($this->_sections['flush']['show']) {
  129. $this->_sections['flush']['total'] = min(ceil(($this->_sections['flush']['step'] > 0 ? $this->_sections['flush']['loop'] - $this->_sections['flush']['start'] : $this->_sections['flush']['start']+1)/abs($this->_sections['flush']['step'])), $this->_sections['flush']['max']);
  130. if ($this->_sections['flush']['total'] == 0)
  131. $this->_sections['flush']['show'] = false;
  132. } else
  133. $this->_sections['flush']['total'] = 0;
  134. if ($this->_sections['flush']['show']):
  135. for ($this->_sections['flush']['index'] = $this->_sections['flush']['start'], $this->_sections['flush']['iteration'] = 1;
  136. $this->_sections['flush']['iteration'] <= $this->_sections['flush']['total'];
  137. $this->_sections['flush']['index'] += $this->_sections['flush']['step'], $this->_sections['flush']['iteration']++):
  138. $this->_sections['flush']['rownum'] = $this->_sections['flush']['iteration'];
  139. $this->_sections['flush']['index_prev'] = $this->_sections['flush']['index'] - $this->_sections['flush']['step'];
  140. $this->_sections['flush']['index_next'] = $this->_sections['flush']['index'] + $this->_sections['flush']['step'];
  141. $this->_sections['flush']['first'] = ($this->_sections['flush']['iteration'] == 1);
  142. $this->_sections['flush']['last'] = ($this->_sections['flush']['iteration'] == $this->_sections['flush']['total']);
  143. ?>
  144. <td>&nbsp;</td>
  145. <?php endfor; endif; ?>
  146. </tr>
  147. </table>
  148. </div>
  149. <?php endif; ?>
  150. <?php if (! empty ( $this->_tpl_vars['theme']['navigator'] )): ?>
  151. <div class="gbBlock gcBackground2 gbNavigator">
  152. <?php echo $this->_reg_objects['g'][0]->block(array('type' => "core.Navigator",'navigator' => $this->_tpl_vars['theme']['navigator'],'reverseOrder' => true), $this);?>
  153. </div>
  154. <?php endif; ?>
  155. <?php if (! empty ( $this->_tpl_vars['theme']['jumpRange'] )): ?>
  156. <div id="gsPages" class="gbBlock gcBackground1">
  157. <?php echo $this->_reg_objects['g'][0]->block(array('type' => "core.Pager"), $this);?>
  158. </div>
  159. <?php endif; ?>
  160. <?php echo $this->_reg_objects['g'][0]->block(array('type' => "core.GuestPreview",'class' => 'gbBlock'), $this);?>
  161. <?php echo $this->_reg_objects['g'][0]->block(array('type' => "core.EmergencyEditItemLink",'class' => 'gbBlock','checkSidebarBlocks' => true,'checkAlbumBlocks' => true), $this);?>
  162. <?php $_from = $this->_tpl_vars['theme']['params']['albumBlocks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  163. foreach ($_from as $this->_tpl_vars['block']):
  164. ?>
  165. <?php echo $this->_reg_objects['g'][0]->block(array('type' => $this->_tpl_vars['block']['0'],'params' => $this->_tpl_vars['block']['1']), $this);?>
  166. <?php endforeach; endif; unset($_from); ?>
  167. </div>
  168. </td>
  169. </tr>
  170. </table>