PageRenderTime 38ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/content-audio.php

https://github.com/mohitkr05/project-ar2
PHP | 95 lines | 73 code | 18 blank | 4 comment | 11 complexity | 10d5c0e8e2b110e60667984a812a76d4 MD5 | raw file
Possible License(s): AGPL-1.0
  1. <?php
  2. /**
  3. * Template for displaying 'image' post format.
  4. * @since 2.0
  5. */
  6. ?>
  7. <article id="post-<?php the_ID() ?>" <?php post_class() ?>>
  8. <div class="entry-content clearfix">
  9. <?php the_content( __( '<p>Read the rest of this entry &raquo;</p>', 'ar2' ) ); ?>
  10. <?php wp_link_pages( array( 'before' => '<p class="post-navigation"><strong>' . __( 'Pages:', 'ar2' ) . '</strong>',
  11. 'after' => '</p>', 'next_or_number' => 'number', 'pagelink' => '<span>%</span>' ) ); ?>
  12. </div>
  13. <header class="entry-header clearfix">
  14. <?php
  15. if ( ar2_get_theme_option( 'post_display[post_cats]' ) ) {
  16. $post_cats = array();
  17. $cats = get_the_category();
  18. foreach ( $cats as $c )
  19. $post_cats[] = '<a href="' . get_category_link( $c->cat_ID ) . '">' . $c->cat_name . '</a>';
  20. echo '<div class="entry-cats">' . implode( ', ', $post_cats ) . '</div>';
  21. }
  22. ?>
  23. <h1 class="entry-title">
  24. <span class="entry-format"><?php echo get_post_format_string( 'video' ) ?></span>
  25. <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title() ?></a>
  26. </h1>
  27. <?php if ( ar2_get_theme_option( 'post_display[post_author]' ) ) : ?>
  28. <div class="entry-author">
  29. <?php printf( __( 'Posted by %1$s %2$s', 'ar2' ),
  30. '<address class="author vcard"><a rel="author" class="url fn n" href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '" title="' . esc_attr( get_the_author() ) . '">' . get_the_author() . '</a></address>',
  31. '<abbr class="published">' . ar2_posted_on( false ) . '</abbr>'
  32. ); ?>
  33. <?php edit_post_link( __( 'Edit', 'ar2' ) ) ?>
  34. </div>
  35. <?php else : ?>
  36. <div class="entry-author">
  37. <?php printf( __( 'Posted %s', 'ar2' ), '<abbr class="published">' . ar2_posted_on( false ) . '</abbr>' ); ?>
  38. <?php edit_post_link( __( 'Edit', 'ar2' ) ) ?>
  39. </div>
  40. <?php endif ?>
  41. <?php if ( ar2_get_theme_option( 'post_display[excerpt]' ) && has_excerpt() ) : ?>
  42. <div class="entry-excerpt"><?php the_excerpt() ?></div>
  43. <?php endif ?>
  44. </header><!-- .entry-header -->
  45. <footer class="entry-footer clearfix">
  46. <?php if ( ar2_get_theme_option( 'post_display[post_social]' ) ) : ?>
  47. <div class="entry-social">
  48. <div class="addthis_toolbox addthis_default_style">
  49. <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
  50. <a class="addthis_button_tweet"></a>
  51. <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
  52. <a class="addthis_counter addthis_pill_style"></a>
  53. </div>
  54. </div>
  55. <?php endif ?>
  56. <?php if ( ar2_get_theme_option( 'post_display[post_tags]' ) && is_array( get_the_tags() ) ) : ?>
  57. <div class="entry-tags tags">
  58. <?php the_tags( '<strong>' . __( 'Tags: ', 'ar2' ) . '</strong>', ' ' ) ?>
  59. </div>
  60. <?php endif ?>
  61. <?php if ( ar2_get_theme_option( 'post_display[display_author]' ) ) : ?>
  62. <?php $id = get_the_author_meta( 'ID' ); ?>
  63. <div class="about-author clearfix">
  64. <a class="author-avatar" href="<?php get_author_posts_url( $id ) ?>"><?php echo get_avatar( $id, 64 ) ?></a>
  65. <div class="author-meta">
  66. <h4><?php printf( __( 'About %s', 'ar2' ), get_the_author_meta( 'display_name' ) ) ?></h4>
  67. <?php
  68. if ( get_the_author_meta( 'description' ) == '' )
  69. _e( 'No information is provided by the author.', 'ar2' );
  70. else
  71. the_author_meta( 'description' );
  72. ?>
  73. </div>
  74. </div>
  75. <?php endif ?>
  76. </footer><!-- .entry-footer -->
  77. </article>