register_location( 'header' ); $elementor_theme_manager->register_location( 'footer' ); } /** * Extend Motion Effects with custom animations filter callback * */ public function extend_motion_effects( $additional_animations ) { $additional_animations[ 'Botiga' ] = array( 'fadeInUpShorter' => esc_html__( 'Fade In Up Shorter', 'botiga' ), 'fadeInDownShorter' => esc_html__( 'Fade In Down Shorter', 'botiga' ), 'fadeInLeftShorter' => esc_html__( 'Fade In Left Shorter', 'botiga' ), 'fadeInRightShorter' => esc_html__( 'Fade In Right Shorter', 'botiga' ), ); return $additional_animations; } } new Botiga_Elementor_Compatibility(); /** * Elementor Helper Class * */ class Botiga_Elementor_Helpers { /** * Check if a theme builder location is active * */ public static function elementor_has_location( $location ) { if ( ! did_action( 'elementor_pro/init' ) ) { return false; } if( ! class_exists( 'ElementorPro\\Plugin' ) ) { return false; } $conditions_manager = \ElementorPro\Plugin::instance()->modules_manager->get_modules( 'theme-builder' )->get_conditions_manager(); $documents = $conditions_manager->get_documents_for_location( $location ); return ! empty( $documents ); } }