| @@ -92,26 +92,8 @@ | ||
| 92 | 92 | return false; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * Get style dependencies. | |
| 97 | - * | |
| 98 | - * Retrieve the list of style dependencies the widget requires. | |
| 99 | - * | |
| 100 | - * @since 3.24.0 | |
| 101 | - * @access public | |
| 102 | - * | |
| 103 | - * @return array Widget style dependencies. | |
| 104 | - */ | |
| 105 | - public function get_style_depends(): array { | |
| 106 | - return [ 'widget-google_maps' ]; | |
| 107 | - } | |
| 108 | - | |
| 109 | - public function has_widget_inner_wrapper(): bool { | |
| 110 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 111 | - } | |
| 112 | - | |
| 113 | - /** | |
| 114 | 96 | * Register google maps widget controls. |
| 115 | 97 | * |
| 116 | 98 | * Adds different input fields to allow the user to change and customize the widget settings. |
| 117 | 99 | * |
| @@ -137,9 +119,9 @@ | ||
| 137 | 119 | 'alert_type' => 'info', |
| 138 | 120 | 'content' => sprintf( |
| 139 | 121 | /* translators: 1: Integration settings link open tag, 2: Create API key link open tag, 3: Link close tag. */ |
| 140 | 122 | esc_html__( 'Set your Google Maps API Key in Elementor\'s %1$sIntegrations Settings%3$s page. Create your key %2$shere.%3$s', 'elementor' ), |
| 141 | - '<a href="' . Settings::get_settings_tab_url( 'integrations' ) . '" target="_blank">', | |
| 123 | + '<a href="' . Settings::get_url() . '#tab-integrations" target="_blank">', | |
| 142 | 124 | '<a href="https://developers.google.com/maps/documentation/embed/get-api-key" target="_blank">', |
| 143 | 125 | '</a>' |
| 144 | 126 | ), |
| 145 | 127 | ] |
| @@ -324,14 +306,5 @@ | ||
| 324 | 306 | * @since 2.9.0 |
| 325 | 307 | * @access protected |
| 326 | 308 | */ |
| 327 | 309 | protected function content_template() {} |
| 328 | - | |
| 329 | - public function render_markdown(): string { | |
| 330 | - $settings = $this->get_settings_for_display(); | |
| 331 | - $address = Utils::html_to_plain_text( $settings['address'] ?? '' ); | |
| 332 | - if ( empty( $address ) ) { | |
| 333 | - return ''; | |
| 334 | - } | |
| 335 | - return '[Map: ' . $address . '](https://maps.google.com/maps?q=' . rawurlencode( $address ) . ')'; | |
| 336 | - } | |
| 337 | 310 | } |