mirror of
https://github.com/e107inc/e107.git
synced 2025-05-01 09:48:19 +02:00
comment_menu - more changes
This commit is contained in:
parent
56ad6ed763
commit
11cc280cb3
@ -9,8 +9,8 @@
|
||||
* Comment menu
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/comment_menu/comment_menu.php,v $
|
||||
* $Revision: 1.2 $
|
||||
* $Date: 2009-10-08 10:53:02 $
|
||||
* $Revision: 1.3 $
|
||||
* $Date: 2009-10-08 14:53:37 $
|
||||
* $Author: secretr $
|
||||
*/
|
||||
|
||||
@ -50,5 +50,6 @@ foreach ($data as $row)
|
||||
}
|
||||
e107::setRegistry('plugin/comment_menu/current', null);
|
||||
|
||||
e107::getRender()->tablerender($menu_pref['comment_caption'], $text, 'comment_menu');
|
||||
$title = e107::getConfig('menu')->get('comment_caption');
|
||||
e107::getRender()->tablerender(defset($title, $title), $text, 'comment_menu');
|
||||
?>
|
@ -9,8 +9,8 @@
|
||||
* Comment menu shortcodes
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/comment_menu/comment_menu_shortcodes.php,v $
|
||||
* $Revision: 1.5 $
|
||||
* $Date: 2009-10-08 10:53:02 $
|
||||
* $Revision: 1.6 $
|
||||
* $Date: 2009-10-08 14:53:37 $
|
||||
* $Author: secretr $
|
||||
*/
|
||||
|
||||
@ -65,15 +65,16 @@ return $row['comment_author'];
|
||||
SC_END
|
||||
|
||||
SC_BEGIN CM_COMMENT
|
||||
global $menu_pref, $pref, $tp;
|
||||
$row = e107::getRegistry('plugin/comment_menu/current');
|
||||
$menu_pref = e107::getConfig('menu')->getPref();
|
||||
$tp = e107::getParser();
|
||||
$COMMENT = '';
|
||||
if($menu_pref['comment_characters']>0)
|
||||
if($menu_pref['comment_characters'] > 0)
|
||||
{
|
||||
$COMMENT = strip_tags($tp->toHTML($row['comment_comment'], TRUE, "emotes_off, no_make_clickable", "", $pref['menu_wordwrap']));
|
||||
if (strlen($COMMENT) > $menu_pref['comment_characters'])
|
||||
$COMMENT = strip_tags($tp->toHTML($row['comment_comment'], TRUE, "emotes_off, no_make_clickable", "", e107::getPref('menu_wordwrap')));
|
||||
if ($tp->uStrLen($COMMENT) > $menu_pref['comment_characters'])
|
||||
{
|
||||
$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>" : "");
|
||||
$COMMENT = $tp->text_truncate($COMMENT, $menu_pref['comment_characters'],'').($row['comment_url'] ? " <a href='".$row['comment_url']."'>" : "").defset($menu_pref['comment_postfix'], $menu_pref['comment_postfix']).($row['comment_url'] ? "</a>" : "");
|
||||
}
|
||||
}
|
||||
return $COMMENT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user