コード例 #1
0
ファイル: single.php プロジェクト: nimishavyas/proiti
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
			<div <?php 
            post_class();
            ?>
 id="post-<?php 
            the_ID();
            ?>
">
			    <div class="entry">
<?php 
            // Post Image
            if ($udesign_options['display_post_image_in_single_post'] == 'yes') {
                display_post_image_fn($post->ID, false);
            }
            the_content(__('<p class="serif">Read the rest of this entry &raquo;</p>', 'udesign'));
            wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
            ?>
                                <?php 
            echo do_shortcode('[divider]');
            ?>
                                <div class="postmetadata">
                                    <span>
<?php 
            if ($udesign_options['show_postmetadata_author'] == 'yes') {
                printf(__('By %1$s on %2$s ', 'udesign'), '</span>' . udesign_get_the_author_page_link() . '<span>', get_the_date());
            } else {
                printf(__('On %1$s ', 'udesign'), get_the_date());
            }
コード例 #2
0
ファイル: page-Blog.php プロジェクト: nimishavyas/proiti
        comments_popup_link(__('Leave a comment', 'udesign'), __('1 Comment', 'udesign'), __('% Comments', 'udesign'));
        ?>
 <?php 
        edit_post_link(__('Edit', 'udesign'), '<div style="float:right;margin:0 10px;">', '</div>');
        ?>
 
<?php 
        echo $udesign_options['show_postmetadata_tags'] == 'yes' ? the_tags('<div class="post-tags-wrapper">' . __('Tags: ', 'udesign'), ', ', '</div>') : '';
        ?>
                                </div>
                            </div>
                            <div class="clear"></div>

<?php 
        // Post Image
        display_post_image_fn($post->ID, true);
        ?>
                            
<?php 
        if ($udesign_options['show_excerpt'] == 'yes') {
            the_excerpt();
            //display the excerpt
            if ($udesign_options['blog_button_text']) {
                echo do_shortcode('[read_more text="' . $udesign_options['blog_button_text'] . '" title="' . $udesign_options['blog_button_text'] . '" url="' . get_permalink() . '" align="left"]');
                echo '<div class="clear"></div>';
            }
        } else {
            the_content($udesign_options['blog_button_text']);
        }
        ?>
			</div><!-- end entry -->