← All changes
|
core/kits/documents/tabs/settings-site-identity.php
+6
-22
4.3.1
→
3.6.2
View file →
| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | use Elementor\Core\Base\Document; |
| 7 | 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' ); |
| @@ -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( |