Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The loop that displays posts.
- *
- * The loop displays the posts and the post content. See
- * http://codex.wordpress.org/The_Loop to understand it and
- * http://codex.wordpress.org/Template_Tags to understand
- * the tags used in it.
- */
- ?>
- <?php /* If there are no posts to display, such as an empty archive page */ ?>
- <?php if ( ! $wp_query->have_posts() ) : ?>
- <div id="post-0" class="post clearfix error404 not-found post-no-image">
- <div class="post-content-wrapper">
- <h2 class="post-title"><?php _e( 'Not Found', 'unisphere' ); ?></h2>
- <div class="post-text">
- <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'unisphere' ); ?></p>
- <?php get_search_form(); ?>
- </div>
- </div>
- </div>
- <?php endif; ?>
- <?php
- /*
- * Start the Loop.
- */ ?>
- <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
- <?php if( $unisphere_options['show_blog_full'] != '1') : // User has not checked the option to display full posts in the blog, so use the excerpt template... ?>
- <div id="post-<?php the_ID(); ?>" class="post-excerpt clearfix <?php semantic_entries(); ?><?php if( unisphere_get_post_image("blog") == '' ) echo ' post-no-image'; ?>">
- <div class="post-image">
- <a href="<?php the_permalink(); ?>"><?php echo unisphere_get_post_image("blog"); ?></a>
- <?php if( 'open' == $post->comment_status ) : ?>
- <?php comments_popup_link( __( 'Leave a comment', 'unisphere' ), __( '1 Comment', 'unisphere' ), __( '% Comments', 'unisphere' ), 'comment-count button-unselected rounded-all' ); ?>
- <?php endif; ?>
- <a href="<?php the_permalink(); ?>" class="more-link button rounded-all"><?php _e( 'Read more »', 'unisphere' ); ?></a>
- </div>
- <div class="post-content-wrapper">
- <h2 class="post-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'unisphere' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <div class="post-meta rounded-all">
- <?php printf( __( '<span class="published">Posted on %1$s</span> <span class="author">by %2$s</span>', 'unisphere' ),
- sprintf( '<abbr class="published-time" title="%1$s">%2$s</abbr>',
- esc_attr( get_the_time() ),
- get_the_date()
- ),
- sprintf( '<a class="url fn n" href="%1$s" title="%2$s">%3$s</a>',
- get_author_posts_url( get_the_author_meta( 'ID' ) ),
- sprintf( esc_attr__( 'View all posts by %s', 'unisphere' ), get_the_author() ),
- get_the_author()
- )
- ); ?>
- <br />
- <?php
- $tags_list = get_the_tag_list( '', ', ' );
- if ( $tags_list ) : ?>
- <span class="post-tags"><?php printf( __( 'Tagged %s', 'unisphere' ), $tags_list ); ?></span>
- <?php endif; ?>
- </div>
- <div class="post-text">
- <?php the_excerpt(); ?>
- </div>
- </div>
- </div>
- <?php else : // User wants to display full post content ?>
- <!--BEGIN .post-detail-->
- <div id="post-<?php the_ID(); ?>" class="post-full clearfix <?php semantic_entries(); ?><?php if( unisphere_get_post_image("blog-detail") == '' ) echo ' post-no-image'; ?>">
- <h5><?php the_subheading(); ?></h5><br><h2 class="post-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'unisphere' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2><br>
- <div class="post-image">
- <a href="<?php the_permalink(); ?>"><?php echo unisphere_get_post_image("blog-detail"); ?></a>
- </div>
- <div class="post-meta rounded-all">
- <?php printf( __( '<span class="published">Posted on %1$s</span> <span class="author">by %2$s</span>', 'unisphere' ),
- sprintf( '<abbr class="published-time" title="%1$s">%2$s</abbr>',
- esc_attr( get_the_time() ),
- get_the_date()
- ),
- sprintf( '<a class="url fn n" href="%1$s" title="%2$s">%3$s</a>',
- get_author_posts_url( get_the_author_meta( 'ID' ) ),
- sprintf( esc_attr__( 'View all posts by %s', 'unisphere' ), get_the_author() ),
- get_the_author()
- )
- ); ?><?php edit_post_link('Editar',' ',''); ?>
- <br />
- <?php
- $tags_list = get_the_tag_list( '', ', ' );
- if ( $tags_list ) : ?>
- <span class="post-tags"><?php printf( __( 'Tagged %s', 'unisphere' ), $tags_list ); ?></span>
- <?php endif; ?>
- <div class="share-buttons">
- <?php if ( $unisphere_options['show_blog_tweet_button'] == '1' ) : ?>
- <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php echo get_permalink(); ?>" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
- <?php endif; ?>
- <?php if ( $unisphere_options['show_blog_fb_like_button'] == '1' ) : ?>
- <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo rawurlencode(get_permalink()); ?>&layout=standard&show_faces=false&width=350&action=like&colorscheme=<?php if( strpos($unisphere_options['skin'], 'dark') === 0 || strpos($unisphere_options['skin'], 'extra_dark') === 0 ) echo 'dark'; else echo 'light'; ?>&height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:20px;" allowTransparency="true" class="facebook-like-button"></iframe><g:plusone size="medium"></g:plusone>
- <?php endif; ?>
- </div>
- </div>
- <div class="post-text">
- <?php the_content('more'); ?>
- <?php wp_link_pages('before=<div class="wp-pagenavi post_linkpages">&after=</div><br />&link_before=<span>&link_after=</span>'); ?>
- <?php if( 'open' == $post->comment_status ) : ?>
- <?php comments_popup_link( __( 'Leave a comment', 'unisphere' ), __( '1 Comment', 'unisphere' ), __( '% Comments', 'unisphere' ), 'comment-count button-unselected rounded-all' ); ?>
- <?php endif; ?>
- </div>
- <!--END .post-detail-->
- </div>
- <?php endif; ?>
- <div class="hr"><hr /></div>
- <?php endwhile; // End the loop. Whew. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement