← All changes
|
core/kits/documents/tabs/settings-site-identity.php
+21
-14
4.2.0-dev2
→
3.8.0-beta1
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 | |
| @@ -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( |
| @@ -103,13 +97,26 @@ | ||
| 103 | 97 | '350', |
| 104 | 98 | '100' |
| 105 | 99 | ), |
| 106 | 100 | 'export' => false, |
| 107 | - 'ai' => [ | |
| 108 | - 'active' => true, | |
| 109 | - 'type' => 'media', | |
| 110 | - 'category' => 'vector', | |
| 101 | + ] | |
| 102 | + ); | |
| 103 | + | |
| 104 | + $this->add_control( | |
| 105 | + 'custom_logo_promotion', | |
| 106 | + [ | |
| 107 | + 'type' => Controls_Manager::RAW_HTML, | |
| 108 | + 'raw' => '<p>' . esc_html__( 'Add a logo to display on your website. Don\'t have one yet? Create a professional logo with Fiverr\'s logo maker.', 'elementor' ) . | |
| 109 | + '</p>' . | |
| 110 | + sprintf( | |
| 111 | + '<a target="_blank" class="elementor-button e-logo-maker" href="%s">%s</a>', | |
| 112 | + 'https://go.fiverr.com/visit/?bta=496327&brand=fiverrcpa&utm_campaign=SiteLogo&landingPage=https%3A%2F%2Fwww.fiverr.com%2Flogo-maker%2Felementor', | |
| 113 | + esc_html__( 'Create a Logo in Minutes', 'elementor' ) | |
| 114 | + ), | |
| 115 | + 'condition' => [ | |
| 116 | + 'site_logo[url]' => '', | |
| 111 | 117 | ], |
| 118 | + 'content_classes' => 'elementor-panel-alert elementor-panel-alert-success', | |
| 112 | 119 | ] |
| 113 | 120 | ); |
| 114 | 121 | |
| 115 | 122 | $this->add_control( |