<?php /* Smarty version 2.6.10, created on 2012-07-13 15:00:26
         compiled from gallery:modules/core/templates/blocks/GuestPreview.tpl */ ?>
<?php if ($this->_tpl_vars['user']['isRegisteredUser']): ?>
<div class="<?php echo $this->_tpl_vars['class']; ?>
">
  <?php ob_start(); ?>
  <?php if (( $this->_tpl_vars['theme']['guestPreviewMode'] )): ?>
    <a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "controller=core.ShowItem",'arg2' => "guestPreviewMode=0",'arg3' => "return=1"), $this);?>
"><?php echo $this->_tpl_vars['user']['userName']; ?>
</a> | <span class="active"> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'guest'), $this);?>
 </span>
  <?php else: ?>
  <span class="active"> <?php echo $this->_tpl_vars['user']['userName']; ?>
 </span> | <a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "controller=core.ShowItem",'arg2' => "guestPreviewMode=1",'arg3' => "return=1"), $this);?>
"><?php echo $this->_reg_objects['g'][0]->text(array('text' => 'guest'), $this);?>
</a>
  <?php endif; ?>
  <?php $this->_smarty_vars['capture']['guestPreviewMode'] = ob_get_contents(); ob_end_clean(); ?>
  <?php echo $this->_reg_objects['g'][0]->text(array('text' => "display mode: %s",'arg1' => $this->_smarty_vars['capture']['guestPreviewMode']), $this);?>

</div>
<?php endif; ?>