<?php /* Smarty version 2.6.16, created on 2007-07-30 18:40:50
         compiled from gallery:modules/keyalbum/templates/blocks/KeywordLinks.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'gallery:modules/keyalbum/templates/blocks/KeywordLinks.tpl', 7, false),)), $this); ?>
<?php if (((is_array($_tmp=@$this->_tpl_vars['forItem'])) ? $this->_run_mod_handler('default', true, $_tmp, true) : smarty_modifier_default($_tmp, true))): ?> <?php if (empty ( $this->_tpl_vars['item'] )): ?> <?php $this->assign('item', $this->_tpl_vars['theme']['item']); ?> <?php endif;  $this->assign('showCloud', ((is_array($_tmp=@$this->_tpl_vars['showCloud'])) ? $this->_run_mod_handler('default', true, $_tmp, false) : smarty_modifier_default($_tmp, false)));  if (! empty ( $this->_tpl_vars['item']['keywords'] )):  echo $this->_reg_objects['g'][0]->callback(array('type' => "keyalbum.SplitKeywords",'keywords' => $this->_tpl_vars['item']['keywords']), $this);?>

<div class="<?php echo $this->_tpl_vars['class']; ?>
">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "Keywords:"), $this);?>

<?php $_from = $this->_tpl_vars['block']['keyalbum']['keywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['rawKeyword'] => $this->_tpl_vars['keyword']):
?>
<a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=keyalbum.KeywordAlbum",'arg2' => "keyword=".($this->_tpl_vars['rawKeyword']),'arg3' => "highlightId=".($this->_tpl_vars['item']['id'])), $this);?>
"><?php echo $this->_tpl_vars['keyword']; ?>
</a>
<?php endforeach; endif; unset($_from); ?>
</div>
<?php endif;  else: ?> <?php echo $this->_reg_objects['g'][0]->callback(array('type' => "keyalbum.LoadKeywords",'onlyPublic' => ((is_array($_tmp=@$this->_tpl_vars['onlyPublic'])) ? $this->_run_mod_handler('default', true, $_tmp, true) : smarty_modifier_default($_tmp, true)),'sizeLimit' => ((is_array($_tmp=@$this->_tpl_vars['sizeLimit'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)),'maxCloudFontEnlargement' => ((is_array($_tmp=@$this->_tpl_vars['maxCloudFontEnlargement'])) ? $this->_run_mod_handler('default', true, $_tmp, 3) : smarty_modifier_default($_tmp, 3)),'includeFrequency' => $this->_tpl_vars['showCloud']), $this);?>

<?php if (! empty ( $this->_tpl_vars['block']['keyalbum']['keywords'] )): ?>
<div class="<?php echo $this->_tpl_vars['class']; ?>
">
<?php if ($this->_tpl_vars['showCloud']):  $_from = $this->_tpl_vars['block']['keyalbum']['keywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['keyword']):
?>
&nbsp;<a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=keyalbum.KeywordAlbum",'arg2' => "keyword=".($this->_tpl_vars['keyword']['raw'])), $this);?>
"<?php if (! empty ( $this->_tpl_vars['keyword']['weight'] )): ?> style="font-size: <?php echo $this->_tpl_vars['keyword']['weight']; ?>
em;"<?php endif; ?>>
<?php echo $this->_tpl_vars['keyword']['name']; ?>

</a>&nbsp;
<?php endforeach; endif; unset($_from);  else: ?>
<select onchange="if (this.value) { var newLocation = this.value; this.options[0].selected = true; location.href = newLocation; }">
<option value="">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "&laquo; Keyword Album &raquo;"), $this);?>

</option>
<?php $_from = $this->_tpl_vars['block']['keyalbum']['keywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['keyword']):
?>
<option value="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=keyalbum.KeywordAlbum",'arg2' => "keyword=".($this->_tpl_vars['keyword']['name'])), $this);?>
">
<?php echo $this->_tpl_vars['keyword']['name']; ?>

</option>
<?php endforeach; endif; unset($_from); ?>
</select>
<?php endif; ?>
</div>
<?php endif;  endif; ?>