Advertisement
Guest User

Untitled

a guest
Oct 1st, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying content in the single.php template
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Eleven
  7. * @since ahahe
  8. */
  9. ?>
  10.  
  11. <article id="post-<?php the_ID(); ?>" <?php post_class('badge-entry-container badge-entry-entity post-page badge-in-view badge-in-view-focus'); ?>>
  12. <header>
  13. <h2 class="badge-item-title"><?php the_title(); ?></h2> <?php the_content(); ?>
  14. <p class="post-meta">
  15. <?php echo gag_vote_count($post->ID);?>
  16. <?php if(function_exists('the_views')) { the_views(); echo ' &middot';} ?>
  17. <?php if ( comments_open() && ! post_password_required() ) : ?>
  18. <a href="<?php the_permalink(); ?>#post-comment"><?php gag_comments_count(' commentaires'); ?></a>
  19. <?php endif; ?>
  20. <?php edit_post_link( __( 'Modifier', 'gag' ), '<span class="edit-link">', '</span>' ); ?>
  21. </p><!-- .post-meta -->
  22. </header><!-- header -->
  23.  
  24. <div class="badge-toolbar-pre fixed-wrap-post-bar">
  25. <div class="badge-entry-toolbar-sticky post-afterbar-a in-post-top">
  26. <?php echo ludou_simplevote_content($post->post_content);?>
  27.  
  28. <div class="share">
  29. <ul>
  30. <li><a class="badge-facebook-share badge-evt badge-track btn-share facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" target="_blank"></a></li>
  31. <li><a class="badge-twitter-share badge-evt badge-track btn-share twitter" href="https://twitter.com/intent/tweet?via=<?php echo of_get_option('tt_name'); ?>&source=tweetbutton&original_referer=<?php the_permalink(); ?>&text=<?php the_title(); ?>%20<?php the_permalink(); ?>&url=<?php the_permalink(); ?>"></a></li>
  32. </ul>
  33. </div>
  34.  
  35. <div class="others">
  36. <a class="badge-more-share-button more" href="#post-comment">Comment</a>
  37. </div>
  38.  
  39. <div id="nav-single" class="post-nav">
  40. <h3 class="assistive-text"><?php _e( 'Post navigation', 'gag' ); ?></h3>
  41. <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav"></span> Prev', 'gag' ) ); ?></span>
  42. <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav"></span>', 'gag' ) ); ?></span>
  43. </div><!-- #nav-single -->
  44. </div>
  45. <div class="clearfix"></div>
  46. </div>
  47.  
  48. <div class="badge-post-container badge-entry-content post-container">
  49.  
  50. <?php the_content(); ?>
  51.  
  52. <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'gag' ) . '</span>', 'after' => '</div>' ) ); ?>
  53. </div><!-- .badge-entry-content -->
  54.  
  55. <div class="post-afterbar-a in-post-bot full-width">
  56. <div class="share">
  57. <ul>
  58. <li><a class="badge-facebook-share badge-facebook-bot-share badge-evt badge-track btn-share facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" target="_blank">Facebook</a></li>
  59. <li><a class="badge-twitter-share badge-twitter-bot-share badge-evt badge-track btn-share twitter" href="https://twitter.com/intent/tweet?via=<?php echo of_get_option('tt_name'); ?>&source=tweetbutton&original_referer=<?php the_permalink(); ?>&text=<?php the_title(); ?>%20<?php the_permalink(); ?>&url=<?php the_permalink(); ?>">Twitter</a></li>
  60. </ul>
  61. </div>
  62.  
  63. <div class="clearfix"></div>
  64. </div><!-- .post-afterbar-a -->
  65.  
  66. <div class="badge-entry-info post-afterbar-meta">
  67. <?php gag_credits();?>
  68. <?php
  69. /* translators: used between list items, there is a space after the comma */
  70. $categories_list = get_the_category_list( __( ', ', 'gag' ) );
  71.  
  72. /* translators: used between list items, there is a space after the comma */
  73. $tag_list = get_the_tag_list( '', __( ', ', 'gag' ) );
  74. if ( '' != $tag_list ) {
  75. $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'gag' );
  76. } elseif ( '' != $categories_list ) {
  77. $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'gag' );
  78. } else {
  79. $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'gag' );
  80. }
  81.  
  82. printf(
  83. $utility_text,
  84. $categories_list,
  85. $tag_list,
  86. esc_url( get_permalink() ),
  87. the_title_attribute( 'echo=0' ),
  88. get_the_author(),
  89. esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
  90. );
  91. ?>
  92. <?php edit_post_link( __( 'Modifier', 'gag' ), '<span class="edit-link">', '</span>' ); ?>
  93. </div><!-- .post-afterbar-meta -->
  94. </article><!-- #post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement