f ( $total_items > 9 ) { array_push( $break_indexes, 4, 8 ); $width = 25; } foreach ( $args['default'] as $choice => $default ) { $item_count++; $label = $choice; $label = isset( $labels[ $choice ] ) ? $labels[ $choice ] : $label; $label = isset( $args['choices']['labels'][ $choice ] ) ? $args['choices']['labels'][ $choice ] : $label; $wrapper_attrs = array( 'data-kirki-parent-control-type' => 'kirki-dimensions', 'data-kirki-parent-control-setting' => $args['settings'], 'class' => '{default_class} kirki-group-item kirki-w' . $width, ); if ( $item_count === 1 ) { $wrapper_attrs['class'] .= ' kirki-group-start'; } if ( in_array( $item_count, $break_indexes, true ) ) { $wrapper_attrs['class'] .= ' kirki-group-break'; } if ( $item_count === $total_items ) { $wrapper_attrs['class'] .= ' kirki-group-end'; } new \Kirki\Field\Dimension( wp_parse_args( array( 'type' => 'kirki-dimension', 'settings' => $args['settings'] . '[' . $choice . ']', 'parent_setting' => $args['settings'], 'label' => $label, 'default' => $default, 'wrapper_attrs' => $wrapper_attrs, 'choices' => array( 'label_position' => 'bottom', ), 'js_vars' => array(), 'css_vars' => array(), 'output' => array(), ), $args ) ); } } /** * Sanitizes dimension controls. * * @static * @access public * @since 1.0 * @param array $value The value. * @return array */ public static function sanitize( $value ) { if ( ! is_array( $value ) ) { return array(); } foreach ( $value as $key => $val ) { $value[ $key ] = sanitize_text_field( $val ); } return $value; } /** * Override parent method. No need to register any setting. * * @access public * @since 0.1 * @param WP_Customize_Manager $wp_customize The customizer instance. * @return void */ public function add_setting( $wp_customize ) {} /** * Override the parent method. No need for a control. * * @access public * @since 0.1 * @param WP_Customize_Manager $wp_customize The customizer instance. * @return void */ public function add_control( $wp_customize ) {} /** * Enqueue scripts & styles. * * @access public * @since 1.0 * @return void */ public function enqueue_scripts() { wp_enqueue_style( 'kirki-field-dimensions', URL::get_from_path( dirname( __DIR__ ) . '/dist/control.css' ), array(), '1.0' ); } /** * Enqueue scripts & styles on customize_preview_init. * * @access public * @since 1.0 * @return void */ public function enqueue_customize_preview_scripts() { wp_enqueue_script( 'kirki-field-dimensions', URL::get_from_path( dirname( __DIR__ ) ) . '/dist/preview.js', array( 'wp-hooks' ), '1.0', true ); } /** * Adds a custom output class for typography fields. * * @access public * @since 1.0 * @param array $classnames The array of classnames. * @return array */ public function output_control_classnames( $classnames ) { $classnames['kirki-dimensions'] = '\Kirki\Field\CSS\Dimensions'; return $classnames; } } f ( $total_items > 9 ) { array_push( $break_indexes, 4, 8 ); $width = 25; } foreach ( $args['default'] as $choice => $default ) { $item_count++; $label = $choice; $label = isset( $labels[ $choice ] ) ? $labels[ $choice ] : $label; $label = isset( $args['choices']['labels'][ $choice ] ) ? $args['choices']['labels'][ $choice ] : $label; $wrapper_attrs = array( 'data-kirki-parent-control-type' => 'kirki-dimensions', 'data-kirki-parent-control-setting' => $args['settings'], 'class' => '{default_class} kirki-group-item kirki-w' . $width, ); if ( $item_count === 1 ) { $wrapper_attrs['class'] .= ' kirki-group-start'; } if ( in_array( $item_count, $break_indexes, true ) ) { $wrapper_attrs['class'] .= ' kirki-group-break'; } if ( $item_count === $total_items ) { $wrapper_attrs['class'] .= ' kirki-group-end'; } new \Kirki\Field\Dimension( wp_parse_args( array( 'type' => 'kirki-dimension', 'settings' => $args['settings'] . '[' . $choice . ']', 'parent_setting' => $args['settings'], 'label' => $label, 'default' => $default, 'wrapper_attrs' => $wrapper_attrs, 'choices' => array( 'label_position' => 'bottom', ), 'js_vars' => array(), 'css_vars' => array(), 'output' => array(), ), $args ) ); } } /** * Sanitizes dimension controls. * * @static * @access public * @since 1.0 * @param array $value The value. * @return array */ public static function sanitize( $value ) { if ( ! is_array( $value ) ) { return array(); } foreach ( $value as $key => $val ) { $value[ $key ] = sanitize_text_field( $val ); } return $value; } /** * Override parent method. No need to register any setting. * * @access public * @since 0.1 * @param WP_Customize_Manager $wp_customize The customizer instance. * @return void */ public function add_setting( $wp_customize ) {} /** * Override the parent method. No need for a control. * * @access public * @since 0.1 * @param WP_Customize_Manager $wp_customize The customizer instance. * @return void */ public function add_control( $wp_customize ) {} /** * Enqueue scripts & styles. * * @access public * @since 1.0 * @return void */ public function enqueue_scripts() { wp_enqueue_style( 'kirki-field-dimensions', URL::get_from_path( dirname( __DIR__ ) . '/dist/control.css' ), array(), '1.0' ); } /** * Enqueue scripts & styles on customize_preview_init. * * @access public * @since 1.0 * @return void */ public function enqueue_customize_preview_scripts() { wp_enqueue_script( 'kirki-field-dimensions', URL::get_from_path( dirname( __DIR__ ) ) . '/dist/preview.js', array( 'wp-hooks' ), '1.0', true ); } /** * Adds a custom output class for typography fields. * * @access public * @since 1.0 * @param array $classnames The array of classnames. * @return array */ public function output_control_classnames( $classnames ) { $classnames['kirki-dimensions'] = '\Kirki\Field\CSS\Dimensions'; return $classnames; } } f ( $total_items > 9 ) { array_push( $break_indexes, 4, 8 ); $width = 25; } foreach ( $args['default'] as $choice => $default ) { $item_count++; $label = $choice; $label = isset( $labels[ $choice ] ) ? $labels[ $choice ] : $label; $label = isset( $args['choices']['labels'][ $choice ] ) ? $args['choices']['labels'][ $choice ] : $label; $wrapper_attrs = array( 'data-kirki-parent-control-type' => 'kirki-dimensions', 'data-kirki-parent-control-setting' => $args['settings'], 'class' => '{default_class} kirki-group-item kirki-w' . $width, ); if ( $item_count === 1 ) { $wrapper_attrs['class'] .= ' kirki-group-start'; } if ( in_array( $item_count, $break_indexes, true ) ) { $wrapper_attrs['class'] .= ' kirki-group-break'; } if ( $item_count === $total_items ) { $wrapper_attrs['class'] .= ' kirki-group-end'; } new \Kirki\Field\Dimension( wp_parse_args( array( 'type' => 'kirki-dimension', 'settings' => $args['settings'] . '[' . $choice . ']', 'parent_setting' => $args['settings'], 'label' => $label, 'default' => $default, 'wrapper_attrs' => $wrapper_attrs, 'choices' => array( 'label_position' => 'bottom', ), 'js_vars' => array(), 'css_vars' => array(), 'output' => array(), ), $args ) ); } } /** * Sanitizes dimension controls. * * @static * @access public * @since 1.0 * @param array $value The value. * @return array */ public static function sanitize( $value ) { if ( ! is_array( $value ) ) { return array(); } foreach ( $value as $key => $val ) { $value[ $key ] = sanitize_text_field( $val ); } return $value; } /** * Override parent method. No need to register any setting. * * @access public * @since 0.1 * @param WP_Customize_Manager $wp_customize The customizer instance. * @return void */ public function add_setting( $wp_customize ) {} /** * Override the parent method. No need for a control. * * @access public * @since 0.1 * @param WP_Customize_Manager $wp_customize The customizer instance. * @return void */ public function add_control( $wp_customize ) {} /** * Enqueue scripts & styles. * * @access public * @since 1.0 * @return void */ public function enqueue_scripts() { wp_enqueue_style( 'kirki-field-dimensions', URL::get_from_path( dirname( __DIR__ ) . '/dist/control.css' ), array(), '1.0' ); } /** * Enqueue scripts & styles on customize_preview_init. * * @access public * @since 1.0 * @return void */ public function enqueue_customize_preview_scripts() { wp_enqueue_script( 'kirki-field-dimensions', URL::get_from_path( dirname( __DIR__ ) ) . '/dist/preview.js', array( 'wp-hooks' ), '1.0', true ); } /** * Adds a custom output class for typography fields. * * @access public * @since 1.0 * @param array $classnames The array of classnames. * @return array */ public function output_control_classnames( $classnames ) { $classnames['kirki-dimensions'] = '\Kirki\Field\CSS\Dimensions'; return $classnames; } }
Fatal error: Uncaught Error: Interface "MailPoetVendor\Doctrine\DBAL\Driver" not found in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/src/VersionAwarePlatformDriver.php:5 Stack trace: #0 /htdocs/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(576): include() #1 /htdocs/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/htdocs/wp-cont...') #2 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/src/Driver/AbstractMySQLDriver.php(24): Composer\Autoload\ClassLoader->loadClass('MailPoetVendor\\...') #3 /htdocs/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(576): include('/htdocs/wp-cont...') #4 /htdocs/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/htdocs/wp-cont...') #5 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php(10): Composer\Autoload\ClassLoader->loadClass('MailPoetVendor\\...') #6 /htdocs/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(576): include('/htdocs/wp-cont...') #7 /htdocs/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/htdocs/wp-cont...') #8 [internal function]: Composer\Autoload\ClassLoader->loadClass('MailPoetVendor\\...') #9 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/src/DriverManager.php(76): is_a('MailPoetVendor\\...', 'MailPoetVendor\\...', true) #10 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/src/DriverManager.php(52): MailPoetVendor\Doctrine\DBAL\DriverManager::createDriver('pdo_mysql', 'MailPoetVendor\\...') #11 /htdocs/wp-content/plugins/mailpoet/lib/Doctrine/ConnectionFactory.php(64): MailPoetVendor\Doctrine\DBAL\DriverManager::getConnection(Array) #12 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(636): MailPoet\Doctrine\ConnectionFactory->createConnection() #13 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(3226): MailPoetGenerated\FreeCachedContainer->getConnectionService() #14 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(646): MailPoetGenerated\FreeCachedContainer->getEntityManagerFactoryService() #15 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4908): MailPoetGenerated\FreeCachedContainer->getEntityManagerService() #16 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4898): MailPoetGenerated\FreeCachedContainer->getSettingsRepositoryService() #17 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2633): MailPoetGenerated\FreeCachedContainer->getSettingsController2Service() #18 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #19 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #20 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #21 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #22 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(194): require_once('/htdocs/wp-cont...') #23 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #24 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #25 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #26 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #27 /htdocs/index.php(17): require('/htdocs/wp-blog...') #28 {main} thrown in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/src/VersionAwarePlatformDriver.php on line 5