SHOW:
|
|
- or go back to the newest paste.
| 1 | - | <?php |
| 1 | + | <?php get_header(); ?> |
| 2 | - | add_action( 'after_setup_theme', 'et_setup_theme' ); |
| 2 | + | |
| 3 | - | if ( ! function_exists( 'et_setup_theme' ) ){
|
| 3 | + | <?php if (have_posts()) : while (have_posts()) : the_post(); ?> |
| 4 | - | function et_setup_theme(){
|
| 4 | + | |
| 5 | - | global $themename, $shortname, $default_colorscheme; |
| 5 | + | <?php include(TEMPLATEPATH.'/includes/entry.php'); ?> |
| 6 | - | $themename = "LightBright"; |
| 6 | + | |
| 7 | - | $shortname = "lightbright"; |
| 7 | + | <?php endwhile; ?> |
| 8 | - | $default_colorscheme = "Default"; |
| 8 | + | |
| 9 | <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
| |
| 10 | - | $template_dir = get_template_directory(); |
| 10 | + | else { ?>
|
| 11 | <?php get_template_part('includes/navigation'); ?>
| |
| 12 | - | require_once($template_dir . '/epanel/custom_functions.php'); |
| 12 | + | <?php } ?> |
| 13 | ||
| 14 | - | require_once($template_dir . '/includes/functions/comments.php'); |
| 14 | + | <?php else : ?> |
| 15 | <?php get_template_part('includes/no-results'); ?>
| |
| 16 | - | require_once($template_dir . '/includes/functions/sidebars.php'); |
| 16 | + | <?php endif; ?> |
| 17 | ||
| 18 | - | load_theme_textdomain('LightBright',$template_dir.'/lang');
|
| 18 | + | </div> <!-- end #main-area --> |
| 19 | ||
| 20 | - | require_once($template_dir . '/epanel/core_functions.php'); |
| 20 | + | <?php get_sidebar(); ?> |
| 21 | ||
| 22 | - | require_once($template_dir . '/epanel/post_thumbnails_lightbright.php'); |
| 22 | + | <?php get_footer(); ?> |