PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/themes/esquire/content-video.php

https://github.com/Bochet/festival_lgbt
PHP | 51 lines | 39 code | 6 blank | 6 comment | 4 complexity | 136e96559663a78c3bc849d090d2317a MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * The template for displaying Video Posts
  4. *
  5. * @package Esquire
  6. * @since Esquire 1.0
  7. */
  8. global $content_width;
  9. $content_width = 496;
  10. add_filter( 'video_embed_html', 'esquire_video_embed_html' ); // Support for VideoPress, YouTube, and Vimeo
  11. add_filter( 'oembed_result', 'esquire_check_video_embeds', 10, 2 ); // Support auto-embeds videos via direct URL
  12. ?>
  13. <div <?php post_class(); ?>>
  14. <?php if ( ! is_page() ) : ?>
  15. <div class="datebox">
  16. <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'esquire' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
  17. <p class="day"><?php the_time( 'd' ); ?></p>
  18. <p class="month"><?php the_time( 'M' ); ?></p>
  19. </a>
  20. </div>
  21. <?php endif; ?>
  22. <div class="postbody video">
  23. <div class="content">
  24. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'esquire' ) ); ?>
  25. <?php wp_link_pages( array( 'before' => '<p class="page-link"><span>' . __( 'Pages:', 'esquire' ) . '</span>', 'after' => '</p>' ) ); ?>
  26. </div>
  27. <?php comments_template( '', true ); ?>
  28. <div class="meta bar">
  29. <p class="permalink">
  30. <?php if ( ! is_page() ) : ?>
  31. <a href="<?php the_permalink(); ?>"><span rel="<?php the_time( get_option( 'date_format' ) ); ?>"><?php printf( __( '%1$s ago', 'esquire' ), human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) ); ?></span></a>
  32. <?php endif; ?>
  33. <a href="<?php echo wp_get_shortlink(); ?> " class="shorturl"><span><?php _e( 'Short URL', 'esquire' ); ?></span></a>
  34. <?php comments_popup_link( '<span>' . __( 'Comments', 'esquire' ) . '</span>', '<span>' . __( '1 Comment', 'esquire' ) . '</span>', '<span>' . __( '% Comments', 'esquire' ) . '</span>', 'comment-count', '' ); ?>
  35. <?php edit_post_link( __( 'Edit', 'esquire' ) ); ?>
  36. </p>
  37. <div class="tagbar">
  38. <?php if ( 1 != esquire_category_counter() ) : ?>
  39. <p class="tags cats"><?php the_category( '<span>/</span>' ); ?></p>
  40. <?php endif; ?>
  41. <?php the_tags( '<p class="tags">', '<span>/</span>', '</p>' ); ?>
  42. </div><!-- .tagbar -->
  43. </div><!-- .meta .bar -->
  44. </div><!-- .postbody .text -->
  45. </div><!-- .post -->