* @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html * * @website http:/wpopal.com * @support http://wpopal.com */ $postformat = get_post_format(); $icon = ''; $is_show = false; switch ($postformat) { case 'link': $icon = 'fa-link'; $is_show = wpo_is_link(); break; case 'gallery': $icon = 'fa-th-large'; $is_show = wpo_is_gallery(); break; case 'audio': $is_show = wpo_is_embed(); $icon = 'fa-music'; break; case 'video': $is_show = wpo_is_embed(); $icon = 'fa-film'; break; case 'image': $is_show = has_post_thumbnail(); $icon = 'fa-picture-o'; break; default: $icon = 'fa-pencil';
wpo_embed(); ?> </div> <?php } else { if (has_post_format('audio') && wpo_is_embed()) { ?> <div class="audio-thumb audio-responsive"> <?php wpo_embed(); ?> </div> <?php } else { if (has_post_format('gallery')) { if (wpo_is_gallery()) { $_imgs = wpo_gallery(); ?> <div id="post-slide-<?php the_ID(); ?> " class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <?php foreach ($_imgs as $key => $_img) { echo '<div class="item ' . ($key == 0 ? 'active' : '') . '">'; echo '<img src="' . $_img . '" alt="" class="img-responsive">'; echo '</div>'; } ?> </div>