function block_1629966707578aa4ae565883_51150720($_smarty_tpl, $_blockParentStack) { ?> <?php echo smarty_function_initScript(array('script' => 'Login'), $_smarty_tpl); ?> <?php if (!empty($_SESSION['loggedIn'])) { ?> logged in <?php } ?> <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:user/loginForm.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false); ?> <?php }
function block_273772082578a90b16ee6d5_36861837($_smarty_tpl, $_blockParentStack) { ?> <?php echo smarty_function_initScript(array('script' => 'Search'), $_smarty_tpl); ?> <?php echo smarty_function_initScript(array('script' => 'Results'), $_smarty_tpl); ?> <div class="row"> <h1>Search Results</h1> <div class="search-results"> <?php $_from = $_smarty_tpl->tpl_vars['results']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $__foreach_result_0_saved_item = isset($_smarty_tpl->tpl_vars['result']) ? $_smarty_tpl->tpl_vars['result'] : false; $_smarty_tpl->tpl_vars['result'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['result']->_loop = false; foreach ($_from as $_smarty_tpl->tpl_vars['result']->value) { $_smarty_tpl->tpl_vars['result']->_loop = true; $__foreach_result_0_saved_local_item = $_smarty_tpl->tpl_vars['result']; ?> <div class="user-brief" data-id="<?php echo $_smarty_tpl->tpl_vars['result']->value->id; ?> "> <?php echo smarty_function_generate_resized_image(array('img' => $_smarty_tpl->tpl_vars['result']->value->thumbnail, 'width' => "200"), $_smarty_tpl); ?> <div class="username"> <div><?php echo $_smarty_tpl->tpl_vars['result']->value->username; ?> </div> </div> <div class="details"></div> </div> <?php $_smarty_tpl->tpl_vars['result'] = $__foreach_result_0_saved_local_item; } if ($__foreach_result_0_saved_item) { $_smarty_tpl->tpl_vars['result'] = $__foreach_result_0_saved_item; } ?> </div> </div> <?php }