REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.49 KB
Close
/home/nshryvcy/blissfulnepal.com/wp-content/themes/traveltour/include/maintenance.php
Text
Base64
<?php /* * Goodlayers Maintenance File * --------------------------------------------------------------------- * This file contains the script that handles the maintenance mode * --------------------------------------------------------------------- */ // modify front page query add_action('pre_get_posts', 'traveltour_maintenance_query'); if( !function_exists('traveltour_maintenance_query') ){ function traveltour_maintenance_query( $query ){ if( !$query->is_main_query() ) return $query; global $pagenow; $maintenance = traveltour_get_option('plugin', 'enable-maintenance', 'disable'); if( $maintenance == 'disable' || is_user_logged_in() || $pagenow == 'wp-login.php' || is_admin() ) return; // if at front page if( is_home() || (get_option('show_on_front') == 'page' && $query->get('page_id') == get_option('page_on_front')) ){ $maintenance_page = traveltour_get_option('plugin', 'maintenance-page', ''); if( !empty($maintenance_page) ){ $query->set('page_id', $maintenance_page); $query->set('post_type', 'page'); $query->is_home = 0; $query->is_page = 1; $query->is_singular = 1; add_filter('template_include', 'traveltour_maintenance_template', 99999); } }else{ wp_redirect(home_url('/')); exit; } return $query; } } // set maintenance page template if( !function_exists('traveltour_maintenance_template') ){ function traveltour_maintenance_template( $template ){ return get_page_template(); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
options
DIR
-
drwxr-xr-x
2024-05-28 15:48:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
function-regist.php
9.21 KB
lrw-r--r--
2024-05-28 15:48:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
goodlayers-core-element-filter.php
3.84 KB
lrw-r--r--
2024-05-28 15:48:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
goodlayers-core-filter.php
1.66 MB
lrw-r--r--
2024-05-28 15:48:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
header-settings.php
63.06 KB
lrw-r--r--
2024-05-28 15:48:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
include-script.php
2.53 KB
lrw-r--r--
2024-05-28 15:48:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
maintenance.php
1.49 KB
lrw-r--r--
2024-05-28 15:48:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
navigation-menu.php
9.41 KB
lrw-r--r--
2024-05-28 15:48:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pb-element-title.php
16.08 KB
lrw-r--r--
2024-05-28 15:48:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utility.php
9.66 KB
lrw-r--r--
2024-05-28 15:48:51
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).