1
0

Added hooks to trackback listing in order to let plugins change it (the avatar plugin in example)

This commit is contained in:
Grischa Brockhaus
2007-12-22 18:49:03 +00:00
parent 1388926481
commit 4227ee1038
3 changed files with 8 additions and 3 deletions

View File

@ -3,6 +3,9 @@
Version 1.3 () 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 * Add more verbose CSS classes to remote RSS sidebar plugin, also
only encapsulate the first XML-Item as link. All following only encapsulate the first XML-Item as link. All following
items are only encapsulated in <span>s. Also add possible items are only encapsulated in <span>s. Also add possible

View File

@ -304,7 +304,7 @@ function serendipity_printComments($comments, $parentid = 0, $depth = 0, $trace
return true; return true;
} }
$serendipity['smarty']->assign_by_ref('comments', $_smartyComments); $serendipity['smarty']->assign_by_ref($smarty_block == 'COMMENTS'?'comments':'trackbacks', $_smartyComments);
unset($_smartyComments); unset($_smartyComments);
return serendipity_smarty_fetch($smarty_block, $smarty_file); return serendipity_smarty_fetch($smarty_block, $smarty_file);

View File

@ -744,8 +744,10 @@ function &serendipity_smarty_printTrackbacks($params, &$smarty) {
return; return;
} }
$tb =& serendipity_fetchTrackbacks($params['entry']); $trackbacks =& serendipity_fetchTrackbacks($params['entry']);
return serendipity_printTrackbacks($tb);
$out = serendipity_printComments($trackbacks, VIEWMODE_LINEAR, 0, null, 'TRACKBACKS', 'trackbacks.tpl');
return $out;
} }
/** /**