Example #1
0
function button_rsslist($module)
{
    return link_to(__('RSS list'), get_rsslist_path($module), array('title' => __('Get current list in RSS format'), 'class' => 'action_rss nav_edit', 'rel' => 'nofollow'));
}
Example #2
0
$cda_config = sfConfig::get('app_portals_cda');
$cda_id = isset($cda_config['id']) ? $cda_config['id'] : -1;
if ($action == 'map') {
    $footer_type = 'map';
} elseif ($id == $cda_id) {
    $footer_type = 'cda';
} else {
    $footer_type = 'normal';
    // alpine club logo is included by css, but only in en
    if ($lang === 'en') {
        use_stylesheet('/static/css/ac');
    }
}
if ($sf_context->getActionName() == 'list') {
    use_helper('Button');
    $rss = get_rsslist_path($module);
} else {
    $rss = $id ? "@document_feed?module={$module}&id={$id}&lang={$lang}" : "@feed?module={$module}&lang={$lang}";
}
use_helper('MyMinify', 'MetaLink');
$static_base_url = sfConfig::get('app_static_url');
$response = sfContext::getInstance()->getResponse();
?>
<!doctype html>
<html lang="<?php 
echo $lang_code;
?>
" data-static-url="<?php 
echo sfConfig::get('app_static_url');
?>
">