/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

funzione wpb_adding_scripts (){
	
	wp_register_script ( 'gsap' , 'https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js' , array (), '1.0' , true );     
  
	wp_register_script ( 'gsap-settings' , get_stylesheet_directory_uri () . '/gsap-options.js' , array ( 'gsap' ), '1.0' , true );     

	wp_enqueue_script ( 'gsap' ); // Questo probabilmente non è necessario poiché di seguito stiamo accodando il file gsap-settings con una dipendenza dallo script gsap, quindi dovrebbe accodare entrambi 
	wp_enqueue_script ( 'gsap-settings' ); } 


add_action ( 'wp_enqueue_scripts' , 'wpb_adding_scripts' );  
