| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/themes/thevoux-wp/vc_templates/ |
Upload File : |
<?php function thb_subscribe( $atts, $content = null ) {
$style = 'style1';
$atts = vc_map_get_attributes( 'thb_subscribe', $atts );
extract( $atts );
ob_start();
?>
<div class="thb_subscribe <?php echo esc_attr($style); ?>">
<?php if ($style == 'style1') { ?>
<?php if ($title) { ?><h3><?php echo esc_html($title); ?></h3><?php } ?>
<?php if ($description) { ?><p><?php echo esc_html($description); ?></p><?php } ?>
<form class="newsletter-form row" action="#" method="post">
<div class="small-12 medium-9 columns"><input placeholder="<?php _e("Your E-Mail",'thevoux'); ?>" type="text" name="widget_subscribe" class="widget_subscribe"></div>
<div class="small-12 medium-3 columns"><button type="submit" name="submit" class="btn large black"><?php _e("SIGN UP",'thevoux'); ?></button></div>
</form>
<div class="result"></div>
<?php } else { ?>
<div class="row align-middle">
<div class="small-12 medium-6 large-7 columns">
<?php if ($title) { ?><h3><?php echo esc_html($title); ?></h3><?php } ?>
<?php if ($description) { ?><p><?php echo esc_html($description); ?></p><?php } ?>
</div>
<div class="small-12 medium-6 large-5 columns">
<form class="newsletter-form row" action="#" method="post">
<div class="small-12 medium-9 columns"><input placeholder="<?php _e("Your E-Mail",'thevoux'); ?>" type="text" name="widget_subscribe" class="widget_subscribe small"></div>
<div class="small-12 medium-3 columns"><button type="submit" name="submit" class="btn small black"><?php _e("SIGN UP",'thevoux'); ?></button></div>
</form>
<div class="result"></div>
</div>
</div>
<?php } ?>
</div>
<?php
$out = ob_get_clean();
return $out;
}
thb_add_short('thb_subscribe', 'thb_subscribe');