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();
         }
     }
 }
예제 #2
0
// =============================================================================
// VIEWS/INTEGRITY/CONTENT-VIDEO.PHP
// -----------------------------------------------------------------------------
// Video post output for Integrity.
// =============================================================================
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
  <div class="entry-featured">
    <?php 
x_featured_video();
?>
  </div>
  <div class="entry-wrap">
    <?php 
x_get_view('integrity', '_content', 'post-header');
?>
    <?php 
x_get_view('global', '_content');
?>
  </div>
  <?php 
x_get_view('integrity', '_content', 'post-footer');
?>
</article>