<!-- FormPrefix --><? echo $f_AdminCommon; ?>
<?php 
    $first = null; 
    $count = 0;
?><!-- /FormPrefix -->

<!-- RecordTemplate --><? echo $f_AdminButtons; ?>
<?php $count++; ?>
<div class="slide <?php if (!$first) { echo 'active'; $first = true; } ?>" style="background-image:url('<?php echo $inside_admin ? '' : $f_slide_image ?>')">
<div class="slide-text">
    <div class="slide-holder">
        <h1><?php echo $f_slide_title; ?></h1>
        <span class="date">
            <?=$f_date_begin_day . ' ' . $months[(int)$f_date_begin_month] ?>
            <? if ($f_date_end): ?>
                — <?=$f_date_end_day . ' ' . $months[(int)$f_date_end_month] . ' ' . $f_date_end_year ?>
            <? endif ?>
            <br><?=$f_type ?>
        </span>
        <?php echo $f_slide_description; ?>
        <div class="holder">
            <a href="<?=$fullLink ?>" <?=nc_ls_display_link('main-section', 0, 'shortpage') ?> class="more">Узнать подробности</a>
            <a href="<?=$fullLink ?>" <?=nc_ls_display_link('main-section', 0, 'shortpage') ?> class="btn">Я поеду</a>
        </div>
    </div>
</div>
<div class='author'><?=$f_author ?></div>
</div><!-- /RecordTemplate -->

<!-- FormSuffix --><? if ( ! $inside_admin ): ?>
<div class="switcher">
    <ul>
    <?php for ($i = 0; $i < $count; $i++) { ?>
        <li class="<?php echo $i == 0 ? 'active' : ''; ?>"><a href="#"><?php echo $i + 1; ?></a></li>
    <?php } ?>
    </ul>
</div>
<a href="#" class="btn-prev">previous</a>
<a href="#" class="btn-next">next</a>
<? endif ?><!-- /FormSuffix -->