예제 #1
0
 /**
  * Display navigation.
  */
 function theme_paging_nav()
 {
     $mid = 2;
     // Total of items that will show along with the current page.
     $end = 1;
     // Total of items displayed for the last few pages.
     $show = false;
     // Show all items.
     echo theme_pagination($mid, $end, false);
 }
예제 #2
0
								<div class="post-content" style="margin-top:5px; padding :5px;">
									<a href="<?php 
        the_permalink();
        ?>
"><?php 
        echo wp_trim_words(the_title(), 60, '...');
        ?>
</a>
								</div>
							</div>
						</div>
				<?php 
    }
    ?>
				<div class="col-md-12">
					<?php 
    theme_pagination();
    ?>
				</div>
			<?php 
}
?>
		</div>
	</div>
	<?php 
get_sidebar();
?>


<?php 
get_footer();
	            </article>
            </div>
            <?php 
    }
} else {
    ?>
            <div class="small-12 medium-3 small-centered columns">
            	<p><?php 
    _e('Please select Portfolio Categories for this page', THB_THEME_NAME);
    ?>
</p>
            </div>
            <?php 
}
?>
        <?php 
wp_reset_query();
?>
	</div>
	<?php 
theme_pagination($query->max_num_pages, 1, true);
?>
</section>
<?php 
if ($sidebar) {
    get_sidebar('page');
}
?>
</div>
<?php 
get_footer();
예제 #4
0
</a></h2>
                    	<?php 
        the_excerpt();
        ?>
					</div>
				<?php 
    }
} else {
    ?>
					<div class="no-post">
						<h3><?php 
    _e('No, Results Found', 'language');
    ?>
</h3>
						<p><?php 
    _e('Sorry, No Posts found!', 'language');
    ?>
</p>
					</div>
				<?php 
}
?>
				<?php 
theme_pagination($wp_query->max_num_pages);
?>
			</div>			
		</div><!--end of content div-->
			<div class="clearfix"></div>
	</div><!--end of container div-->
<?php 
get_footer();
		  </article>
		  
		  <?php 
        if (in_array($i + 1, $counter)) {
            echo '</div>';
        }
        ?>
		  
	  <?php 
        $i++;
    }
    ?>
	  	
	  	<div class="small-12 columns">
	      <?php 
    theme_pagination($all_posts->max_num_pages, 1, true);
    ?>
	    </div>
	  <?php 
} else {
    ?>
	    <p><?php 
    _e('Please add posts from your WordPress admin page.', THB_THEME_NAME);
    ?>
</p>
	  <?php 
}
?>
</section>
</div>
<?php 
                                </div>
                                <?php 
        }
        wp_reset_query();
    } else {
        ?>

                            <div class="alert-wrapper">
                                <h5><?php 
        _e('No Properties Found!', 'framework');
        ?>
</h5>
                            </div>
                            <?php 
    }
    theme_pagination($my_properties_query->max_num_pages);
} else {
    ?>

                        <div class="alert-wrapper">
                            <h5><?php 
    _e('Please, Log in to view your properties!', 'framework');
    ?>
</h5>
                        </div>
                        <?php 
}
?>


                </div><!-- End Main Content -->
예제 #7
0
					</p>
				</div><!--/ post-tags -->
			<?php 
        }
        ?>
				<div class="kids_clear"></div>

			</div><!--/ post-footer-->

		</article><!--/ post-item-->

	<?php 
        $loop_cont++;
    }
}
// LOOP END
wp_reset_query();
theme_pagination('pagenavi', $r);
comments_template();
?>
	</main>

	<?php 
if (($blog_template == 'sb_double' || $blog_template == 'sb_right') && function_exists('dynamic_sidebar') && $custom_sidebar_r) {
    echo '<aside id="sidebar-right">';
    dynamic_sidebar($custom_sidebar_r);
    echo "</aside>";
}
?>
	<div class="kids_clear"></div>
</div><!-- .entry-container -->
    wp_reset_query();
} else {
    ?>

                                    <h4><?php 
    _e('Sorry No Results Found', 'framework');
    ?>
</h4>
                                <?php 
}
?>

                            </div>

                            <?php 
theme_pagination($agent_listing_query->max_num_pages);
?>


                        </section>

                    </div><!-- End Main Content -->

                </div> <!-- End span9 -->

                <?php 
get_sidebar('pages');
?>


            </div><!-- End contents row -->
예제 #9
0
        }
    }
    wp_reset_query();
} else {
    ?>
<div class="alert-wrapper"><h4><?php 
    _e('No Properties Found!', 'framework');
    ?>
</h4></div><?php 
}
?>

                        </div>

                        <?php 
theme_pagination($search_query->max_num_pages);
?>


                    </section>

                </div><!-- End Main Content -->

            </div> <!-- End span12 -->

        </div><!-- End  row -->

    </div><!-- End content -->

<?php 
get_footer();
            the_ID();
            ?>
">
  			<?php 
            get_template_part('inc/postformats/' . $format);
            ?>
  		</article>
  	<?php 
        }
        ?>
	  
  <?php 
    }
    ?>
  	<?php 
    theme_pagination($query->max_num_pages, 3, false);
    ?>
  <?php 
} else {
    ?>
    <p><?php 
    _e('Please add posts from your WordPress admin page.', THB_THEME_NAME);
    ?>
</p>
  <?php 
}
?>
</section>
</div>
<?php 
get_footer();
    ?>

                            <div class="alert-wrapper">
                                <h4><?php 
    _e('Sorry No Results Found', 'framework');
    ?>
</h4>
                            </div>
                        <?php 
}
?>

                    </div>

                    <?php 
theme_pagination($property_listing_query->max_num_pages);
?>


                </section>

            </div><!-- End Main Content -->
        </div> <!-- End span9 -->

        <?php 
get_sidebar('property-listing');
?>


    </div><!-- End contents row -->
</div><!-- End Content -->
            the_ID();
            ?>
">
  			<?php 
            get_template_part('inc/postformats/' . $format);
            ?>
  		</article>
  	<?php 
        }
        ?>
	  
  <?php 
    }
    ?>
  	<?php 
    theme_pagination($query->max_num_pages, 3, 'style2');
    ?>
  <?php 
} else {
    ?>
    <p><?php 
    _e('Please add posts from your WordPress admin page.', THB_THEME_NAME);
    ?>
</p>
  <?php 
}
?>
</section>
</div>
<?php 
get_footer();
예제 #13
0
									
										<div class="holder404">
											<div class="description_error">
												<p>
													<?php 
    multitranslate(__('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'happykids'), '_tr_nothing_search');
    ?>
												</p>
											</div>
										</div>

									<?php 
}
?>
								<?php 
theme_pagination('pagenavi gl');
comments_template();
?>
	
								</main>
								<?php 
if (function_exists('dynamic_sidebar') && $gen_side_r) {
    echo '<aside id="sidebar-right">';
    dynamic_sidebar($gen_side_r);
    echo "</aside>";
}
?>
								<div class="kids_clear"></div>
							</div><!-- .entry-container -->
						</div>
						<div class="bg-level-2 second-part"></div>