<div id='n2-ss-slide-canvas-container' class='unselectable'>
    <?php
    include dirname(__FILE__) . '/_toolbar.php';
    ?>
    <div id="n2-ss-slide-canvas-container-inner" class="viewport">
        <div class="n2-ss-scrollbar-wrapper n2-ss-scrollbar-light">
            <div class="scrollbar">
                <div class="track">
                    <div class="thumb"><div class="end"></div></div>
                </div>
            </div>
        </div>

        <div class="n2-ss-slider-real-container">
            <?php echo N2Html::tag('div', array(
                'class' => "n2-ss-slider-outer-container overview"
            ), N2Html::tag('div', array(
                'class' => "n2-ss-canvas-slider-container"
            ), $renderedSlider)); ?>
            <div class="n2-clear"></div>
        </div>


    </div>

    <?php
    include(dirname(__FILE__) . '/_add-sidebar.php');

    N2Localization::addJS(array(
        'Add',
        'Clear',
        'in',
        'loop',
        'out',
        'LOOP',
        'Show',
        'Hide'
    ));

    $fillMode = $slider->params->get('backgroundMode', 'fill');
    if ($fillMode == 'fixed') {
        $fillMode = 'fill';
    }

    $options = array(
        'isAddSample'         => $isAddSample,
        'sampleSlidesUrl'     => N2SS3::getSampleSlidesUrl(array(
            'utm_source'   => 'slide-library-frame',
            'utm_medium'   => 'smartslider-' . N2Platform::getPlatform() . '-' . N2SS3::$plan,
            'utm_campaign' => N2SS3::$campaign
        )),
        'slideAsFile'         => intval(N2SmartSliderSettings::get('slide-as-file', 0)),
        'isUploadDisabled'    => defined('N2_IMAGE_UPLOAD_DISABLE'),
        'slideBackgroundMode' => $fillMode
    );
    if (!defined('N2_IMAGE_UPLOAD_DISABLE')) {
        $options['uploadUrl'] = N2Base::getApplication('system')->router->createAjaxUrl(array('browse/upload'));
        $options['uploadDir'] = 'slider' . $slider->sliderId;
    }

    echo N2Html::script("N2R(['EditorSlide'],function(){new N2Classes.EditorSlide('" . $slider->elementId . "', 'slideslide', " . json_encode($options) . ")});");
    ?>
</div>