PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | elementor-elements/classes/wdk-map.php +30 -2 1.5.3 → 1.5.9 View file →
@@ -167,9 +167,9 @@
167 167 $this->data['is_edit_mode']= false;
168 168 if(Plugin::$instance->editor->is_edit_mode())
169 169 $this->data['is_edit_mode']= true;
170 170
171 - echo $this->view('wdk-map', $this->data);
171 + $this->view('wdk-map', $this->data, true);
172 172
173 173 }
174 174
175 175 private function generate_controls_conf() {
@@ -200,9 +200,14 @@
200 200 'label' => __( 'Layout Template id', 'wpdirectorykit' ),
201 201 'type' => \Elementor\Controls_Manager::TEXT,
202 202 'default' => '',
203 203 'placeholder' => __( 'put your template id', 'wpdirectorykit' ),
204 - 'description' => __( 'Create layout here', 'wpdirectorykit' ).' '.wdk_sprintf(__('%1$s here %2$s','wpdirectorykit'),'<a target="_blank" href="'.admin_url('edit.php?post_type=elementor_library#add_new').'">','</a>'),
204 + 'description' => __( 'Create layout here', 'wpdirectorykit' ) . ' ' . wdk_sprintf(
205 + /* translators: 1: Tag with link open, 2: close link tag. */
206 + __('%1$s here %2$s', 'wpdirectorykit'),
207 + '<a target="_blank" href="' . esc_urL(admin_url('edit.php?post_type=elementor_library#add_new')) . '">',
208 + '</a>'
209 + ),
205 210 'conditions' => [
206 211 'terms' => [
207 212 [
208 213 'name' => 'is_custom_layout_enable',
@@ -497,9 +502,11 @@
497 502 $this->add_control(
498 503 'jawg_map_key',
499 504 [
500 505 'label' => __( 'Jawg Map API Key', 'wpdirectorykit' ),
506 + /* translators: 1: URL. */
501 507 'description' => wdk_sprintf(__( 'Please follow link and get API key <a href="%1$s" target="_blank"> here </a>', 'wpdirectorykit' ), 'https://www.jawg.io/en/pricing')
508 + /* translators: 1: URL. */
502 509 .' '.wdk_sprintf(__( 'or check demo maps <a href="%1$s" target="_blank"> here </a>', 'wpdirectorykit' ), 'https://www.jawg.io/en/maps'),
503 510 'type' => \Elementor\Controls_Manager::TEXT,
504 511 'default' => '',
505 512 'condition' => [
@@ -513,11 +520,31 @@
513 520 ]
514 521 );
515 522
516 523 $this->add_control(
524 + 'carto_map_key',
525 + [
526 + 'label' => __( 'Carto Map API Key', 'wpdirectorykit' ),
527 + /* translators: 1: URL. */
528 + 'description' => wdk_sprintf(__( 'Please follow link and get API key <a href="%1$s" target="_blank"> here </a>', 'wpdirectorykit' ), 'https://carto.com/basemaps/apikey/'),
529 + 'type' => \Elementor\Controls_Manager::TEXT,
530 + 'default' => '',
531 + 'condition' => [
532 + 'conf_custom_map_style' => [
533 + 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}{r}.png',
534 + 'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png',
535 + 'https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png',
536 + 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}{r}.png',
537 + ],
538 + ],
539 + ]
540 + );
541 +
542 + $this->add_control(
517 543 'thunderforest_map_key',
518 544 [
519 545 'label' => __( 'Thunderforest Map API Key', 'wpdirectorykit' ),
546 + /* translators: 1: URL. */
520 547 'description' => wdk_sprintf(__( 'Please follow link and get API key <a href="%1$s" target="_blank"> here </a>', 'wpdirectorykit' ), 'https://www.thunderforest.com/pricing/'),
521 548 'type' => \Elementor\Controls_Manager::TEXT,
522 549 'default' => '',
523 550 'condition' => [
@@ -537,8 +564,9 @@
537 564 $this->add_control(
538 565 'google_map_key',
539 566 [
540 567 'label' => __( 'Google Map API Key', 'wpdirectorykit' ),
568 + /* translators: 1: URL. */
541 569 'description' => wdk_sprintf(__( 'Please follow link and get API key <a href="%1$s" target="_blank"> here </a>', 'wpdirectorykit' ), 'https://developers.google.com/maps/documentation/javascript/get-api-key'),
542 570 'type' => \Elementor\Controls_Manager::TEXT,
543 571 'default' => '',
544 572 'condition' => [