[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This is the template that displays the links to the latest comments for a blog 4 * 5 * This file is not meant to be called directly. 6 * It is meant to be called by an include in the main.page.php template. 7 * To display a feedback, you should call a stub AND pass the right parameters 8 * For example: /blogs/index.php?disp=comments 9 * 10 * b2evolution - {@link http://b2evolution.net/} 11 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html} 12 * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} 13 * 14 * @package evoskins 15 */ 16 if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); 17 18 19 $CommentList = & new CommentList( $Blog, "'comment','trackback','pingback'", array('published'), '', '', 'DESC', '', 20 ); 20 21 $CommentList->display_if_empty(); 22 23 while( $Comment = & $CommentList->get_next() ) 24 { // Loop through comments: 25 // Load comment's Item object: 26 $Comment->get_Item(); 27 ?> 28 <!-- ========== START of a COMMENT ========== --> 29 <?php $Comment->anchor() ?> 30 <div class="bComment"> 31 <h3 class="bTitle"> 32 <?php echo T_('In response to:') ?> 33 <?php $Comment->Item->title( array( 34 'link_type' => 'permalink', 35 ) ); ?> 36 </h3> 37 <div class="bCommentTitle"> 38 <?php $Comment->author() ?> 39 <?php $Comment->author_url( '', ' · ', '' ) ?> 40 </div> 41 <div class="bCommentText"> 42 <?php $Comment->content() ?> 43 </div> 44 <div class="bCommentSmallPrint"> 45 <?php $Comment->permanent_link( '#', '#', 'permalink_right' ); ?> 46 <?php $Comment->date() ?> @ <?php $Comment->time( 'H:i' ) ?> 47 <?php $Comment->edit_link( ' · ' ) /* Link to backoffice for editing */ ?> 48 <?php $Comment->delete_link( ' · ' ); /* Link to backoffice for deleting */ ?> 49 </div> 50 </div> 51 <!-- ========== END of a COMMENT ========== --> 52 <?php 53 } // End of comment loop. 54 55 56 /* 57 * $Log: _lastcomments.php,v $ 58 * Revision 1.35 2007/11/03 21:04:28 fplanque 59 * skin cleanup 60 * 61 * Revision 1.34 2007/11/03 04:56:04 fplanque 62 * permalink / title links cleanup 63 * 64 * Revision 1.33 2007/04/26 00:11:04 fplanque 65 * (c) 2007 66 * 67 * Revision 1.32 2007/03/18 01:39:55 fplanque 68 * renamed _main.php to main.page.php to comply with 2.0 naming scheme. 69 * (more to come) 70 * 71 * Revision 1.31 2007/01/25 13:41:51 fplanque 72 * wording 73 * 74 * Revision 1.30 2006/12/17 23:42:39 fplanque 75 * Removed special behavior of blog #1. Any blog can now aggregate any other combination of blogs. 76 * Look into Advanced Settings for the aggregating blog. 77 * There may be side effects and new bugs created by this. Please report them :] 78 * 79 * Revision 1.29 2006/12/14 21:56:25 fplanque 80 * minor optimization 81 * 82 * Revision 1.28 2006/11/20 22:15:50 blueyed 83 * whitespace/comment format 84 * 85 * Revision 1.27 2006/07/06 19:56:29 fplanque 86 * no message 87 * 88 * Revision 1.26 2006/05/30 20:32:57 blueyed 89 * Lazy-instantiate "expensive" properties of Comment and Item. 90 * 91 * Revision 1.25 2006/04/19 13:05:22 fplanque 92 * minor 93 * 94 * Revision 1.24 2006/04/18 19:29:52 fplanque 95 * basic comment status implementation 96 * 97 * Revision 1.23 2006/04/11 21:22:26 fplanque 98 * partial cleanup 99 * 100 */ 101 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |