echo yit_get_icon('blog-date-icon', true); ?> <span><?php _e('Date:', 'yit'); ?> </span> <?php echo get_the_date(); ?> </p><?php } ?> <?php if (yit_get_option('blog-show-comments')) { ?> <p class="comments"><?php echo yit_get_icon('blog-comments-icon', true); ?> <span><?php comments_popup_link(__('<span>Comments:</span> 0', 'yit'), __('<span>Comments:</span> 1', 'yit'), __('<span>Comments:</span> %', 'yit')); ?> </span></p><?php } ?> <?php edit_post_link(__('Edit', 'yit'), '<p class="edit-link"><i class="icon-pencil"></i>', '</p>'); ?> </div> </div> <div class="clear"></div>
if ( is_single() ) { yit_string( "<h1 class=\"post-title\"><a href=\"$link\">", $title, "</a></h1>" ); } else { yit_string( "<h2 class=\"post-title\"><a href=\"$link\">", $title, "</a></h2>" ); } ?> <!-- post author --> <div class="meta"> <?php if( yit_get_option( 'blog-show-author' ) ) : ?><span class="author"><?php _e( 'posted by', 'yit' ) ?> <?php the_author_posts_link() ?></span><?php endif; ?> </div> <!-- post comments --> <?php if( yit_get_option( 'blog-show-comments' ) ) : ?> <p class="comments"> <!--<i class="<?php echo yit_get_icon( 'blog-comments-icon' ) ?>"></i>--> <i class="blog-bazar-comment-icon"></i> <span><?php comments_popup_link( '0', '1', '%' ); ?></span> </p> <?php endif ?> </div> <div class="thumbnail span<?php echo $span ?>"> <div class="border"> <div> <?php yit_string( "<blockquote class=\"post-title\"><a href=\"$link\">", get_the_content(), "</a><cite>" . $title . "</cite></blockquote>" ) ?> </div> </div>
else { $title = get_the_title(); } if ( is_single() ) { yit_string( "<h1 class=\"post-title\"><a href=\"$link\">", $title, "</a></h1>" ); } else { yit_string( "<h2 class=\"post-title\"><a href=\"$link\">", $title, "</a></h2>" ); } ?> <?php if( yit_get_option( 'blog-show-author' ) ) : ?><p class="author"><?php echo yit_get_icon( 'blog-author-icon', true ) ?><span><?php _e( 'Author:', 'yit' ) ?></span> <?php the_author_posts_link() ?></p><?php endif; ?> <?php if( yit_get_option( 'blog-show-date' ) ) : ?><p class="date"><?php echo yit_get_icon( 'blog-date-icon', true ) ?><span><?php _e( 'Date:', 'yit') ?></span> <?php echo get_the_date() ?></p><?php endif; ?> <?php edit_post_link( __( 'Edit', 'yit' ), '<p class="edit-link"><i class="icon-pencil"></i>', '</p>' ); ?> </div> <div> <?php if( yit_get_option( 'blog-show-comments' ) ) : ?><p class="comments"><?php echo yit_get_icon( 'blog-comments-icon', true ) ?><span><?php comments_popup_link( __( '<span>Comments:</span> 0', 'yit' ), __( '<span>Comments:</span> 1', 'yit' ), __( '<span>Comments:</span> %', 'yit' ) ); ?></span></p><?php endif ?> </div> <div> <?php echo do_shortcode( apply_filters('yit-elegant_blog-socials', '[share icon_type="square" title="' . __( 'Share on', 'yit' ) . '" socials="facebook, twitter, google, pinterest"]' ) ); ?> </div> </div> <!-- post title --> <div class="the-content span6"> <div> <?php if( $has_thumbnail ) { if( ( !is_single() || ( get_post_format() != 'video' && get_post_format() != 'gallery' ) ) ) { the_post_thumbnail( 'blog_elegant', array( 'class' => 'thumbnail' ) ); } }
*/ $has_thumbnail = ( !yit_image( 'size=blog_bazar&image_scan=' . yit_get_option('blog-show-first-content-image'), false ) || ( ! is_single() && ! yit_get_option( 'blog-show-featured' ) ) || ( is_single() && ! yit_get_option( 'blog-show-featured-single' ) ) ) ? false : true; if( yit_get_sidebar_layout() == 'sidebar-no' ) { $span = $has_thumbnail ? ( yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ? 7 : 8 ) : ( yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ? 11 : 12 ); } else { $span = $has_thumbnail ? ( yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ? 4 : 5 ) : ( yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ? 8 : 9 ); } ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'hentry-post group blog-small-ribbon row' ); ?>> <?php if( yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ) : ?> <div class="date-comments span1"> <?php if( yit_get_option( 'blog-show-date' ) ) : ?><p class="date"><span class="month"><?php echo get_the_date( 'M' ) ?></span><span class="day"><?php echo get_the_date( 'd' ) ?></span></p><?php endif; ?> <?php if( yit_get_option( 'blog-show-comments' ) ) : ?><p class="comments"><i class="<?php echo yit_get_icon( 'blog-comments-icon' ) ?>"></i><span><?php comments_popup_link( '0', '1', '%' ); ?></span></p><?php endif ?> </div> <?php endif ?> <!-- post featured & title --> <?php if( get_post_format() == 'quote' ) : yit_get_template( 'blog/small-ribbon/post-formats/quote.php' ); else : ?> <div class="<?php if ( ! $has_thumbnail ) echo 'without ' ?>thumbnail span4"> <?php if ( $has_thumbnail ) : ?> <?php yit_image( 'size=blog_small_ribbon&image_scan=' . yit_get_option('blog-show-first-content-image') ); ?> <?php endif ?> <?php if( get_post_format() != '' ) : ?><span class="post-format <?php echo get_post_format() ?>"><?php _e( ucfirst( get_post_format() ), 'yit' ) ?></span><?php endif ?>
?> <?php the_author_posts_link(); ?> </span><?php } ?> </div> <!-- post comments --> <?php if (yit_get_option('blog-show-comments')) { ?> <p class="comments"> <!--<i class="<?php echo yit_get_icon('blog-comments-icon'); ?> "></i>--> <i class="blog-bazar-comment-icon"></i> <span><?php comments_popup_link('0', '1', '%'); ?> </span> </p> <?php } ?> </div> <div class="<?php