foreach (array('notice', 'warning', 'error') as $key => $value) { echo display_flash_message($value); } ?> <div id="header"> <div id="banner_middle"> <div id="log"> <div id="mobile_home"> <?php echo link_to('<span> </span>', '@homepage', array('title' => 'Camptocamp.org')); ?> </div> <div class="log_elt"> <?php echo select_interface_language(), ' '; if ($sf_user->isConnected() && PunbbMsg::GetUnreadMsg($sf_user->getId())) { echo f_link_to(picto_tag('action_contact', __('mailbox')), 'message_list.php'); } ?> </div> <div class="log_elt" id="user_mngt"> <?php if ($sf_user->isConnected()) { ?> <strong><?php echo link_to($sf_user->getUsername(), '@document_by_id?module=users&id=' . $sf_user->getId(), array('id' => 'name_to_use', 'data-user-id' => $sf_user->getId(), 'class' => 'logged_as', 'title' => __('Your are connected as '))); ?> </strong> <?php echo link_to(picto_tag('action_cancel', __('Logout')), '@logout');
<?php use_helper('Language', 'Link', 'Flash', 'MyForm', 'Javascript', 'Ajax', 'General'); echo ajax_feedback(); ?> <div id="header"> <?php echo link_to(content_tag('span', '', array('id' => 'banner_logo', 'title' => 'Camptocamp.org')), '@homepage'); ?> <div id="banner_middle"> <div id="log"> <div class="log_elt"> <?php echo __('Interface language:') . ' ' . select_interface_language(); ?> </div> <?php include_partial('common/search_form'); ?> <div class="log_elt"> <?php if ($sf_user->isConnected()) { ?> <?php include_partial('users/logged_in'); ?> <?php } else { ?> <?php echo login_link_to();