</section> <?php if ($temoin_nom[0]) { ?> <section class="grid"> <div class="wrapper"> <ul class="temoignages"> <li class="temoignage" itemscope itemtype="http://schema.org/Review"> <?php if ($temoin_portrait[0]) { ?> <div class="temoignage-photo-wrapper"> <img src="<?php echo etendard_resize_upload($temoin_portrait[0], 160, 110); ?> " class="temoignage-photo" itemprop="image" /> </div> <?php } ?> <div class="temoignage-content" itemprop="text"> <?php echo $temoin_texte[0]; ?> <span class="temoignage-name" itemprop="author" <?php if (!$temoin_portrait[0]) { echo 'style="padding-left:0;"'; }
$unresizedDiaporama = maybe_unserialize($custom['etendard_portfolio_diaporama'][0]); $diaporama = array(); $liens = maybe_unserialize($custom['etendard_portfolio_diaporama_lien'][0]); $titres = maybe_unserialize($custom['etendard_portfolio_diaporama_titre'][0]); if (is_array($unresizedDiaporama)) { $width = $fullWidth ? 1920 : 960; $height = (int) get_option('etendard_diaporama_height'); if (!$height) { $height = 500; } // switch to resized images foreach ($unresizedDiaporama as $img) { if (!$img) { continue; } array_push($diaporama, etendard_resize_upload($img, $width, $height)); } } } ?> <?php if (count($diaporama) > 0) { ?> <div class="wrapper <?php if ($fullWidth) { echo 'full'; } ?> "> <div class="slider">