| Server IP : 89.108.64.180 / Your IP : 216.73.216.229 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/hotelgerda.ru/wp-content/themes/hoteller/lib/ |
Upload File : |
<?php
if ( function_exists( 'add_theme_support' ) ) {
// Setup thumbnail support
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'custom-background' );
}
if ( function_exists( 'add_image_size' ) ) {
//Setup image grid dimensions
$pp_gallery_grid_image_width = get_option('pp_gallery_grid_image_width');
if(empty($pp_gallery_grid_image_width))
{
$pp_gallery_grid_image_width = 700;
}
$pp_gallery_grid_image_height = get_option('pp_gallery_grid_image_height');
if(empty($pp_gallery_grid_image_height))
{
$pp_gallery_grid_image_height = 466;
}
$image_crop = true;
if($pp_gallery_grid_image_height == 9999)
{
$image_crop = false;
}
add_image_size( 'hoteller-gallery-grid', intval($pp_gallery_grid_image_width), intval($pp_gallery_grid_image_height), $image_crop );
//Setup image masonry dimensions
$pp_gallery_masonry_image_width = get_option('pp_gallery_masonry_image_width');
if(empty($pp_gallery_masonry_image_width))
{
$pp_gallery_masonry_image_width = 440;
}
$pp_gallery_masonry_image_height = get_option('pp_gallery_masonry_image_height');
if(empty($pp_gallery_masonry_image_height))
{
$pp_gallery_masonry_image_height = 9999;
}
$image_crop = true;
if($pp_gallery_masonry_image_height == 9999)
{
$image_crop = false;
}
add_image_size( 'hoteller-gallery-masonry', intval($pp_gallery_masonry_image_width), intval($pp_gallery_masonry_image_height), $image_crop );
//Setup image grid list dimensions
$pp_gallery_list_image_width = get_option('pp_gallery_list_image_width');
if(empty($pp_gallery_list_image_width))
{
$pp_gallery_list_image_width = 610;
}
$pp_gallery_list_image_height = get_option('pp_gallery_list_image_height');
if(empty($pp_gallery_list_image_height))
{
$pp_gallery_list_image_height = 610;
}
$image_crop = true;
if($pp_gallery_list_image_height == 9999)
{
$image_crop = false;
}
add_image_size( 'hoteller-gallery-list', intval($pp_gallery_list_image_width), intval($pp_gallery_list_image_height), $image_crop );
add_image_size( 'hoteller-album-grid', 660, 913, true );
//Setup image blog dimensions
$pp_blog_image_width = get_option('pp_blog_image_width');
if(empty($pp_blog_image_width))
{
$pp_blog_image_width = 960;
}
$pp_blog_image_height = get_option('pp_blog_image_height');
if(empty($pp_blog_image_height))
{
$pp_blog_image_height = 604;
}
$image_crop = true;
if($pp_blog_image_height == 9999)
{
$image_crop = false;
}
add_image_size( 'hoteller-blog', intval($pp_blog_image_width), intval($pp_blog_image_height), $image_crop );
}
add_action( 'after_setup_theme', 'hoteller_woocommerce_support' );
function hoteller_woocommerce_support() {
add_theme_support( 'woocommerce' );
}
add_theme_support( 'post-formats', array('video') );
/* Flush rewrite rules for custom post types. */
add_action( 'after_switch_theme', 'flush_rewrite_rules' );
?>