<?php /* Smarty version 2.6.16, created on 2011-05-10 05:22:15
         compiled from gallery:modules/imageblock/templates/ImageBlock.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'markup', 'gallery:modules/imageblock/templates/ImageBlock.tpl', 52, false),array('modifier', 'default', 'gallery:modules/imageblock/templates/ImageBlock.tpl', 71, false),)), $this); ?>
<?php $_from = $this->_tpl_vars['ImageBlockData']['blocks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['block']):
?>
<div class="one-image">
<?php if (! empty ( $this->_tpl_vars['block']['title'] )): ?>
<h3> <?php echo $this->_reg_objects['g'][0]->text(array('text' => $this->_tpl_vars['block']['title']), $this);?>
 </h3>
<?php endif;  ob_start();  echo '';  if (empty ( $this->_tpl_vars['ImageBlockData']['link'] )):  echo '';  echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem",'arg2' => "itemId=".($this->_tpl_vars['block']['id']),'forceFullUrl' => $this->_tpl_vars['ImageBlockData']['forceFullUrl']), $this); echo '';  elseif ($this->_tpl_vars['ImageBlockData']['link'] != 'none'):  echo '';  echo $this->_tpl_vars['ImageBlockData']['link'];  echo '';  endif;  echo '';  $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('linkHref', ob_get_contents());ob_end_clean();  ob_start();  if (! empty ( $this->_tpl_vars['linkHref'] )): ?>
<a href="<?php echo $this->_tpl_vars['linkHref']; ?>
"<?php if (! empty ( $this->_tpl_vars['ImageBlockData']['linkTarget'] )): ?> target="<?php echo $this->_tpl_vars['ImageBlockData']['linkTarget']; ?>
"<?php endif; ?>>
<?php endif;  $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('link', ob_get_contents());ob_end_clean();  if ($this->_tpl_vars['block']['item']['canContainChildren']):  $this->assign('frameType', 'albumFrame');  else:  $this->assign('frameType', 'itemFrame');  endif;  if (array_key_exists ( 'maxSize' , $this->_tpl_vars['ImageBlockData'] )):  $this->assign('maxSize', $this->_tpl_vars['ImageBlockData']['maxSize']);  elseif (isset ( $this->_tpl_vars['ImageBlockData'][$this->_tpl_vars['frameType']] ) && $this->_tpl_vars['ImageBlockData'][$this->_tpl_vars['frameType']] != 'none'):  $this->assign('maxSize', 120);  else:  $this->assign('maxSize', 150);  endif;  $this->assign('imageItem', $this->_tpl_vars['block']['item']);  if (isset ( $this->_tpl_vars['block']['forceItem'] )):  $this->assign('imageItem', $this->_tpl_vars['block']['thumb']);  endif;  if (isset ( $this->_tpl_vars['ImageBlockData'][$this->_tpl_vars['frameType']] )):  $this->_tag_stack[] = array('container', array('type' => "imageframe.ImageFrame",'frame' => $this->_tpl_vars['ImageBlockData'][$this->_tpl_vars['frameType']],'width' => $this->_tpl_vars['block']['thumb']['width'],'height' => $this->_tpl_vars['block']['thumb']['height'],'maxSize' => $this->_tpl_vars['maxSize']), $this); $_block_repeat=true; $this->_reg_objects['g'][0]->container($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); echo $this->_tpl_vars['link']; ?>

<?php echo $this->_reg_objects['g'][0]->image(array('item' => $this->_tpl_vars['imageItem'],'image' => $this->_tpl_vars['block']['thumb'],'id' => "%ID%",'class' => "%CLASS%",'maxSize' => $this->_tpl_vars['maxSize'],'forceFullUrl' => $this->_tpl_vars['ImageBlockData']['forceFullUrl']), $this);?>

<?php if (! empty ( $this->_tpl_vars['linkHref'] )): ?> </a> <?php endif;  $_obj_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo $this->_reg_objects['g'][0]->container($this->_tag_stack[count($this->_tag_stack)-1][1], $_obj_block_content, $this, $_block_repeat);} array_pop($this->_tag_stack);?>

<?php else:  echo $this->_tpl_vars['link']; ?>

<?php echo $this->_reg_objects['g'][0]->image(array('item' => $this->_tpl_vars['imageItem'],'image' => $this->_tpl_vars['block']['thumb'],'class' => 'giThumbnail','maxSize' => $this->_tpl_vars['maxSize'],'forceFullUrl' => $this->_tpl_vars['ImageBlockData']['forceFullUrl']), $this);?>

<?php if (! empty ( $this->_tpl_vars['linkHref'] )): ?> </a> <?php endif;  endif;  if (isset ( $this->_tpl_vars['ImageBlockData']['show']['title'] ) && isset ( $this->_tpl_vars['block']['item']['title'] )): ?>
<h4 class="giDescription">
<?php echo ((is_array($_tmp=$this->_tpl_vars['block']['item']['title'])) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp)); ?>

</h4>
<?php endif;  if (isset ( $this->_tpl_vars['ImageBlockData']['show']['date'] ) || isset ( $this->_tpl_vars['ImageBlockData']['show']['views'] ) || isset ( $this->_tpl_vars['ImageBlockData']['show']['owner'] )): ?>
<p class="giInfo">
<?php if (isset ( $this->_tpl_vars['ImageBlockData']['show']['date'] )): ?>
<span class="summary">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "Date:"), $this);?>
 <?php echo $this->_reg_objects['g'][0]->date(array('timestamp' => $this->_tpl_vars['block']['item']['originationTimestamp']), $this);?>

</span>
<?php endif;  if (isset ( $this->_tpl_vars['ImageBlockData']['show']['views'] )): ?>
<span class="summary">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "Views: %d",'arg1' => $this->_tpl_vars['block']['viewCount']), $this);?>

</span>
<?php endif;  if (isset ( $this->_tpl_vars['ImageBlockData']['show']['owner'] )): ?>
<span class="summary">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "Owner: %s",'arg1' => ((is_array($_tmp=@$this->_tpl_vars['block']['owner']['fullName'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['block']['owner']['userName']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['block']['owner']['userName']))), $this);?>

</span>
<?php endif; ?>
</p>
<?php endif; ?>
</div>
<?php endforeach; endif; unset($_from); ?>