Aggiunto la feature 'Show More' per i boxemall pagine
This commit is contained in:
parent
2b11ad44b9
commit
3d73a204bd
2 changed files with 19 additions and 4 deletions
|
@ -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 {
|
div.cat-box-content li.first-news div.entry a.more-link {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pagination a.current {
|
||||||
|
background-color: #ef3636;
|
||||||
|
color: #fff;
|
||||||
|
padding: 4px 10px 6px;
|
||||||
|
text-shadow: 0 1px 0 #000;
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
||||||
|
|
15
page_box.php
15
page_box.php
|
@ -196,9 +196,16 @@ function get_page_box($attrs){
|
||||||
</section><!-- List Box -->
|
</section><!-- List Box -->
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ( !empty($attrs['paged'] ) && $attrs['paged'] == 'y'
|
<?php if ( !empty($attrs['paged'] )){
|
||||||
&& empty($offset) && $cat_query->max_num_pages > 1){?>
|
if( $attrs['paged'] == 'y' && empty($offset) && $cat_query->max_num_pages > 1){?>
|
||||||
<div class="recent-box-pagination"><?php tie_pagenavi($cat_query , $Posts); ?> </div>
|
<div class="recent-box-pagination"><?php tie_pagenavi($cat_query , $Posts); ?> </div>
|
||||||
<?php } ?>
|
<?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>
|
<div class="clear"></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
Loading…
Reference in a new issue