| 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/hostelkey.ru/wp-content/themes/hotelmaster/ |
Upload File : |
<?php
/*
* Goodlayers Function File
* ---------------------------------------------------------------------
* This file include all of important function and features of the theme
* ---------------------------------------------------------------------
*/
////// DO NOT REMOVE OR MODIFY THIS /////
define('WP_THEME_KEY', 'goodlayers'); //
/////////////////////////////////////////
define('THEME_FULL_NAME', 'Hotel Master');
define('THEME_SHORT_NAME', 'htms');
define('THEME_SLUG', 'hotelmaster');
global $sitepress, $polylang;
if( !empty($sitepress) ){
define('AJAX_URL', admin_url('admin-ajax.php?lang=' . $sitepress->get_current_language()));
}else{
if( !is_admin() && !empty($polylang) && function_exists('pll_current_language') ){
add_action('wp', 'gdlr_set_polylang_ajax_url');
}else{
define('AJAX_URL', admin_url('admin-ajax.php'));
}
}
define('GDLR_PATH', get_template_directory_uri());
define('GDLR_LOCAL_PATH', get_template_directory());
if ( !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443 ) {
define('GDLR_HTTP', 'https://');
}else{
define('GDLR_HTTP', 'http://');
}
if( !function_exists('gdlr_set_polylang_ajax_url') ){
function gdlr_set_polylang_ajax_url(){
define('AJAX_URL', admin_url('admin-ajax.php?lang=' . pll_current_language('locale')));
}
}
$gdlr_gallery_id = 0;
$gdlr_lightbox_id = 0;
$gdlr_crop_video = false;
$gdlr_excerpt_length = 55;
$gdlr_excerpt_read_more = true;
$gdlr_spaces = array(
'top-wrapper' => '55px',
'bottom-wrapper'=>'40px',
'top-full-wrapper' => '0px',
'bottom-item' => '20px',
'bottom-blog-item' => '0px',
'bottom-divider-item' => '50px'
);
$theme_option = get_option(THEME_SHORT_NAME . '_admin_option', array());
$theme_option['content-width'] = 960;
// include goodlayers framework
include_once( 'framework/gdlr-framework.php' );
//-------------------------- theme section ---------------------------//
// create sidebar controller
global $gdlr_sidebar_controller;
$gdlr_sidebar_controller = new gdlr_sidebar_generator();
// create font controller
if( empty($theme_option['upload-font']) ){ $theme_option['upload-font'] = ''; }
global $gdlr_font_controller;
$gdlr_font_controller = new gdlr_font_loader( json_decode($theme_option['upload-font'], true) );
// create navigation controller
if( empty($theme_option['enable-goodlayers-navigation']) || $theme_option['enable-goodlayers-navigation'] != 'disable'){
include_once( 'include/gdlr-navigation-menu.php');
}
if( empty($theme_option['enable-goodlayers-mobile-navigation']) || $theme_option['enable-goodlayers-mobile-navigation'] != 'disable'){
include_once( 'include/gdlr-responsive-menu.php');
}
// utility function
include_once( 'include/function/gdlr-media.php');
include_once( 'include/function/gdlr-utility.php');
// register function / filter / action
include_once( 'functions-size.php');
include_once( 'include/gdlr-include-script.php');
include_once( 'include/function/gdlr-function-regist.php');
// create admin option
include_once( 'include/gdlr-admin-option.php');
include_once( 'include/gdlr-plugin-option.php');
include_once( 'include/gdlr-font-controls.php');
include_once( 'include/gdlr-social-icon.php');
// create page options
include_once( 'include/gdlr-page-options.php');
include_once( 'include/gdlr-demo-page.php');
include_once( 'include/gdlr-post-options.php');
// create page builder
include_once( 'include/gdlr-page-builder-option.php');
include_once( 'include/function/gdlr-page-builder.php');
include_once( 'include/function/gdlr-page-item.php');
include_once( 'include/function/gdlr-blog-item.php');
// widget
include_once( 'include/widget/recent-comment.php');
include_once( 'include/widget/recent-post-widget.php');
include_once( 'include/widget/popular-post-widget.php');
include_once( 'include/widget/post-slider-widget.php');
include_once( 'include/widget/recent-port-widget.php');
include_once( 'include/widget/recent-port-widget-2.php');
include_once( 'include/widget/port-slider-widget.php');
include_once( 'include/widget/twitter-widget.php');
include_once( 'include/widget/flickr-widget.php');
include_once( 'include/widget/video-widget.php');
include_once( 'include/widget/post-slider-widget.php');
include_once( 'include/widget/recent-room-widget.php');
// plugin support
include_once( 'plugins/wpml.php');
include_once( 'plugins/layerslider.php' );
include_once( 'plugins/masterslider.php' );
include_once( 'plugins/woocommerce.php' );
include_once( 'plugins/twitteroauth.php' );
include_once( 'plugins/goodlayers-importer.php' );
if( empty($theme_option['enable-plugin-recommendation']) || $theme_option['enable-plugin-recommendation'] == 'enable' ){
include_once( 'include/plugin/gdlr-plugin-activation.php');
}
// init include script class
if( !is_admin() ){ new gdlr_include_script(); }
// revision
include_once(get_template_directory() . '/gdlr-revision.php');
?>