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
// -----------------------------------------------------------------------------
// Standard page output for Integrity.
// =============================================================================
$disable_page_title = get_post_meta(get_the_ID(), '_x_entry_disable_page_title', true);
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
  <div class="entry-featured">
    <?php 
x_featured_image();
?>
  </div>
  <div class="entry-wrap">
    <?php 
if (is_singular()) {
    ?>
      <?php 
    if ($disable_page_title != 'on') {
        ?>
      <header class="entry-header">
        <h1 class="entry-title"><?php 
        the_title();
        ?>
</h1>
      </header>