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-listing-agent.php +9 -8 1.3.2 → 1.5.9 View file →
@@ -171,10 +171,10 @@
171 171
172 172 $this->data['listing_agency'] = false;
173 173 if($this->data['settings']['listing_agency_disabled'] !='yes') {
174 174 if(function_exists('run_wdk_membership') && file_exists(WDK_MEMBERSHIP_PATH.'application/models/Agency_agent_m.php')) {
175 - if(wmvc_show_data('user_id_editor', $listing, '',TRUE, TRUE)) {
176 - $Winter_MVC_wdk_membership->model('agency_agent_m');
175 + if(!empty($Winter_MVC_wdk_membership) && wmvc_show_data('user_id_editor', $listing, '',TRUE, TRUE)) {
176 + $Winter_MVC_wdk_membership->model('agency_agent_m');
177 177 $agent_id = wmvc_show_data('user_id_editor', $listing, '',TRUE, TRUE);
178 178 $agent_agency = $Winter_MVC_wdk_membership->agency_agent_m->get_by(array('agent_id' => $agent_id, 'status' => 'CONFIRMED'), TRUE);
179 179 if($agent_agency) {
180 180 $user = wdk_get_user_data( wmvc_show_data('agency_id', $agent_agency, 0));
@@ -188,11 +188,11 @@
188 188
189 189 $this->data['is_edit_mode']= false;
190 190 if(Plugin::$instance->editor->is_edit_mode()) {
191 191 $this->data['is_edit_mode']= true;
192 - echo $this->view('wdk-listing-agent-demo', $this->data);
192 + $this->view('wdk-listing-agent-demo', $this->data, true);
193 193 } else {
194 - echo $this->view('wdk-listing-agent', $this->data);
194 + $this->view('wdk-listing-agent', $this->data, true);
195 195 }
196 196
197 197 }
198 198
@@ -363,9 +363,9 @@
363 363 'min' => 0,
364 364 'max' => 100,
365 365 ],
366 366 ],
367 - 'size_units' => [ 'px', 'vw' ],
367 + 'size_units' => [ 'px','em', 'vw', '%', 'custom' ],
368 368 'default' => [
369 369 'size' => 90,
370 370 'unit' => 'px',
371 371 ],
@@ -405,9 +405,9 @@
405 405 'min' => 0,
406 406 'max' => 100,
407 407 ],
408 408 ],
409 - 'size_units' => [ 'px', 'vw' ],
409 + 'size_units' => [ 'px','em', 'vw', '%', 'custom' ],
410 410 'selectors' => [
411 411 '{{WRAPPER}} .wdk-element .wdk-listing-agent .agent-thumbnail img' => 'max-height: {{SIZE}}{{UNIT}};',
412 412 ],
413 413 'conditions' => [
@@ -441,9 +441,9 @@
441 441 'min' => 0,
442 442 'max' => 100,
443 443 ],
444 444 ],
445 - 'size_units' => [ 'px', 'vw' ],
445 + 'size_units' => [ 'px','em', 'vw', '%', 'custom' ],
446 446 'default' => [
447 447 'size' => 250,
448 448 'unit' => 'px',
449 449 ],
@@ -476,14 +476,15 @@
476 476 'description' => __('Bio', 'wpdirectorykit'),
477 477 'wdk_facebook' => __('Facebook', 'wpdirectorykit'),
478 478 'wdk_youtube' => __('Youtube', 'wpdirectorykit'),
479 479 'wdk_address' => __('Address', 'wpdirectorykit'),
480 + 'wdk_country' => __('Country', 'wpdirectorykit'),
480 481 'wdk_city' => __('City', 'wpdirectorykit'),
481 482 'wdk_position_title' => __('Position Title', 'wpdirectorykit'),
482 483 'wdk_linkedin' => __('Linkedin', 'wpdirectorykit'),
483 484 'wdk_twitter' => __('Twitter', 'wpdirectorykit'),
484 485 'wdk_telegram' => __('Telegram', 'wpdirectorykit'),
485 - 'wdk_whatsapp' => __('What`s App', 'wpdirectorykit'),
486 + 'wdk_whatsapp' => __('WhatsApp', 'wpdirectorykit'),
486 487 'wdk_viber' => __('Viber', 'wpdirectorykit'),
487 488 'wdk_iban' => __('IBAN', 'wpdirectorykit'),
488 489 'wdk_company_name' => __('Company name', 'wpdirectorykit'),
489 490 'agency_name' => __('Agency Name', 'wpdirectorykit'),