Esempio n. 1
0
        echo get_day_link("{$arc_year}", "{$arc_month}", "{$arc_day}");
        ?>
"><?php 
        the_time('F j, Y');
        ?>
</a> | <?php 
        the_category(', ');
        ?>
 | <?php 
        comments_popup_link('No Comments', '1 Comment', '% Comments');
        ?>
</p>
	<?php 
        ob_start();
        the_excerpt();
        echo dp_clean(ob_get_clean(), 300);
        ?>
 [...]
	</article>
	<!-- end post -->
	<?php 
    }
    ?>
	<nav class="postnav">
		<?php 
    next_posts_link('Older Entries');
    ?>
 &nbsp; 
		<?php 
    previous_posts_link('Newer Entries');
    ?>
Esempio n. 2
0
function dp_recent_comments($num, $pre = '<li>', $suf = '</li>')
{
    global $wpdb, $post;
    $querystr = "SELECT {$wpdb->comments}.comment_ID, {$wpdb->comments}.comment_post_ID, {$wpdb->comments}.comment_author, {$wpdb->comments}.comment_content, {$wpdb->comments}.comment_author_email FROM {$wpdb->comments} WHERE {$wpdb->comments}.comment_approved=1 ORDER BY {$wpdb->comments}.comment_date DESC LIMIT {$num}";
    $recentcomments = $wpdb->get_results($querystr, OBJECT);
    foreach ($recentcomments as $rc) {
        $post = get_post($rc->comment_post_ID);
        echo $pre;
        dp_gravatar(52, 'alt="' . $rc->comment_author . '"', $rc->comment_author_email);
        ?>
<a href="<?php 
        the_permalink();
        ?>
#comment-<?php 
        echo $rc->comment_ID;
        ?>
"><?php 
        echo dp_clean($rc->comment_content, 38);
        ?>
</a><?php 
        echo $suf;
    }
}
Esempio n. 3
0
        echo get_day_link("{$arc_year}", "{$arc_month}", "{$arc_day}");
        ?>
"><?php 
        the_time('F j, Y');
        ?>
</a> | <?php 
        the_category(', ');
        ?>
 | <?php 
        comments_popup_link('No Comments', '1 Comment', '% Comments');
        ?>
</p>
	<?php 
        ob_start();
        the_excerpt();
        echo dp_clean($post->post, 300);
        ?>
	</article>
	<!-- end post -->
	<?php 
    }
    ?>
	<nav class="postnav">
		<?php 
    next_posts_link('Older Entries');
    ?>
 &nbsp; 
		<?php 
    previous_posts_link('Newer Entries');
    ?>
	</nav>