<?php use_helper('Field', 'Link'); $item_i18n = $item['ProductI18n'][0]; ?> <div><?php echo list_link($item_i18n, 'products'); ?> </div> <div><?php echo displayWithSuffix($item['elevation'], 'meters'), ' - ', get_paginated_value_from_list($item['product_type'], 'mod_products_types_list'); if (isset($item['linked_docs'])) { echo '<div>', __('access'), ' '; include_partial('parkings/parkings4list', array('parkings' => $item['linked_docs'])); echo '</div>'; } ?> <div><?php include_partial('documents/regions4list', array('geoassociations' => $item['geoassociations'])); ?> </div> <div><?php echo picto_tag('picto_images', __('nb_linked_images')), ' ', isset($item['nb_images']) ? $item['nb_images'] : '0', ' ', picto_tag('action_comment', __('nb_comments')), ' ', isset($item['nb_comments']) ? link_to($item['nb_comments'], '@document_comment?module=products&id=' . $item_i18n['id'] . '&lang=' . $item_i18n['culture']) : '0'; ?> </div>
<?php use_helper('Field', 'Link'); $item_i18n = $item['SiteI18n'][0]; ?> <td><input type="checkbox" value="<?php echo $item_i18n['id']; ?> " name="id[]"/></td> <td><?php echo list_link($item_i18n, 'sites'); ?> </td> <td><?php echo displayWithSuffix($item['elevation'], 'meters'); ?> </td> <td><?php echo $item['routes_quantity']; ?> </td> <td><?php echo get_paginated_value_from_list($item['site_types'], 'app_sites_site_types'); ?> </td> <td><?php echo get_paginated_value_from_list($item['rock_types'], 'mod_sites_rock_types_list'); ?> </td> <td><?php if (isset($item['linked_docs'])) {
use_helper('Field', 'Link'); $item_i18n = $item['SiteI18n'][0]; ?> <div><?php echo list_link($item_i18n, 'sites'); ?> </div> <div><?php $routes_quantity = $item['routes_quantity']; if (is_scalar($routes_quantity) && $routes_quantity > 0) { $routes_quantity = __('%1% routes_quantity', array('%1%' => $routes_quantity)); } else { $routes_quantity = ''; } echo _implode(' - ', array(displayWithSuffix($item['elevation'], 'meters'), get_paginated_value_from_list($item['site_types'], 'app_sites_site_types'), $routes_quantity, get_paginated_value_from_list($item['rock_types'], 'mod_sites_rock_types_list'))); ?> </div> <div><?php if (isset($item['linked_docs'])) { echo __('access'), ' '; include_partial('parkings/parkings4list', array('parkings' => $item['linked_docs'])); } ?> </div> <div><?php include_partial('documents/regions4list', array('geoassociations' => $item['geoassociations'])); ?> </div>
} $item_i18n = $item['OutingI18n'][0]; $activities = $item['activities']; ?> <div class="right"><?php echo get_paginated_activities($activities); ?> </div> <div><?php echo list_link($item_i18n, 'outings') . ' ' . $has_gps_track; ?> </div> <div> <?php echo _implode(' - ', array(format_date($item['date'], 'D'), link_to($item['creator'], '@document_by_id?module=users&id=' . $item['creator_id']))); ?> </div> <div> <?php echo _implode(' - ', array(displayWithSuffix($item['max_elevation'], 'meters'), displayWithSuffix($item['height_diff_up'], 'meters'), isset($item['linked_routes']) ? field_route_ratings_data($item, false, false, false, 'html', $activities) : '', get_paginated_value($item['conditions_status'], 'mod_outings_conditions_statuses_list'), field_frequentation_picto_if_set($item, true))); ?> </div> <div><?php include_partial('documents/regions4list', array('geoassociations' => $item['geoassociations'])); ?> </div> <div><?php echo picto_tag('picto_images', __('nb_linked_images')), ' ', isset($item['nb_images']) ? $item['nb_images'] : '0', ' ', picto_tag('action_comment', __('nb_comments')), ' ', isset($item['nb_comments']) ? link_to($item['nb_comments'], '@document_comment?module=outings&id=' . $item_i18n['id'] . '&lang=' . $item_i18n['culture']) : '0'; ?> </div>
<li class="even"> <?php } $list_item++; $timedate = $item['date']; if ($timedate != $date) { echo '<span class="date">' . format_date($timedate, $item_date_format) . '</span>'; $date = $timedate; } echo get_paginated_activities($item['activities']) . ' '; $i18n = $item['OutingI18n'][0]; $id = $item['id']; $lang = $i18n['culture']; echo link_to($i18n['name'], "@document_by_id_lang_slug?module=outings&id={$id}&lang={$lang}&slug=" . make_slug($i18n['name']), array('hreflang' => $lang)); $outing_data = array(); $max_elevation = displayWithSuffix($item['max_elevation'], 'meters'); if (!empty($max_elevation)) { $outing_data[] = $max_elevation; } $area_name = Area::getBestRegionDescription($item['geoassociations'], true); if (!empty($area_name)) { $outing_data[] = $area_name; } if (count($outing_data) > 0) { 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; } ?>
echo $item['date']; ?> "><?php echo format_date($item['date'], 'D'); ?> </time></td> <td><?php echo get_paginated_activities($activities); ?> </td> <td><?php echo displayWithSuffix($item['max_elevation'], 'meters'); ?> </td> <td><?php echo displayWithSuffix($item['height_diff_up'], 'meters'); ?> </td> <td><?php echo isset($item['linked_routes']) ? field_route_ratings_data($item, false, true, false, 'html', $activities) : ''; ?> </td> <td><?php echo get_paginated_value($item['conditions_status'], 'mod_outings_conditions_statuses_list'); ?> </td> <td><?php echo field_frequentation_picto_if_set($item, true); ?> </td> <td><?php
<?php use_helper('Language', 'Viewer', 'sfBBCode', 'SmartFormat', 'Field', 'SmartDate'); // lang-independent content starts here $i18n = $item['OutingI18n'][0]; echo '<span class="item_title">' . format_date($item['date'], 'dd/MM/yyyy') . ' - ' . get_paginated_activities($item['activities']) . ' - ' . link_to($i18n['name'], '@document_by_id_lang_slug?module=outings&id=' . $i18n['id'] . '&lang=' . $i18n['culture'] . '&slug=' . make_slug($i18n['name'])) . ' - ' . displayWithSuffix($item['max_elevation'], 'meters') . ' - ' . field_route_ratings_data($item, false, true); if (isset($item['nb_images'])) { echo ' - ' . picto_tag('picto_images', __('nb_linked_images')) . ' ' . $item['nb_images']; } if (isset($item['nb_comments'])) { echo ' - ' . picto_tag('action_comment', __('nb_comments')) . ' ' . link_to($item['nb_comments'], '@document_comment?module=outings&id=' . $item['OutingI18n'][0]['id'] . '&lang=' . $item['OutingI18n'][0]['culture']); } echo '</span>'; $participants = _format_text_data('participants', $i18n['participants'], null, array('needs_translation' => false, 'show_label' => false, 'show_images' => false)); $documents_versions_id = null; foreach ($item['versions'] as $version) { if (!$documents_versions_id || $version['documents_versions_id'] < $documents_versions_id) { $documents_versions_id = $version['documents_versions_id']; $author_info_name = $version['history_metadata']['user_private_data']['topo_name']; $author_info_id = $version['history_metadata']['user_private_data']['id']; } } $author = _format_data('author', link_to($author_info_name, '@document_by_id?module=users&id=' . $author_info_id)); echo '<div class="all_associations col_left col_66">'; include_partial('documents/association', array('associated_docs' => array(), 'extra_docs' => array($author, $participants), 'module' => 'users', 'inline' => true)); echo '</div>'; $geoassociations = $item['geoassociations']; echo '<div class="all_associations col_right col_33">'; include_partial('areas/association', array('associated_docs' => $geoassociations, 'module' => 'areas')); echo '</div>'; ?>
$summit_name = $summit_2['name']; } echo list_link($item_i18n, 'routes', $summit_name) . ' ' . $has_gps_track; if (isset($item['name']) && $summit_name != $summit_2['name']) { $link = list_link($summit_2, 'summits'); echo '<br /><small>', __('route linked with', array('%1%' => $link)), '</small>'; } ?> </div> <div> <?php $height_diff_up = is_scalar($item['height_diff_up']) ? $item['height_diff_up'] . __('meters') : NULL; if ($height_diff_up != NULL && is_scalar($item['difficulties_height'])) { $height_diff_up .= ' (' . $item['difficulties_height'] . __('meters') . ')'; } echo _implode(' - ', array(displayWithSuffix($item['max_elevation'], 'meters'), get_paginated_value($item['facing'], 'app_routes_facings'), $height_diff_up, field_route_ratings_data($item, false))); ?> </div> <div><?php if (isset($item['linked_docs'])) { echo __('access'), ' '; include_partial('parkings/parkings4list', array('parkings' => $item['linked_docs'])); } ?> </div> <div><?php include_partial('documents/regions4list', array('geoassociations' => $item['geoassociations'])); ?> </div> <div><?php echo picto_tag('picto_images', __('nb_linked_images')), ' ', isset($item['nb_images']) ? $item['nb_images'] : '0', ' ', picto_tag('action_comment', __('nb_comments')), ' ', isset($item['nb_comments']) ? link_to($item['nb_comments'], '@document_comment?module=routes&id=' . $item_i18n['id'] . '&lang=' . $item_i18n['culture']) : '0', ' ', picto_tag('picto_outings', __('nb_outings')), ' ', isset($item['nb_linked_docs']) ? $item['nb_linked_docs'] : '0';
<?php use_helper('Field', 'Link'); $item_i18n = $item['SummitI18n'][0]; ?> <div><?php echo list_link($item_i18n, 'summits'); ?> </div> <div><?php echo _implode(' - ', array(displayWithSuffix($item['elevation'], 'meters'), get_paginated_value($item['summit_type'], 'app_summits_summit_types'))); ?> </div> <div><?php include_partial('documents/regions4list', array('geoassociations' => $item['geoassociations'])); ?> </div> <div><?php echo picto_tag('picto_images', __('nb_linked_images')), ' ', isset($item['nb_images']) ? $item['nb_images'] : '0', ' ', picto_tag('action_comment', __('nb_comments')), ' ', isset($item['nb_comments']) ? link_to($item['nb_comments'], '@document_comment?module=summits&id=' . $item_i18n['id'] . '&lang=' . $item_i18n['culture']) : '0', ' ', picto_tag('picto_routes', __('nb_routes')), ' ', isset($item['nb_linked_docs']) ? $item['nb_linked_docs'] : '0'; ?> </div>