Example #1
0
function display_page_header($module, $document, $id, $metadata, $current_version, $options = array())
{
    $is_archive = $document->isArchive();
    $mobile_version = c2cTools::mobileVersion();
    $content_class = $module . '_content';
    $lang = $document->getCulture();
    $version = $is_archive ? $document->getVersion() : NULL;
    $slug = '';
    $prepend = _option($options, 'prepend', '');
    $separator = _option($options, 'separator', '');
    $nav_options = _option($options, 'nav_options');
    $item_type = _option($options, 'item_type', '');
    $nb_comments = _option($options, 'nb_comments');
    $creator_id = _option($options, 'creator_id');
    if (!$is_archive) {
        if ($module != 'users') {
            $slug = get_slug($document);
            $url = "@document_by_id_lang_slug?module={$module}&id={$id}&lang={$lang}&slug={$slug}";
        } else {
            $url = "@document_by_id_lang?module={$module}&id={$id}&lang={$lang}";
        }
    } else {
        $url = "@document_by_id_lang_version?module={$module}&id={$id}&lang={$lang}&version={$version}";
    }
    if (!empty($prepend)) {
        $prepend .= $separator;
    }
    echo display_title($prepend . $document->get('name'), $module, true, 'default_nav', $url);
    if (!$mobile_version) {
        echo '<div id="nav_space">&nbsp;</div>';
        sfLoader::loadHelpers('WikiTabs');
        $tabs = tabs_list_tag($id, $lang, $document->isAvailable(), 'view', $version, $slug, $nb_comments);
        echo $tabs;
        // liens internes vers les sections repliables du document
        if ($nav_options == null) {
            include_partial("{$module}/nav_anchor");
        } else {
            include_partial("{$module}/nav_anchor", array('section_list' => $nav_options));
        }
        // boutons vers des fonctions annexes et de gestion du document
        include_partial("{$module}/nav", isset($creator_id) ? array('id' => $id, 'document' => $document, 'creator_id' => $creator_id) : array('id' => $id, 'document' => $document));
        if ($module != 'users') {
            sfLoader::loadHelpers('Button');
            echo '<div id="nav_share" class="nav_box">' . button_share() . '</div>';
        }
    }
    echo display_content_top('doc_content', $item_type);
    echo start_content_tag($content_class);
    if ($merged_into = $document->get('redirects_to')) {
        include_partial('documents/merged_warning', array('merged_into' => $merged_into));
    }
    if ($is_archive) {
        include_partial('documents/versions_browser', array('id' => $id, 'document' => $document, 'metadata' => $metadata, 'current_version' => $current_version));
    }
}
<?php

use_helper('Date', 'History', 'MyForm', 'Language', 'Viewer', 'WikiTabs', 'SmartFormat', 'sfBBCode');
use_javascript('/static/js/diff.js', 'last');
use_javascript('/static/js/history_tools.js', 'last');
$is_moderator = $sf_user->hasCredential(sfConfig::get('app_credentials_moderator'));
$module = $sf_context->getModuleName();
$model = c2cTools::module2model($module);
$i18n_archive = $model . 'I18nArchive';
$lang = $sf_params->get('lang');
$id = $sf_params->get('id');
$table_list_even_odd = 0;
$slug = make_slug($document[$i18n_archive]['name']);
echo display_title(isset($title_prefix) ? $title_prefix . __('&nbsp;:') . ' ' . $document_name : $document_name, $module);
echo '<div id="nav_space">&nbsp;</div>';
echo tabs_list_tag($id, $lang, $exists_in_lang, 'history', null, $slug, $nb_comments);
echo display_content_top('doc_content');
echo start_content_tag($module . '_content');
?>
<p><?php 
echo __('Viewing history from %1% in %2%', array('%1%' => $document_name, '%2%' => format_language_c2c($lang)));
?>
</p>

<p><?php 
echo __('Legend:') . ' * = ' . __('current version') . ', <strong>' . __('minor_tag') . '</strong> = ' . __('minor modification');
?>
</p>

