/home/techb158/l2hypotheques.com/wp-content/themes/pylon/inc
Edit: /home/techb158/l2hypotheques.com/wp-content/themes/pylon/inc/css-and-js.php (7907B)
urlencode(implode('|', $pylon_fonts)),
'subset' => urlencode($pylon_subsets),
), '//fonts.googleapis.com/css');
}
return esc_url_raw($pylon_fonts_url);
}
}
//Enqueue styles
function pylon_css() {
global $wp_query;
wp_enqueue_style( 'pylon-fonts', pylon_google_fonts_url(), array(), null );
wp_enqueue_style( 'bootstrap', get_theme_file_uri( 'assets/css/bootstrap-min.css' ), array(), '4.5.0', 'all' );
wp_enqueue_style( 'font-awesome-all', get_theme_file_uri( 'assets/css/fontawesome-all-min.css' ), array(), '5.8.0', 'all' );
//woocommerce css
wp_enqueue_style('woocommerce-custom', get_theme_file_uri( 'assets/css/woocommerce.css'),array(),PYLON_VERSION);
//pylon shop icon css
wp_enqueue_style('pylon-shop-icon',get_theme_file_uri( 'assets/css/pylon-shop-icons/shop-icons.css'),array(),PYLON_VERSION);
wp_enqueue_style( 'custom-animation', get_theme_file_uri( 'assets/css/custom-animation.css' ), array(), PYLON_VERSION, 'all' );
wp_enqueue_style( 'animate-min', get_theme_file_uri( 'assets/css/animate-min.css' ), array(), PYLON_VERSION, 'all' );
wp_enqueue_style( 'pylon-icons', get_theme_file_uri( 'assets/css/pylon-icons.css' ), array(), PYLON_VERSION, 'all' );
wp_enqueue_style( 'flaticon', get_theme_file_uri( 'assets/css/flaticon.css' ), array(), PYLON_VERSION, 'all' );
wp_enqueue_style( 'pylon-two-icons', get_theme_file_uri( 'assets/css/pylon-two-icons.css' ), array(), PYLON_VERSION, 'all' );
wp_enqueue_style( 'odometer-min', get_theme_file_uri( 'assets/css/odometer-min.css' ), array(), '0.4.6', 'all' );
wp_enqueue_style( 'magnific-popup', get_theme_file_uri( 'assets/css/magnific-popup.css' ), array(), '1.1.0', 'all' );
wp_enqueue_style( 'bootstrap-select', get_theme_file_uri( 'assets/css/bootstrap-select-min.css' ), array(), '1.13.6', 'all' );
wp_enqueue_style( 'nouislider-min', get_theme_file_uri( 'assets/css/nouislider-min.css' ), array(), '14.1.1', 'all' );
wp_enqueue_style( 'nouislider-pips', get_theme_file_uri( 'assets/css/nouislider-pips.css' ), array(), PYLON_VERSION, 'all' );
wp_enqueue_style( 'pylon-default', get_theme_file_uri( 'assets/css/default.css' ), array(), PYLON_VERSION, 'all' );
wp_enqueue_style('pylon-stretched', get_theme_file_uri( 'assets/css/stretched.css'), array(), PYLON_VERSION);
wp_enqueue_style( 'pylon-main', get_theme_file_uri( 'assets/css/main.css' ), array(), PYLON_VERSION, 'all' );
wp_enqueue_style( 'pylon-style', get_stylesheet_uri(), array(), PYLON_VERSION, 'all' );
wp_style_add_data( 'pylon-style', 'rtl', 'replace' );
//Enqueue scripts.
}
add_action( 'wp_enqueue_scripts', 'pylon_css' );
//Enqueue styles and scripts.
function pylon_script() {
global $wp_query;
wp_enqueue_script( 'jquery-masonry' );
wp_enqueue_script( 'bootstrap-bundle-min', get_theme_file_uri( 'assets/js/bootstrap-bundle-min.js' ), array( 'jquery' ), '4.5.0', true );
wp_enqueue_script( 'jquery-ajaxchimp-min', get_theme_file_uri( 'assets/js/jquery-ajaxchimp-min.js' ), array( 'jquery' ), PYLON_VERSION, true );
wp_enqueue_script( 'jquery-magnific-popup-min', get_theme_file_uri( 'assets/js/jquery-magnific-popup-min.js' ), array( 'jquery' ), '1.1.0', true );
wp_enqueue_script( 'bootstrap-select-min', get_theme_file_uri( 'assets/js/bootstrap-select-min.js' ), array( 'jquery' ), '1.13.3', true );
wp_enqueue_script( 'jquery.matchHeight', get_theme_file_uri( 'assets/js/jquery.matchHeight.js' ), array( 'jquery' ), '1.1.0', true );
wp_enqueue_script( 'wow', get_theme_file_uri( 'assets/js/wow.js' ), array( 'jquery' ), '1.0.1', true );
wp_enqueue_script( 'odometer-min', get_theme_file_uri( 'assets/js/odometer-min.js' ), array( 'jquery' ), '0.4.6', true );
wp_enqueue_script( 'jquery-appear-min', get_theme_file_uri( 'assets/js/jquery-appear-min.js' ), array( 'jquery' ), PYLON_VERSION, true );
wp_enqueue_script( 'wNumb-min', get_theme_file_uri( 'assets/js/wNumb-min.js' ), array( 'jquery' ), PYLON_VERSION, true );
wp_enqueue_script( 'nouislider-min', get_theme_file_uri( 'assets/js/nouislider-min.js' ), array( 'jquery' ), '14.1.1', true );
wp_enqueue_script( 'pylon-navigation', get_theme_file_uri( 'assets/js/navigation.js' ), array( 'jquery' ), PYLON_VERSION, true );
wp_enqueue_script( 'pylon-main', get_theme_file_uri( 'assets/js/theme.js' ), array( 'jquery' ), PYLON_VERSION, true );
wp_enqueue_script( 'pylon-jquery-ui', get_theme_file_uri( 'assets/js/jquery-ui.js' ), array('jquery'), PYLON_VERSION, true );
wp_enqueue_script( 'jquery.circleGraph', get_theme_file_uri( 'assets/js/jquery.circleGraph.js' ), array('jquery'), PYLON_VERSION, true );
//woocommerce js
wp_enqueue_script('woocommerce-custom', get_template_directory_uri().'/assets/js/woocommerce.js',array(),PYLON_VERSION,true);
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'pylon_script' );
/**
* Enqueue Backend Styles And Scripts.
**/
function pylon_backend_css_js( $screen ) {
wp_enqueue_style( 'pylon-icons', get_theme_file_uri( 'assets/css/pylon-icons.css' ), array(), PYLON_VERSION, 'all' );
wp_enqueue_style( 'flaticon', get_theme_file_uri( 'assets/css/flaticon.css' ), array(), PYLON_VERSION, 'all' );
wp_enqueue_style( 'pylon-two-icons', get_theme_file_uri( 'assets/css/pylon-two-icons.css' ), array(), PYLON_VERSION, 'all' );
}
add_action( 'admin_enqueue_scripts', 'pylon_backend_css_js' );
function pylon_inline_css()
{
wp_enqueue_style('pylon-inline' ,get_template_directory_uri().'/assets/css/inline-style.css');
$pylon_thm_main_colors = pylon_options( 'pylon_thm_main_colors' );
if(is_array($pylon_thm_main_colors))
{
$light_color = $pylon_thm_main_colors['pylon_thm_base_color'];
$theme_color = $pylon_thm_main_colors['pylon_thm_primary_color'];
$secondary_color = $pylon_thm_main_colors['pylon_thm_gray_color'];
$dark_color = $pylon_thm_main_colors['pylon_thm_special_color'];
$white_color = '#ffffff';
$rgb_theme_color = pylon_hexcode_to_rgb($theme_color);
$rgb_dark_color = pylon_hexcode_to_rgb($dark_color);
$rgb_light_color = pylon_hexcode_to_rgb($light_color);
$rgb_secondary_color = pylon_hexcode_to_rgb($secondary_color);
$rgb_white_color = pylon_hexcode_to_rgb($white_color);
$custom_css = ":root {
--thm-base: {$light_color};
--thm-base-rgb: {$rgb_light_color};
--thm-primary: {$theme_color};
--thm-primary-rgb: {$rgb_theme_color};
--thm-special: {$dark_color};
--thm-special-rgb: {$rgb_dark_color};
--thm-secondary: {$secondary_color};
--thm-secondary-rgb: {$rgb_secondary_color};
}";
wp_add_inline_style( 'pylon-inline', $custom_css);
}
}
add_action('wp_enqueue_scripts' , 'pylon_inline_css');