$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'; break; } ?> <article id="post-<?php the_ID(); ?> " <?php
post_class(); ?> > <div class="post-container"> <div class="post-thumb"> <?php if (has_post_format('video') && wpo_is_embed()) { ?> <div class="video-responsive"> <?php 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(); ?>