|
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);
hotello_add_element_style('cf7', $style);
$c_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class($css, ' '));
$form_classes = array("stm_cf7", "stm_cf7_{$style}", $c_class);
$form_class_string = ''; //classes string for print
if (empty($form)) {
return;
}
if (!empty($form_custom_class)) { //vc param
$form_classes[] = $form_custom_class;
}
$form_class_string = 'html_class="' . implode(' ', $form_classes) . '"';
if (!empty($form_id)) { //vc param
$form_id = "html_id=\"{$form_id}\"";
}
echo do_shortcode("[contact-form-7 id={$form} {$form_id} {$form_class_string}]");