| Server IP : 89.108.64.180 / Your IP : 216.73.216.46 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/vc_templates/ |
Upload File : |
<?php
$atts = vc_map_get_attributes($this->getShortcode(), $atts);
extract($atts);
$uniq_class = 'infobox_' . md5(serialize($atts));
$icon_size = (!empty($icon_size)) ? $icon_size : 60;
$inline_styles = '';
$inline_styles .= ".{$uniq_class} .stm_infobox__icon {font-size: {$icon_size}px} ";
if(!empty($image)) $image = hotello_get_VC_attachment_img_safe($image, '480x650', 'full', true);
if(!empty($image)) $inline_styles .= ".{$uniq_class} .stm_infobox_bg {background-image: url('{$image}')} ";
$style = (isset($style)) ? $style : 'style_1';
hotello_add_element_style('infobox', $style, $inline_styles);
?>
<div class="stm_infobox stm_infobox_<?php echo esc_attr($style); ?> <?php echo esc_attr($uniq_class); ?>">
<div class="stm_infobox_bg"></div>
<div class="inner">
<div class="stm_infobox_front">
<?php if (!empty($icon)): ?>
<i class="stm_infobox__icon mtc <?php echo esc_attr($icon) ?>"></i>
<?php endif; ?>
<?php if (!empty($title)): ?>
<h4><?php echo wp_kses_post($title); ?></h4>
<?php endif; ?>
</div>
<div class="stm_infobox_back">
<?php if (!empty($title)): ?>
<h2><?php echo wp_kses_post($title); ?></h2>
<?php endif; ?>
<?php if(!empty($content)): ?>
<p><?php echo wp_kses_post($content); ?></p>
<?php endif; ?>
</div>
</div>
</div>