| Server IP : 89.108.64.180 / Your IP : 216.73.217.92 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/v-tihvin.ru/wp-content/plugins/nd-booking/inc/admin/orders/ |
Upload File : |
<?php
add_action('admin_menu','nd_booking_add_settings_menu_orders');
function nd_booking_add_settings_menu_orders(){
add_submenu_page( 'nd-booking-settings','Orders', __('All Orders','nd-booking'), 'manage_options', 'nd-booking-settings-orders', 'nd_booking_settings_menu_orders' );
//custom hook
do_action("nd_booking_add_menu_page_after_order");
}
function nd_booking_settings_menu_orders() {
//custom hook
do_action("nd_booking_before_orders_list");
?>
<div class="nd_booking_section nd_booking_padding_right_20 nd_booking_padding_left_2 nd_booking_box_sizing_border_box nd_booking_margin_top_25 ">
<?php nd_booking_get_table_orders(); ?>
</div>
<?php }
function nd_booking_get_table_orders(){
//START if
if ( isset($_POST['edit_order_id']) OR isset($_POST['nd_booking_order_id']) ) {
include realpath(dirname( __FILE__ ).'/include/edit.php');
}elseif ( isset($_POST['delete_order_id']) OR isset($_POST['nd_booking_delete_order_id']) ){
include realpath(dirname( __FILE__ ).'/include/delete.php');
}else{
include realpath(dirname( __FILE__ ).'/include/orders.php');
}
//END if
$nd_booking_allowed_html = [
'div' => [
'class' => [],
'style' => [],
],
'h1' => [
'class' => [],
'style' => [],
],
'ul' => [
'class' => [],
],
'li' => [
'class' => [],
],
'a' => [
'href' => [],
'class' => [],
'style' => [],
'download' => [],
],
'span' => [
'class' => [],
'style' => [],
'aria-hidden' => [],
],
'style' => [],
'h2' => [],
'table' => [
'class' => [],
],
'tbody' => [],
'tr' => [
'class' => [],
],
'td' => [
'width' => [],
'style' => [],
'class' => [],
],
'img' => [
'class' => [],
'width' => [],
'src' => [],
],
'form' => [
'class' => [],
'method' => [],
],
'input' => [
'type' => [],
'name' => [],
'value' => [],
'class' => [],
'readonly' => [],
],
'strong' => [],
'u' => [],
'h3' => [
'class' => [],
],
'textarea' => [
'name' => [],
'class' => [],
'rows' => [],
],
'p' => [
'class' => [],
],
'h4' => [
'class' => [],
],
'label' => [
'class' => [],
'style' => [],
],
'select' => [
'name' => [],
'class' => [],
'id' => [],
],
'option' => [
'value' => [],
'selected' => [],
],
'script' => [
'type' => [],
],
];
echo wp_kses( $nd_booking_result, $nd_booking_allowed_html );
}
include realpath(dirname( __FILE__ ).'/include/add.php');