function customization_nav($active_tab) { use_helper('Forum'); $context = sfContext::getInstance(); $id = $context->getUser()->getId(); if ($context->getUser()->isConnected() && $context->getRequest()->isXmlHttpRequest()) { return '<ul class="tabs">' . ' <li ' . setActiveIf('customize', $active_tab) . '>' . customize_link_to() . '</li>' . ' <li ' . setActiveIf('personal', $active_tab) . '>' . personal_preferences_link_to() . '</li>' . ' <li ' . setActiveIf('langpref', $active_tab) . '>' . language_preferences_link_to() . '</li>' . ' <li>' . f_link_to(__('User profile'), "profile.php?section=personality&id={$id}") . '</li>' . '</ul>'; } }
echo picto_tag('picto_outings') . link_to(__('My outings'), 'outings/myoutings'); ?> </li> <li><?php echo picto_tag('picto_images') . link_to(__('My images'), 'images/myimages'); ?> </li> <li><?php echo picto_tag('picto_outings') . link_to(__('My statistics'), 'outings/mystats'); ?> </li> <?php } ?> <li><?php echo picto_tag('picto_tools') . customize_link_to(); ?> </li> <?php if ($is_connected) { ?> <li><?php echo picto_tag('picto_tools') . personal_preferences_link_to(); ?> </li> <li><?php echo picto_tag('picto_tools') . language_preferences_link_to(); ?> </li> <li><?php echo picto_tag('action_edit') . f_link_to(__('User profile'), 'profile.php?section=personality');
<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'); } else { echo login_link_to(); } ?> | <?php echo customize_link_to(); ?> </div> <?php $perso = c2cPersonalization::getInstance(); $act_filter = $perso->getActivitiesFilter(); $main_filter_switch_on = $perso->isMainFilterSwitchOn(); $alist = sfConfig::get('app_activities_list'); array_shift($alist); $light = array_fill(0, count($alist), ''); $activities_class = array(); if ($main_filter_switch_on && count($act_filter)) { $unselected_act = array(); foreach ($alist as $k => $act) { if (!in_array($k + 1, $act_filter)) { $unselected_act[] = $k;
echo ' <span class="meta">(' . implode(' - ', $outing_data) . ')</span>'; } if (isset($item['nb_images'])) { $images = picto_tag('picto_images_light', format_number_choice('[1]1 image|(1,+Inf]%1% images', array('%1%' => $item['nb_images']), $item['nb_images'])) . ' '; echo $images; } ?> </li> <?php } ?> </ul> <?php } ?> <div class="home_link_list"> <?php echo link_to($custom_footer_text, $custom_footer_link) . ' - ' . link_to(__('recent conditions'), $conditions_link) . ' - ' . link_to(__('Prepare outing'), getMetaArticleRoute('prepare_outings')); if ($sf_user->isConnected() && !c2cTools::mobileVersion()) { echo ' - ' . button_wizard(); } echo ' - ' . customize_link_to(); ?> </div> </div> <?php $cookie_position = array_search('last_outings', sfConfig::get('app_personalization_cookie_fold_positions')); echo javascript_tag('C2C.setSectionStatus(\'last_outings\', ' . $cookie_position . ', ' . (!$default_open ? 'false' : 'true') . ");"); ?> </div>