-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
55 lines (41 loc) · 1.49 KB
/
index.php
File metadata and controls
55 lines (41 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* The main template file.
*
* You'll notice that the classes and visibility of the sidebars are done programatically here. See the functions.php for
* Instructions on how this works. If you want to do manual sidebar entry you can remove the code and put in your own
* values by hand
*
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*/
//Programatially get the proper widths of the page colums
get_header(); ?>
<?php // Main Content ?>
<div id="content" class="<?php print cogito_wp_col_class( 'content' ); ?>" role="main">
<?php cogito_content_top(); ?>
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop', get_post_type() ); ?>
<?php endwhile; ?>
<?php /*
* Display pagination
* If you don't want pagination replace this with <?php cogito_wp_content_nav( 'nav-below' ); ?>
* in your child theme. Have a look at the functions.php for details
* about cogito_wp_content_nav();
*
*/ ?>
<?php if ( function_exists( 'emm_paginate' )) :
emm_paginate();
endif; ?>
<?php else: ?>
<?php get_template_part( 'loop', 'noresult' ); ?>
<?php endif; ?>
<?php cogito_content_bottom(); ?>
</div>
<?php // Get the Left Sidebar (if there is one) ?>
<?php get_sidebar( 'left' ); ?>
<?php // Right Sidebar (if there is one) ?>
<?php get_sidebar( 'right' ); ?>
<?php get_footer(); ?>