|
Server IP : 10.131.40.8 / Your IP : 216.73.216.37 Web Server : Apache System : Linux webd008.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : ludmqhh ( 137773) PHP Version : 8.4.10 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/l/u/d/ludmqhh/www/hotel-forum/wp-content/themes/hotello/vc_templates/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract( $atts );
$classes = array('stm_contact');
$classes[] = 'stm_contact_' . $style;
$classes[] = (empty($name)) ? 'stm_contact_noname' : '';
hotello_add_element_style('contact', $style);
$image = hotello_get_VC_attachment_img_safe($image, $image_size);
$classes[] = (empty($name)) ? 'nameless' : 'named';
?>
<div class="<?php echo esc_attr(implode(' ', $classes)) ?>">
<?php if( ! empty( $image ) ){ ?>
<div class="stm_contact__image">
<?php echo html_entity_decode( $image); ?>
</div>
<?php } ?>
<div class="stm_contact__info">
<h5 class="stm_contact__info__title no_line stm_mgb_5"><?php echo sanitize_text_field( $name ); ?></h5>
<?php if( $job ){ ?>
<div class="h6"><?php echo sanitize_text_field( $job ); ?></div>
<?php } ?>
<?php if( $phone ){ ?>
<div class="stm_contact__row stm_contact__row_phone heading_font_family">
<span><?php _e( 'Phone: ', 'hotello' ); ?></span><strong class="mtc"><?php echo sanitize_text_field( $phone ); ?></strong>
</div>
<?php } ?>
<?php if( $email ){ ?>
<div class="stm_contact__row stm_contact__row_email">
<span><?php _e( 'Email: ', 'hotello' ); ?></span>
<a href="mailto:<?php echo sanitize_text_field( $email ); ?>">
<?php echo sanitize_text_field( $email ); ?>
</a>
</div>
<?php } ?>
<?php if( $skype ){ ?>
<div class="stm_contact__row stm_contact__row_skype">
<span class="mtc"><?php _e( 'Skype: ', 'hotello' ); ?></span><?php echo sanitize_text_field( $skype ); ?>
</div>
<?php } ?>
</div>
</div>
