web/wp-content/themes/thematic/page.php
author ymh <ymh.work@gmail.com>
Mon, 22 Mar 2010 16:36:28 +0100
changeset 5 ac511f1ccc8e
parent 1 0d28b7c10758
permissions -rw-r--r--
add hgignore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
0d28b7c10758 First commit
ymh
parents:
diff changeset
     1
<?php
0d28b7c10758 First commit
ymh
parents:
diff changeset
     2
0d28b7c10758 First commit
ymh
parents:
diff changeset
     3
    // calling the header.php
0d28b7c10758 First commit
ymh
parents:
diff changeset
     4
    get_header();
0d28b7c10758 First commit
ymh
parents:
diff changeset
     5
0d28b7c10758 First commit
ymh
parents:
diff changeset
     6
    // action hook for placing content above #container
0d28b7c10758 First commit
ymh
parents:
diff changeset
     7
    thematic_abovecontainer();
0d28b7c10758 First commit
ymh
parents:
diff changeset
     8
0d28b7c10758 First commit
ymh
parents:
diff changeset
     9
?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    10
0d28b7c10758 First commit
ymh
parents:
diff changeset
    11
	<div id="container">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    12
		<div id="content">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    13
0d28b7c10758 First commit
ymh
parents:
diff changeset
    14
            <?php
0d28b7c10758 First commit
ymh
parents:
diff changeset
    15
        
0d28b7c10758 First commit
ymh
parents:
diff changeset
    16
            // calling the widget area 'page-top'
0d28b7c10758 First commit
ymh
parents:
diff changeset
    17
            get_sidebar('page-top');
0d28b7c10758 First commit
ymh
parents:
diff changeset
    18
0d28b7c10758 First commit
ymh
parents:
diff changeset
    19
            the_post();
0d28b7c10758 First commit
ymh
parents:
diff changeset
    20
        
0d28b7c10758 First commit
ymh
parents:
diff changeset
    21
            ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    22
            
0d28b7c10758 First commit
ymh
parents:
diff changeset
    23
			<div id="post-<?php the_ID(); ?>" class="<?php thematic_post_class() ?>">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    24
            
0d28b7c10758 First commit
ymh
parents:
diff changeset
    25
                <?php 
0d28b7c10758 First commit
ymh
parents:
diff changeset
    26
                
0d28b7c10758 First commit
ymh
parents:
diff changeset
    27
                // creating the post header
0d28b7c10758 First commit
ymh
parents:
diff changeset
    28
                thematic_postheader();
0d28b7c10758 First commit
ymh
parents:
diff changeset
    29
                
0d28b7c10758 First commit
ymh
parents:
diff changeset
    30
                ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    31
                
0d28b7c10758 First commit
ymh
parents:
diff changeset
    32
				<div class="entry-content">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    33
0d28b7c10758 First commit
ymh
parents:
diff changeset
    34
                    <?php
0d28b7c10758 First commit
ymh
parents:
diff changeset
    35
                    
0d28b7c10758 First commit
ymh
parents:
diff changeset
    36
                    the_content();
0d28b7c10758 First commit
ymh
parents:
diff changeset
    37
                    
0d28b7c10758 First commit
ymh
parents:
diff changeset
    38
                    wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number');
0d28b7c10758 First commit
ymh
parents:
diff changeset
    39
                    
0d28b7c10758 First commit
ymh
parents:
diff changeset
    40
                    edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>') ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    41
0d28b7c10758 First commit
ymh
parents:
diff changeset
    42
				</div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    43
			</div><!-- .post -->
0d28b7c10758 First commit
ymh
parents:
diff changeset
    44
0d28b7c10758 First commit
ymh
parents:
diff changeset
    45
        <?php
0d28b7c10758 First commit
ymh
parents:
diff changeset
    46
        
0d28b7c10758 First commit
ymh
parents:
diff changeset
    47
        if ( get_post_custom_values('comments') ) 
0d28b7c10758 First commit
ymh
parents:
diff changeset
    48
            thematic_comments_template(); // Add a key/value of "comments" to enable comments on pages!
0d28b7c10758 First commit
ymh
parents:
diff changeset
    49
        
0d28b7c10758 First commit
ymh
parents:
diff changeset
    50
        // calling the widget area 'page-bottom'
0d28b7c10758 First commit
ymh
parents:
diff changeset
    51
        get_sidebar('page-bottom');
0d28b7c10758 First commit
ymh
parents:
diff changeset
    52
        
0d28b7c10758 First commit
ymh
parents:
diff changeset
    53
        ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    54
0d28b7c10758 First commit
ymh
parents:
diff changeset
    55
		</div><!-- #content -->
0d28b7c10758 First commit
ymh
parents:
diff changeset
    56
	</div><!-- #container -->
0d28b7c10758 First commit
ymh
parents:
diff changeset
    57
0d28b7c10758 First commit
ymh
parents:
diff changeset
    58
<?php 
0d28b7c10758 First commit
ymh
parents:
diff changeset
    59
0d28b7c10758 First commit
ymh
parents:
diff changeset
    60
    // action hook for placing content below #container
0d28b7c10758 First commit
ymh
parents:
diff changeset
    61
    thematic_belowcontainer();
0d28b7c10758 First commit
ymh
parents:
diff changeset
    62
0d28b7c10758 First commit
ymh
parents:
diff changeset
    63
    // calling the standard sidebar 
0d28b7c10758 First commit
ymh
parents:
diff changeset
    64
    thematic_sidebar();
0d28b7c10758 First commit
ymh
parents:
diff changeset
    65
    
0d28b7c10758 First commit
ymh
parents:
diff changeset
    66
    // calling footer.php
0d28b7c10758 First commit
ymh
parents:
diff changeset
    67
    get_footer();
0d28b7c10758 First commit
ymh
parents:
diff changeset
    68
0d28b7c10758 First commit
ymh
parents:
diff changeset
    69
?>