function vint_featured_portfolio($cropped = '')
 {
     $entry_id = get_the_ID();
     $media = get_post_meta($entry_id, '_x_portfolio_media', true);
     $index_media = get_post_meta($entry_id, '_x_portfolio_index_media', true);
     if (is_singular()) {
         switch ($media) {
             case 'Image':
                 x_featured_image();
                 break;
             case 'Gallery':
                 x_featured_gallery();
                 break;
             case 'Video':
                 x_featured_video('portfolio');
                 break;
         }
     } else {
         if ($index_media == 'Media') {
             switch ($media) {
                 case 'Image':
                     $cropped == 'cropped' ? vint_featured_image('cropped') : vint_featured_image();
                     break;
                 case 'Gallery':
                     x_featured_gallery();
                     break;
                 case 'Video':
                     x_featured_video('portfolio');
                     break;
             }
         } else {
             $cropped == 'cropped' ? vint_featured_image('cropped') : vint_featured_image();
         }
     }
 }
Exemplo n.º 2
0
the_ID();
?>
" <?php 
post_class();
?>
>
  <div class="entry-wrap">
    <?php 
x_icon_comment_number();
?>
    <div class="x-container max width">
      <?php 
x_get_view('icon', '_content', 'post-header');
?>
      <div class="entry-featured">
        <?php 
x_featured_gallery();
?>
      </div>
      <?php 
if (is_single()) {
    ?>
        <?php 
    x_get_view('global', '_content', 'the-content');
    ?>
      <?php 
}
?>
    </div>
  </div>
</article>