, 'noposts' => esc_html__('No more posts', 'cesis'), 'loading' => esc_html__('Loading', 'cesis'), 'loadmore' => esc_html__('Load more', 'cesis') )); } add_action( 'wp_enqueue_scripts', 'cesis_scripts' ); function cesis_admin_styles() { wp_enqueue_style('cesis-icons', get_template_directory_uri(). '/includes/fonts/cesis_icons/cesis_icons.css'); wp_enqueue_style( 'cesis-plugins', get_template_directory_uri() . '/css/cesis_backend.css'); wp_enqueue_script('cesis_backend', get_template_directory_uri() . '/js/cesis_backend.js' ); wp_enqueue_script( 'collapse', get_template_directory_uri(). '/js/cesis_collapse.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'countup', get_template_directory_uri(). '/js/cesis_countup.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'owlcarousel', get_template_directory_uri(). '/js/owlcarousel.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'fitvids', get_template_directory_uri(). '/js/fitvids.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'scrollmagic', get_template_directory_uri(). '/js/scrollmagic.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'imagesLoaded' ); /* We use custom functions this is not the default isotope so we keep cesis prefix */ wp_enqueue_script( 'cesis-isotope', get_template_directory_uri(). '/js/isotope.js', array( 'jquery' ), false, true ); /* We use custom functions this is not the default waipoints so we keep cesis prefix */ wp_enqueue_script( 'cesis-waypoints', get_template_directory_uri(). '/js/waypoints.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'lightgallery', get_template_directory_uri(). '/js/lightgallery.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'fonticonpicker', get_template_directory_uri(). '/js/fonticonpicker.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'transition', get_template_directory_uri(). '/js/cesis_transition.js', array( 'jquery' ), false, true ); wp_enqueue_script( 'smartmenus', get_template_directory_uri(). '/js/smartmenus.js', array( 'jquery' ), false, true ); } add_action( 'admin_enqueue_scripts', 'cesis_admin_styles' ); function cesis_dynamic_style() { if (wp_style_is('cesis-style')){ Redux::init( 'cesis_data' ); wp_enqueue_style('dynamic-css', admin_url('admin-ajax.php').'?action=dynamic_css'); } } function cesis_dynamic_css() {Redux::init( 'cesis_data' ); require(get_template_directory().'/css/dynamic.css.php'); exit; } add_action( 'wp_enqueue_scripts', 'cesis_dynamic_style' ); add_action('wp_ajax_dynamic_css', 'cesis_dynamic_css'); add_action('wp_ajax_nopriv_dynamic_css', 'cesis_dynamic_css'); function cesis_customizer_dynamic_css() { echo ""; } if( is_customize_preview() ){ if ( $wp_customize->is_preview() ) { add_action( 'wp_head', 'cesis_customizer_dynamic_css', 21); }} //////////////////////////////////////////////////////////////////// ////// //// ///// //// //// Register : Theme custom functions and shortcodes //// /// //// // //// ////////////////////////////////////////////////////////////// // Add Functions include_once(get_parent_theme_file_path('functions/cesis_functions.php')); if( cesis_check_woo_status() == true) { // Add Woocommerce related Functions include_once(get_parent_theme_file_path('functions/cesis_woocommerce.php')); } if( cesis_check_bp_status() == true) { // Add Buddypress related Functions include_once(get_parent_theme_file_path('functions/cesis_buddypress.php')); } if( cesis_check_vc_status() == true) { // Add Shortcodes include_once(get_parent_theme_file_path('functions/cesis_shortcodes.php')); //Add Visual Composer functions include_once(get_parent_theme_file_path('functions/cesis_vc_functions.php')); } if( cesis_check_thegrid_status() == true) { // Add Custom Grids include_once(get_parent_theme_file_path('functions/cesis_grids.php')); } // Add single importer require get_parent_theme_file_path('/includes/selective_demo_import/init.php');