'Post Types', 'elementor' ),
'field_args' => [
'type' => 'checkbox_list_cpt',
'std' => [ 'page', 'post' ],
'exclude' => [ 'attachment', 'elementor_library' ],
],
'setting_args' => [ $validations_class_name, 'checkbox_list' ],
],
'disable_color_schemes' => [
'label' => __( 'Disable Default Colors', 'elementor' ),
'field_args' => [
'type' => 'checkbox',
'value' => 'yes',
'sub_desc' => __( 'Checking this box will disable Elementor\'s Default Colors, and make Elementor inherit the colors from your theme.', 'elementor' ),
],
],
'disable_typography_schemes' => [
'label' => __( 'Disable Default Fonts', 'elementor' ),
'field_args' => [
'type' => 'checkbox',
'value' => 'yes',
'sub_desc' => __( 'Checking this box will disable Elementor\'s Default Fonts, and make Elementor inherit the fonts from your theme.', 'elementor' ),
],
],
],
],
'usage' => [
'label' => __( 'Improve Elementor', 'elementor' ),
'fields' => [
'allow_tracking' => [
'label' => __( 'Usage Data Sharing', 'elementor' ),
'field_args' => [
'type' => 'checkbox',
'value' => 'yes',
'default' => '',
'sub_desc' => __( 'Become a super contributor by opting in to share non-sensitive plugin data and to receive periodic email updates from us.', 'elementor' ) . sprintf( ' %2$s', 'https://go.elementor.com/usage-data-tracking/', __( 'Learn more.', 'elementor' ) ),
],
'setting_args' => [ __NAMESPACE__ . '\Tracker', 'check_for_settings_optin' ],
],
],
],
],
],
self::TAB_STYLE => [
'label' => __( 'Style', 'elementor' ),
'sections' => [
'style' => [
'fields' => [
'notice' => [
'label' => __( 'Looking for the Style settings?', 'elementor' ),
'field_args' => [
'type' => 'raw_html',
'html' => __( 'The Style settings changed its location and can now be found within Elementor Editor\'s Panel > Hamburger Menu > Site Settings.
You can use the Site Settings to make changes and see them live!', 'elementor' ) . sprintf( ' %s', __( 'Learn More', 'elementor' ) ),
],
],
],
],
],
],
self::TAB_INTEGRATIONS => [
'label' => __( 'Integrations', 'elementor' ),
'sections' => [],
],
self::TAB_ADVANCED => [
'label' => __( 'Advanced', 'elementor' ),
'sections' => [
'advanced' => [
'fields' => [
'css_print_method' => [
'label' => __( 'CSS Print Method', 'elementor' ),
'field_args' => [
'class' => 'elementor_css_print_method',
'type' => 'select',
'options' => [
'external' => __( 'External File', 'elementor' ),
'internal' => __( 'Internal Embedding', 'elementor' ),
],
'desc' => '
' . __( 'Use external CSS files for all generated stylesheets. Choose this setting for better performance (recommended).', 'elementor' ) . '
' . __( 'Use internal CSS that is embedded in the head of the page. For troubleshooting server configuration conflicts and managing development environments.', 'elementor' ) . '
',
],
],
'editor_break_lines' => [
'label' => __( 'Switch Editor Loader Method', 'elementor' ),
'field_args' => [
'type' => 'select',
'options' => [
'' => __( 'Disable', 'elementor' ),
1 => __( 'Enable', 'elementor' ),
],
'desc' => __( 'For troubleshooting server configuration conflicts.', 'elementor' ),
],
],
'unfiltered_files_upload' => [
'label' => __( 'Enable Unfiltered File Uploads', 'elementor' ),
'field_args' => [
'type' => 'select',
'std' => '',
'options' => [
'' => __( 'Disable', 'elementor' ),
1 => __( 'Enable', 'elementor' ),
],
'desc' => __( 'Please note! Allowing uploads of any files (SVG & JSON included) is a potential security risk.', 'elementor' ) . '
' . __( 'Elementor will try to sanitize the unfiltered files, removing potential malicious code and scripts.', 'elementor' ) . '
' . __( 'We recommend you only enable this feature if you understand the security risks involved.', 'elementor' ),
],
],
'optimized_dom_output' => [
'label' => __( 'Optimized DOM Output', 'elementor' ),
'field_args' => [
'type' => 'select',
'options' => [
'' => __( 'Default', 'elementor' ),
'enabled' => __( 'Enable', 'elementor' ),
'disabled' => __( 'Disable', 'elementor' ),
],
'desc' => __( 'Developers, Please Note! If you\'ve used custom code in Elementor, you might have experienced a snippet of code not running. Legacy DOM Output allows you to keep prior Elementor markup output settings, and have that lovely code running again.', 'elementor' )
. ' ' . __( 'Learn More', 'elementor' ) . '',
],
],
],
],
],
],
];
}
/**
* Get settings page title.
*
* Retrieve the title for the settings page.
*
* @since 1.5.0
* @access protected
*
* @return string Settings page title.
*/
protected function get_page_title() {
return __( 'Elementor', 'elementor' );
}
/**
* @since 2.2.0
* @access private
*/
private function maybe_remove_all_admin_notices() {
$elementor_pages = [
'elementor-getting-started',
'elementor_custom_fonts',
'elementor_custom_icons',
'elementor-license',
'popup_templates',
];
if ( empty( $_GET['page'] ) || ! in_array( $_GET['page'], $elementor_pages, true ) ) {
return;
}
remove_all_actions( 'admin_notices' );
}
/**
* Settings page constructor.
*
* Initializing Elementor "Settings" page.
*
* @since 1.0.0
* @access public
*/
public function __construct() {
parent::__construct();
add_action( 'admin_init', [ $this, 'on_admin_init' ] );
add_action( 'admin_menu', [ $this, 'register_admin_menu' ], 20 );
add_action( 'admin_menu', [ $this, 'admin_menu_change_name' ], 200 );
add_action( 'admin_menu', [ $this, 'register_pro_menu' ], self::MENU_PRIORITY_GO_PRO );
add_action( 'admin_menu', [ $this, 'register_knowledge_base_menu' ], 501 );
$clear_cache_callback = [ Plugin::$instance->files_manager, 'clear_cache' ];
// Clear CSS Meta after change css related methods.
$css_settings = [
'elementor_disable_color_schemes',
'elementor_disable_typography_schemes',
'elementor_css_print_method',
'elementor_optimized_dom_output',
];
foreach ( $css_settings as $option_name ) {
add_action( "add_option_{$option_name}", $clear_cache_callback );
add_action( "update_option_{$option_name}", $clear_cache_callback );
}
add_filter( 'custom_menu_order', '__return_true' );
add_filter( 'menu_order', [ $this, 'menu_order' ] );
}
}
Fatal error: Uncaught Error: Class 'Elementor\Settings' not found in /var/www/html/presentepronto.com.br/web/wp-content/plugins/elementor/includes/plugin.php:592
Stack trace:
#0 /var/www/html/presentepronto.com.br/web/wp-content/plugins/elementor/includes/plugin.php(514): Elementor\Plugin->init_components()
#1 /var/www/html/presentepronto.com.br/web/wp-includes/class-wp-hook.php(324): Elementor\Plugin->init('')
#2 /var/www/html/presentepronto.com.br/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#3 /var/www/html/presentepronto.com.br/web/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /var/www/html/presentepronto.com.br/web/wp-settings.php(643): do_action('init')
#5 /var/www/html/presentepronto.com.br/web/wp-config.php(108): require_once('/var/www/html/p...')
#6 /var/www/html/presentepronto.com.br/web/wp-load.php(50): require_once('/var/www/html/p...')
#7 /var/www/html/presentepronto.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/p...')
#8 /var/www/html/presentepronto in /var/www/html/presentepronto.com.br/web/wp-content/plugins/elementor/includes/plugin.php on line 592