PluginProbe
Elementor Website Builder – more than just a page builder / 3.4.0-dev9
Elementor Website Builder – more than just a page builder v3.4.0-dev9
4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 All 455 releases
← All changes | core/kits/documents/tabs/settings-site-identity.php +8 -24 4.3.0 → 3.4.0-dev9 View file →
@@ -2,13 +2,13 @@
2 2
3 3 namespace Elementor\Core\Kits\Documents\Tabs;
4 4
5 5 use Elementor\Controls_Manager;
6 +use Elementor\Core\Files\Assets\Files_Upload_Handler;
6 7 use Elementor\Core\Base\Document;
7 -use Elementor\Core\Files\Uploads_Manager;
8 8
9 9 if ( ! defined( 'ABSPATH' ) ) {
10 - exit; // Exit if accessed directly.
10 + exit; // Exit if accessed directly
11 11 }
12 12
13 13 class Settings_Site_Identity extends Tab_Base {
14 14
@@ -28,9 +28,9 @@
28 28 return 'eicon-site-identity';
29 29 }
30 30
31 31 public function get_help_url() {
32 - return 'https://go.elementor.com/global-site-identity/';
32 + return 'https://go.elementor.com/global-site-identity';
33 33 }
34 34
35 35 protected function register_tab_controls() {
36 36 $custom_logo_id = get_theme_mod( 'custom_logo' );
@@ -39,9 +39,9 @@
39 39 $site_icon_id = get_option( 'site_icon' );
40 40 $site_icon_src = wp_get_attachment_image_src( $site_icon_id, 'full' );
41 41
42 42 // If CANNOT upload svg normally, it will add a custom inline option to force svg upload if requested. (in logo and favicon)
43 - $should_include_svg_inline_option = ! Uploads_Manager::are_unfiltered_uploads_enabled();
43 + $should_include_svg_inline_option = ! Files_Upload_Handler::is_enabled();
44 44
45 45 $this->start_controls_section(
46 46 'section_' . $this->get_id(),
47 47 [
@@ -52,17 +52,11 @@
52 52
53 53 $this->add_control(
54 54 $this->get_id() . '_refresh_notice',
55 55 [
56 - 'type' => Controls_Manager::ALERT,
57 - 'alert_type' => 'info',
58 - 'content' => sprintf(
59 - /* translators: 1: Link open tag, 2: Link open tag, 3: Link close tag. */
60 - esc_html__( 'Changes will be reflected only after %1$s saving %3$s and %2$s reloading %3$s preview.', 'elementor' ),
61 - '<a href="javascript: $e.run( \'document/save/default\' )">',
62 - '<a href="javascript: $e.run( \'preview/reload\' )">',
63 - '</a>'
64 - ),
56 + 'type' => Controls_Manager::RAW_HTML,
57 + 'raw' => esc_html__( 'Changes will be reflected in the preview only after the page reloads.', 'elementor' ),
58 + 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
65 59 ]
66 60 );
67 61
68 62 $this->add_control(
@@ -96,20 +90,10 @@
96 90 'default' => [
97 91 'id' => $custom_logo_id,
98 92 'url' => $custom_logo_src ? $custom_logo_src[0] : '',
99 93 ],
100 - 'description' => sprintf(
101 - /* translators: 1: Width number pixel, 2: Height number pixel. */
102 - esc_html__( 'Suggested image dimensions: %1$s × %2$s pixels.', 'elementor' ),
103 - '350',
104 - '100'
105 - ),
94 + 'description' => esc_html__( 'Suggested image dimensions: 350 × 100 pixels.', 'elementor' ),
106 95 'export' => false,
107 - 'ai' => [
108 - 'active' => true,
109 - 'type' => 'media',
110 - 'category' => 'vector',
111 - ],
112 96 ]
113 97 );
114 98
115 99 $this->add_control(