<?php /* Smarty version 2.6.16, created on 2007-06-27 17:31:23
         compiled from gallery:themes/abeto/templates/frontpage.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', 'gallery:themes/abeto/templates/frontpage.tpl', 69, false),array('modifier', 'markup', 'gallery:themes/abeto/templates/frontpage.tpl', 98, false),)), $this); ?>
<?php if (! count ( $this->_tpl_vars['theme']['children'] )): ?>
<div class="gallery-empty">
<p><strong><?php echo $this->_reg_objects['g'][0]->text(array('text' => "This album is empty."), $this);?>
</strong></p>
<?php if (isset ( $this->_tpl_vars['theme']['permissions']['core_addDataItem'] )): ?>
<p><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);?>
"><?php echo $this->_reg_objects['g'][0]->text(array('text' => "Add a photo!"), $this);?>
</a></p>
<?php endif; ?>
</div>
<?php else: ?>
 
<?php echo '
<script src=\'/gallery2/themes/abeto/scripts/mootools.js\' type="text/javascript"></script>
<script src=\'/gallery2/themes/abeto/scripts/jd.gallery.js\' type="text/javascript"></script>
<script type="text/javascript">
function startGallery() {
var myGallery = new gallery($(\'myGallery\'), {
timed: true,
delay: 9000,
fadeDuration: 3000,
useThumbGenerator: true,
showCarousel: false,
preloader: false,
imageSelector: "img.gallery-photo"
});
}
window.onDomReady(startGallery);
</script>	
'; ?>
  
<?php $this->assign('firstItem', true);  $_from = $this->_tpl_vars['theme']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['child']):
 if (! $this->_tpl_vars['child']['canContainChildren']):  if ($this->_tpl_vars['firstItem']): ?>
<div id="myGallery" class="gallery-items">
<?php $this->assign('firstItem', false);  endif; ?>
<div class="imageElement">
<h3><?php echo $this->_tpl_vars['child']['summary']; ?>
</h3>
<p><?php echo $this->_tpl_vars['child']['description']; ?>
</p>
<?php if (( $this->_tpl_vars['child']['canContainChildren'] || $this->_tpl_vars['child']['entityType'] == 'GalleryLinkItem' )):  $this->assign('frameType', 'albumFrame');  ob_start();  echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem",'arg2' => "itemId=".($this->_tpl_vars['child']['id'])), $this);?>

<?php $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('linkUrl', ob_get_contents());ob_end_clean();  else:  $this->assign('frameType', 'itemFrame');  if (isset ( $this->_tpl_vars['child']['linkId'] ) && $this->_tpl_vars['theme']['guestPreviewMode'] == 0): ?>					 						 
<?php ob_start();  echo $this->_reg_objects['g'][0]->url(array('params' => $this->_tpl_vars['theme']['pageUrl'],'arg1' => "itemId=".($this->_tpl_vars['child']['linkId'])), $this);?>

<?php $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('linkId', ob_get_contents());ob_end_clean();  ob_start();  echo ((is_array($_tmp=$this->_tpl_vars['linkId'])) ? $this->_run_mod_handler('replace', true, $_tmp, ($this->_tpl_vars['child']['pathComponent']).".html", "") : smarty_modifier_replace($_tmp, ($this->_tpl_vars['child']['pathComponent']).".html", "")); ?>

<?php $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('linkUrl', ob_get_contents());ob_end_clean(); ?>
<a class='open' title="<?php echo $this->_tpl_vars['child']['summary']; ?>
" href="<?php echo $this->_reg_objects['g'][0]->text(array('text' => ($this->_tpl_vars['linkUrl'])), $this);?>
"></a>
<?php else: ?>
<a class='open' title="<?php echo $this->_tpl_vars['child']['summary']; ?>
" href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem",'arg2' => "itemId=".($this->_tpl_vars['child']['id'])), $this);?>
">a</a>
<?php endif;  endif;  if (isset ( $this->_tpl_vars['child']['thumbnail'] )): ?>	
<?php echo $this->_reg_objects['g'][0]->image(array('item' => $this->_tpl_vars['child'],'image' => $this->_tpl_vars['child']['thumbnail'],'class' => 'gallery-photo'), $this);?>

<?php else:  echo $this->_reg_objects['g'][0]->text(array('text' => 'no thumbnail'), $this);?>

<?php endif; ?>
</div>
<?php endif;  endforeach; endif; unset($_from);  if (! $this->_tpl_vars['firstItem']): ?>
<div class="clear"></div>
</div>
<?php endif;  endif;  if ($this->_tpl_vars['theme']['totalPages'] > 1):  echo $this->_reg_objects['g'][0]->block(array('type' => "core.Navigator",'navigator' => $this->_tpl_vars['theme']['navigator'],'prefix' => "&laquo; ",'suffix' => " &raquo;",'currentPage' => $this->_tpl_vars['theme']['currentPage'],'totalPages' => $this->_tpl_vars['theme']['totalPages']), $this);?>

<?php endif;  if (! empty ( $this->_tpl_vars['theme']['item']['description'] )): ?>
<hr />
<p><?php echo ((is_array($_tmp=$this->_tpl_vars['theme']['item']['description'])) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp)); ?>
</p>
<?php endif;  if ($this->_tpl_vars['user']['isRegisteredUser']):  $_from = $this->_tpl_vars['theme']['params']['albumBlocks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['block']):
 echo $this->_reg_objects['g'][0]->block(array('type' => $this->_tpl_vars['block']['0'],'params' => $this->_tpl_vars['block']['1']), $this);?>

<?php endforeach; endif; unset($_from);  endif;  echo $this->_reg_objects['g'][0]->block(array('type' => "core.GuestPreview",'class' => 'gbBlock'), $this);?>

<?php echo $this->_reg_objects['g'][0]->block(array('type' => "core.EmergencyEditItemLink",'class' => 'gbBlock','checkBlocks' => 'album'), $this);?>