<?php 
echo form_tag("@document_diff_post?module={$module}&id={$id}&lang={$lang}", array('method' => 'post'));
                        $course_subscribe_allowed = ($course['subscribe'] == 1);
                        $course_unsubscribe_allowed = ($course['unsubscribe'] == 1);
                        $count_connections = $course['count_connections'];
                        $creation_date = substr($course['creation_date'],0,10);

                        $icon_title = null;

                        // display the course bloc
                        echo '<div class="well_border"><div class="row">';

                        // display thumbnail
                        display_thumbnail($course, $icon_title);

                        // display course title and button bloc
                        echo '<div class="span4">';
                        display_title($course);
                        // display button line
                        echo '<div class="btn-toolbar">';
                        // if user registered as student
                        if ($user_registerd_in_course_as_student) {
                            if (!$course_closed) {
                                display_description_button($course, $icon_title);
                                display_goto_button($course);
                                if ($course_unsubscribe_allowed) {
                                    display_unregister_button($course, $stok, $search_term, $code);
                                }
                                display_already_registered_label('student');
                            }
                        } elseif ($user_registerd_in_course_as_teacher) {
                            // if user registered as teacher
                            display_description_button($course, $icon_title);
Example #4
0
  $entity = $params['entity'];
  if ($params['list_id'] == $c_all) {
    $cat_q = run_query_statistic_entity_per_country_per_cat($entity, $category);
    $nb_ent = get_entity_nb($entity);
  } else {
    $obm_q = run_query_statistic_get_list($params['list_id']);
    $ext_list_function = "ext_list_get_${entity}_ids";
    $ent_q = $ext_list_function($params['list_id']);
    $cat_q = run_query_statistic_selected_entity_per_country_per_cat($ent_q, $entity, $category);
    $nb_ent = $ent_q->nf();
    $title = ' : ' . $obm_q->f('list_name');
  }
  $display['detail'] = dis_statistic_cat_stats($cat_q, $nb_ent);
  $l_entity = ${"l_$entity"};
  $l_category = ${"l_$category"};
  $display['title'] = display_title("$l_stats : $l_entity / $l_category$title");

} elseif ($action == 'stats_category_export') {
///////////////////////////////////////////////////////////////////////////////
  require("$path/list/list_query.inc");
  $category = $params['category'];
  $entity = $params['entity'];
  if ($params['list_id'] == $c_all) {
    $cat_q = run_query_statistic_entity_per_country_per_cat($entity, $category);
    $nb_ent = get_entity_nb($entity);
  } else {
    $obm_q = run_query_statistic_get_list($params['list_id']);
    $ext_list_function = "ext_list_get_${entity}_ids";
    $ent_q = @$ext_list_function($params['list_id']);
    $cat_q = run_query_statistic_selected_entity_per_country_per_cat($ent_q, $entity, $category);
    $nb_ent = $ent_q->nf();
<a href="javascript:void(0)" class="close_btn" onclick="$('#preview, #form_buttons_up').hide();"><?php 
echo __('close');
?>
</a>

<h2><?php 
echo __($title);
?>
</h2>
<p class="preview_warning"><?php 
echo __($warning);
?>
</p>

<?php 
echo display_title(isset($title_prefix) ? $title_prefix . __('&nbsp;:') . ' ' . $document->get('name') : $document->get('name'));
echo start_preview_section_tag('Information', 'data', 'info');
include_partial('data', array('document' => $document, 'preview' => true));
echo end_preview_section_tag();
echo start_preview_section_tag('Description', 'description', 'desc');
?>
<div class="article_contenu"><?php 
include_partial('i18n', array('document' => $document, 'needs_translation' => false, 'associated_books' => isset($associated_books) ? $associated_books : null, 'images' => $associated_images, 'filter_image_type' => $filter_image_type, 'preview' => true));
?>
</div><?php 
echo end_preview_section_tag();
?>
<div class="clearer"></div>
<br /><hr />
<div class="title">
<?php 
Example #6
0
<?php

use_helper('Pagination', 'Viewer', 'FilterForm', 'MyForm');
$id = $sf_params->get('id');
$lang = $sf_params->get('lang');
$module = $sf_context->getModuleName();
$table_list_even_odd = 0;
$mobile_version = c2cTools::mobileVersion();
echo display_title(__($module . ' list'), $module, false, 'list_nav');
if (!$mobile_version) {
    echo '<div id="nav_space">&nbsp;</div>';
    include_partial("{$module}/nav4list");
    //include_partial('documents/nav_news');
}
echo display_content_top('list_content');
echo start_content_tag($module . '_content');
if ($nb_results == 0) {
    echo '<p class="list_header">' . __('there is no %1% to show', array('%1%' => __($module))) . '</p>';
} else {
    $pager_navigation = pager_navigation($pager);
    if (!$mobile_version) {
        echo '<p class="list_header">' . __('to sort by one column, click once or twice in its title') . '</p>';
    }
    echo '<p class="list_header">' . link_to_default_order(__('sort by id'), __('the list is sorted by id'));
    if ($module == 'outings') {
        $orderby_images = array('orderby' => 'odate', 'order' => 'desc');
    } else {
        $orderby_images = array();
    }
    echo ' &nbsp; ' . link_to_associated_images(__('List all linked images'), $module, $orderby_images);
    echo '</p>';
Example #7
0
File: view.php Project: artre/study
function page_start($title, $javascript = NULL, $success_message = NULL, $error_message = NULL)
{
    display_head($title, $javascript);
    display_title($title, $success_message, $error_message);
}
$pun_user['show_img'] = '1';
$pun_user['show_img_sig'] = '0';
// load camo config
$use_camo = (bool) sfConfig::get('app_camo_use');
$camo_url = sfConfig::get('app_camo_url');
$camo_key = sfConfig::get('app_camo_key');
// load needed strings from PunBB
@(include PUN_ROOT . 'lang/' . __('meta_language_forum') . '/common.php');
$module = $sf_context->getModuleName();
$lang = $sf_params->get('lang');
$id = $sf_params->get('id');
$mobile_version = c2cTools::mobileVersion();
require_once PUN_ROOT . 'include/parser.php';
$nb_comments = $comments->count();
$document_name = isset($title_prefix) ? $title_prefix . __('&nbsp;:') . ' ' . $document_name : $document_name;
echo display_title($document_name, $module);
if (!$mobile_version) {
    echo '<div id="nav_space">&nbsp;</div>';
    echo tabs_list_tag($id, $lang, $exists_in_lang, 'comments', NULL, $module != 'users' ? make_slug($document_name) : '', $nb_comments);
}
echo display_content_top('doc_content');
echo start_content_tag($module . '_content');
if ($nb_comments > 0) {
    $topic_id = $comments->getFirst()->topic_id;
    $uri_anchor = explode('#', $_SERVER['REQUEST_URI'], 2);
    $post_id = 0;
    if (count($uri_anchor) > 1) {
        $post_anchor = $uri_anchor[1];
        if (strpos($post_anchor, 'p') === 0) {
            if (preg_match('#p([0-9]+)#si', $post_anchor, $post_id_match)) {
                $post_id = intval($post_id_match[1]);
Example #9
0
<?php

use_helper('Form', 'MyForm', 'Javascript', 'Ajax', 'Viewer');
$module = $sf_context->getModuleName();
echo display_title(__('Merge'));
?>
<div id="merge_wizard">
<?php 
echo form_tag("{$module}/merge");
echo tips_tag('Which document would you like to redirect the current one to?');
echo input_hidden_tag('from_id', $sf_params->get('from_id'));
?>
  

<div id="ac_form" style="float: left; margin-left: 10px; height: 250px; width: 300px;"> <?php 
//FIXME find a way to avoid ugly blank
// this div will be updated after page loading, via ajax.
?>
</div>

<script type="text/javascript">
$('#indicator').show();
$.ajax('<?php 
echo url_for("/{$module}/getautocomplete?module_name={$module}&button=0");
?>
')
  .always(function() { $('#indicator').hide(); })
  .done(function(data) { $('#ac_form').html(data); });
</script>
<p><?php 
echo c2c_submit_tag(__('Merge'));
Example #10
0
        $file = trim($file);
        if (!empty($file)) {
            use_stylesheet('/static/css/' . $file . '.css', 'custom');
        }
    }
}
$lang = $document->getCulture();
$version = $is_not_archive ? null : $document->getVersion();
$slug = get_slug($document);
if ($is_not_archive) {
    $url = "@document_by_id_lang_slug?module=portals&id={$id}&lang={$lang}&slug={$slug}";
} else {
    $url = "@document_by_id_lang_version?module=portals&id={$id}&lang={$lang}&version={$version}";
}
//display_page_header('portals', $document, $id, $metadata, $current_version);
echo display_title($document->get('name'), 'portals', true, 'home_nav', $url);
if (!$mobile_version) {
    echo '<div id="nav_space" class="nav_box">&nbsp;</div>';
    // TODO : change after creation of text field in portal doc
    // $title = $document->get('abstract_title');
    $title = __('home_welcome');
    $abstract = $document->get('abstract');
    $abstract = parse_links(parse_bbcode_abstract($abstract));
    include_partial('documents/welcome', array('sf_cache_key' => $id . '_' . $culture . '_' . $lang, 'title' => $title, 'description' => $abstract, 'default_open' => true));
    include_partial('documents/wizard_button', array('sf_cache_key' => ($is_connected ? 'connected' : 'not_connected') . '_' . $culture));
    if ($has_images && $has_map) {
        $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)) {
Example #11
0
<?php

use_helper('Diff', 'Date', 'Language', 'Viewer', 'WikiTabs', 'SmartFormat', 'sfBBCode');
$version = $new_document->getVersion() != $current_version ? $new_document->getVersion() : NULL;
$id = $sf_params->get('id');
$lang = $sf_params->get('lang');
$module = $sf_context->getModuleName();
$mobile_version = c2cTools::mobileVersion();
echo display_title(isset($title_prefix) ? $title_prefix . __('&nbsp;:') . ' ' . $new_document->get('name') : $new_document->get('name'), $module);
if (!$mobile_version) {
    echo '<div id="nav_space">&nbsp;</div>';
    echo tabs_list_tag($id, $lang, 1, 'history', null, get_slug($new_document), $nb_comments);
}
echo display_content_top('doc_content');
echo start_content_tag($module . '_content');
?>
<p>
<?php 
echo __('Diffing versions of %1% in %2%.', array('%1%' => isset($title_prefix) ? $title_prefix . __('&nbsp;:') . ' ' . $new_document->get('name') : $new_document->get('name'), '%2%' => format_language_c2c($new_document->getCulture())));
echo ' <strong>' . __('minor_tag') . '</strong> = ' . __('minor modification');
?>
</p>

<?php 
$documents = array('old' => $old_document, 'new' => $new_document);
$metadatas = array('old' => $old_metadata, 'new' => $new_metadata);
?>

<table class="diff_metas">
  <tr>
  <?php 
Example #12
0
    $activities_raw = $sf_data->getRaw('activities');
    $activities = $activities_raw;
}
if (!isset($selected_areas)) {
    $selected_areas = array();
} else {
    $selected_areas_raw = $sf_data->getRaw('selected_areas');
    $selected_areas = $selected_areas_raw;
}
if (!isset($coords)) {
    $coords = array();
} else {
    $coords_raw = $sf_data->getRaw('coords');
    $coords = $coords_raw;
}
echo display_title(__('Search a ' . $module), $module);
if (!c2cTools::mobileVersion()) {
    ?>
<div id="nav_space">&nbsp;</div>
<div id="nav_tools">
    <div id="nav_tools_top"></div>
    <div id="nav_tools_content">
        <ul>
            <li><?php 
    echo link_to(__('Back to list'), "@default_index?module={$module}", array('class' => 'action_back nav_edit'));
    ?>
            </li>
        </ul>
    </div>
    <div id="nav_tools_down"></div>
</div>
Example #13
0
///////////////////////////////////////////////////////////////////////////////
  $addressbooks = OBM_AddressBook::search();
  $contacts = $addressbooks->exportContacts($params['searchpattern']."  -is:archive");
  dis_contact_csv_export_all($contacts);
  exit();
} elseif ($action == 'statistics') {
///////////////////////////////////////////////////////////////////////////////
  require_once("$obminclude/lang/".$_SESSION['set_lang'].'/statistic.inc');
  // Specific conf statistics lang file
  if ($conf_lang) {
    $lang_file = "$obminclude/conf/lang/".$_SESSION['set_lang']."/statistic.inc";
    if (file_exists("$path/../".$lang_file)) {
      include("$lang_file");
    }
  }
  $display['title'] = display_title($l_stats);
  $display['detail'] = dis_category_contact_stats($params);

} elseif ($action == 'rights_admin') {
///////////////////////////////////////////////////////////////////////////////
  $display['detail'] = dis_addressbook_right_dis_admin($params);

} elseif ($action == 'rights_update') {
///////////////////////////////////////////////////////////////////////////////
  if (OBM_Acl_Utils::updateRights('addressbook', $params['entity_id'], $obm['uid'], $params)) {
    $display['msg'] .= display_ok_msg($l_right_update_ok);
  } else {
    $display['msg'] .= display_warn_msg($l_of_right_err_auth);
  }
  $display['detail'] = dis_addressbook_right_dis_admin($params);
Example #14
0
}
if ($linked_doc) {
    $linked_with = $linked_doc->get('id');
    $linked_name = $linked_doc->get('name');
    $linked_module = $linked_doc->get('module');
} else {
    $linked_with = 0;
}
if (!$new_document) {
    echo display_title(isset($title_prefix) ? $title_prefix . __('&nbsp;:') . ' ' . $document_name : $document_name, $module);
    if (!$mobile_version) {
        echo '<div id="nav_space">&nbsp;</div>';
        echo tabs_list_tag($id, $lang, $document->isAvailable(), 'edit', $version, get_slug($document), $nb_comments);
    }
} else {
    echo display_title(__("Creating new {$module}"), $module);
    if (!$mobile_version) {
        echo '<div id="nav_space">&nbsp;</div>';
        echo tabs_list_tag($id, $document->getCulture(), $document->isAvailable(), '', NULL, get_slug($document), 0);
    }
}
echo display_content_top('doc_content');
echo start_content_tag($module . '_content');
// display warning if editing from an archive version
if (!empty($editing_archive)) {
    echo '<p class="warning_message">', __('Warning: you are editing an archive version!'), '</p>';
}
if ($new_document && $linked_with) {
    ?>
    <p class="warning_message">
    <?php 
<?php

use_helper('Javascript', 'Pagination', 'MyForm', 'SmartDate', 'Viewer', 'General');
use_javascript('/static/js/history_tools.js', 'last');
echo display_title(__('Recent associations'), null, false);
echo '<div id="nav_space">&nbsp;</div>';
include_partial('documents/nav');
echo display_content_top('list_content');
echo start_content_tag();
?>
<p class="whatsnew_controls"><?php 
echo __('Recent associations list') . ' ';
?>
[<?php 
echo link_to_function(__('toggle date info'), 'C2C.toggle_time()');
?>
]
</p>

<p class="whatsnew_controls">
<?php 
$pager_navigation = pager_navigation($pager);
echo $pager_navigation;
?>
</p>

<?php 
$added_pic = picto_tag('picto_add', __('added'));
$deleted_pic = picto_tag('picto_rm', __('deleted'));
?>
Example #16
0
    <tr>
        <td align="right"><span>Nom de l'exp&eacute;diteur :</span></td>
        <td><input name="conf_mailFromName" id="conf_mailFromName" value="Alerte Iconito" /></td>
    </tr>
    </table>
</div>

<br /><br />
<input type="submit" value="Valider" />
</form>
<?php 
        }
        break;
    case 10:
        display_menu();
        display_title();
        session_start();
        $data = check_copy_files();
        if ($data['errors'] && count($data['errors'])) {
            foreach ($data['errors'] as $error) {
                $msg = '';
                if ($error['level'] == 'error') {
                    $msg .= _LOGO_ERROR;
                } elseif ($error['level'] == 'warning') {
                    $msg .= _LOGO_WARNING;
                } elseif ($error['level'] == 'good') {
                    $msg .= _LOGO_GOOD;
                }
                $msg .= $error['message'];
                display_message($msg);
            }
Example #17
0
<?php

use_helper('Pagination', 'MyImage', 'Lightbox', 'JavascriptQueue', 'Link', 'Viewer', 'General');
$mobile_version = c2cTools::mobileVersion();
$id = $sf_params->get('id');
$lang = $sf_params->get('lang');
if (!$mobile_version) {
    // add lightbox ressources
    addLbMinimalRessources();
} else {
    echo javascript_queue('C2C.swipe_i18n = {"Big size": "' . __('Big size') . '",' . '"Original image": "' . __('Original image') . '",' . '"Informations": "' . __('Informations') . '"};');
    use_javascript('/static/js/swipe.js', 'last');
    use_javascript('/static/js/swipe.wrapper.js', 'last');
}
echo display_title(__('images list'), $sf_params->get('module'), false, 'list_nav');
if (!c2cTools::mobileVersion()) {
    echo '<div id="nav_space">&nbsp;</div>';
    include_partial('nav4list');
    //include_partial('documents/nav_news');
}
echo display_content_top('list_content');
echo start_content_tag('images_content');
if (!$mobile_version) {
    echo javascript_tag('lightbox_msgs = Array("' . __('View image details') . '","' . __('View original image') . '");');
}
echo '<p class="list_header">' . __('images presentation');
if ($nb_results == 0) {
    echo '<br /><br />' . __('there is no %1% to show', array('%1%' => __('images'))) . '</p>';
} else {
    echo '</p>';
    $pager_navigation = pager_navigation($pager);
<?php

use_helper('Pagination', 'MyImage', 'Lightbox', 'Javascript', 'Link', 'Viewer', 'General', 'Field', 'MyForm');
// add lightbox ressources
addLbMinimalRessources();
$id = $sf_params->get('id');
$lang = $sf_params->get('lang');
echo display_title(__('User image management'), $sf_params->get('module'), false);
echo '<div id="nav_space">&nbsp;</div>';
include_partial('documents/nav4home');
echo display_content_top('list_content');
echo start_content_tag('images_content');
echo javascript_tag('lightbox_msgs = Array("' . __('View image details') . '","' . __('View original image') . '");');
echo '<p class="mandatory_fields_warning">' . __('manage images presentation');
$items = $pager->getResults('array', ESC_RAW);
if (count($items) == 0) {
    echo '<br /><br />' . __('All your images are already collaborative') . '</p>';
} else {
    echo '</p>';
    $pager_navigation = pager_navigation($pager);
    echo $pager_navigation;
    echo '<div class="clearer"></div>';
    $items = Language::parseListItems($items, 'Image');
    echo form_tag("@user_manage_images?module=users", array('onsubmit' => 'C2C.submitonce(this)', 'id' => 'editform'));
    foreach ($items as $item) {
        ?>
    <div class="thumb_data manageimages_list">
    <?php 
        $i18n_item = $item['ImageI18n'][0];
        $title = $i18n_item['name'];
        $image_type = $item['image_type'];
<?php

use_helper('Pagination', 'Field', 'Viewer');
$id = $sf_params->get('id');
$lang = $sf_params->get('lang');
$module = $sf_context->getModuleName();
echo display_title(__($module . ' list'), $module, false);
echo '<div id="nav_space">&nbsp;</div>';
include_partial("{$module}/nav4list");
echo display_content_top('list_content');
echo start_content_tag($module . '_content');
if (!isset($items) || count($items) == 0) {
    echo __('there is no %1% to show', array('%1%' => __('outings')));
} else {
    $pager_navigation = pager_navigation($pager);
    echo $pager_navigation;
    ?>
<ul class="clear">
    <?php 
    foreach ($items as $item) {
        ?>
    <li><?php 
        include_partial($module . '/list_full', array('item' => $item));
        ?>
    </li>
    <?php 
    }
    ?>
</ul>
<?php 
    echo $pager_navigation;
<?php

use_helper('Button', 'Form', 'Viewer', 'MyForm');
echo display_title(__('mailing lists'));
?>

<div id="nav_space">&nbsp;</div>
<div id="nav_tools">
    <div id="nav_tools_top"></div>
    <div id="nav_tools_content">
        <ul>
            <li><?php 
echo button_report();
?>
</li>
            <li><?php 
echo button_help('help');
?>
</li>
        </ul>
    </div>
    <div id="nav_tools_down"></div>
</div>

<?php 
echo display_content_top('list_content');
echo start_content_tag();
?>
        <div id="mailinglists">
            <p><?php 
echo __('mailing list explanation %1% %2%', array('%1%' => $email, '%2%' => sfConfig::get('mod_users_ml_owner')));
<?php

use_helper('Viewer', 'MyForm', 'Button');
echo display_title();
echo display_content_top('no_nav');
echo start_content_tag();
?>
    <h1><?php 
echo __('404_error');
?>
</h1>
    <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:');
?>
&nbsp;<?php 
include_partial('common/search_form', array('autocomplete' => false, 'prefix' => '_404'));
?>
</li>
        <li><?php 
echo link_to(__('Go to the homepage'), '@homepage');
<?php

use_helper('Pagination', 'Field', 'SmartDate', 'SmartFormat', 'sfBBCode', 'Viewer', 'ModalBox', 'Lightbox', 'Javascript', 'MyImage');
$mobile_version = c2cTools::mobileVersion();
$format = $sf_data->getRaw('format');
$main_title = in_array('full', $format) ? 'conditions and comments' : 'recent conditions';
echo display_title(__($main_title), 'outings', false);
if (!$mobile_version) {
    echo '<div id="nav_space">&nbsp;</div>';
    include_partial('nav4list');
}
$format = $sf_data->getRaw('format');
$format_full = in_array('full', $format);
$conditions_statuses = sfConfig::get('mod_outings_conditions_statuses_list');
$access_statuses = sfConfig::get('mod_outings_access_statuses_list');
$glacier_statuses = sfConfig::get('mod_outings_glacier_statuses_list');
$frequentation_statuses = sfConfig::get('mod_outings_frequentation_statuses_list');
$hut_statuses = sfConfig::get('mod_outings_hut_statuses_list');
echo display_content_top('list_content');
echo start_content_tag('outings_content');
if (!isset($items) || count($items) == 0) {
    echo __('there is no %1% to show', array('%1%' => __('outings')));
} else {
    echo '<p class="list_header">' . link_to_outings(__('Show as a list')) . ' &nbsp; ' . link_to_associated_images(__('List all linked images'), 'outings', array('orderby' => 'odate', 'order' => 'desc'));
    if ($show_images) {
        echo '';
        $nb_images = 0;
    }
    echo '</p>';
    $pager_navigation = pager_navigation($pager, array('list_header'));
    echo $pager_navigation;