コード例 #1
0
    /**
     * The Tag loop
     * 
     * Located in tag.php
     * 
     * Override: childtheme_override_tag_loop
     */
    function thematic_tag_loop()
    {
        while (have_posts()) {
            the_post();
            // action hook for insterting content above #post
            thematic_abovepost();
            ?>

				<div id="post-<?php 
            the_ID();
            ?>
" <?php 
            post_class();
            ?>
 > 

				<?php 
            // creating the post header
            thematic_postheader();
            ?>
     				
					<div class="entry-content">
					
						<?php 
            thematic_content();
            ?>

					</div><!-- .entry-content -->
					
					<?php 
            thematic_postfooter();
            ?>
					
				</div><!-- #post -->

			<?php 
            // action hook for insterting content below #post
            thematic_belowpost();
        }
    }
コード例 #2
0
 function test_thematic_postfooter()
 {
     $this->expectOutputRegex('/<footer/', thematic_postfooter());
 }
コード例 #3
0
ファイル: attachment.php プロジェクト: ramblinollie/VAM
				<div class="entry-content">
					<div class="entry-attachment"><?php 
the_attachment_link($post->post_ID, true);
?>
</div>
                    
                        <?php 
the_content(more_text());
wp_link_pages('before=<div class="page-link">' . __('Pages:', 'thematic') . '&after=</div>');
?>
                        
				</div>
                
				<?php 
// creating the post footer
thematic_postfooter();
?>
                
			</div><!-- .post -->

            <?php 
comments_template();
?>

		</div><!-- #content -->
	</div><!-- #container -->

<?php 
// action hook for placing content below #container
thematic_belowcontainer();
// calling the standard sidebar
コード例 #4
0
function thematic_tag_loop()
{
    while (have_posts()) {
        the_post();
        ?>

			<div id="post-<?php 
        the_ID();
        ?>
" class="<?php 
        thematic_post_class();
        ?>
">
    			<?php 
        thematic_postheader();
        ?>
				<div class="entry-content">
<?php 
        thematic_content();
        ?>

				</div>
				<?php 
        thematic_postfooter();
        ?>
			</div><!-- .post -->

		<?php 
    }
}
コード例 #5
0
    /**
     * The Tag loop
     * 
     * Located in tag.php
     * 
     * Override: childtheme_override_tag_loop
     */
    function thematic_tag_loop()
    {
        while (have_posts()) {
            the_post();
            // action hook for insterting content above #post
            thematic_abovepost();
            ?>

				<?php 
            echo '<div id="post-' . get_the_ID() . '" ';
            // Checking for defined constant to enable Thematic's post classes
            if (!THEMATIC_COMPATIBLE_POST_CLASS) {
                post_class();
                echo '>';
            } else {
                echo 'class="';
                thematic_post_class();
                echo '">';
            }
            // creating the post header
            thematic_postheader();
            ?>
     				
					<div class="entry-content">
					
						<?php 
            thematic_content();
            ?>

					</div><!-- .entry-content -->
					
					<?php 
            thematic_postfooter();
            ?>
					
				</div><!-- #post -->

			<?php 
            // action hook for insterting content below #post
            thematic_belowpost();
        }
    }
コード例 #6
0
ファイル: legacy.php プロジェクト: scottnix/Thematic
/**
 * The single posts xhtml loop
 * 
 * @since 2.0.0
 */
function thematic_single_post_xhtml()
{
    // action hook for insterting content above #post
    thematic_abovepost();
    ?>
		
			<div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
 > 

			<?php 
    // creating the post header
    thematic_postheader();
    ?>
 				
				<div class="entry-content">
				
					<?php 
    thematic_content();
    ?>

					<?php 
    wp_link_pages(array('before' => sprintf('<div class="page-link">%s', __('Pages:', 'thematic')), 'after' => '</div>'));
    ?>
					
				</div><!-- .entry-content -->
				
				<?php 
    thematic_postfooter();
    ?>
				
			</div><!-- #post -->
	<?php 
    // action hook for insterting content below #post
    thematic_belowpost();
}
コード例 #7
0
    function thematic_tag_loop()
    {
        while (have_posts()) {
            the_post();
            thematic_abovepost();
            ?>

				<div id="post-<?php 
            the_ID();
            echo '" ';
            if (!THEMATIC_COMPATIBLE_POST_CLASS) {
                post_class();
                echo '>';
            } else {
                echo 'class="';
                thematic_post_class();
                echo '">';
            }
            thematic_postheader();
            ?>
					<div class="entry-content">
<?php 
            thematic_content();
            ?>

					</div><!-- .entry-content -->
					<?php 
            thematic_postfooter();
            ?>
				</div><!-- #post -->

			<?php 
            thematic_belowpost();
        }
    }
コード例 #8
0
ファイル: functions.php プロジェクト: ramblinollie/VAM
function tm_single_post()
{
    ?>
			<div id="post-<?php 
    the_ID();
    ?>
" class="<?php 
    thematic_post_class();
    ?>
">
    			<?php 
    tm_postheader();
    ?>
				<div class="entry-content">
<?php 
    thematic_content();
    ?>

					<?php 
    wp_link_pages('before=<div class="page-link">' . __('Pages:', 'thematic') . '&after=</div>');
    ?>
				</div>
				<?php 
    thematic_postfooter();
    ?>
			</div><!-- .post -->
<?php 
}