/
var
/
www
/
barefootlaw.org
/
wp-content
/
themes
/
barefoot
/
inc
/
vc
/
Upload File
HOME
<?php /** * Adds Visual Composer Core Assets * * @package Aisconverse * @subpackage Covercase * @since Covercase 1.0 */ if ( ! function_exists( 'covercase_vc_scripts' ) ) { /** * Enqueues VC styles & scripts. * * @since Covercase 1.0 */ function covercase_vc_scripts() { // Register new styles & scripts covercase_disable_script( 'wpb_composer_front_js' ); wp_register_script( 'wpb_composer_front_js', get_theme_file_uri( 'assets/js/vendor/js_composer_front.min.js' ), array( 'jquery' ), COVERCASE_VERSION, true ); wp_deregister_style( 'vc_tta_style' ); wp_register_style( 'vc_tta_style', get_theme_file_uri( 'assets/css/js_composer_tta.min.css' ), array(), COVERCASE_VERSION ); wp_enqueue_style( 'vc_tta_style' ); // Issue VC on blog pages (styles on footer) wp_dequeue_style( 'js_composer_front' ); wp_enqueue_style( 'js_composer_front' ); wp_enqueue_style( 'covercase_js_composer', get_theme_file_uri( 'assets/css/js_composer.min.css' ), array(), COVERCASE_VERSION ); } add_action( 'wp_enqueue_scripts', 'covercase_vc_scripts', 999 ); } if ( ! function_exists( 'covercase_vc_iconpicker_base_register_css' ) ) { /** * Registration backend/frontend VC fonts * * @since Covercase 1.0 */ function covercase_vc_iconpicker_base_register_css() { wp_register_style( 'feather', get_theme_file_uri( 'assets/css/feather.min.css' ) ); wp_register_style( 'bootstrap_font', get_theme_file_uri( 'assets/css/bootstrap-fonts.min.css' ) ); wp_register_style( 'aisconverse_font', get_theme_file_uri( 'assets/css/aisconverse.min.css' ) ); wp_register_style( 'theme_font', get_theme_file_uri( 'assets/css/theme.min.css' ) ); wp_register_style( 'sharpicons', get_theme_file_uri( 'assets/css/sharpicons.min.css' ) ); wp_deregister_style( 'vc_openiconic' ); wp_register_style( 'vc_openiconic', get_theme_file_uri( 'assets/css/open-iconic-bootstrap.min.css' ) ); } add_action( 'vc_base_register_front_css', 'covercase_vc_iconpicker_base_register_css' ); add_action( 'vc_base_register_admin_css', 'covercase_vc_iconpicker_base_register_css' ); } if ( ! function_exists( 'covercase_vc_iconpicker_editor_jscss' ) ) { /** * Enqueue backend/frontend VC fonts * * @since Covercase 1.0 */ function covercase_vc_iconpicker_editor_jscss() { wp_enqueue_style( 'feather' ); wp_enqueue_style( 'bootstrap_font' ); wp_enqueue_style( 'aisconverse_font' ); wp_enqueue_style( 'theme_font' ); wp_enqueue_style( 'sharpicons' ); } add_action( 'vc_backend_editor_enqueue_js_css', 'covercase_vc_iconpicker_editor_jscss' ); add_action( 'vc_frontend_editor_enqueue_js_css', 'covercase_vc_iconpicker_editor_jscss' ); }