<?php /** * Used for showing the slider * @package Lesse Lite */ if (empty(lesse_home_slides())) { return; } ?> <div id="lesse-super-slider" class="lesse-super-slider"> <a id="nextslide" class="load-item icon-right-open-big lesse-next"></a> <a id="prevslide" class="load-item icon-left-open-big lesse-prev"></a> <div id="progress-back" class="load-item lesse-progress-bar-wrapper"> <div id="progress-bar" class="lesse-progress-bar"></div> </div> <div id="lesse-super-container" class="lesse-super-container"></div> <div id="slidecaption" class="lesse-slide-content"></div> <ul id="slide-list" class="lesse-cycle-pager"></ul> <div id="supersized-loader" class="lesse-super-loader"></div> </div>
function lesse_page_classes() { $classes = lesse_home_slides() && is_page_template('page-templates/home.php') ? 'lesse-has-slider' : false; echo apply_filters('lesse_page_classes', $classes); }
/** * Enqueue scripts and styles. */ function lesse_scripts() { /*============================== GOOGLE FONTS ===============================*/ wp_enqueue_style('google-font-opensanscondensed', lesse_main_font_url()); /*============================== STYLES ===============================*/ wp_enqueue_style('lesse-fontello', LESSE_TEMP_URI . '/lib/fontello/css/fontello.css'); wp_enqueue_style('lesse-lite-style', get_stylesheet_uri()); /*============================== SCRIPTS ===============================*/ if (LESSE_IS_DEV) { wp_register_script('lesse-slick', LESSE_JS_URI . '/vendor/slick.js', array('jquery'), LESSE_VERSION, true); wp_register_script('lesse-sticky', LESSE_JS_URI . '/vendor/jquery.sticky.js', array('jquery'), LESSE_VERSION, true); wp_register_script('lesse-flexmenu', LESSE_JS_URI . '/vendor/flexmenu.js', array('jquery'), LESSE_VERSION, true); wp_register_script('lesse-circles', LESSE_JS_URI . '/vendor/circles.js', array('jquery'), LESSE_VERSION, true); wp_register_script('lesse-easing', LESSE_JS_URI . '/vendor/jquery.easing.min.js', array('jquery'), LESSE_VERSION, true); wp_register_script('lesse-supersized', LESSE_JS_URI . '/vendor/supersized.js', array('jquery', 'lesse-easing'), LESSE_VERSION, true); wp_register_script('lesse-shutter', LESSE_JS_URI . '/vendor/supersized.shutter.js', array('jquery', 'lesse-supersized'), LESSE_VERSION, true); wp_register_script('lesse-lite-main', LESSE_JS_URI . '/main.js', array('jquery', 'lesse-slick', 'lesse-sticky', 'lesse-flexmenu', 'lesse-circles', 'lesse-shutter'), LESSE_VERSION, true); } else { wp_register_script('lesse-lite-main', LESSE_JS_URI . '/main.min.js', array('jquery'), LESSE_VERSION, true); } wp_enqueue_script('lesse-lite-main'); wp_localize_script('lesse-lite-main', 'lesseVars', array('slides' => lesse_home_slides())); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } }