Пример #1
0
function wpa_slideshow_from_gallery($output, $attr)
{
    if (isset($attr['wpa_slideshow'])) {
        global $post, $wp_locale;
        static $instance = 0;
        $instance++;
        $size = isset($attr['size']) ? $attr['size'] : 'thumbnail';
        $attachments = explode(',', $attr['ids']);
        $output = apply_filters('gallery_style', "");
        $i = 0;
        $output .= '<div id="wpa-slideshow-' . $instance . '" class="wpa_slideshow swiper-container"><div class="swiper-wrapper">';
        foreach ($attachments as $id) {
            if (isset($attr['link']) && 'none' === $attr['link']) {
                $link = '<img src="' . image_src($id, $size) . '" alt="' . get_alt($id) . '" />';
            } elseif (isset($attr['link']) && 'file' === $attr['link']) {
                $link = wp_get_attachment_link($id, $size, false, false);
                $pic_link = str_replace('href="', 'target="_blank" href="', $link);
            } else {
                $link = wp_get_attachment_link($id, $size, true, false);
                $pic_link = str_replace('href="', 'target="_blank" href="', $link);
            }
            $pic_link = str_replace(wp_get_attachment_image_src($id, 'full', false), wp_get_attachment_image_src($id, 'large', false), $link);
            $pic_link = str_replace('src="', 'class="swiper-lazy" data-src="', $pic_link);
            $output .= '<div class="swiper-slide">';
            $output .= $pic_link;
            $output .= '<div class="swiper-lazy-preloader"></div></div>';
        }
        $output .= '</div><div class="swiper-pagination"></div><div class="swiper-button-prev"></div><div class="swiper-button-next"></div></div>';
    }
    return $output;
}
Пример #2
0
			</div><!--col-md-2-->
		</div><!--row-->
	</div><!--groupe-->
	
	<div id="membres">
		<div class="container">
			<h2 class="title title-slim">Membres</h2>
		</div>
		
		<?php 
if (sizeof($membres) >= 0) {
    $i = 0;
    foreach ($membres as $membre) {
        $appartionCSS = $i % 2 == 0 ? "fadeInLeft" : "fadeInRight";
        $photo = "<div class='col-md-5'>";
        $photo .= "<img src='" . image_src($membre['groupe_photo'], "full") . "' class='img-responsive wow {$appartionCSS}' alt=\"" . $membre['groupe_pseudo'] . "\"/>";
        $photo .= "</div>";
        //col gauche
        $presentation = "<div class='col-md-7'>";
        $presentation .= "<div class='info-membre'>";
        $presentation .= "<span class='bold nom-membre'>" . $membre['groupe_prenom'] . " " . $membre['groupe_nom'] . "</span><br/>";
        $presentation .= "<span class='type'>Pseudo : </span>" . $membre['groupe_pseudo'] . "<br/>";
        $presentation .= "<span class='type'>Instrument : </span>" . $membre['groupe_instrument'] . "<br/>";
        $presentation .= "" . $membre['groupe_description'] . "";
        $presentation .= "<span class='type'>Influence : </span>" . $membre['groupe_influence'] . "<br/>";
        $presentation .= "</div>";
        //info-membre
        $presentation .= "</div>";
        //col droite
        echo "<div id='membre-" . $i++ . "' class='membre'>";
        echo "<div class='container'>";
Пример #3
0
    echo '<iframe width="100%" height="500" src="https://www.youtube.com/embed/' . $idVideo . '" data-original-url="https://www.youtube.com/embed/" frameborder="0" allowfullscreen></iframe>';
}
?>
		</div><!--#player-video-->
		<div id="player-list">
			
			<?php 
foreach ($videos as $video) {
    $idVideo = get_youtube_id($video['musique_url_video']);
    ?>
					<div class="video wow fadeIn">					
						<a href='#'  data-id-video="<?php 
    echo $idVideo;
    ?>
">
							<div class="overlay">								<span class="glyphicon glyphicon-play"></span>								<div class="overlay-texte"><?php 
    echo $video['nom_chanson'];
    ?>
</div>							</div>							<img src="<?php 
    echo image_src($video['musique_image_video'], "video-thumbnail");
    ?>
" alt=""/>
						</a>
					</div>
				<?php 
}
?>
			<div class="clearer"></div>
		</div><!--#player-list-->
	</div>
</section>
Пример #4
0
" class="button"></a>
        </div>
    <?php 
    }
    ?>
    <!-- Add Pagination -->
    <div class="swiper-pagination"></div>

<?php 
}
wp_reset_query();
?>

<!-- alert image -->
<?php 
echo image_src(get_field('luxury_background'), 'full', true);
?>
 <!-- true is parameter background-image -->

/ ------------------------------------- /
/* Allow Contact Form 7 Forms to include shortcodes
/ ------------------------------------- /

 add_filter( 'wpcf7_form_elements', 'mycustom_wpcf7_form_elements' ); 
 function mycustom_wpcf7_form_elements( $form ) {
  $form = parse_shortcode_content( $form );
  $array = array (
                 '<p>[' => '[',
                 ']</p>' => ']',
                 ']<br />' => ']'
         );
Пример #5
0
<section id="photos">
	<div class="container">
		<h2 class="title-slim">Photos</h2>
		<ul id="lightGallery">
			<?php 
$photos = $cfs->get('photos');
if (sizeof($photos) > 0) {
    foreach ($photos as $photo) {
        echo "<li class='item' data-src='" . image_src($photo['photo'], "large") . "'>";
        echo "<img src='" . image_src($photo['photo'], "photo-thumbnail") . "' class='img-responsive' alt=''/>";
        echo "</li>";
    }
}
?>
		</ul><!--#lightGallery-->
	</div><!--.container-->
</section><!--#photos-->
Пример #6
0
}
?>
        </div>
        <div class="summary-row row">
            <div class="woo-gallery">
            <?php 
if ($attachment_ids) {
    ?>
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        <?php 
    foreach ($attachment_ids as $attachment_id) {
        ?>
                            <div class="swiper-slide">
                                <img data-src="<?php 
        echo image_src($attachment_id, 'shop_single');
        ?>
" class="swiper-lazy">
                                <div class="swiper-lazy-preloader"></div>
                            </div>
                        <?php 
    }
    ?>
                    </div>
                    <div class="ms-button-prev"></div>
                    <div class="ms-button-next"></div>
                    <div class="pager"></div>
                </div>
            <?php 
} else {
    ?>