Created
June 29, 2024 20:20
-
-
Save mkdizajn/4843bf99ca55f905dd3b72a2c5118ff7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // example of old loop grid in classic theme | |
<div class="cf"></div> | |
<div class="dnevne-objave"> | |
<?php query_posts( array ( 'category_name' => 'istaknuti', 'posts_per_page' => 12, 'paged' => $paged ) ); ?> | |
<?php while( $x <= 4 ) : the_post(); ?> | |
<div class="box <?php echo ( $x % 3 == 2 ) ? 'last' : ''; ?>"> | |
<a href="<?php the_permalink() ?>" rel="bookmark" class="pix"><?php the_post_thumbnail('dnevni', array('title' => '')); ?><div></div></a> | |
<div class="time"><?php echo get_the_time('d-m-Y'); ?></div> | |
<a href="<?php the_permalink() ?>"><h3 class="title"><?php the_title(); ?></h3></a> | |
<div class="excerpt"><?php the_excerpt(); ?></div> | |
</div> | |
<?php $x++; endwhile; ?> | |
<div class="ad left last"> | |
<?php dynamic_sidebar("Banner1"); ?> | |
</div> | |
<div class="ad left"> | |
<?php dynamic_sidebar("Banner2"); ?> | |
</div> | |
<?php while( have_posts() ) : the_post(); ?> | |
<div class="box <?php echo ( $y == 1 || $y == 4 || $y == 7 ) ? 'last' : ''; ?>"> | |
<a href="<?php the_permalink() ?>" rel="bookmark" class="pix"><?php the_post_thumbnail('dnevni', array('title' => '')); ?><div></div></a> | |
<div class="time"><?php echo get_the_time('d-m-Y'); ?></div> | |
<a href="<?php the_permalink() ?>"><h3 class="title"><?php the_title(); ?></h3></a> | |
<div class="excerpt"><?php the_excerpt(); ?></div> | |
</div> | |
<?php $y++; endwhile; ?> | |
<div class="ad left last"> | |
<?php dynamic_sidebar("Banner3"); ?> | |
</div> | |
<div class="cf"></div> | |
<?php pagination('',"24"); //themify_pagenav(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment