header-large.php 670 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Post heade template
  4. *
  5. * @package vamtam/consulting
  6. */
  7. global $post;
  8. $title = get_the_title();
  9. $show = ! has_post_format( 'status' ) && ! has_post_format( 'aside' ) && ! empty( $title );
  10. if ( $show ) :
  11. $link = has_post_format( 'link' ) ?
  12. get_post_meta( $post->ID, 'vamtam-post-format-link', true ) :
  13. get_permalink();
  14. ?>
  15. <header class="single">
  16. <div class="content">
  17. <?php if ($news && ! isset( $post_data['media'] )) VamtamTemplates::post_format_icon( $format ); ?>
  18. <h2>
  19. <a href="<?php echo esc_url( $link ) ?>" title="<?php the_title_attribute()?>"><?php the_title(); ?></a>
  20. </h2>
  21. </div>
  22. </header>
  23. <?php
  24. endif;