'Jet_Control_Search', ); foreach ( $controls as $control_id => $class_name ) { if ( $this->include_control( $class_name, false ) ) { $class_name = 'Elementor\\' . $class_name; $controls_manager->register_control( $control_id, new $class_name() ); } } } /** * Include control file by class name. * * @param [type] $class_name [description] * @return [type] [description] */ public function include_control( $class_name, $grouped = false ) { $filename = sprintf( 'includes/controls/%2$s%1$s.php', str_replace( 'jet_control_', '', strtolower( $class_name ) ), ( true === $grouped ? 'groups/' : '' ) ); if ( ! file_exists( jet_theme_core()->plugin_path( $filename ) ) ) { return false; } require jet_theme_core()->plugin_path( $filename ); return true; } } }