get_template_part('templates/events', ''); } } else { ?> <div class="align-center"><?php _e('There are no events that match the criteria', 'dd_string'); ?> </div><?php } ?> </div><!-- .events --> <?php $num_pages = $dd_query->max_num_pages; dd_theme_pagination($num_pages); wp_reset_postdata(); ?> </div><!-- #content --> <?php if ($has_sidebar) { get_sidebar('events'); } ?> </div><!-- .container --> <?php get_footer();
} else { get_template_part('templates/content', post_type_supports(get_post_type(), 'post-formats') ? get_post_format() : get_post_type()); } } } else { ?> <div class="align-center"><?php _e('There are no posts that fit the search term.', 'dd_string'); ?> </div><?php } ?> </div><!-- .blog-posts --> <?php dd_theme_pagination(); ?> </div><!-- #content --> <?php if ($has_sidebar) { get_sidebar(); } ?> </div><!-- .container --> <?php get_footer();
/* Loop the posts */ $dd_count++; get_template_part('templates/causes', ''); } } else { ?> <div class="align-center">There are no causes. Go to WP admin → Posts → Add New.<br>You can read more about creating blog posts in the Documentation.</div><?php } wp_reset_query(); ?> </div><!-- .causes --> <?php $num_pages = $dd_query->max_num_pages; dd_theme_pagination($num_pages, 2, true); wp_reset_postdata(); ?> <?php if ($dd_query->max_num_pages > 1) { ?> <div class="causes-load-more-container"> <a href="#" class="causes-load-more" data-default="<?php _e('LOAD MORE CAUSES', 'dd_string'); ?> " data-finished="<?php _e('NO MORE CAUSES', 'dd_string'); ?> " data-loading="<?php