?> <?php thb_post_end(); ?> </div> <?php thb_post_after(); $i++; } ?> <?php } else { ?> <div class="notice warning"> <p><?php _e('Sorry, there aren\'t posts to be shown!', 'thb_text_domain'); ?> </p> </div> <?php } ?> <?php thb_pagination(array('type' => 'numbers'));
?> <div class="thb-text"> <?php echo thb_text_format($author_description, true); ?> </div> <?php } ?> </aside> <?php if (thb_get_post_meta($thb_page_id, 'disable_navigation_block') != '1') { ?> <?php thb_pagination(array('type' => 'links', 'previousPostTitle' => __('Previous', 'thb_text_domain'), 'nextPostTitle' => __('Next', 'thb_text_domain'))); ?> <?php } ?> <?php if (thb_show_related()) { ?> <section class="related"> <h3><?php _e('You might also like', 'thb_text_domain'); ?> </h3> <?php thb_related();
?> <?php thb_post_end(); ?> </article> <?php thb_post_after(); $i++; } ?> <?php } else { ?> <div class="notice warning"> <p><?php _e('Sorry, there aren\'t posts to be shown!', 'thb_text_domain'); ?> </p> </div> <?php } ?> <?php thb_pagination(array('type' => 'links'));
<?php $thb_pagination_config = array('type' => 'links', 'id' => 'thb-portfolio-pagination'); if (isset($previousText)) { $thb_pagination_config['previousText'] = $previousText; } if (isset($nextText)) { $thb_pagination_config['nextText'] = $nextText; } if (isset($arrowPreviousText)) { $thb_pagination_config['arrowPreviousText'] = $arrowPreviousText; } if (isset($arrowNextText)) { $thb_pagination_config['arrowNextText'] = $arrowNextText; } thb_pagination($thb_pagination_config); ?> <script type="text/javascript"> jQuery(document).ready(function($) { $.thb.config.set('portfolio', $.thb.config.defaultKeyName, { useAJAX: <?php echo (int) thb_get_post_meta(thb_get_page_ID(), 'works_ajax_pagination'); ?> }); }); </script>