/web/app/themes/salient/functions.php
PHP | 6143 lines | 4171 code | 1592 blank | 380 comment | 1515 complexity | 86b7cd6d5001ee9e1c952845cf7b4cdd MD5 | raw file
Possible License(s): MIT, Apache-2.0
Large files files are truncated, but you can click here to view the full file
- <?php
-
- #-----------------------------------------------------------------#
- # Default theme constants
- #-----------------------------------------------------------------#
- define('NECTAR_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/nectar/');
- define('NECTAR_THEME_NAME', 'salient');
-
- #-----------------------------------------------------------------#
- # Load text domain
- #-----------------------------------------------------------------#
-
- add_action('after_setup_theme', 'lang_setup');
- function lang_setup(){
-
- load_theme_textdomain(NECTAR_THEME_NAME, get_template_directory() . '/lang');
-
- }
-
- #-----------------------------------------------------------------#
- # Register/Enqueue JS
- #-----------------------------------------------------------------#
-
- $options = get_nectar_theme_options();
- $nectar_get_template_directory_uri = get_template_directory_uri();
-
- function nectar_register_js() {
-
- global $options;
- global $post;
- global $nectar_get_template_directory_uri;
-
- if (!is_admin()) {
-
- // Register
- wp_register_script('modernizer', $nectar_get_template_directory_uri . '/js/modernizr.js', 'jquery', '2.6.2', TRUE);
- wp_register_script('respond', $nectar_get_template_directory_uri . '/js/respond.js', 'jquery', '1.1', TRUE);
- wp_register_script('superfish', $nectar_get_template_directory_uri . '/js/superfish.js', 'jquery', '1.4.8', TRUE);
- wp_register_script('respond', $nectar_get_template_directory_uri . '/js/respond.js', 'jquery', '1.1',TRUE);
- wp_register_script('touchswipe', $nectar_get_template_directory_uri . '/js/touchswipe.min.js', 'jquery', '1.0', TRUE);
- wp_register_script('flexslider', $nectar_get_template_directory_uri . '/js/flexslider.min.js', array('jquery', 'touchswipe'), '2.1', TRUE);
- wp_register_script('orbit', $nectar_get_template_directory_uri . '/js/orbit.js', 'jquery', '1.4', TRUE);
- wp_register_script('flickity', $nectar_get_template_directory_uri . '/js/flickity.min.js', 'jquery', '1.1.1', TRUE);
- wp_register_script('nicescroll', $nectar_get_template_directory_uri . '/js/nicescroll.js', 'jquery', '3.5.4' ,TRUE);
- wp_register_script('sticky', $nectar_get_template_directory_uri . '/js/sticky.js', 'jquery', '8.5', TRUE);
- wp_register_script('magnific', $nectar_get_template_directory_uri . '/js/magnific.js', 'jquery', '7.0.1', TRUE);
- wp_register_script('fancyBox', $nectar_get_template_directory_uri . '/js/jquery.fancybox.min.js', 'jquery', '7.0.1', TRUE);
- wp_register_script('nectar_parallax', $nectar_get_template_directory_uri . '/js/parallax.js', 'jquery', '1.0', TRUE);
- wp_register_script('isotope', $nectar_get_template_directory_uri . '/js/isotope.min.js', 'jquery', '7.6' ,TRUE);
- wp_register_script('select2', $nectar_get_template_directory_uri . '/js/select2.min.js', 'jquery', '3.5.2' ,TRUE);
- wp_register_script('nectarSlider', $nectar_get_template_directory_uri . '/js/nectar-slider.js', 'jquery', '8.5.5', TRUE);
- wp_register_script('iosSlider', $nectar_get_template_directory_uri . '/js/jquery.iosslider.min.js', 'jquery', '7.5', TRUE);
- wp_register_script('fullPage', $nectar_get_template_directory_uri . '/js/jquery.fullPage.min.js', 'jquery', '8.5.2', TRUE);
- wp_register_script('vivus', $nectar_get_template_directory_uri . '/js/vivus.min.js', 'jquery', '6.0.1', TRUE);
- wp_register_script('nectarParticles', $nectar_get_template_directory_uri . '/js/nectar-particles.js', 'jquery', '8.5.5', TRUE);
- wp_register_script('ajaxify', $nectar_get_template_directory_uri . '/js/ajaxify.js', 'jquery', '7.0', TRUE);
- wp_register_script('caroufredsel', $nectar_get_template_directory_uri . '/js/caroufredsel.min.js', array('jquery', 'touchswipe'), '7.0.1', TRUE);
- wp_register_script('owl_carousel', $nectar_get_template_directory_uri . '/js/owl.carousel.min.js', 'jquery', '1.3.3', TRUE);
- wp_register_script('midnight', $nectar_get_template_directory_uri . '/js/midnight.js', 'jquery', '1.0', TRUE);
- wp_register_script('twentytwenty', $nectar_get_template_directory_uri . '/js/jquery.twentytwenty.js', 'jquery', '1.0', TRUE);
- wp_register_script('stickykit', $nectar_get_template_directory_uri . '/js/stickkit.js', 'jquery', '1.0', TRUE);
-
- if ( floatval(get_bloginfo('version')) < "3.6" ) {
- wp_register_script('jplayer', $nectar_get_template_directory_uri . '/js/jplayer.min.js', 'jquery', '2.1', TRUE);
- }
- wp_register_script('nectarFrontend', $nectar_get_template_directory_uri . '/js/init.js', array('jquery', 'superfish'), '8.5.5', TRUE);
-
- // Dequeue
- $lightbox_script = (!empty($options['lightbox_script'])) ? $options['lightbox_script'] : 'magnific';
- if($lightbox_script == 'pretty_photo') { $lightbox_script = 'magnific'; }
-
- // Enqueue
- wp_enqueue_script('jquery');
- wp_enqueue_script('modernizer');
-
- ////only load for IE8
- if(preg_match('/(?i)msie [2-8]/',$_SERVER['HTTP_USER_AGENT'])) {
- wp_enqueue_script('respond');
- }
-
- $portfolio_extra_content = (isset($post->ID)) ? get_post_meta($post->ID, '_nectar_portfolio_extra_content', true) : '';
- $post_content = (isset($post->post_content)) ? $post->post_content : '';
-
- if(!empty($options['smooth-scrolling']) && $options['smooth-scrolling'] == '1') wp_enqueue_script('nicescroll');
- if(!empty($options['portfolio_sidebar_follow']) && $options['portfolio_sidebar_follow'] == '1' && is_singular('portfolio') ) wp_enqueue_script('sticky');
-
- if ($lightbox_script == 'magnific') {
- wp_enqueue_script('magnific');
- } elseif($lightbox_script == 'fancybox') {
- wp_enqueue_script('fancyBox');
- }
-
- if(stripos( $post_content, 'nectar_portfolio') !== FALSE || stripos( $portfolio_extra_content, 'nectar_portfolio') !== FALSE ||
- stripos( $post_content, 'nectar_blog') !== FALSE || stripos( $portfolio_extra_content, 'nectar_blog') !== FALSE ||
- stripos( $post_content, 'vc_gallery type="image_grid"') !== FALSE || stripos( $portfolio_extra_content, 'vc_gallery type="image_grid"') !== FALSE ||
- stripos( $post_content, "vc_gallery type='image_grid'") !== FALSE || stripos( $portfolio_extra_content, "vc_gallery type='image_grid'") !== FALSE ||
- stripos( $post_content, 'type="image_grid"') !== FALSE || stripos( $portfolio_extra_content, 'type="image_grid"') !== FALSE ||
- stripos( $post_content, "type='image_grid'") !== FALSE || stripos( $portfolio_extra_content, "type='image_grid'") !== FALSE ||
- is_page_template('template-portfolio.php') || is_archive() || is_home() || is_search()) {
-
- wp_enqueue_script('isotope');
- }
-
-
- $page_full_screen_rows = (isset($post->ID)) ? get_post_meta($post->ID, '_nectar_full_screen_rows', true) : '';
- if($page_full_screen_rows == 'on') wp_enqueue_script('fullPage');
-
- if ( floatval(get_bloginfo('version')) < "3.6" ) {
- wp_enqueue_script('jplayer');
- }
-
- if(stripos( $post_content, '[recent_projects') !== FALSE || stripos( $portfolio_extra_content, '[recent_projects') !== FALSE
- || stripos($post_content, '[carousel') !== FALSE || stripos( $portfolio_extra_content, '[carousel') !== FALSE
- || stripos($post_content, 'carousel="true"') !== FALSE || stripos( $portfolio_extra_content, 'carousel="true"') !== FALSE
- || stripos($post_content, 'carousel="1"') !== FALSE || stripos( $portfolio_extra_content, 'carousel="1"') !== FALSE
- || is_page_template('template-home-1.php')) {
- wp_enqueue_script('caroufredsel');
- }
-
- if( stripos( $post_content, 'script="owl_carousel"') !== FALSE || stripos( $portfolio_extra_content, 'script="owl_carousel"') !== FALSE ) {
- wp_enqueue_script('owl_carousel');
- }
-
- $nectar_theme_skin = (!empty($options['theme-skin'])) ? $options['theme-skin'] : 'original' ;
-
- if(!empty($options['header-permanent-transparent']) && $options['header-permanent-transparent'] == '1' && $nectar_theme_skin != 'material') {
- wp_enqueue_script('midnight');
- }
-
- wp_enqueue_script('nectarFrontend');
-
- $bg_type = (isset($post->ID)) ? get_post_meta($post->ID, '_nectar_slider_bg_type', true) : '';
- if(is_singular('post') && (!empty($options['blog_next_post_link']) && $options['blog_next_post_link'] == '1' && !empty($options['blog_next_post_link_style']) && $options['blog_next_post_link_style'] == 'fullwidth_next_only') ||
- stripos( $post_content, 'project_style="3"') !== FALSE || stripos( $portfolio_extra_content, 'project_style="3"') !== FALSE ||
- stripos( $post_content, 'project_style="5"') !== FALSE || stripos( $portfolio_extra_content, 'project_style="5"') !== FALSE ||
- stripos( $post_content, 'gallery_style="3"') !== FALSE || stripos( $portfolio_extra_content, 'gallery_style="3"') !== FALSE ||
- stripos( $post_content, 'gallery_style="5"') !== FALSE || stripos( $portfolio_extra_content, 'gallery_style="5"') !== FALSE ||
- stripos( $post_content, "project_style='3'") !== FALSE || stripos( $portfolio_extra_content, "project_style='3'") !== FALSE ||
- stripos( $post_content, "project_style='5'") !== FALSE || stripos( $portfolio_extra_content, "project_style='5'") !== FALSE ||
- stripos( $post_content, "gallery_style='3'") !== FALSE || stripos( $portfolio_extra_content, "gallery_style='3'") !== FALSE ||
- is_page_template('template-portfolio.php') || $bg_type == 'particle_bg' || (get_post_type() == 'portfolio' && is_archive()) ) {
-
- }
-
- $transition_method = (!empty($options['transition-method'])) ? $options['transition-method'] : 'ajax';
- if(!empty($options['ajax-page-loading']) && $options['ajax-page-loading'] == '1' && $transition_method == 'ajax') {
- wp_enqueue_script('nectarSlider');
- wp_enqueue_script('fullPage');
- wp_enqueue_script('ajaxify');
- }
- else if(!empty($options['ajax-page-loading']) && $options['ajax-page-loading'] == '1' && $transition_method == 'standard') {
- //simulated ajax workaround will go here
- }
-
-
-
- }
- }
-
- add_action('wp_enqueue_scripts', 'nectar_register_js');
-
-
-
- function nectar_page_specific_js() {
-
- global $post;
- global $options;
- global $nectar_get_template_directory_uri;
-
- if(!is_object($post)) $post = (object) array('post_content'=>' ', 'ID' => ' ');
- $template_name = get_post_meta( $post->ID, '_wp_page_template', true );
-
- //home
- if ( is_page_template('template-home-1.php') || $template_name == 'salient/template-home-1.php' ||
- is_page_template('template-home-2.php') || $template_name == 'salient/template-home-2.php' ||
- is_page_template('template-home-3.php') || $template_name == 'salient/template-home-3.php' ||
- is_page_template('template-home-4.php') || $template_name == 'salient/template-home-4.php') {
- wp_enqueue_script('orbit');
- wp_enqueue_script('touchswipe');
- }
-
- ////infinite scroll
- $portfolio_extra_content = get_post_meta($post->ID, '_nectar_portfolio_extra_content', true);
- $post_content = $post->post_content;
- $posttype = get_post_type($post);
-
- if(stripos( $post->post_content, '[nectar_blog') !== FALSE || stripos( $portfolio_extra_content, '[nectar_blog') !== FALSE
- || stripos( $post->post_content, 'pagination_type="infinite_scroll"') !== FALSE || stripos( $portfolio_extra_content, 'pagination_type="infinite_scroll"') !== FALSE
- || (!empty($options['blog_pagination_type']) && $options['blog_pagination_type'] == 'infinite_scroll')
- || (!empty($options['portfolio_pagination_type']) && $options['portfolio_pagination_type'] == 'infinite_scroll')
- || (((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_tag())) && ( $posttype == 'post') && (!is_singular())) ) {
-
-
- wp_register_script('infinite_scroll', $nectar_get_template_directory_uri . '/js/infinitescroll.js', array('jquery'), '1.1', TRUE);
-
- wp_enqueue_script('infinite_scroll');
-
- if ( floatval(get_bloginfo('version')) >= "3.6" ) {
- wp_enqueue_script('wp-mediaelement');
- wp_enqueue_style('wp-mediaelement');
- }
-
- if (class_exists('WPBakeryVisualComposerAbstract') && defined( 'SALIENT_VC_ACTIVE')) {
- wp_register_script('progressCircle', vc_asset_url('lib/bower/progress-circle/ProgressCircle.min.js'));
- wp_register_script('vc_pie', vc_asset_url('lib/vc_chart/jquery.vc_chart.min.js'), array('jquery', 'progressCircle'));
- //wp_enqueue_script('vc_pie');
- }
-
- wp_enqueue_script('flickity');
-
- wp_enqueue_script('flexslider');
-
- wp_enqueue_script('stickykit');
-
- }
-
- $enable_ss = (!empty($options['blog_enable_ss'])) ? $options['blog_enable_ss'] : 'false';
-
- if( ($enable_ss == '1' && is_single() && $posttype == 'post') ||
- stripos( $post->post_content, '[vc_widget_sidebar') !== FALSE || stripos( $portfolio_extra_content, '[vc_widget_sidebar') !== FALSE ) {
- wp_enqueue_script('stickykit');
- }
-
-
- //nectarSlider
- if(stripos( $post_content, '[nectar_slider') !== FALSE || stripos( $portfolio_extra_content, '[nectar_slider') !== FALSE
- || stripos($post_content, 'type="nectarslider_style"') !== FALSE || stripos( $portfolio_extra_content, 'type="nectarslider_style"') !== FALSE) {
-
- wp_enqueue_script('nectarSlider');
- }
-
- //touch swipe
- $box_roll = get_post_meta($post->ID, '_nectar_header_box_roll', true);
- wp_enqueue_script('touchswipe');
-
-
- //flickity
- if(stripos($post_content, '[vc_gallery type="flickity"') !== FALSE || stripos( $portfolio_extra_content, '[vc_gallery type="flickity"') !== FALSE
- || stripos($post_content, 'style="multiple_visible"') !== FALSE || stripos( $portfolio_extra_content, 'style="multiple_visible"') !== FALSE
- || stripos($post_content, 'style="slider_multiple_visible"') !== FALSE || stripos( $portfolio_extra_content, 'style="slider_multiple_visible"') !== FALSE
- || stripos($post_content, 'script="flickity"') !== FALSE || stripos( $portfolio_extra_content, 'script="flickity"') !== FALSE
- || stripos($post_content, 'style="multiple_visible_minimal"') !== FALSE || stripos( $portfolio_extra_content, 'style="multiple_visible_minimal"') !== FALSE
- || stripos($post_content, 'style="slider"') !== FALSE || stripos( $portfolio_extra_content, 'style="slider"') !== FALSE) {
-
- wp_enqueue_script('flickity');
- }
-
- //fancy select
- $fancy_rcs = (!empty($options['form-fancy-select'])) ? $options['form-fancy-select'] : 'default';
- if($fancy_rcs == '1') {
- wp_enqueue_script('select2');
- }
-
- //svg icon animation
- if(strpos($post_content,'.svg') !== false || strpos($portfolio_extra_content,'.svg') !== false) {
- wp_enqueue_script('vivus');
-
- }
-
-
- //comments
- if ( is_singular() && comments_open() && get_option('thread_comments') )
- wp_enqueue_script('comment-reply');
-
- }
-
- add_action('wp_enqueue_scripts', 'nectar_page_specific_js');
-
-
- add_action( 'wp_head', 'nectar_javascript_check' );
- function nectar_javascript_check() {
- echo '<script type="text/javascript"> var root = document.getElementsByTagName( "html" )[0]; root.setAttribute( "class", "js" ); </script>';
- }
-
-
- if (!function_exists('remove_wp_open_sans')) :
- function remove_wp_open_sans() {
- wp_deregister_style( 'open-sans' );
- wp_register_style( 'open-sans', false );
- }
- add_action('wp_enqueue_scripts', 'remove_wp_open_sans');
-
- endif;
-
-
- #-----------------------------------------------------------------#
- # Register/Enqueue CSS
- #-----------------------------------------------------------------#
-
-
- //Main Styles
- function nectar_main_styles() {
-
- global $nectar_get_template_directory_uri;
-
- // Register
- wp_register_style('rgs', $nectar_get_template_directory_uri . '/css/rgs.css', '', '8.5.4');
- wp_register_style('orbit', $nectar_get_template_directory_uri . '/css/orbit.css');
- wp_register_style('twentytwenty', $nectar_get_template_directory_uri . '/css/twentytwenty.css');
- wp_register_style('woocommerce', $nectar_get_template_directory_uri . '/css/woocommerce.css','', '8.5.4');
- wp_register_style('font-awesome', $nectar_get_template_directory_uri . '/css/font-awesome.min.css', '', '4.6.3');
- wp_register_style('iconsmind', $nectar_get_template_directory_uri . '/css/iconsmind.css', '', '7.6');
- wp_register_style('linea', $nectar_get_template_directory_uri . '/css/fonts/svg/font/arrows_styles.css');
- wp_register_style('fullpage', $nectar_get_template_directory_uri . '/css/fullpage.css', '', '8.5.4');
- wp_register_style('nectarslider', $nectar_get_template_directory_uri . '/css/nectar-slider.css', '', '8.5.0');
- wp_register_style("main-styles", get_stylesheet_directory_uri() . "/style.css", '', '8.5.5');
- wp_register_style("nectar-portfolio", $nectar_get_template_directory_uri . "/css/portfolio.css", '', '8.5.5');
- wp_register_style("magnific", $nectar_get_template_directory_uri . "/css/magnific.css", '', '6.2');
- wp_register_style("fancyBox", $nectar_get_template_directory_uri . "/css/jquery.fancybox.css", '', '9.0');
- wp_register_style("responsive", $nectar_get_template_directory_uri . "/css/responsive.css", '', '8.5.5');
- wp_register_style("select2", $nectar_get_template_directory_uri . "/css/select2.css", '', '6.2');
- wp_register_style("non-responsive", $nectar_get_template_directory_uri . "/css/non-responsive.css");
- wp_register_style("skin-ascend", $nectar_get_template_directory_uri . "/css/ascend.css", '', '8.5.4');
- wp_register_style("skin-material", $nectar_get_template_directory_uri . "/css/skin-material.css", '', '8.5.4');
- wp_register_style("box-roll", $nectar_get_template_directory_uri . "/css/box-roll.css");
- wp_register_style("nectar-ie8", $nectar_get_template_directory_uri . "/css/ie8.css");
-
-
- global $options;
-
- $lightbox_script = (!empty($options['lightbox_script'])) ? $options['lightbox_script'] : 'magnific';
- if($lightbox_script == 'pretty_photo') { $lightbox_script = 'magnific'; }
-
- // Enqueue
- wp_enqueue_style('rgs');
- wp_enqueue_style('font-awesome');
- wp_enqueue_style('main-styles');
-
- if ($lightbox_script == 'magnific') {
- wp_enqueue_style('magnific');
- } else if($lightbox_script == 'fancybox') {
- wp_enqueue_style('fancyBox');
- }
- wp_enqueue_style('nectar-ie8');
-
- //responsive
-
- if( !empty($options['responsive']) && $options['responsive'] == 1 ) {
- wp_enqueue_style('responsive');
- } else {
- wp_enqueue_style('non-responsive');
-
- add_filter('body_class','salient_non_responsive');
- function salient_non_responsive($classes) {
- // add 'class-name' to the $classes array
- $classes[] = 'salient_non_responsive';
- // return the $classes array
- return $classes;
- }
-
- }
-
- ////Default fonts with extended chars
- global $options;
- if(!empty($options['extended-theme-font']) && $options['extended-theme-font'] != '0') {
- wp_enqueue_style( "options_typography_OpenSans_ext", "https://fonts.googleapis.com/css?family=Open+Sans%3A300%2C400%2C600%2C700&subset=latin%2Clatin-ext", false, null, 'all' );
-
- }
-
- //IE
- global $wp_styles;
- $wp_styles->add_data("nectar-ie8", 'conditional', 'lt IE 9');
-
- //ajaxify needed
- $transition_method = (!empty($options['transition-method'])) ? $options['transition-method'] : 'ajax';
- if(!empty($options['ajax-page-loading']) && $options['ajax-page-loading'] == '1' && $transition_method == 'ajax') {
- wp_enqueue_style('wp-mediaelement');
- wp_enqueue_style('fullpage');
- wp_enqueue_style('nectarslider');
- wp_enqueue_style('nectar-portfolio');
- }
-
-
-
- }
-
- add_action('wp_enqueue_scripts', 'nectar_main_styles');
-
-
- function nectar_page_sepcific_styles() {
- global $post;
- if(!is_object($post)) $post = (object) array('post_content'=>' ', 'ID' => ' ');
- $portfolio_extra_content = get_post_meta($post->ID, '_nectar_portfolio_extra_content', true);
- $post_content = $post->post_content;
-
- //home
- if ( is_page_template('template-home-1.php') || is_page_template('template-home-2.php') || is_page_template('template-home-3.php') || is_page_template('template-home-4.php')) {
- wp_enqueue_style('orbit');
- }
-
- //full page
- $page_full_screen_rows = (isset($post->ID)) ? get_post_meta($post->ID, '_nectar_full_screen_rows', true) : '';
- if($page_full_screen_rows == 'on') wp_enqueue_style('fullpage');
-
- //nectar slider
- if(stripos( $post_content, '[nectar_slider') !== FALSE || stripos( $portfolio_extra_content, '[nectar_slider') !== FALSE
- || stripos($post_content, 'type="nectarslider_style"') !== FALSE || stripos( $portfolio_extra_content, 'type="nectarslider_style"') !== FALSE) {
-
- wp_enqueue_style('nectarslider');
- }
-
- //portfolio
- if(stripos( $post_content, 'nectar_portfolio') !== FALSE || stripos( $portfolio_extra_content, 'nectar_portfolio') !== FALSE ||
- stripos( $post_content, 'recent_projects') !== FALSE || stripos( $portfolio_extra_content, 'recent_projects') !== FALSE ||
- stripos( $post_content, 'type="image_grid"') !== FALSE || stripos( $portfolio_extra_content, 'type="image_grid"') !== FALSE ||
- stripos( $post_content, "type='image_grid'") !== FALSE || stripos( $portfolio_extra_content, "type='image_grid'") !== FALSE ||
- is_page_template('template-portfolio.php') || is_post_type_archive('portfolio') || is_singular('portfolio') || is_tax('project-attributes') || is_tax('project-type')) {
-
- wp_enqueue_style('nectar-portfolio');
- }
-
- //WooCommerce
- if ( function_exists( 'is_woocommerce' ) ) {
- wp_enqueue_style('woocommerce');
- }
-
- if(strpos($post_content,'.svg') !== false && strpos($post_content,'icon color="Extra-Color-Gradient-1"') !== false ||
- strpos($post_content,'.svg') !== false && strpos($post_content,'icon color="Extra-Color-Gradient-2"') !== false ||
- strpos($post_content,'.svg') !== false && strpos($post_content,"icon color='Extra-Color-Gradient-1'") !== false ||
- strpos($post_content,'.svg') !== false && strpos($post_content,"icon color='Extra-Color-Gradient-2'") !== false ||
- strpos($portfolio_extra_content,'.svg') !== false && strpos($portfolio_extra_content,'icon color="Extra-Color-Gradient-1"') !== false ||
- strpos($portfolio_extra_content,'.svg') !== false && strpos($portfolio_extra_content,'icon color="Extra-Color-Gradient-2"') !== false ||
- strpos($portfolio_extra_content,'.svg') !== false && strpos($portfolio_extra_content,"icon color='Extra-Color-Gradient-1'") !== false ||
- strpos($portfolio_extra_content,'.svg') !== false && strpos($portfolio_extra_content,"icon color='Extra-Color-Gradient-2'") !== false ) {
- wp_enqueue_style('linea');
- }
-
- if(strpos($post_content,'iconsmind-') !== false ||
- strpos($portfolio_extra_content,'iconsmind-') !== false) {
- wp_enqueue_style('iconsmind');
- }
-
- global $options;
- $fancy_rcs = (!empty($options['form-fancy-select'])) ? $options['form-fancy-select'] : 'default';
- if($fancy_rcs == '1') {
- wp_enqueue_style('select2');
- }
-
- }
-
- add_action('wp_enqueue_scripts', 'nectar_page_sepcific_styles');
-
-
- $page_transition_bg = (!empty($options['transition-bg-color'])) ? $options['transition-bg-color'] : '#ffffff';
- $page_transition_bg_2 = (!empty($options['transition-bg-color-2'])) ? $options['transition-bg-color-2'] : $page_transition_bg;
- $page_transition_effect = (!empty($options['transition-effect'])) ? $options['transition-effect'] : 'standard';
-
- $transition_method = (!empty($options['transition-method'])) ? $options['transition-method'] : 'ajax';
- function nectar_page_transition_bg_fix() {
- global $page_transition_bg;
- global $page_transition_bg_2;
- global $page_transition_effect;
-
- //set html bg color to match preloading screen to avoid white flash in chrome
- if($page_transition_effect == 'horizontal_swipe') {
- $css = "html:not(.page-trans-loaded) { background-color: ".$page_transition_bg_2."; }";
- } else {
- $css = "html:not(.page-trans-loaded) { background-color: ".$page_transition_bg."; }";
- }
-
- wp_add_inline_style( 'main-styles', $css );
-
- }
-
- if(!empty($options['ajax-page-loading']) && $options['ajax-page-loading'] == '1' && $transition_method == 'standard') add_action('wp_enqueue_scripts', 'nectar_page_transition_bg_fix');
-
-
- #-----------------------------------------------------------------#
- # Dynamic Styles
- #-----------------------------------------------------------------#
-
-
-
- function nectar_quick_minify( $css ) {
-
- $css = preg_replace( '/\s+/', ' ', $css );
-
- $css = preg_replace( '/\/\*[^\!](.*?)\*\//', '', $css );
-
- $css = preg_replace( '/(,|:|;|\{|}) /', '$1', $css );
-
- $css = preg_replace( '/ (,|;|\{|})/', '$1', $css );
-
- $css = preg_replace( '/(:| )0\.([0-9]+)(%|em|ex|px|in|cm|mm|pt|pc)/i', '${1}.${2}${3}', $css );
-
- $css = preg_replace( '/(:| )(\.?)0(%|em|ex|px|in|cm|mm|pt|pc)/i', '${1}0', $css );
-
- return trim( $css );
-
- }
-
- if (!function_exists('nectar_colors_css_output')) {
- function nectar_colors_css_output(){
- include('css/colors.php');
- }
- }
- if (!function_exists('nectar_custom_css_output')) {
- function nectar_custom_css_output(){
- include('css/custom.php');
- }
- }
-
- if (!function_exists('nectar_fonts_output')) {
- function nectar_fonts_output(){
- include('css/fonts.php');
- }
- }
-
-
- if (!function_exists('nectar_page_specific_dynamic')) {
- function nectar_page_specific_dynamic(){
-
- ob_start();
-
- echo '<style type="text/css">';
-
- ////page header
- global $post;
- global $options;
-
- $font_color = get_post_meta($post->ID, '_nectar_header_font_color', true);
- if(!empty($font_color)) {
- echo '#page-header-bg h1, #page-header-bg .subheader, .nectar-box-roll .overlaid-content h1, .nectar-box-roll .overlaid-content .subheader, .page-header-no-bg h1, body .section-title #portfolio-nav a:hover i, .page-header-no-bg span, #page-header-bg #portfolio-nav a i, #page-header-bg span { color: '. $font_color .'!important; } ';
- echo 'body #page-header-bg a.pinterest-share i, body #page-header-bg a.facebook-share i, body #page-header-bg .twitter-share i, body #page-header-bg .google-plus-share i,
- body #page-header-bg .icon-salient-heart, body #page-header-bg .icon-salient-heart-2 { color: '. $font_color .'; }';
- } echo 'body .section-title #portfolio-nav a:hover i { opacity: 0.75; }';
-
- $logo_height = (!empty($options['use-logo']) && !empty($options['logo-height'])) ? intval($options['logo-height']) : 30;
- $header_padding = (!empty($options['header-padding'])) ? intval($options['header-padding']) : 28;
- $nav_font_size = (!empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && !empty($options['navigation_font_size']) && $options['navigation_font_size'] != '-') ? intval(substr($options['navigation_font_size'],0,-2) *1.4 ) : 20;
- $dd_indicator_height = (!empty($options['use-custom-fonts']) && $options['use-custom-fonts'] == 1 && !empty($options['navigation_font_size']) && $options['navigation_font_size'] != '-') ? intval(substr($options['navigation_font_size'],0,-2)) -1 : 20;
-
- $padding_top = ceil(($logo_height/2)) - ceil(($nav_font_size/2));
- $padding_bottom = (ceil(($logo_height/2)) - ceil(($nav_font_size/2))) + $header_padding;
-
- $search_padding_top = ceil(($logo_height/2)) - ceil(21/2) +1;
- $search_padding_bottom = (ceil(($logo_height/2)) - ceil(21/2));
-
- $using_secondary = (!empty($options['header_layout'])) ? $options['header_layout'] : ' ';
-
- if($using_secondary == 'header_with_secondary'){
- $header_space = $logo_height + ($header_padding*2) + 34;
- }
- else {
- $header_space = $logo_height + ($header_padding*2);
- }
-
- //woo product title
- $wooSocial = ( !empty($options['woo_social']) && $options['woo_social'] == 1 ) ? '1' : '0';
- $wooSocialCount = 0;
- $wooProductTitlePadding = 0;
-
- if($wooSocial == '1') {
- if(!empty($options['woo-facebook-sharing']) && $options['woo-facebook-sharing'] == 1) $wooSocialCount++;
- if(!empty($options['woo-twitter-sharing']) && $options['woo-twitter-sharing'] == 1) $wooSocialCount++;
- if(!empty($options['woo-pinterest-sharing']) && $options['woo-pinterest-sharing'] == 1) $wooSocialCount++;
- if(!empty($options['woo-google-plus-sharing']) && $options['woo-google-plus-sharing'] == 1) $wooSocialCount++;
- if(!empty($options['woo-linkedin-sharing']) && $options['woo-linkedin-sharing'] == 1) $wooSocialCount++;
-
- $wooProductTitlePadding = ($wooSocialCount*52) + 50;
- }
-
-
-
- //hide scrollbar during loading if using fullpage option
- $page_full_screen_rows = (isset($post->ID)) ? get_post_meta($post->ID, '_nectar_full_screen_rows', true) : '';
- if($page_full_screen_rows == 'on') {
-
- echo 'body,html { overflow: hidden; height: 100%;}';
- }
- //body border
- $body_border = (!empty($options['body-border'])) ? $options['body-border'] : 'off';
- $body_border_size = (!empty($options['body-border-size'])) ? $options['body-border-size'] : '20';
- $body_border_color = (!empty($options['body-border-color'])) ? $options['body-border-color'] : '#ffffff';
- if($body_border == '1') {
-
- $headerColorScheme = (!empty($options['header-color'])) ? $options['header-color'] : 'light';
- $userSetBG = (!empty($options['header-background-color']) && $headerColorScheme == 'custom') ? $options['header-background-color'] : '#ffffff';
- $activate_transparency = using_page_header($post->ID);
-
- if(empty($options['transparent-header']))
- $activate_transparency = 'false';
-
- echo '@media only screen and (min-width: 690px) {
- body {padding-bottom: '.$body_border_size.'px; }
- .container-wrap { padding-right: '.$body_border_size.'px; padding-left: '.$body_border_size.'px; padding-bottom: '.$body_border_size.'px;}
- .midnightInner, #footer-outer[data-full-width="1"] { padding-right: '.$body_border_size.'px; padding-left: '.$body_border_size.'px; }
- #slide-out-widget-area.fullscreen .bottom-text[data-has-desktop-social="false"], #slide-out-widget-area.fullscreen-alt .bottom-text[data-has-desktop-social="false"] {bottom: '. intVal($body_border_size + 28) .'px;}
- #header-outer, body #header-outer-bg-only {box-shadow: none; -webkit-box-shadow: none;}
- .slide-out-hover-icon-effect.small, .slide-out-hover-icon-effect:not(.small) {margin-top: '.$body_border_size.'px; margin-right: '.$body_border_size.'px;}
- #slide-out-widget-area-bg.fullscreen-alt { padding: '.$body_border_size.'px; }
- #slide-out-widget-area.slide-out-from-right-hover {margin-right: '.$body_border_size.'px;}
- .orbit-wrapper div.slider-nav span.left, .swiper-container .slider-prev { margin-left: '.$body_border_size.'px;} .orbit-wrapper div.slider-nav span.right, .swiper-container .slider-next { margin-right: '.$body_border_size.'px;}
- .admin-bar #slide-out-widget-area-bg.fullscreen-alt { padding-top: '. intval($body_border_size+32) .'px; }
- #header-outer, body.ascend #search-outer, #header-secondary-outer, #slide-out-widget-area.slide-out-from-right, #slide-out-widget-area.fullscreen .bottom-text { margin-top: '.$body_border_size.'px; padding-right: '.$body_border_size.'px; padding-left: '.$body_border_size.'px; }
- #nectar_fullscreen_rows, body #slide-out-widget-area-bg:not(.fullscreen-alt) { margin-top: '.$body_border_size.'px; }
- body:not(.ascend) .cart-menu-wrap .cart-menu , #slide-out-widget-area.fullscreen .off-canvas-social-links { padding-right: '.$body_border_size.'px!important; }
- .section-down-arrow, #slide-out-widget-area.fullscreen .off-canvas-social-links, #slide-out-widget-area.fullscreen .bottom-text { padding-bottom: '.$body_border_size.'px; }
- .ascend #search-outer #search #close, body[data-smooth-scrolling="0"] #header-outer .widget_shopping_cart, #page-header-bg .pagination-navigation { margin-right: '.$body_border_size.'px; }
- #to-top { right: '. intval($body_border_size+17) .'px; margin-bottom: '.$body_border_size.'px; }
- body[data-dropdown-style="minimal"][data-header-color="light"] #header-outer:not(.transparent) .sf-menu > li > ul { border-top: none; }
- body:not(.ascend) #header-outer .cart-menu { background-color: '.$body_border_color.'; border-left: 1px solid rgba(0,0,0,0.1); }
- #fp-nav { padding-right: '.$body_border_size.'px; } .body-border-left {background-color: '.$body_border_color.'; width: '.$body_border_size.'px;} .body-border-right {background-color: '.$body_border_color.'; width: '.$body_border_size.'px;} .body-border-bottom { background-color: '.$body_border_color.'; height: '.$body_border_size.'px;}
- .body-border-top {background-color: '.$body_border_color.'; height: '.$body_border_size.'px;} } @media only screen and (max-width: 690px) { .body-border-right, .body-border-left, .body-border-top, .body-border-bottom { display: none; } }';
-
- if(($body_border_color == '#ffffff' && $headerColorScheme == 'light' || $headerColorScheme == 'custom' && $body_border_color == $userSetBG ) && $activate_transparency != 'true' ) {
- echo '#header-outer:not([data-using-secondary="1"]):not(.transparent), body.ascend #search-outer, body[data-slide-out-widget-area-style="fullscreen-alt"] #header-outer:not([data-using-secondary="1"]) { margin-top: 0!important; } .body-border-top { z-index: 9997; } #slide-out-widget-area.slide-out-from-right { z-index: 9997;}
- #nectar_fullscreen_rows, body #slide-out-widget-area-bg { margin-top: 0px!important; }
- body #header-outer, body[data-slide-out-widget-area-style="slide-out-from-right-hover"] #header-outer { z-index: 9998; }
- #header-outer[data-full-width="true"]:not([data-transparent-header="true"]) header > .container, #header-outer[data-full-width="true"][data-transparent-header="true"].pseudo-data-transparent header > .container { padding-left: 0; padding-right: 0; }
- @media only screen and (max-width: 1080px) and (min-width: 1000px) {
- .ascend[data-slide-out-widget-area="true"] #header-outer[data-full-width="true"]:not([data-transparent-header="true"]) header > .container { padding-left: 0!important; padding-right: 0!important; }
- }
- body[data-header-search="false"][data-slide-out-widget-area="false"].ascend #header-outer[data-full-width="true"][data-cart="true"]:not([data-transparent-header="true"]) header > .container { padding-right: 28px; }
-
- body:not(.ascend) #header-outer[data-full-width="true"] header#top nav > ul.product_added.buttons { padding-right: '.intval($body_border_size+80) .'px!important; }
-
- body.ascend[data-slide-out-widget-area="true"] #header-outer[data-full-width="true"] .cart-menu-wrap { right: '.intval($body_border_size+51) .'px!important; }
-
- body[data-slide-out-widget-area-style="slide-out-from-right"] #header-outer[data-header-resize="0"] {
- -ms-transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.3s cubic-bezier(0.215,0.61,0.355,1), box-shadow 0.40s ease, margin 0.3s cubic-bezier(0.215,0.61,0.355,1)!important;
- -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.3s cubic-bezier(0.215,0.61,0.355,1), box-shadow 0.40s ease, margin 0.3s cubic-bezier(0.215,0.61,0.355,1)!important;
- transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.3s cubic-bezier(0.215,0.61,0.355,1), box-shadow 0.40s ease, margin 0.3s cubic-bezier(0.215,0.61,0.355,1)!important;
- }
-
- @media only screen and (min-width: 690px) {
- body div.portfolio-items[data-gutter*="px"][data-col-num="elastic"] { padding: 0!important; }
- }
-
- body #header-outer[data-transparent-header="true"].transparent { transition: none; -webkit-transition: none; }
- body[data-slide-out-widget-area-style="fullscreen-alt"] #header-outer { transition: background-color 0.3s cubic-bezier(0.215,0.61,0.355,1); -webkit-transition: background-color 0.3s cubic-bezier(0.215,0.61,0.355,1); }
- body.ascend[data-slide-out-widget-area="false"] #header-outer[data-header-resize="0"][data-cart="true"]:not(.transparent) { z-index: 100000; }
- ';
-
- } else if($body_border_color == '#ffffff' && $headerColorScheme == 'light' || $headerColorScheme == 'custom' && $body_border_color == $userSetBG) {
-
- echo '#header-outer.small-nav:not(.transparent), #header-outer[data-header-resize="0"]:not([data-using-secondary="1"]).scrolled-down:not(.transparent), #header-outer.detached, body.ascend #search-outer.small-nav, body[data-slide-out-widget-area-style="slide-out-from-right-hover"] #header-outer:not([data-using-secondary="1"]):not(.transparent), body[data-slide-out-widget-area-style="fullscreen-alt"] #header-outer:not([data-using-secondary="1"]).scrolled-down, body[data-slide-out-widget-area-style="fullscreen-alt"] #header-outer:not([data-using-secondary="1"]).transparent.side-widget-open { margin-top: 0px; z-index: 100000; }
- body.ascend[data-slide-out-widget-area="true"] #header-outer[data-full-width="true"].transparent:not(.small-nav) .cart-menu-wrap,
- body.ascend[data-slide-out-widget-area="true"] #header-outer[data-full-width="true"].scrolled-down .cart-menu-wrap { right: '.intval($body_border_size+80) .'px!important; }
- body.ascend[data-slide-out-widget-area="true"] #header-outer[data-full-width="true"] .cart-menu-wrap,
- body.ascend[data-slide-out-widget-area="false"] #header-outer[data-full-width="true"][data-cart="true"] .cart-menu-wrap { transition: right 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); -webkit-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); }
- .ascend #header-outer.transparent .cart-menu-wrap {width: 130px;}
- body:not(.ascend) #header-outer[data-full-width="true"] header#top nav > ul.product_added.buttons { padding-right: '.intval($body_border_size+80) .'px!important; }
- #header-outer[data-full-width="true"][data-transparent-header="true"][data-header-resize="0"].scrolled-down:not(.transparent) .container,
- body[data-slide-out-widget-area-style="fullscreen-alt"] #header-outer[data-full-width="true"].scrolled-down .container,
- body[data-slide-out-widget-area-style="fullscreen-alt"] #header-outer[data-full-width="true"].transparent.side-widget-open .container { padding-left: 0!important; padding-right: 0!important; }
-
- body[data-header-search="false"][data-slide-out-widget-area="false"].ascend #header-outer[data-full-width="true"][data-cart="true"]:not(.transparent) header > .container { padding-right: 28px!important; }
- body.ascend[data-slide-out-widget-area="false"] #header-outer[data-full-width="true"][data-cart="true"].transparent .cart-menu-wrap { right: '.intval($body_border_size) .'px!important; }
-
- body.ascend[data-slide-out-widget-area="true"]:not([data-slide-out-widget-area-style="fullscreen"]):not([data-slide-out-widget-area-style="slide-out-from-right"]) #header-outer[data-full-width="true"][data-header-resize="0"].scrolled-down .cart-menu-wrap,
- body.ascend[data-slide-out-widget-area="true"][data-slide-out-widget-area-style="fullscreen"] #header-outer[data-full-width="true"][data-header-resize="0"].scrolled-down:not(.transparent) .cart-menu-wrap,
- body.ascend[data-slide-out-widget-area="true"][data-slide-out-widget-area-style="slide-out-from-right"] #header-outer[data-full-width="true"][data-header-resize="0"].scrolled-down:not(.transparent) .cart-menu-wrap,
- body[data-slide-out-widget-area-style="fullscreen-alt"].ascend #header-outer[data-full-width="true"].transparent.side-widget-open .cart-menu-wrap { right: '.intval($body_border_size+50) .'px!important; }
-
- @media only screen and (min-width: 690px) {
- body div.portfolio-items[data-gutter*="px"][data-col-num="elastic"] { padding: 0!important; }
- }
- #header-outer[data-full-width="true"][data-header-resize="0"].transparent { -ms-transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.3s cubic-bezier(0.215,0.61,0.355,1), margin 0.3s cubic-bezier(0.215,0.61,0.355,1)!important; transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.3s cubic-bezier(0.215,0.61,0.355,1), margin 0.3s cubic-bezier(0.215,0.61,0.355,1)!important; -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.3s cubic-bezier(0.215,0.61,0.355,1), margin 0.3s cubic-bezier(0.215,0.61,0.355,1)!important; }
- body #header-outer[data-transparent-header="true"][data-header-resize="0"] { -ms-transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.3s cubic-bezier(0.215,0.61,0.355,1), box-shadow 0.40s ease, margin 0.3s cubic-bezier(0.215,0.61,0.355,1)!important; -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.3s cubic-bezier(0.215,0.61,0.355,1), box-shadow 0.40s ease, margin 0.3s cubic-bezier(0.215,0.61,0.355,1)!important; transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.3s cubic-bezier(0.215,0.61,0.355,1), box-shadow 0.40s ease, margin 0.3s cubic-bezier(0.215,0.61,0.355,1)!important; }
- #header-outer[data-full-width="true"][data-header-resize="0"] header > .container { -ms-transition: padding 0.35s cubic-bezier(0.215,0.61,0.355,1); transition: padding 0.35s cubic-bezier(0.215,0.61,0.355,1); -webkit-transition: padding 0.35s cubic-bezier(0.215,0.61,0.355,1); }
- ';
-
- $trans_header = (!empty($options['transparent-header']) && $options['transparent-header'] == '1') ? $options['transparent-header'] : 'false';
- $bg_header = (!empty($post->ID) && $post->ID != 0) ? using_page_header($post->ID) : 0;
- $perm_trans = (!empty($options['header-permanent-transparent']) && $trans_header != 'false' && $bg_header == 'true') ? $options['header-permanent-transparent'] : 'false';
-
- if($perm_trans != '1') {
- echo '@media only screen and (max-width: 1000px) and (min-width: 690px) {
- #header-outer,#nectar_fullscreen_rows, body #slide-out-widget-area-bg { margin-top: 0!important; }
- }';
- }
-
- } else if ($body_border_color != '#ffffff' && $headerColorScheme == 'light' || $headerColorScheme == 'custom' && $body_border_color != $userSetBG ) {
- echo 'html body.ascend[data-user-set-ocm="off"] #header-outer[data-full-width="true"] .cart-outer[data-user-set-ocm="off"] .cart-menu-wrap { right: '.intval($body_border_size) .'px!important; }
- html body.ascend[data-user-set-ocm="1"] #header-outer[data-full-width="true"] .cart-outer[data-user-set-ocm="1"] .cart-menu-wrap { right: '.intval($body_border_size+77) .'px!important; }';
- }
-
- }
-
-
- //// header transparent option
- if(!empty($options['transparent-header']) && $options['transparent-header'] == '1') {
-
- $starting_color = (empty($options['header-starting-color'])) ? '#ffffff' : $options['header-starting-color'];
- $activate_transparency = using_page_header($post->ID);
-
- echo '
- #header-outer.transparent header#top #logo, #header-outer.transparent header#top #logo:hover {
- color: '.$starting_color.'!important;
- }
-
- #header-outer.transparent header#top nav > ul > li > a,
- #header-outer.transparent header#top nav ul #search-btn a span.icon-salient-search,
- #header-outer.transparent nav > ul > li > a > .sf-sub-indicator [class^="icon-"],
- #header-outer.transparent nav > ul > li > a > .sf-sub-indicator [class*=" icon-"],
- #header-outer.transparent .cart-menu .cart-icon-wrap .icon-salient-cart,
- .ascend #boxed #header-outer.transparent .cart-menu .cart-icon-wrap .icon-salient-cart
- {
- color: '.$starting_color.'!important;
- opacity: 0.75!important;
- transition: opacity 0.2s ease, color 0.2s ease;
- }
- #header-outer.transparent:not([data-lhe="animated_underline"]) header#top nav > ul > li > a:hover, #header-outer.transparent:not([data-lhe="animated_underline"]) header#top nav .sf-menu > li.sfHover > a, #header-outer.transparent:not([data-lhe="animated_underline"]) header#top nav .sf-menu > li.current_page_ancestor > a,
- #header-outer.transparent header#top nav .sf-menu > li.current-menu-item > a, #header-outer.transparent:not([data-lhe="animated_underline"]) header#top nav .sf-menu li.current-menu-item > a, #header-outer.transparent:not([data-lhe="animated_underline"]) header#top nav .sf-menu > li.current-menu-ancestor > a, #header-outer.transparent:not([data-lhe="animated_underline"]) header#top nav .sf-menu > li.current_page_item > a,
- #header-outer.transparent header#top nav > ul > li > a:hover > .sf-sub-indicator > i, #header-outer.transparent header#top nav > ul > li.sfHover > a > span > i, #header-outer.transparent header#top nav ul #search-btn a:hover span, #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover span,
- #header-outer.transparent header#top nav .sf-menu > li.current-menu-item > a i, #header-outer.transparent header#top nav .sf-menu > li.current-menu-ancestor > a i,
- #header-outer.transparent .cart-outer:hover .icon-salient-cart, .ascend #boxed #header-outer.transparent .cart-outer:hover .cart-menu .cart-icon-wrap .icon-salient-cart
-
- {
- opacity: 1!important;
- color: '.$starting_color.'!important;
- }
-
- #header-outer.transparent[data-lhe="animated_underline"] header#top nav > ul > li > a:hover, #header-outer.transparent[data-lhe="animated_underline"] header#top nav .sf-menu > li.sfHover > a,
- #header-outer.transparent[data-lhe="animated_underline"] header#top nav .sf-menu > li.current-menu-ancestor > a, #header-outer.transparent[data-lhe="animated_underline"] header#top nav .sf-menu > li.current_page_item > a {
- opacity: 1!important;
- }
-
- #header-outer[data-lhe="animated_underline"].transparent header#top nav > ul > li > a:after, #header-outer.transparent header#top nav>ul>li.button_bordered>a:before {
- border-color: '.$starting_color.'!important;
- }
-
-
- #header-outer.transparent:not(.directional-nav-effect) > header#top nav ul .slide-out-widget-area-toggle a i.lines,
- #header-outer.transparent:not(.directional-nav-effect) > header#top nav ul .slide-out-widget-area-toggle a i.lines:before,
- #header-outer.transparent:not(.directional-nav-effect) > header#top nav ul .slide-out-widget-area-toggle a i.lines:after,
- #header-outer.transparent:not(.directional-nav-effect) > header#top nav ul .slide-out-widget-area-toggle[data-icon-animation="simple-transform"] .lines-button:after,
- #header-outer.transparent.directional-nav-effect > header#top nav ul .slide-out-widget-area-toggle a span.light .lines-button i, #header-outer.transparent.directional-nav-effect > header#top nav ul .slide-out-widget-area-toggle a span.light .lines-button i:after, #header-outer.transparent.directional-nav-effect > header#top nav ul .slide-out-widget-area-toggle a span.light .lines-button i:before,
- #header-outer.transparent:not(.directional-nav-effect) .midnightHeader.nectar-slider header#top nav ul .slide-out-widget-area-toggle a i.lines,
- #header-outer.transparent:not(.directional-nav-effect) .midnightHeader.nectar-slider header#top nav ul .slide-out-widget-area-toggle a i.lines:before,
- #header-outer.transparent:not(.directional-nav-effect) .midnightHeader.nectar-slider header#top nav ul .slide-out-widget-area-toggle a i.lines:after,
- #header-outer.transparent.directional-nav-effect .midnightHeader.nectar-slider header#top nav ul .slide-out-widget-area-toggle a span.light .lines-button i, #header-outer.transparent.directional-nav-effect .midnightHeader.nectar-slider header#top nav ul .slide-out-widget-area-toggle a span.light .lines-button i:after, #header-outer.transparent.directional-nav-effect .midnightHeader.nectar-slider header#top nav ul .slide-out-widget-area-toggle a span.light .lines-button i:before {
- background-color: '.$starting_color.'!important;
- }
- #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a i.lines,
- #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle[data-icon-animation="simple-transform"] a i.lines-button:after {
- opacity: 0.75!important;
- }
- #header-outer.transparent.side-widget-open header#top nav ul .slide-out-widget-area-toggle a i.lines,
- #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle[data-icon-animation="simple-transform"] a:hover i.lines-button:after,
- #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover i.lines,
- #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover i.lines:before,
- #header-outer.transparent header#top nav ul .slide-out-widget-area-toggle a:hover i.lines:after {
- opacity: 1!important;
- }
- ';
-
- $dark_header_color = (!empty($options['header-transparent-dark-color'])) ? $options['header-transparent-dark-color'] : '#000000';
-
- echo '#header-outer.transparent.dark-slide > header#top nav > ul > li > a,
- #header-outer.transparent.dark-row > header#top nav > ul > li > a,
- #header-outer.transparent.dark-slide:not(.directional-nav-effect) > header#top nav ul #search-btn a span,
- #header-outer.transparent.dark-row:not(.directional-nav-effect) > header#top nav ul #search-btn a span,
- #header-outer.transparent.dark-slide > header#top nav > ul > li > a > .sf-sub-indicator [class^="icon-"],
- #header-outer.transparent.dark-slide > header#top nav > ul > li > a > .sf-sub-indicator [class*=" icon-"],
- #header-outer.transparent.dark-row > header#top nav > ul > li > a > .sf-sub-indicator [class*=" icon-"],
- #header-outer.transparent.dark-slide:not(.directional-nav-effect) .cart-menu .cart-icon-wrap .icon-salient-cart,
- #header-outer.transparent.dark-row:not(.directional-nav-effect) .cart-menu .cart-icon-wrap .icon-salient-cart,
- body.ascend[data-header-color="custom"] #boxed #header-outer.transparent.dark-slide > header#top .cart-outer .cart-menu .cart-icon-wrap i,
- body.ascend #boxed #header-outer.transparent.dark-slide > header#top .cart-outer .cart-menu .cart…
Large files files are truncated, but you can click here to view the full file