balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

Scripts.php (2147B)


      1 <?php
      2 namespace Welbim\Helper\Elementor;
      3 
      4 /**
      5  * The Menu handler class
      6  */
      7 
      8 class Scripts {
      9 
     10 	private $prefix = 'welbim';
     11 
     12 	public function __construct() {
     13 		add_action( 'elementor/frontend/after_register_scripts', array( $this, 'welbim_core_required_script' ) );
     14 		add_action( 'wp_head', array( $this, 'widget_assets_css' ) );
     15 		add_action( 'wp_footer', array( $this, 'widget_scripts' ) );
     16 		add_action( 'elementor/editor/after_enqueue_scripts', array( $this, 'widget_editor_scripts' ) );
     17 	}
     18 
     19 	public function welbim_core_required_script( $screen ) {
     20 
     21 	}
     22 	public function widget_assets_css() {
     23 		// wp_enqueue_style( 'elementor-custom-style', WELBIM_CORE_ASSETS . '/elementor/css/style.css', true, time() );
     24 	}
     25 
     26 	public function widget_scripts() {
     27 		wp_enqueue_script( 'gallery_js', WELBIM_CORE_ASSETS . '/elementor/js/gallery.js', array( 'jquery' ), time(), true );
     28 		wp_enqueue_script( 'countbox_js', WELBIM_CORE_ASSETS . '/elementor/js/countbox.js', array( 'jquery' ), time(), true );
     29 		wp_enqueue_script( 'testimonial_js', WELBIM_CORE_ASSETS . '/elementor/js/testimonial.js', array( 'jquery' ), time(), true );
     30 		wp_enqueue_script( 'countbar_js', WELBIM_CORE_ASSETS . '/elementor/js/countbar.js', array( 'jquery' ), time(), true );
     31 		wp_enqueue_script( 'bannerslider_js', WELBIM_CORE_ASSETS . '/elementor/js/bannerslider.js', array( 'jquery' ), time(), true );
     32 		wp_enqueue_script( 'progresscircle_js', WELBIM_CORE_ASSETS . '/elementor/js/progresscircle.js', array( 'jquery' ), time(), true );
     33 		wp_enqueue_script( 'testimonial_js', WELBIM_CORE_ASSETS . '/elementor/js/testimonial.js', array( 'jquery' ), time(), true );
     34 		wp_enqueue_script( 'service_js', WELBIM_CORE_ASSETS . '/elementor/js/service.js', array( 'jquery' ), time(), true );
     35 		wp_enqueue_script( 'team_js', WELBIM_CORE_ASSETS . '/elementor/js/team.js', array( 'jquery' ), time(), true );
     36 		wp_enqueue_script( 'client_js', WELBIM_CORE_ASSETS . '/elementor/js/client.js', array( 'jquery' ), time(), true );
     37 		wp_enqueue_script( 'welcome_js', WELBIM_CORE_ASSETS . '/elementor/js/welcome.js', array( 'jquery' ), time(), true );
     38 	}
     39 
     40 	public function widget_editor_scripts() {
     41 	}
     42 }