예제 #1
0
			<div class="videos-wrapper">

				<div class="videos-slider">

					<ul class="quadro-videos slides">
						
						<?php 
if ($videoposts->have_posts()) {
    while ($videoposts->have_posts()) {
        $videoposts->the_post();
        ?>
							
							<li class="quadro-video">
								<div class="quadro-video-container">
									<?php 
        $video_post = quadro_print_media(get_the_content(), array('video', 'object', 'iframe', 'embed'), 1, '<div class="media-wrapper">', '</div>');
        echo $video_post['media'];
        ?>
								</div>
								<div class="video-post">
									<h3 class="entry-title">
										<a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        get_the_title();
        ?>
">
											<?php 
        the_title();
        ?>
예제 #2
0
">
								<?php 
        the_title();
        ?>
							</a>
						</h1>
						<div class="entry-summary">
							<?php 
        // Loop through post formats possibilities and display the content accordingly.
        switch ($post_format) {
            case 'video':
                $media_return = quadro_print_media(get_the_content(), array('video', 'iframe', 'embed'), 1, '', '');
                echo $media_return['media'];
                break;
            case 'audio':
                $media_return = quadro_print_media(get_the_content(), array('audio', 'iframe', 'embed'), 1, '', '');
                echo $media_return['media'];
                echo quadro_excerpt($media_return['content'], 40, '<span class="read-more">' . esc_html__('Read more', 'quadro') . '</span>');
                break;
            case 'quote':
                echo quadro_just_quote(get_the_content(), '', '');
                echo '<a href="' . esc_url(get_the_permalink()) . '" class="readmore-link"><span class="read-more">' . esc_html__('Read more', 'quadro') . '</span></a>';
                break;
            case 'gallery':
                if (get_post_gallery()) {
                    // Remove Galleries from content
                    $content = quadro_strip_shortcode_gallery(get_the_content());
                    // Filter through the_content filter
                    $content = apply_filters('the_content', $content);
                    $content = str_replace(']]>', ']]&gt;', $content);
                    echo '<div class="entry-gallery">';