li(field_data_range_if_set($document, 'min_elevation', 'max_elevation', array('separator' => 'elevation separator', 'suffix' => 'meters'))); li(field_data_range_if_set($document, 'height_diff_up', 'height_diff_down', array('separator' => 'height diff separator', 'prefix_min' => '+', 'prefix_max' => '-', 'suffix' => 'meters', 'range_only' => true))); li(field_data_if_set($document, 'outing_length', array('suffix' => 'kilometers'))); if ($document->get('geom_wkt')) { li(field_export($document->get('module'), $sf_params->get('id'), $sf_params->get('lang'), $sf_params->get('version'))); } li(field_bool_data($document, 'outing_with_public_transportation', array('show_only_yes' => true))); $access_elevation = field_data_if_set($document, 'access_elevation', array('suffix' => 'meters')); if (empty($access_elevation)) { li(field_data_from_list_if_set($document, 'access_status', 'mod_outings_access_statuses_list')); } else { $access_status = field_data_from_list_if_set($document, 'access_status', 'mod_outings_access_statuses_list', array('raw' => true, 'prefix' => ' - ')); li($access_elevation . $access_status); } if (array_intersect(array(1, 2, 5), $activities)) { li(field_data_range_if_set($document, 'up_snow_elevation', 'down_snow_elevation', array('separator' => 'elevation separator', 'suffix' => 'meters'))); } ?> </ul> <ul class="data col col_33"> <li style="display:none"></li> <?php li(field_data_from_list_if_set($document, 'conditions_status', 'mod_outings_conditions_statuses_list')); li(field_data_from_list_if_set($document, 'glacier_status', 'mod_outings_glacier_statuses_list')); if (array_intersect(array(1, 2, 5), $activities)) { li(field_data_from_list_if_set($document, 'track_status', 'mod_outings_track_statuses_list')); } li(field_data_from_list_if_set($document, 'frequentation_status', 'mod_outings_frequentation_statuses_list')); li(field_data_from_list_if_set($document, 'hut_status', 'mod_outings_hut_statuses_list')); li(field_data_from_list_if_set($document, 'lift_status', 'mod_outings_lift_statuses_list')); ?>
// put here meta tags for microdata that cannot be inside ul tags echo microdata_meta('name', $document->getName()); if (isset($nb_comments) && $nb_comments) { echo microdata_meta('interactionCount', $nb_comments . ' UserComments'); echo microdata_meta('discussionUrl', url_for('@document_comment?module=routes&id=' . $sf_params->get('id') . '&lang=' . $sf_params->get('lang'))); } ?> <ul class="data col_left col_33"> <?php li(field_activities_data($document)); li(field_data_range_if_set($document, 'min_elevation', 'max_elevation', array('separator' => 'elevation separator', 'suffix' => 'meters'))); $min_elevation = $document->get('min_elevation'); $difficulties_start_elevation = $document->get('elevation'); $has_approach_height = !empty($min_elevation) && !empty($difficulties_start_elevation); if (array_intersect(array(1, 2, 3, 6, 7), $activities) || !$has_approach_height) { li(field_data_range_if_set($document, 'height_diff_up', 'height_diff_down', array('separator' => 'height diff separator', 'prefix_min' => '+', 'prefix_max' => '-', 'suffix' => 'meters', 'range_only' => true))); } if (array_intersect(array(1, 2, 3, 4, 6, 7), $activities)) { li(field_data_if_set($document, 'route_length', array('suffix' => 'kilometers'))); } if (array_intersect(array(1, 2, 3, 4, 5), $activities)) { li(field_data_arg_if_set('difficulties_start_elevation', $difficulties_start_elevation, array('suffix' => 'meters'))); li(field_data_if_set($document, 'difficulties_height', array('suffix' => 'meters'))); if ($has_approach_height) { li(field_data_arg('approach_height', $difficulties_start_elevation - $min_elevation, array('suffix' => 'meters'))); } } if (array_intersect(array(1, 2, 3, 4, 7), $activities)) { li(field_data_from_list_if_set($document, 'configuration', 'mod_routes_configurations_list', array('multiple' => true))); } li(field_data_from_list_if_set($document, 'facing', 'app_routes_facings'));
?> <ul id="article_gauche_5050" class="data"> <?php li(field_data_from_list($document, 'site_types', 'app_sites_site_types', array('multiple' => true))); if (check_not_empty_doc($document, 'elevation') || check_not_empty_doc($document, 'lon')) { echo '<li><ul itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">'; li(field_data_if_set($document, 'elevation', array('suffix' => 'meters', 'microdata' => 'elevation'))); li(field_coord_data_if_set($document, 'lon', array('microdata' => 'longitude'))); li(field_coord_data_if_set($document, 'lat', array('microdata' => 'latitude'))); li(field_swiss_coords($document)); echo '</ul></li>'; } li(field_data_if_set($document, 'routes_quantity')); li(field_data_range_from_list_if_set($document, 'min_rating', 'max_rating', 'app_routes_rock_free_ratings', array('separator' => 'range separator'))); li(field_data_from_list_if_set($document, 'mean_rating', 'app_routes_rock_free_ratings')); li(field_data_range_if_set($document, 'min_height', 'max_height', array('separator' => 'range separator', 'suffix' => 'meters'))); li(field_data_if_set($document, 'mean_height', array('suffix' => 'meters'))); li(field_data_from_list_if_set($document, 'equipment_rating', 'app_equipment_ratings_list')); li(field_data_from_list_if_set($document, 'climbing_styles', 'app_climbing_styles_list', array('multiple' => true))); li(field_data_from_list_if_set($document, 'rock_types', 'app_rock_types_list', array('multiple' => true))); li(field_data_from_list_if_set($document, 'children_proof', 'mod_sites_children_proof_list')); li(field_data_from_list_if_set($document, 'rain_proof', 'mod_sites_rain_proof_list')); if (count(array_diff(array(2, 4, 6, 8, 10, 12, 14, 16), $document->getRaw('facings'))) == 0) { li('<div class="section_subtitle" id="_facings">' . __('facings') . '</div> ' . __('all facings')); } else { li(field_data_from_list_if_set($document, 'facings', 'mod_sites_facings_list', array('multiple' => true))); } li(field_months_data($document, 'best_periods')); if ($document->get('geom_wkt')) { li(field_export($document->get('module'), $sf_params->get('id'), $sf_params->get('lang'), $sf_params->get('version')), array('class' => 'separator')); }