-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v5.19.0
- Loading branch information
Showing
74 changed files
with
36,371 additions
and
30,348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -851,6 +851,7 @@ public function page() | |
elseif($tab == 'MEC-single') $this->single(); | ||
elseif($tab == 'MEC-booking') $this->booking(); | ||
elseif($tab == 'MEC-modules') $this->modules(); | ||
elseif($tab == 'MEC-integrations') $this->integrations(); | ||
elseif (apply_filters('mec_is_custom_settings',false,$tab)){ | ||
do_action('mec_display_settings_page',$tab); | ||
} | ||
|
@@ -983,6 +984,20 @@ public function messages() | |
echo $output = ob_get_clean(); | ||
} | ||
|
||
/** | ||
* Show content of integrations tab | ||
* @author Webnus <[email protected]> | ||
* @return void | ||
*/ | ||
public function integrations() | ||
{ | ||
$path = MEC::import('app.features.mec.integrations', true, true); | ||
|
||
ob_start(); | ||
include $path; | ||
echo $output = ob_get_clean(); | ||
} | ||
|
||
/** | ||
* Whether to include google recaptcha library | ||
* @author Webnus <[email protected]> | ||
|
@@ -1326,17 +1341,16 @@ public function widget_news() | |
} | ||
|
||
public function dashboard_widget_total_booking_ajax_handler() | ||
{ | ||
|
||
{ | ||
$start = isset($_REQUEST['start']) ? sanitize_text_field($_REQUEST['start']) : date('Y-m-d', strtotime('-15 days')); | ||
$end = isset($_REQUEST['end']) ? sanitize_text_field($_REQUEST['end']) : date('Y-m-d'); | ||
$type = isset($_REQUEST['type']) ? sanitize_text_field($_REQUEST['type']) : 'daily'; | ||
$chart = isset($_REQUEST['chart']) ? sanitize_text_field($_REQUEST['chart']) : 'bar'; | ||
|
||
$chart = isset($_REQUEST['chart']) ? sanitize_text_field($_REQUEST['chart']) : 'bar'; | ||
|
||
ob_start(); | ||
$this->display_total_booking_chart($start,$end,$type,$chart); | ||
$this->display_total_booking_chart($start, $end, $type, $chart); | ||
$r = ob_get_clean(); | ||
|
||
wp_send_json($r); | ||
} | ||
|
||
|
Oops, something went wrong.