[TWIG] Replaced getRightPanelBlocks with addRightPanelBlock, provides more control on block placement

[COMPONENTS][RightPanel] Refactored template, improved clarity, and added Posting form related macros

[PLUGINS][NoteTypeFeedFilter] Removed icons from template, added them through CSS to further improve performance
This commit is contained in:
2022-02-07 20:25:37 +00:00
parent d6666cf209
commit 9a53f94b77
11 changed files with 155 additions and 100 deletions

View File

@@ -70,7 +70,7 @@ class Posting extends Component
* @throws RedirectException
* @throws ServerException
*/
public function onAppendRightPostingBlock(Request $request, array &$res): bool
public function onAddMainRightPanelBlock(Request $request, array &$res): bool
{
if (\is_null($user = Common::user())) {
return Event::next;
@@ -182,7 +182,6 @@ class Posting extends Component
throw new ClientException(_m('Invalid file size given'), previous: $e);
}
}
$res['post_form'] = $form->createView();
return Event::next;