<p><?php echo __('The page you are trying to reach is no longer available.'); ?> </p> <p><?php echo __('You can:'); ?> </p> <ul class="list404"> <li><?php echo __('Try a site search:'); ?> <?php include_partial('common/search_form', array('autocomplete' => false, 'prefix' => '_404')); ?> </li> <li><?php echo link_to(__('Go to the homepage'), '@homepage'); ?> </li> <li><?php echo link_to(__('Contact us'), getMetaArticleRoute('contact')); ?> </li> </ul> <?php echo end_content_tag(); include_partial('common/content_bottom');
function button_know_more() { return link_to(__('Know more'), getMetaArticleRoute('know_more')); }
} if (in_array(5, $activities)) { $backpack_content_list[] = 'pack_ice'; } if (in_array(6, $activities)) { $backpack_content_list[] = 'pack_hiking'; } if (array_intersect(array(1, 2, 3, 7), $activities) && $is_on_glacier == 1) { $backpack_content_list[] = 'glacier gear'; } foreach ($backpack_content_list as $backpack_content) { $link_text = __($backpack_content); if ($backpack_content == 'glacier gear') { $url = getMetaArticleRoute('pack_snow_ice_mixed_easy', false, 'glacier-gear'); } else { $url = getMetaArticleRoute($backpack_content, false); } $backpack_content_links[] = '<li>' . link_to($link_text, $url) . '</li>'; } if (count($backpack_content_links)) { $gear_inserted_text = '<ul class="text big_tips">' . implode('', $backpack_content_links) . "</ul>\n"; } else { $gear_inserted_text = ''; } echo field_text_data_if_set($document, 'description', null, array('needs_translation' => $needs_translation, 'images' => $images, 'show_label' => false)); $remarks = field_text_data_if_set($document, 'remarks', null, array('needs_translation' => $needs_translation, 'show_images' => false)); $gear = field_text_data_if_set($document, 'gear', null, array('needs_translation' => $needs_translation, 'show_images' => false, 'inserted_text' => $gear_inserted_text)); if (!empty($remarks) || !empty($gear)) { echo '<div class="clearer"></div>'; echo '<div class="col_left col_66">'; if (!empty($remarks)) {
use_helper('Javascript'); if (!isset($default_open)) { $default_open = true; } $html_content = __('prepare_outing_box'); if ($html_content != 'donotshow') { ?> <div id="nav_prepare" class="nav_box"> <div class="nav_box_top"></div> <div class="nav_box_content"> <?php echo nav_title('prepare', __('Prepare outing'), 'outings'); ?> <div class="nav_box_text" id="nav_prepare_section_container"> <?php echo $html_content; ?> <p class="nav_box_bottom_link"><?php echo link_to(__('More links'), getMetaArticleRoute('prepare_outings', false)); ?> </p> </div> <?php $cookie_position = array_search('nav_prepare', sfConfig::get('app_personalization_cookie_fold_positions')); echo javascript_tag('C2C.setSectionStatus(\'nav_prepare\', ' . $cookie_position . ', ' . (!$default_open ? 'false' : 'true') . ");"); ?> </div> <div class="nav_box_down"></div> </div> <?php }
if (array_key_exists($cat, $choices)) { $choices[$cat] .= ' *'; } } echo select_tag("categories[{$image_number}]", options_for_select($choices), array('multiple' => true, 'size' => 6)); ?> </div> <br /> <div class="image_form_error"<?php echo isset($image_title) ? ' style="display:none"' : ''; ?> > ↓ <?php echo __('this name is too short (4 characters minimum)'); ?> ↓</div> <?php // if image_title is set, we prefill the title input // note that we use raw value, since input_tag will escape values anyway // and we thus prevent double escaping $image_title = isset($image_title) ? $sf_data->getRaw('image_title') : ''; echo __('name'), ' ', input_tag("name[{$image_number}]", $image_title, array('maxlength' => '150', 'class' => 'large_input', 'placeholder' => __('write a caption'))), ' ', input_hidden_tag("image_unique_filename[{$image_number}]", $image_filename); echo '<br /><br />'; $license_choices = array_map('__', sfConfig::get('mod_images_type_list')); if ($default_license == 1) { $types = sfConfig::get('mod_images_type_list'); echo __('image_type') . ' ' . __($types[1]) . ' ' . link_to(picto_tag('cc-by-sa-mini', 'CC-by-sa'), getMetaArticleRoute('licenses', false, 'cc-by-sa')); echo input_hidden_tag("image_type[{$image_number}]", 1); } else { echo __('image_type') . ' ' . select_tag("image_type[{$image_number}]", options_for_select($license_choices, $default_license)); }
function bbcode_toolbar_tag($document, $target_id, $options = array()) { use_helper('Button'); $response = sfContext::getInstance()->getResponse(); $response->addJavascript('/static/js/bbcode.js', 'last'); $img_tag = !isset($options['no_img']); $abs_tag = isset($options['abstract']); $line_tag = isset($options['route_line']); return start_group_tag('bbcodetoolcontainer ' . $target_id) . bb_button_tag('h2_button', 'h2', $target_id) . bb_button_tag('h3_button', 'h3', $target_id) . bb_button_tag('h4_button', 'h4', $target_id) . bb_button_tag('bold', 'b', $target_id, array('style' => 'font-weight:bold')) . bb_button_tag('italic', 'i', $target_id, array('style' => 'font-style:italic')) . bb_button_tag('underline', 'u', $target_id, array('style' => 'text-decoration:underline')) . bb_button_tag('strike_button', 's', $target_id, array('style' => 'text-decoration:line-through')) . bb_button_tag('code_button', 'c', $target_id) . bb_button_tag('wl_button', 'wl', $target_id) . bb_button_tag('url_button', 'url', $target_id, array('style' => 'text-decoration:underline')) . ($img_tag ? bbcode_toolbar_img_tag($document, $target_id) : '') . ($abs_tag ? bb_button_tag('abs_button', 'abs', $target_id) : '') . ($line_tag ? bb_button_tag('line_button', 'L#', $target_id, array('data-act-filter' => '2 3 4 5')) : '') . ' ' . link_to(__('Help'), getMetaArticleRoute('formatting', false, 'path')) . ' ' . picto_tag('picto_close', __('Reduce the text box'), array('onclick' => "C2C.changeTextareaSize('{$target_id}', false)")) . picto_tag('picto_open', __('Enlarge the text box'), array('onclick' => "C2C.changeTextareaSize('{$target_id}', true)")) . end_group_tag(); }
<?php use_helper('General', 'Forum', 'JavascriptQueue'); $menu_search = array('#' => ' ', url_for('@filter?module=outings') => __('outings'), url_for('@filter?module=routes') => __('routes'), url_for('@filter?module=images') => __('images'), url_for('@filter?module=summits') => __('summits'), url_for('@filter?module=sites') => __('sites'), url_for('@filter?module=parkings') => __('parkings'), url_for('@filter?module=huts') => __('huts'), url_for('@filter?module=books') => __('books'), url_for('@filter?module=articles') => __('articles'), url_for('@filter?module=products') => __('products'), url_for('@filter?module=users') => __('users')); $menu_see = array('#' => ' ', url_for('@default_index?module=outings&orderby=date&order=desc') => __('outings'), url_for('@default?module=outings&action=conditions&orderby=date&order=desc') => __('cond short'), url_for('@default_index?module=routes') => __('routes'), url_for('@default_index?module=images') => __('images'), url_for('@default_index?module=summits') => __('summits'), url_for('@default_index?module=sites') => __('sites'), url_for('@default_index?module=parkings') => __('parkings'), url_for('@default_index?module=huts') => __('huts'), url_for('@default_index?module=books') => __('books'), url_for('@default_index?module=articles') => __('articles'), url_for('@default_index?module=products') => __('products'), url_for('@default_index?module=users') => __('users')); $menu_more = array('#' => ' ', url_for(getMetaArticleRoute('association')) => __('Association'), url_for(getMetaArticleRoute('help', false)) => __('Global help'), url_for(getMetaArticleRoute('home_guide')) => __('Help') . __(' :') . ' ' . __('Guidebook'), url_for(getMetaArticleRoute('help_forum', false)) => __('Help') . __(' :') . ' ' . __('Forums'), url_for('users/sortPreferedLanguages') => __('Set languages preferences')); if ($is_connected) { $menu_more[url_for('users/mypage')] = __('personal page'); $menu_more[url_for('/forums/message_list.php')] = __('mailbox'); } ?> <div id="mobile_menu"> <div id="menu_items"> <div class="menu_entry"> <div class="menu_item left"> <span class="select_button"><?php echo __('Search'); ?> </span> <?php echo select_tag('menu_select', options_for_select($menu_search), array('class' => 'menu_select', 'id' => 'menu_select1')); ?> </div> </div> <div class="menu_entry"> <div class="menu_item middle"> <span class="select_button"><?php echo __('See'); ?> </span> <?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'); ?> </li> <li><?php echo picto_tag('action_contact') . link_to(__('Mailing lists link'), 'users/mailinglists'); ?> </li> <?php } else { ?> <li><?php echo picto_tag('action_edit') . link_to(__('create an account?'), getMetaArticleRoute('create_account')); ?> </li> <?php } if ($is_connected) { ?> <li class="lilast"><?php echo picto_tag('action_cc') . link_to(__('User image management'), 'users/manageimages'); ?> </li> <?php } ?> </ul> </li>
$id = $item['id']; $lang = $item['ArticleI18n'][0]['culture']; ?> <span class="home_article_title"> <?php echo link_to($item['ArticleI18n'][0]['name'], "@document_by_id_lang_slug?module=articles&id={$id}&lang={$lang}&slug=" . make_slug($item['ArticleI18n'][0]['name']), array('hreflang' => $lang)); ?> </span> <?php echo truncate_article_abstract(parse_links(parse_bbcode_abstract($item['ArticleI18n'][0]['abstract'])), sfConfig::get('app_recent_documents_articles_abstract_characters_limit')); ?> </li> <?php } ?> </ul> <?php } ?> <div class="home_link_list"> <?php echo link_to($custom_footer_text, $custom_title_link) . ' - ' . link_to(__('Summary'), getMetaArticleRoute('home_articles')); ?> </div> </div> <?php $cookie_position = array_search('last_articles', sfConfig::get('app_personalization_cookie_fold_positions')); echo javascript_tag('C2C.setSectionStatus(\'last_articles\', ' . $cookie_position . ', ' . (!$default_open ? 'false' : 'true') . ");"); ?> </div>
<!--[if IE 7]> <![if !IE]> <![endif]--> <div id="nav_buttons" class="nav_box"> <!--[if IE 7]> <![endif]> <![endif]--> <input type="hidden" value="_xclick" name="cmd" /> <input type="hidden" value="*****@*****.**" name="business" /> <input type="hidden" value="EUR" name="currency_code" /> <input type="hidden" value="<?php echo __('Donate to Camptocamp Association'); ?> " name="item_name" /> <input type="hidden" value="http://camptocamp.org/" name="return" /> <p> <input value="<?php echo __('donate'); ?> " id="paypal-button" type="submit" /> </p> <p> <?php echo link_to(content_tag('span', '', array('class' => 'cc_gen ' . $lang_class, 'title' => 'Creative Commons')), getMetaArticleRoute('licenses')); ?> </p> <p><?php echo buttons_facebook_twitter_c2c(); ?> </p> </div> </form>
<?php if (!isset($title)) { $title = __('home_welcome'); } if (isset($know_more_link)) { $know_more_link = $sf_data->getRaw('know_more_link'); } if (isset($description)) { $description = $sf_data->getRaw('description'); } else { $description = __('home_description'); $know_more_link = getMetaArticleRoute('know_more'); } if (!isset($default_open)) { $default_open = true; } ?> <div id="nav_about" class="nav_box"> <div class="nav_box_top"></div> <div class="nav_box_content"> <?php echo nav_title('about', $title, 'info'); ?> <div class="nav_box_text" id="nav_about_section_container"> <?php echo $description; if (isset($know_more_link)) { if (!isset($know_more_text)) { $know_more_text = __('Know more'); }
?> | <?php echo link_to(__('terms of use'), getMetaArticleRoute('conditions')); ?> | <?php echo link_to(__('content license'), getMetaArticleRoute('licenses')); ?> | <?php echo link_to(__('Developers'), 'https://trac.dev.camptocamp.org/'); ?> | <?php echo link_to(__('credits'), getMetaArticleRoute('credits')); if (!$is_map) { echo ' | ' . link_to(__('mobile version'), '@default?module=common&action=switchformfactor'); } ?> </p> <?php if (!$is_map) { ?> <p><?php echo __('CNIL declaration #'); ?> 1175560</p> <p id="disclaimer"><?php echo __('disclaimer notice'); ?>
foreach ($design_files as $file) { $file = trim($file); if (!empty($file)) { use_stylesheet('/static/css/' . $file . '.css', 'custom'); } } } echo init_js_var(true, 'home_nav', $connected); echo '<div id="cda_context" class="home article portals_content">'; if (!$mobile_version) { echo '<div id="cda_background_left">'; $lang = $document->getCulture(); $abstract = $document->get('abstract'); $abstract = parse_links(parse_bbcode_abstract($abstract)); $title = __('changerdapproche'); $know_more_link = getMetaArticleRoute('cda_know_more', false); include_partial('portals/welcome', array('sf_cache_key' => $id . '_' . $culture . '_' . $lang, 'title' => $title, 'description' => $abstract, 'know_more_link' => $know_more_link, 'default_open' => true)); include_partial('portals/wizard_button', array('sf_cache_key' => ($connected ? 'connected' : 'not_connected') . '_' . $culture)); if ($has_videos) { include_partial('portals/latest_videos', array('items' => $latest_videos, 'culture' => $culture, 'default_open' => true)); } if ($has_images && $has_map) { echo '<div id="last_images">'; $image_url_params = $sf_data->getRaw('image_url_params'); $image_url_params = implode('&', $image_url_params); $custom_title_link = 'images/list'; $custom_rss_link = 'images/rss'; if (!empty($image_url_params)) { $custom_title_link .= '?' . $image_url_params; $custom_rss_link .= '?' . $image_url_params; }
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>
// I18N is required for the inclusion in the forum to work $is_cda = $footer_type === 'cda'; $display_ac = !$is_cda && __('meta_language') == 'en'; if ((bool) sfConfig::get('app_mobile_version_ads')) { include_partial('common/mobile_banner'); } ?> <footer id="footer"> <div id="footer_cc"> <div id="footer_cc_text"> <p><?php echo link_to(__('Home'), '@homepage'), ' | ', link_to(__('web version of the site'), '@default?module=common&action=switchformfactor'); ?> </p> <p>© 1997-<?php echo date('Y') . ' ' . link_to('Camptocamp-Association', getMetaArticleRoute('association')); ?> </p> <p><?php echo __('CNIL declaration #'); ?> 1175560 - <?php echo __('disclaimer notice'); ?> </p> </div> <div id="footer_partners"><?php if ($is_cda) { ?> <?php echo __('site supported by:');
$iscopyright = $license == 'copyright'; $license_url = sfConfig::get('app_licenses_base_url') . $license . sfConfig::get('app_licenses_url_suffix'); $license_url .= $sf_user->getCulture(); $license_name = 'Creative Commons ' . __($license); $license_title = __("{$license} title"); $class = 'license_box'; if (isset($large) && $large) { $class .= ' large'; } ?> <footer class="<?php echo $class; ?> "> <?php echo '<div class="cc">' . link_to(picto_tag(($iscopyright ? '' : 'cc-') . $license), getMetaArticleRoute('licenses', false, ($iscopyright ? '' : 'cc-') . $license), array('title' => $license != 'copyright' ? 'Creative Commons' : 'Copyright')) . '</div>'; echo ' '; if ($iscopyright) { echo __('Image under copyright license'); } else { echo __('Page under %1% license', array('%1%' => "<a rel=\"license\" href=\"{$license_url}\" title=\"{$license_title}\">{$license_name}</a>")); } echo '<br />' . __('Images are under license specified in the original document of each image'); if (isset($version) && !c2cTools::mobileVersion()) { echo '<br /><span class="doc_infos">', __('Version #%1%, date %2%', array('%1%' => $version, '%2%' => format_date($created_at, 'D'))); if ($sf_user->hasCredential(sfConfig::get('app_credentials_moderator'))) { echo '<span class="no_print"> - ', __('Document generated %1% in %2%', array('%1%' => format_datetime(time()), '%2%' => round(1000 * $timer->getElapsedTime()))), '</span>'; } echo '</span>'; } ?>
</li> <li><?php echo link_to(__('Global help'), getMetaArticleRoute('help', false)); ?> </li> <li><?php echo link_to(__('Guidebook help'), getMetaArticleRoute('help_guide', false)); ?> </li> <li><?php echo link_to(__('FAQ'), getMetaArticleRoute('faq', false)); ?> </li> <li><?php echo link_to(__('Camptocamp-Association'), getMetaArticleRoute('association', false)); ?> </li> <li><?php echo link_to(__('Shop'), getMetaArticleRoute('shop', false)); ?> </li> </ul> </div> <?php $cookie_position = array_search('nav_toolbox', sfConfig::get('app_personalization_cookie_fold_positions')); echo javascript_tag('C2C.setSectionStatus(\'nav_toolbox\', ' . $cookie_position . ', ' . (!$default_open ? 'false' : 'true') . ");"); ?> </div> <div class="nav_box_down"></div> </div>
?> <div class="file_to_upload_button"> <?php echo link_to_function(picto_tag('picto_rm', __('delete this file')), "\$('#div_image_" . $image_number . "').remove()"); ?> </div> <div class="file_to_upload_info"><p><?php echo __('File:') . ' ' . input_file_tag("image_file[{$image_number}]"); echo '</p><p>'; echo form_error("name_{$image_number}"); echo __('name') . ' ' . input_tag("name[{$image_number}]", NULL, array('maxlength' => '150')); echo '</p><p>'; $license_choices = array_map('__', sfConfig::get('mod_images_type_list')); if ($default_license == 1) { $types = sfConfig::get('mod_images_type_list'); echo __('image_type') . ' ' . __($types[1]) . ' ' . link_to('<span class="license_mini license_mini_bysa" title="CC-by-sa"></span>', getMetaArticleRoute('licenses', false, 'cc-by-sa')); echo input_hidden_tag("image_type[{$image_number}]", 1); } else { echo __('image_type') . ' ' . select_tag("image_type[{$image_number}]", options_for_select($license_choices, $default_license)); } echo '</p><p class="file_to_upload_categories_title">'; echo __('categories (multiple selection allowed)'); ?> </p></div> <div class="file_to_upload_categories"><?php $home_categories = sfConfig::get('app_images_home_categories'); $choices = array_map('__', sfConfig::get('mod_images_categories_list')); foreach ($home_categories as $cat) { if (array_key_exists($cat, $choices)) { $choices[$cat] .= ' *'; }