Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. <?php
  2.  
  3. $markup_opt = basic_get_theme_option( 'schema_mark' ); // false or 0
  4. $markup = ( is_single() && ( $markup_opt || false === $markup_opt ) ) ? true : false;
  5.  
  6. ?>
  7.  
  8. <?php do_action( 'basic_before_post_article' ); ?>
  9. <article <?php post_class(); ?><?php echo ( $markup ) ? ' itemscope itemtype="http://schema.org/Article"' : ''; ?>><?php
  10.  
  11. do_action( 'basic_before_post_title' );
  12. if ( is_single() ) :
  13.  
  14. do_action( 'basic_single_before_title' ); ?>
  15. <h1<?php echo ( $markup ) ? ' itemprop="headline"' : ''; ?>><?php the_title(); ?></h1>
  16. <?php do_action( 'basic_single_after_title' );
  17.  
  18. else:
  19.  
  20. do_action( 'basic_postexcerpt_before_title' ); ?>
  21. <h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  22. <?php do_action( 'basic_postexcerpt_after_title' );
  23.  
  24. endif;
  25. do_action( 'basic_after_post_title' );
  26.  
  27. /**
  28. * @hooked basic_get_postmeta() - 10
  29. */
  30. do_action( 'basic_before_content' ); ?>
  31. <div class="entry-box clearfix" <?php if ( $markup ) { echo "itemprop='articleBody'"; } ?>>
  32.  
  33. <?php
  34. if ( ! is_single() ) {
  35.  
  36. $thumbnail_size = apply_filters( 'basic_singular_thumbnail_size', 'medium' );
  37. $attributes = apply_filters( 'basic_singular_thumbnail_attr', array('class'=>'thumbnail') );
  38.  
  39. if ( has_post_thumbnail() ) {
  40. $show_thumb = ( get_theme_mod('show_mobile_thumb') ) ? ' show' : '';
  41. do_action( 'basic_before_post_thumbnail' ); ?>
  42. <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>" class="anons-thumbnail<?php echo $show_thumb; ?>">
  43. <?php the_post_thumbnail( $thumbnail_size, $attributes ); ?>
  44. </a>
  45. <?php do_action( 'basic_after_post_thumbnail' );
  46. }
  47.  
  48. do_action( 'basic_before_post_excerpt' );
  49. the_excerpt();
  50. do_action( 'basic_after_post_excerpt' );
  51.  
  52. /* @since 1.1.7 more link html code located in /inc/html-blocks.php and @hooked to `basic_after_post_excerpt` */
  53.  
  54. } else {
  55.  
  56. do_action( 'basic_before_single_content' );
  57. the_content( '' );
  58. do_action( 'basic_after_single_content' );
  59.  
  60. } ?>
  61.  
  62. </div> <?php
  63. do_action( 'basic_after_content' );
  64.  
  65.  
  66. if ( is_single() ) { ?>
  67. <aside class="meta"><?php the_tags(); ?></aside>
  68. <?php }
  69.  
  70. if ( $markup ) {
  71. basic_markup_schemaorg();
  72. } ?>
  73.  
  74. <?php do_action( 'basic_before_close_post_article' ); ?>
  75. </article>
  76. <?php do_action( 'basic_after_post_article' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement