<?php use_helper('Field'); $request = sfContext::getInstance()->getRequest(); $orderby = $request->getParameter('orderby', ''); $add_rating_link = !empty($orderby) && in_array($orderby, sfConfig::get('mod_routes_sort_route_criteria')); if (!$add_rating_link and !empty($activities)) { $orderby = Route::getDefaultRatingOrderby($activities); $add_rating_link = !empty($orderby); } echo select_all_header_list_tag(); echo header_list_tag('rnam', 'name'); echo header_list_tag('act', 'activities short'); echo header_list_tag('maxa', 'elevation short'); echo header_list_tag('fac', 'facing short'); echo header_list_tag('hdif', 'height_diff_up short'); echo header_list_tag($orderby, 'ratings', '', !$add_rating_link); echo simple_header_list_tag('parkings'); echo region_header_list_tag('region_name'); echo images_header_list_tag(); echo comments_header_list_tag(); echo picto_header_list_tag('picto_outings', 'nb_linked_outings');
<?php echo select_all_header_list_tag(); echo header_list_tag('hnam', 'name'); echo header_list_tag('halt', 'elevation short'); echo header_list_tag('styp', 'type short'); echo header_list_tag('hscap', 'staffed_capacity short'); echo header_list_tag('hucap', 'unstaffed_capacity short'); echo header_list_tag('act', 'activities short'); echo simple_header_list_tag('phone short'); echo simple_header_list_tag('www'); echo simple_header_list_tag('parkings'); echo region_header_list_tag('region_name'); echo images_header_list_tag(); echo comments_header_list_tag(); echo picto_header_list_tag('picto_routes', 'nb_routes');
function comments_header_list_tag() { return picto_header_list_tag('action_comment', 'nb_comments'); }