403Webshell
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/testsite1441.ru/wp-content/themes/hotello/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/testsite1441.ru/wp-content/themes/hotello//functions.php
<?php

/**
 * Hotel functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package Hotel
 */

define('HOTELLO_INCLUDE_PATH', get_template_directory() . '/inc');
define('HOTELLO_INCLUDE_URL', get_template_directory_uri() . '/inc');
define('HOTELLO_ADMIN_INCLUDE_PATH', HOTELLO_INCLUDE_PATH . '/admin');
define('HOTELLO_ADMIN_INCLUDE_URL', HOTELLO_INCLUDE_URL . '/admin');
define('HOTELLO_PUBLIC_URL', get_template_directory_uri() . '/public');
define('HOTELLO_PUBLIC_PATH', get_template_directory() . '/public');

function hotello_require($file)
{
    require_once $file;
}

/**
 * Set the content width in pixels, based on the theme's design and stylesheet.
 *
 * Priority 0 to make it available to lower priority callbacks.
 *
 * @global int $content_width
 */
function hotello_content_width()
{
    // This variable is intended to be overruled from themes.
    // Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}.
    // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
    $GLOBALS['content_width'] = apply_filters('hotel_content_width', 640);
}

add_action('after_setup_theme', 'hotello_content_width', 0);

/**
 * Scripts & styles enqueue
 */
hotello_require(get_template_directory() . '/inc/enqueue.php');

/**
 * Ajax.
 */
hotello_require(HOTELLO_INCLUDE_PATH . '/ajax.php');

/**
 * Implement the Custom Header feature.
 */
hotello_require(get_template_directory() . '/inc/custom-header.php');

/**
 * Custom template tags for this theme.
 */
hotello_require(get_template_directory() . '/inc/template-tags.php');

/**
 * Functions which enhance the theme by hooking into WordPress.
 */
hotello_require(get_template_directory() . '/inc/template-functions.php');

/**
 * Customizer additions.
 */
hotello_require(get_template_directory() . '/inc/customizer.php');

/**
 * Theme setup.
 */
hotello_require(HOTELLO_INCLUDE_PATH . '/setup.php');

/**
 * Comment form modifications.
 */
hotello_require(HOTELLO_INCLUDE_PATH . '/comments.php');

/**
 * Admin scripts & styles.
 */
hotello_require(HOTELLO_ADMIN_INCLUDE_PATH . '/enqueue.php');

/**
 * Admin helpers functions.
 */
hotello_require(HOTELLO_ADMIN_INCLUDE_PATH . '/helpers.php');

/**
 * Print theme options style.
 */
hotello_require(HOTELLO_INCLUDE_PATH . '/print_styles.php');

/**
 * Layout initial config for theme options
 */
hotello_require(HOTELLO_INCLUDE_PATH . '/layout_config.php');

/**
 * Product registration
 */
require_once(HOTELLO_ADMIN_INCLUDE_PATH . '/product_registration/admin.php');

/**
 * TGM for plugins registration
 */
require_once(HOTELLO_ADMIN_INCLUDE_PATH . '/tgm/registration.php');

/**
 * Admin panel notifications
 */
require_once(HOTELLO_ADMIN_INCLUDE_PATH . '/notifications/main.php');

/**
 * Load Jetpack compatibility file.
 */
if (defined('JETPACK__VERSION')) {
    require_once get_template_directory() . '/inc/jetpack.php';
}


/**
 * Header functions
 */
hotello_require(HOTELLO_INCLUDE_PATH . '/header_helpers.php');

/**
 * Plugin mods
 */
if (class_exists('Hotelier')) {
    hotello_require(HOTELLO_INCLUDE_PATH . '/plugins_mods/wp-hotelier/index.php');
}

/**
 * visual composer additions.
 */
if (defined('WPB_VC_VERSION')) {
    hotello_require(get_template_directory() . '/inc/vc/visual_composer.php');
}

hotello_require(HOTELLO_ADMIN_INCLUDE_PATH . '/theme_options/main.php');

Youez - 2016 - github.com/yon3zu
LinuXploit