Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The template for displaying content in the single.php template
- *
- * @package WordPress
- * @subpackage Twenty_Eleven
- * @since ahahe
- */
- ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class('badge-entry-container badge-entry-entity post-page badge-in-view badge-in-view-focus'); ?>>
- <header>
- <h2 class="badge-item-title"><?php the_title(); ?></h2> <?php the_content(); ?>
- <p class="post-meta">
- <?php echo gag_vote_count($post->ID);?>
- <?php if(function_exists('the_views')) { the_views(); echo ' ·';} ?>
- <?php if ( comments_open() && ! post_password_required() ) : ?>
- <a href="<?php the_permalink(); ?>#post-comment"><?php gag_comments_count(' commentaires'); ?></a>
- <?php endif; ?>
- <?php edit_post_link( __( 'Modifier', 'gag' ), '<span class="edit-link">', '</span>' ); ?>
- </p><!-- .post-meta -->
- </header><!-- header -->
- <div class="badge-toolbar-pre fixed-wrap-post-bar">
- <div class="badge-entry-toolbar-sticky post-afterbar-a in-post-top">
- <?php echo ludou_simplevote_content($post->post_content);?>
- <div class="share">
- <ul>
- <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>
- <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>
- </ul>
- </div>
- <div class="others">
- <a class="badge-more-share-button more" href="#post-comment">Comment</a>
- </div>
- <div id="nav-single" class="post-nav">
- <h3 class="assistive-text"><?php _e( 'Post navigation', 'gag' ); ?></h3>
- <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav"></span> Prev', 'gag' ) ); ?></span>
- <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav"></span>', 'gag' ) ); ?></span>
- </div><!-- #nav-single -->
- </div>
- <div class="clearfix"></div>
- </div>
- <div class="badge-post-container badge-entry-content post-container">
- <?php the_content(); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'gag' ) . '</span>', 'after' => '</div>' ) ); ?>
- </div><!-- .badge-entry-content -->
- <div class="post-afterbar-a in-post-bot full-width">
- <div class="share">
- <ul>
- <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>
- <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>
- </ul>
- </div>
- <div class="clearfix"></div>
- </div><!-- .post-afterbar-a -->
- <div class="badge-entry-info post-afterbar-meta">
- <?php gag_credits();?>
- <?php
- /* translators: used between list items, there is a space after the comma */
- $categories_list = get_the_category_list( __( ', ', 'gag' ) );
- /* translators: used between list items, there is a space after the comma */
- $tag_list = get_the_tag_list( '', __( ', ', 'gag' ) );
- if ( '' != $tag_list ) {
- $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' );
- } elseif ( '' != $categories_list ) {
- $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' );
- } else {
- $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' );
- }
- printf(
- $utility_text,
- $categories_list,
- $tag_list,
- esc_url( get_permalink() ),
- the_title_attribute( 'echo=0' ),
- get_the_author(),
- esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
- );
- ?>
- <?php edit_post_link( __( 'Modifier', 'gag' ), '<span class="edit-link">', '</span>' ); ?>
- </div><!-- .post-afterbar-meta -->
- </article><!-- #post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement