public function assetsFrontend()
 {
     N2JS::addInline('window.N2SSPRO=' . N2SSPRO . ';', true);
     N2JS::addInline('window.N2SSWHYPRO="' . N2SS3::getWhyProUrl() . '";', true);
     $path = $this->getAssetsPath();
     foreach (glob($path . "/js/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-frontend');
     }
     foreach (glob($path . "/js/animation/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-frontend');
     }
     foreach (glob($path . "/js/controls/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-frontend');
     }
     foreach (glob($path . "/js/layers/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-frontend');
     }
     foreach (glob($path . "/js/responsive/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-frontend');
     }
     foreach (glob($path . "/js/item/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-frontend');
     }
 }
Esempio n. 2
0
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <?php 
function n2GetBox($class, $image, $html, $hasBorder = true)
{
    echo N2Html::tag('div', array('class' => 'n2-box n2-box-title ' . $class . ($hasBorder ? ' n2-box-border' : '')), N2Html::image(N2ImageHelper::fixed('$ss$/admin/images/' . $image)) . N2Html::tag("div", array('class' => 'n2-box-placeholder'), N2Html::tag("table", array(), N2Html::tag("tr", array(), N2Html::tag("td", array('class' => 'n2-box-button'), $html)))));
}
n2GetBox('n2-ss-demo-slider', 'add-demo.png', '<div>' . n2_('100+ Sample slide with one click.') . '</div><a href="#" class="n2-button n2-button-small n2-button-green n2-uc n2-h5">' . n2_('add sample slider') . '</a>');
ob_start();
$this->widget->init("buttonmenu", array("content" => N2Html::tag('div', array('class' => 'n2-button-menu'), N2Html::tag('div', array('class' => 'n2-button-menu-inner n2-border-radius'), N2Html::link(n2_('Import by upload'), $this->appType->router->createUrl(array('sliders/importbyupload')), array('class' => 'n2-h4')) . N2Html::link(n2_('Restore by upload'), $this->appType->router->createUrl(array('sliders/restorebyupload')), array('class' => 'n2-h4')) . N2Html::link(n2_('Import from server'), $this->appType->router->createUrl(array('sliders/importfromserver')), array('class' => 'n2-h4')) . N2Html::link(n2_('Restore from server'), $this->appType->router->createUrl(array('sliders/restorefromserver')), array('class' => 'n2-h4')) . N2Html::link(n2_('Export all slider'), $this->appType->router->createUrl(array('sliders/exportall')), array('class' => 'n2-h4', 'target' => '_blank'))))));
n2GetBox('', 'import-upload.png', '<div>' . n2_('Import slider from different sources.') . '</div>' . N2Html::tag('div', array('class' => 'n2-button n2-button-with-menu n2-button-small n2-button-green'), N2Html::link(n2_('Import by upload'), $this->appType->router->createUrl(array('sliders/importbyupload')), array('class' => 'n2-button-inner n2-uc n2-h5')) . ob_get_clean()));
n2GetBox('n2-box-wide n2-box-overflow n2-box-free', 'free/box2.png', N2Html::tag('div', array(), 'Take your slider to the next level with Smart Slider 3 PRO!') . N2Html::link('See all features', N2SS3::getWhyProUrl(), array('target' => '_blank', 'class' => 'n2-button n2-button-blue n2-button-medium n2-h5 n2-uc')), false);
n2GetBox('', 'Documentation.png', N2Html::tag('div', array(), n2_('Interactive online documentation.')) . N2Html::link(n2_('Read'), 'http://doc.smartslider3.com', array('target' => '_blank', 'class' => 'n2-button n2-button-grey n2-button-small n2-h5 n2-uc')));
n2GetBox('', 'Videos.png', N2Html::tag('div', array(), n2_('Helpful tutorial videos.')) . N2Html::link(n2_('Watch'), 'https://www.youtube.com/watch?v=MKmIwHAFjSU&list=PLSawiBnEUNfvzcI3pBHs4iKcbtMCQU0dB', array('target' => '_blank', 'class' => 'n2-button n2-button-grey n2-button-small n2-h5 n2-uc')));
n2GetBox('', 'Help.png', N2Html::tag('div', array(), n2_('First class support with real people.')) . N2Html::link(n2_('Write'), 'http://smartslider3.com/contact-us/', array('target' => '_blank', 'class' => 'n2-button n2-button-grey n2-button-small n2-h5 n2-uc')));
n2GetBox('', 'Newsletter.png', N2Html::tag('div', array(), n2_('Receive the latest news.')) . N2Html::link(n2_('Subscribe'), 'http://eepurl.com/bDp_8b', array('target' => '_blank', 'class' => 'n2-button n2-button-grey n2-button-small n2-h5 n2-uc')));
n2GetBox('', 'Facebook.png', N2Html::tag('div', array(), n2_('Join the community on Facebook.')) . N2Html::link(n2_('Join'), 'https://www.facebook.com/nextendweb', array('class' => 'n2-button n2-button-grey n2-button-small n2-h5 n2-uc', 'target' => '_blank')));
n2GetBox('', 'Love.png', N2Html::tag('div', array(), n2_('Are you satisfied with Smart Slider 3?')) . N2Html::link(n2_('Yes'), 'http://smartslider3.com/satisfied-customer/', array('target' => '_blank', 'class' => 'n2-button n2-button-green n2-button-small n2-h5 n2-uc')) . N2Html::link(n2_('No'), 'http://smartslider3.com/suggestion/', array('target' => '_blank', 'class' => 'n2-button n2-button-red n2-button-small n2-h5 n2-uc')));
n2GetBox('n2-box-add-license', 'AddLicense.png', '<div>' . n2_('You got the PRO license key?') . '</div><a href="http://doc.smartslider3.com/article/484-updating-the-free-version-to-the-full" target="_blank" class="n2-button n2-button-small n2-button-blue n2-uc n2-h5">' . n2_('Install PRO version') . '</a>');
?>

        <div class="n2-clear"></div>
    </div>

<?php 
if (intval(N2SmartSliderSettings::get('discover', 1)) == 1) {
    N2SmartSliderSettings::set('discover', 0);