mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Change code style
This commit is contained in:
parent
d9a2d676d2
commit
70a6c6ed01
1 changed files with 12 additions and 16 deletions
|
@ -233,10 +233,9 @@ class Page implements ArrayAccess
|
|||
$touch_icon = 'images/friendica-192.png';
|
||||
}
|
||||
|
||||
$this->page['htmlhead'] = $this->eventDispatcher->dispatch(new HtmlFilterEvent(
|
||||
HtmlFilterEvent::HEAD,
|
||||
$this->page['htmlhead']
|
||||
))->getHtml();
|
||||
$this->page['htmlhead'] = $this->eventDispatcher->dispatch(
|
||||
new HtmlFilterEvent(HtmlFilterEvent::HEAD, $this->page['htmlhead'])
|
||||
)->getHtml();
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('head.tpl');
|
||||
/* put the head template at the beginning of page['htmlhead']
|
||||
|
@ -358,10 +357,9 @@ class Page implements ArrayAccess
|
|||
]);
|
||||
}
|
||||
|
||||
$this->page['footer'] = $this->eventDispatcher->dispatch(new HtmlFilterEvent(
|
||||
HtmlFilterEvent::FOOTER,
|
||||
$this->page['footer']
|
||||
))->getHtml();
|
||||
$this->page['footer'] = $this->eventDispatcher->dispatch(
|
||||
new HtmlFilterEvent(HtmlFilterEvent::FOOTER, $this->page['footer'])
|
||||
)->getHtml();
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('footer.tpl');
|
||||
$this->page['footer'] = Renderer::replaceMacros($tpl, [
|
||||
|
@ -386,10 +384,9 @@ class Page implements ArrayAccess
|
|||
{
|
||||
// initialise content region
|
||||
if ($mode->isNormal()) {
|
||||
$this->page['content'] = $this->eventDispatcher->dispatch(new HtmlFilterEvent(
|
||||
HtmlFilterEvent::PAGE_CONTENT_TOP,
|
||||
$this->page['content']
|
||||
))->getHtml();
|
||||
$this->page['content'] = $this->eventDispatcher->dispatch(
|
||||
new HtmlFilterEvent(HtmlFilterEvent::PAGE_CONTENT_TOP, $this->page['content'])
|
||||
)->getHtml();
|
||||
}
|
||||
|
||||
$this->page['content'] .= (string)$response->getBody();
|
||||
|
@ -487,10 +484,9 @@ class Page implements ArrayAccess
|
|||
$profiler->set(microtime(true) - $timestamp, 'aftermath');
|
||||
|
||||
if (!$mode->isAjax()) {
|
||||
$this->page['content'] = $this->eventDispatcher->dispatch(new HtmlFilterEvent(
|
||||
HtmlFilterEvent::PAGE_END,
|
||||
$this->page['content']
|
||||
))->getHtml();
|
||||
$this->page['content'] = $this->eventDispatcher->dispatch(
|
||||
new HtmlFilterEvent(HtmlFilterEvent::PAGE_END, $this->page['content'])
|
||||
)->getHtml();
|
||||
}
|
||||
|
||||
// Add the navigation (menu) template
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue