Actions

Source Code of This Project

/apps/frontend/modules/news/templates/_colOne.php

<div id="logo">
    <h1><?php echo get_response_meta('title') ?></h1>
    <h2><?php echo get_response_meta('description') ?></h2>
</div>

<div class="box" style="margin-top: -20px;">
    <h3>Navigation</h3>
    <ul class="bottom itemsNav">
        <?php foreach ($newsList as $num => $news): ?>
            <?php $selected = ((true == $sf_context->get('scrollSet')) and $num == 0) ? 'first curr ui-corner-all' : '' ?>
            <li class="<?php echo $selected ?>" >
            <?php if (true == $sf_context->get('scrollSet')): ?>
                <?php echo truncate_text($news->getTitle(), 31, '...', true) ?>
            <?php else: ?>
                <a href="#<?php echo $news->getTitle()?>"><?php echo truncate_text($news->getTitle(), 31, '...', true) ?></a>
            <?php endif; ?>
            </li>
        <?php endforeach; ?>
    </ul>
</div>

<div class="box">
    <h3>Filter</h3>
    <?php include_stylesheets_for_form($form) ?>
    <?php include_javascripts_for_form($form) ?>
    <form action="<?php echo url_for('@news_index') ?>" method="get" class="newsFiler">
        <ul class="bottom">
            <?php if($form->hasGlobalErrors()): ?>
                <li><?php echo $form->renderGlobalErrors() ?></li>
            <?php endif; ?>
            <li>
                <?php echo $form['date_range']->renderLabel() ?>:<div class="clear"></div>
                <?php echo $form['date_range'] ?><div class="clear"></div>
                <?php echo $form['date_range']->renderError() ?><div class="clear"></div>
            </li>
            <li>
                <?php echo $form['news_providers']->renderLabel() ?>:<div class="clear"></div>
                <?php echo $form['news_providers'] ?><div class="clear"></div>
                <?php echo $form['news_providers']->renderError() ?><div class="clear"></div>
            </li>
            <li><input type="submit" value="Submit filter" /></li>
        </ul>
    </form>
</div>

<div class="box">
    <h3>Settings</h3>
    <ul class="bottom">
        <li><?php include_partial('global/scrollCheckBox') ?></li>
    </ul>
</div>