get('Version'), true // load on footer ); } add_action('wp_enqueue_scripts', 'structo_theme_js_script'); function structo_theme_enqueue_styles() { wp_enqueue_style( 'structo_theme-main-css', get_template_directory_uri() . '/assets/css/main.css', array(), wp_get_theme()->get('Version'), 'all' ); } add_action('wp_enqueue_scripts', 'structo_theme_enqueue_styles'); function enqueue_swiper_assets() { // Swiper CSS wp_enqueue_style( 'swiper-css', get_template_directory_uri() . '/assets/css/swiper-bundle.min.css', array(), '11.0.0' ); wp_enqueue_style( 'custom-swiper-css', get_template_directory_uri() . '/assets/css/custom-swiper.css', array(), '1.0.0' ); // Swiper JS wp_enqueue_script( 'swiper-js', get_template_directory_uri() . '/assets/js/swiper-bundle.min.js', array(), '11.0.0', true // Carrega no footer ); wp_enqueue_script( 'custom-swiper-init', get_template_directory_uri() . '/assets/js/custom-swiper.js', array('swiper-js'), // Dependência do Swiper JS '1.0.0', true // Carrega no footer ); } add_action('wp_enqueue_scripts', 'enqueue_swiper_assets'); // Add Customizer require get_template_directory() . '/inc/customizer.php'; // Upsell in the customizer if ( class_exists( 'WP_Customize_Section' ) ) { class Structo_Upsell_Section extends WP_Customize_Section { public $type = 'structo-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'; ?>