403Webshell
Server IP : 77.50.203.18  /  Your IP : 192.168.0.10
Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23
System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64
User : warsnews.ru ( 1001)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/ifwar.ru/www/wp-content/plugins/clever-fox/inc/hotel-26/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ifwar.ru/www/wp-content/plugins/clever-fox/inc/hotel-26/dynamic-style.php
<?php
	if ( ! defined( 'ABSPATH' ) ) exit;
	if( ! function_exists( 'cleverfox_hotel_26_dynamic_styles' ) ):
    function cleverfox_hotel_26_dynamic_styles() {
		$output_css = '';
		
		
		/**
		 * Logo Width 
		 */
		 $logo_width			= get_theme_mod('logo_width','250');		 
		if($logo_width !== '') { 
				$output_css .=".logo img, .mobile-logo img {
					max-width: " .esc_attr($logo_width). "px;
				}\n";
			}
		
		/**
		 *  Typography Body
		 */
		 $hotel_26_body_text_transform	 	 = get_theme_mod('hotel_26_body_text_transform','inherit');
		 $hotel_26_body_font_style	 		 = get_theme_mod('hotel_26_body_font_style','inherit');
		 $hotel_26_body_font_size	 		 = get_theme_mod('hotel_26_body_font_size','15');
		 $hotel_26_body_line_height		 = get_theme_mod('hotel_26_body_line_height','1.5');
		
		 $output_css .=" body{ 
			font-size: " .esc_attr($hotel_26_body_font_size). "px;
			line-height: " .esc_attr($hotel_26_body_line_height). ";
			text-transform: " .esc_attr($hotel_26_body_text_transform). ";
			font-style: " .esc_attr($hotel_26_body_font_style). ";
		}\n";		 
		
		/**
		 *  Typography Heading
		 */
		 for ( $i = 1; $i <= 6; $i++ ) {	
			 $hotel_26_heading_text_transform 	= get_theme_mod('hotel_26_h' . $i . '_text_transform','inherit');
			 $hotel_26_heading_font_style	 	= get_theme_mod('hotel_26_h' . $i . '_font_style','inherit');
			 $hotel_26_heading_font_size	 		 = get_theme_mod('hotel_26_h' . $i . '_font_size');
			 $hotel_26_heading_line_height		 	 = get_theme_mod('hotel_26_h' . $i . '_line_height');
			 
			 $output_css .=" h" . $i . "{ 
				font-size: " .esc_attr($hotel_26_heading_font_size). "px;
				line-height: " .esc_attr($hotel_26_heading_line_height). ";
				text-transform: " .esc_attr($hotel_26_heading_text_transform). ";
				font-style: " .esc_attr($hotel_26_heading_font_style). ";
			}\n";
		 }
		 
		 
		
		/**
		 * Slider
		 */
		$hotel26_slider_overlay_enable 		= get_theme_mod('slider_overlay_enable','1');
		$hotel26_slide_overlay_color 		= get_theme_mod('slide_overlay_color','#000000');
		$hotel26_slider_opacity				= get_theme_mod('slider_opacity','0.6');
		list($br, $bg, $bb) = sscanf($hotel26_slide_overlay_color, "#%02x%02x%02x");
		if($hotel26_slider_overlay_enable == '1') { 
				$output_css .=".theme-slider {
					background: rgba($br, $bg, $bb, $hotel26_slider_opacity);
				}\n";
			}
		/**
		 * Services
		 */
		 $hotel26_service_bg_img	= get_theme_mod('service_bg_img', CLEVERFOX_PLUGIN_URL. 'inc/hotel-26/images/services/bg.jpg');
			$output_css .=".service-section.home {
					background-image: url(".esc_url($hotel26_service_bg_img).");					
			}\n";
			
		/**
		 * Testimonial
		 */
		 $hotel26_testimonial_bg_img	= get_theme_mod('testimonial_bg_img', CLEVERFOX_PLUGIN_URL .'inc/hotel-26/images/testimonial/bg.jpg');
			$output_css .=".testimonial-section {
					background-image: url(".esc_url($hotel26_testimonial_bg_img).");					
			}\n";
			
		/**
		 * Funfact
		 */
		 $hotel26_funfact_bg_img	= get_theme_mod('funfact_bg_img', get_stylesheet_directory_uri(). '/assets/images/bg-shape-1.png');
			$output_css .=".funfact-section::after, .funfact-section::before {
					background-image: url(".esc_url($hotel26_funfact_bg_img).");					
			}\n";
					
	 wp_add_inline_style( 'hotel-26-style', $output_css );
    }
endif;
add_action( 'wp_enqueue_scripts', 'cleverfox_hotel_26_dynamic_styles' );

Youez - 2016 - github.com/yon3zu
LinuXploit