<?php /* Smarty version Smarty-3.1.7, created on 2013-01-24 22:16:22
         compiled from "C:\wamp\www\collab\activecollab\3.2.8\angie\frameworks\favorites\views\default\fw_favorites\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:99225101b2b6a64bd8-90576483%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '06d426343aa198697e79145930b9f2c686cab3be' => 
    array (
      0 => 'C:\\wamp\\www\\collab\\activecollab\\3.2.8\\angie\\frameworks\\favorites\\views\\default\\fw_favorites\\index.tpl',
      1 => 1357817598,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '99225101b2b6a64bd8-90576483',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'favorites' => 0,
    'favorite' => 0,
    'logged_user' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.7',
  'unifunc' => 'content_5101b2b6b55fd',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5101b2b6b55fd')) {function content_5101b2b6b55fd($_smarty_tpl) {?><?php if (!is_callable('smarty_function_favorite_object')) include 'C:\\wamp\\www\\collab\\activecollab/3.2.8/angie/frameworks/favorites/helpers\\function.favorite_object.php';
if (!is_callable('smarty_function_object_link')) include 'C:\\wamp\\www\\collab\\activecollab/3.2.8/angie/frameworks/environment/helpers\\function.object_link.php';
if (!is_callable('smarty_block_lang')) include 'C:\\wamp\\www\\collab\\activecollab/3.2.8/angie/frameworks/globalization/helpers\\block.lang.php';
?><?php if (is_foreachable($_smarty_tpl->tpl_vars['favorites']->value)){?>
  <div class="user_favorites">
	  <table class="common" cellspacing="0">
	  <?php  $_smarty_tpl->tpl_vars['favorite'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['favorite']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['favorites']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['favorite']->key => $_smarty_tpl->tpl_vars['favorite']->value){
$_smarty_tpl->tpl_vars['favorite']->_loop = true;
?>
	    <tr>
        <td class="favorite_toggler"><?php echo smarty_function_favorite_object(array('object'=>$_smarty_tpl->tpl_vars['favorite']->value,'user'=>$_smarty_tpl->tpl_vars['logged_user']->value),$_smarty_tpl);?>
</td>
	      <td class="favorite_link"><?php echo smarty_function_object_link(array('object'=>$_smarty_tpl->tpl_vars['favorite']->value,'excerpt'=>50),$_smarty_tpl);?>
</td>
	      <td class="favorite_type"><a href="<?php echo clean($_smarty_tpl->tpl_vars['favorite']->value->getViewUrl(),$_smarty_tpl);?>
"><span class="object_type object_type_<?php echo clean($_smarty_tpl->tpl_vars['favorite']->value->getVerboseType(true),$_smarty_tpl);?>
"><?php echo clean($_smarty_tpl->tpl_vars['favorite']->value->getVerboseType(),$_smarty_tpl);?>
</span></a></td>
	    </tr>
	  <?php } ?>
	  </table>
  </div>
<?php }else{ ?>
  <p class="empty_page"><?php $_smarty_tpl->smarty->_tag_stack[] = array('lang', array()); $_block_repeat=true; echo smarty_block_lang(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
There are no favorites for this user<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_lang(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</p>
<?php }?>
<script type="text/javascript">
	var favorites_wrapper = $('div#user_favorites');
	$(favorites_wrapper + '.favorite_link a,' + favorites_wrapper + '.favorite_type a').click(function(){
		favorites_wrapper.remove();
	});
</script><?php }} ?>