From: brockhaus Date: Sat, 22 Dec 2007 18:49:03 +0000 (+0000) Subject: Added hooks to trackback listing in order to let plugins change it (the avatar plugin... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9b00d1c7276d91940143a975850c3fb14fe93038;p=s9y.git Added hooks to trackback listing in order to let plugins change it (the avatar plugin in example) --- diff --git a/docs/NEWS b/docs/NEWS index 3d78c7a..1de5d46 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.3 () ------------------------------------------------------------------------ + * Added hooks to trackback listing in order to let plugins change + it (the avatar plugin in example) (brockhaus) + * Add more verbose CSS classes to remote RSS sidebar plugin, also only encapsulate the first XML-Item as link. All following items are only encapsulated in s. Also add possible diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index e0b4670..8d6f796 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -304,7 +304,7 @@ function serendipity_printComments($comments, $parentid = 0, $depth = 0, $trace return true; } - $serendipity['smarty']->assign_by_ref('comments', $_smartyComments); + $serendipity['smarty']->assign_by_ref($smarty_block == 'COMMENTS'?'comments':'trackbacks', $_smartyComments); unset($_smartyComments); return serendipity_smarty_fetch($smarty_block, $smarty_file); diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index 7c71bc9..8e030c5 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -744,8 +744,10 @@ function &serendipity_smarty_printTrackbacks($params, &$smarty) { return; } - $tb =& serendipity_fetchTrackbacks($params['entry']); - return serendipity_printTrackbacks($tb); + $trackbacks =& serendipity_fetchTrackbacks($params['entry']); + + $out = serendipity_printComments($trackbacks, VIEWMODE_LINEAR, 0, null, 'TRACKBACKS', 'trackbacks.tpl'); + return $out; } /**