[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_plugins/comment_menu/comment_menu_shortcodes.php,v $ 14 | $Revision: 1.2 $ 15 | $Date: 2007/02/08 22:35:09 $ 16 | $Author: e107steved $ 17 +----------------------------------------------------------------------------+ 18 */ 19 if (!defined('e107_INIT')) { exit; } 20 global $tp; 21 $comment_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__); 22 23 /* 24 SC_BEGIN CM_ICON 25 return (defined("BULLET") ? "<img src='".THEME_ABS."images/".BULLET."' alt='' style='border:0; vertical-align: middle;' />" : "<img src='".THEME_ABS."images/bullet2.gif' alt='bullet' style='border:0; vertical-align: middle;' />"); 26 SC_END 27 28 SC_BEGIN CM_DATESTAMP 29 global $row; 30 $gen = new convert; 31 return $gen->convert_date($row['comment_datestamp'], "short"); 32 SC_END 33 34 SC_BEGIN CM_HEADING 35 global $row; 36 return $row['comment_title']; 37 SC_END 38 39 SC_BEGIN CM_URL_PRE 40 global $row; 41 return ($row['comment_url'] ? "<a href='".$row['comment_url']."'>" : ""); 42 SC_END 43 44 SC_BEGIN CM_URL_POST 45 global $row; 46 return ($row['comment_url'] ? "</a>" : ""); 47 SC_END 48 49 SC_BEGIN CM_TYPE 50 global $row; 51 return $row['comment_type']; 52 SC_END 53 54 SC_BEGIN CM_AUTHOR 55 global $row; 56 return $row['comment_author']; 57 SC_END 58 59 SC_BEGIN CM_COMMENT 60 global $row, $menu_pref, $pref, $tp; 61 $COMMENT = ''; 62 if($menu_pref['comment_characters']>0) 63 { 64 $COMMENT = strip_tags($tp->toHTML($row['comment_comment'], TRUE, "emotes_off, no_make_clickable", "", $pref['menu_wordwrap'])); 65 if (strlen($COMMENT) > $menu_pref['comment_characters']) 66 { 67 $COMMENT = $tp->text_truncate($COMMENT, $menu_pref['comment_characters'],'').($row['comment_url'] ? " <a href='".$row['comment_url']."'>" : "").$menu_pref['comment_postfix'].($row['comment_url'] ? "</a>" : ""); 68 } 69 } 70 return $COMMENT; 71 SC_END 72 73 */ 74 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |