Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="main-split-left">
- <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
- <?php $my_query = new WP_Query('category_name='.$category_name.'&posts_per_page=5&paged='.$paged); ?>
- <?php while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate[] = $post->ID; ?>
- <article class="article-big-block">
- <div class="article-photo">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><span class="shadow"><?php the_post_thumbnail('a-b-bl-thumb'); ?></span></a>
- </div>
- <header class="article-header">
- <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php echo ShortenText3(get_the_title()); ?></a></h2>
- </header>
- <div class="article-content">
- <p class="pabbfpb"><i class="icon-time ictabbf"></i> <time itemprop="datePublished" content="<?php the_time('Y-F-j'); ?>"><?php the_time('j. F'); ?></time> u <span><?php the_time('H:i'); ?></span> | <span>Piše: <a rel="author" href="<?php echo $author_link; ?>" title="View all posts from author <?php echo $author; ?>" class="article-icon-link"><?php echo $author; ?></a></span></p>
- <p><?php echo ShortenExcerpt(get_the_content()); ?></p>
- </div>
- <div class="article-links">
- <a href="<?php the_permalink(); ?>#comments" title="View Comments for article <?php the_title(); ?>" class="article-icon-link"><i class="icon-comments"></i> <?php comments_number( 'No Comments', 'One Comment', '% Comments' ); ?></a><meta itemprop="interactionCount" content="UserComments:<?php comments_number( '0', '1', '%' ); ?>"> <a href="<?php the_permalink(); ?>" title="Read article <?php the_title(); ?>" class="article-icon-link"><i class="icon-file-text-alt"></i> Read Full Article</a>
- </div>
- </article>
- <?php wp_reset_query(); endwhile; ?>
- </div>
- <div class="main-split-right">
- <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
- <?php query_posts(array('category_name'=>$category_name,'post__not_in'=>$do_not_duplicate,'posts_per_page'=>'4', 'paged'=>$paged)); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <article class="article-small-block">
- <header class="article-header">
- <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php echo ShortenText3(get_the_title()); ?></a></h2>
- </header>
- <div class="article-photo">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><span class="shadow"><?php the_post_thumbnail('a-s-bl-thumb'); ?></span></a>
- </div>
- <div class="article-content">
- <p><?php echo ShortenExcerpt2(get_the_content()); ?></p>
- </div>
- <div class="article-links">
- <a href="<?php the_permalink(); ?>#comments" title="View Comments for article <?php the_title(); ?>" class="article-icon-link"><i class="icon-comments"></i> <?php comments_number( 'No Comments', 'One Comment', '% Comments' ); ?></a><meta itemprop="interactionCount" content="UserComments:<?php comments_number( '0', '1', '%' ); ?>"> <a href="<?php the_permalink(); ?>" title="Read article <?php the_title(); ?>" class="article-icon-link"><i class="icon-file-text-alt"></i> Read Full Article</a>
- </div>
- </article>
- <?php wp_reset_query(); endwhile; endif; ?>
- </div>
- <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
- <?php next_posts_link('Next Page »') ?>
- <?php previous_posts_link('« Previous Page') ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement