REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 4.84 KB
Close
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/tourmaster/room/include/room-service.php
Text
Base64
<?php /* * Tourmaster Plugin * --------------------------------------------------------------------- * for tour post type * --------------------------------------------------------------------- */ // create post type add_action('init', 'tourmaster_room_service_init'); if( !function_exists('tourmaster_room_service_init') ){ function tourmaster_room_service_init() { // custom post type $supports = apply_filters('tourmaster_custom_post_support', array('title', 'author', 'custom-fields'), 'service'); $labels = array( 'name' => esc_html__('Room Service', 'tourmaster'), 'singular_name' => esc_html__('Room Service', 'tourmaster'), 'menu_name' => esc_html__('Room Service', 'tourmaster'), 'name_admin_bar' => esc_html__('Room Service', 'tourmaster'), 'add_new' => esc_html__('Add New Service', 'tourmaster'), 'add_new_item' => esc_html__('Add New Service', 'tourmaster'), 'new_item' => esc_html__('New Service', 'tourmaster'), 'edit_item' => esc_html__('Edit Service', 'tourmaster'), 'view_item' => esc_html__('View Service', 'tourmaster'), 'all_items' => esc_html__('All Service', 'tourmaster'), 'search_items' => esc_html__('Search Service', 'tourmaster'), 'parent_item_colon' => esc_html__('Parent Service:', 'tourmaster'), 'not_found' => esc_html__('No service found.', 'tourmaster'), 'not_found_in_trash' => esc_html__('No service found in Trash.', 'tourmaster') ); $args = array( 'labels' => $labels, 'description' => esc_html__('Description.', 'tourmaster'), 'public' => false, //'publicly_queryable' => false, //'exclude_from_search'=> true, 'show_ui' => true, 'show_in_admin_bar' => false, //'show_in_nav_menus' => false, 'show_in_menu' => 'edit.php?post_type=room', 'query_var' => false, 'map_meta_cap' => true, 'capabilities' => array( 'edit_post' => 'edit_service', 'read_post' => 'read_service', 'delete_post' => 'delete_service', 'delete_posts' => 'delete_services', 'edit_posts' => 'edit_services', 'create_posts' => 'edit_services', 'edit_others_posts' => 'edit_others_services', 'delete_others_posts' => 'edit_others_services', 'publish_posts' => 'publish_services', 'edit_published_posts' => 'publish_services', 'read_private_posts' => 'read_private_services', 'edit_private_posts' => 'read_private_services', 'delete_private_posts' => 'read_private_services', ), 'has_archive' => false, 'hierarchical' => false, 'menu_position' => null, 'supports' => $supports ); register_post_type('room_service', $args); } } // tourmaster_room_service_init // create an option if( is_admin() ){ add_action('after_setup_theme', 'tourmaster_room_service_option_init'); } if( !function_exists('tourmaster_room_service_option_init') ){ function tourmaster_room_service_option_init(){ if( class_exists('tourmaster_page_option') ){ new tourmaster_page_option(array( 'post_type' => array('room_service'), 'title' => esc_html__('Additional Service', 'tourmaster'), 'title-icon' => 'fa fa-plane', 'slug' => 'tourmaster-service-option', 'options' => apply_filters('tourmaster_tour_options', array( 'general' => array( 'title' => esc_html__('General', 'tourmaster'), 'options' => array( 'price' => array( 'title' => esc_html__('Price', 'tourmaster'), 'type' => 'text', 'description' => esc_html__('Only number is allowed here', 'tourmaster') ), 'per' => array( 'title' => esc_html__('Per', 'tourmaster'), 'type' => 'combobox', 'options' => array( 'person' => esc_html__('Person', 'tourmaster'), 'night' => esc_html__('Night', 'tourmaster'), 'room' => esc_html__('Room', 'tourmaster'), 'unit' => esc_html__('Unit', 'tourmaster'), ) ), 'unit-text' => array( 'title' => esc_html__('Unit Text', 'tourmaster'), 'type' => 'text', 'condition' => array('per' => 'unit'), ), 'max-unit' => array( 'title' => esc_html__('Max Unit', 'tourmaster'), 'type' => 'text', 'condition' => array('per' => 'unit'), 'description' => esc_html__('*Per unit will allow customer to put item amount directly from front end.') ), 'mandatory' => array( 'title' => esc_html__('Mandatory', 'tourmaster'), 'type' => 'checkbox', 'default' => 'disable' ), ) ), )) // tourmaster_tour_options )); // tourmaster_page_option } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 17
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
pb
DIR
-
drwxr-xr-x
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
authorize.php
11.11 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
booking-bar.php
39.80 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
enquiry-form.php
8.47 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ical-settings.php
8.29 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mail-util.php
30.10 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
order-util.php
32.42 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
order.php
37.13 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
payment-element.php
81.15 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
paypal.php
9.06 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
review-util.php
15.52 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
room-coupon.php
5.11 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
room-filter.php
2.01 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
room-option.php
47.81 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
room-service.php
4.84 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
room-settings.php
86.03 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
stripe.php
19.74 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
user-page.php
18.43 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).