get('Version'), 'all' ); } add_action('wp_enqueue_scripts', 'brandshift_theme_enqueue_styles'); function brandshift_theme_script(){ // Corrigindo o nome do handle de 'brandshift_theme-main-css' para 'brandshift_theme-main-js' wp_enqueue_script('brandshift_theme-main-js', get_stylesheet_directory_uri() . '/assets/js/main.js', array(), '', true); wp_enqueue_script('gsap-js', get_stylesheet_directory_uri() . '/assets/js/gsap.min.js', array(), '', true); // ScrollTrigger - com gsap.js como dependência wp_enqueue_script('gsap-st', get_stylesheet_directory_uri() . '/assets/js/ScrollTrigger.min.js', array('gsap-js'), '', true); wp_enqueue_script('brandshift_theme-effects-js', get_stylesheet_directory_uri() . '/assets/js/effects.js', array(), '', true); } add_action('wp_enqueue_scripts', 'brandshift_theme_script'); // Add Customizer require get_template_directory() . '/inc/customizer.php'; // Upsell in the customizer if ( class_exists( 'WP_Customize_Section' ) ) { class Brandshift_Upsell_Section extends WP_Customize_Section { public $type = 'brandshift-upsell'; public $button_text = ''; public $url = ''; public $background = ''; public $text_color = ''; protected function render() { $background = ! empty( $this->background ) ? esc_attr( $this->background ) : 'linear-gradient(90deg,rgb(0,0,0) 0%,rgb(0,0,0) 35%,rgb(0,0,0) 70%,rgb(0,0,0) 100%) '; $text_color = ! empty( $this->text_color ) ? esc_attr( $this->text_color ) : '#fff'; ?>
  • title ); ?> button_text ); ?>