| 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_authorgrid( $atts, $content = null ) {
$atts = vc_map_get_attributes( 'thb_authorgrid', $atts );
extract( $atts );
$author_array = explode(',', $author_ids);
$author_list = empty($author_array) ? array() : $author_array;
switch($columns) {
case 2:
$col = 'medium-6 large-6';
break;
case 3:
$col = 'medium-4 large-4';
break;
case 4:
$col = 'medium-6 large-3';
break;
case 6:
$col = 'medium-6 large-2';
break;
}
ob_start();
echo '<div class="row author_list">';
foreach($author_list as $author) {
?>
<div class="small-12 <?php echo esc_attr($col); ?> columns">
<section class="authorpage author_grid">
<?php do_action('thb_author', $author); ?>
</section>
</div>
<?php
}
echo '</div>';
$out = ob_get_clean();
wp_reset_query();
wp_reset_postdata();
return $out;
}
thb_add_short('thb_authorgrid', 'thb_authorgrid');