Aggiunto la feature 'Show More' per i boxemall pagine

This commit is contained in:
gine 2014-11-14 17:54:47 +01:00
parent 2b11ad44b9
commit 3d73a204bd
2 changed files with 19 additions and 4 deletions

View file

@ -50,3 +50,11 @@ div.cat-box-content li.first-news div.entry {
div.cat-box-content li.first-news div.entry a.more-link {
display: block;
}
.pagination a.current {
background-color: #ef3636;
color: #fff;
padding: 4px 10px 6px;
text-shadow: 0 1px 0 #000;
font-size: 100%;
}

View file

@ -196,9 +196,16 @@ function get_page_box($attrs){
</section><!-- List Box -->
<?php endif; ?>
<?php if ( !empty($attrs['paged'] ) && $attrs['paged'] == 'y'
&& empty($offset) && $cat_query->max_num_pages > 1){?>
<div class="recent-box-pagination"><?php tie_pagenavi($cat_query , $Posts); ?> </div>
<?php } ?>
<?php if ( !empty($attrs['paged'] )){
if( $attrs['paged'] == 'y' && empty($offset) && $cat_query->max_num_pages > 1){?>
<div class="recent-box-pagination"><?php tie_pagenavi($cat_query , $Posts); ?> </div>
<?php } else if(is_array(parse_url($attrs['paged']))){ ?>
<div class="recent-box-pagination">
<div class="pagination">
<a class="current pages" href="<?echo $attrs['paged']?>">Mostra tutti»</a>
</div>
</div>
<? }
}?>
<div class="clear"></div>
<?php } ?>