mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
Use unified sidebar elements
This commit is contained in:
parent
f1fa1f0b62
commit
371309e775
1 changed files with 11 additions and 15 deletions
|
@ -130,32 +130,28 @@ class Network extends Timeline
|
||||||
$this->page['aside'] .= $this->getNoSharerWidget($module);
|
$this->page['aside'] .= $this->getNoSharerWidget($module);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Feature::isEnabled($this->session->getLocalUserId(), 'trending_tags')) {
|
|
||||||
$this->page['aside'] .= TrendingTags::getHTML($this->selectedTab);
|
|
||||||
}
|
|
||||||
|
|
||||||
$items = $this->getChannelItems();
|
$items = $this->getChannelItems();
|
||||||
} elseif ($this->timeline->isCommunity($this->selectedTab)) {
|
} elseif ($this->timeline->isCommunity($this->selectedTab)) {
|
||||||
if ($this->session->getLocalUserId() && $this->config->get('system', 'community_no_sharer')) {
|
if ($this->session->getLocalUserId() && $this->config->get('system', 'community_no_sharer')) {
|
||||||
$this->page['aside'] .= $this->getNoSharerWidget($module);
|
$this->page['aside'] .= $this->getNoSharerWidget($module);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Feature::isEnabled($this->session->getLocalUserId(), 'trending_tags')) {
|
|
||||||
$this->page['aside'] .= TrendingTags::getHTML($this->selectedTab);
|
|
||||||
}
|
|
||||||
|
|
||||||
$items = $this->getCommunityItems();
|
$items = $this->getCommunityItems();
|
||||||
} else {
|
} else {
|
||||||
$this->page['aside'] .= Circle::sidebarWidget($module, $module . '/circle', 'standard', $this->circleId);
|
|
||||||
$this->page['aside'] .= GroupManager::widget($module . '/group', $this->session->getLocalUserId(), $this->groupContactId);
|
|
||||||
$this->page['aside'] .= Widget::postedByYear($module . '/archive', $this->session->getLocalUserId(), false);
|
|
||||||
$this->page['aside'] .= Widget::networks($module, !$this->groupContactId ? $this->network : '');
|
|
||||||
$this->page['aside'] .= Widget\SavedSearches::getHTML($this->args->getQueryString());
|
|
||||||
$this->page['aside'] .= Widget::fileAs('filed', '');
|
|
||||||
|
|
||||||
$items = $this->getItems();
|
$items = $this->getItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->page['aside'] .= Circle::sidebarWidget($module, $module . '/circle', 'standard', $this->circleId);
|
||||||
|
$this->page['aside'] .= GroupManager::widget($module . '/group', $this->session->getLocalUserId(), $this->groupContactId);
|
||||||
|
$this->page['aside'] .= Widget::postedByYear($module . '/archive', $this->session->getLocalUserId(), false);
|
||||||
|
$this->page['aside'] .= Widget::networks($module, !$this->groupContactId ? $this->network : '');
|
||||||
|
$this->page['aside'] .= Widget\SavedSearches::getHTML($this->args->getQueryString());
|
||||||
|
$this->page['aside'] .= Widget::fileAs('filed', '');
|
||||||
|
|
||||||
|
if (Feature::isEnabled($this->session->getLocalUserId(), 'trending_tags')) {
|
||||||
|
$this->page['aside'] .= TrendingTags::getHTML($this->selectedTab);
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->pConfig->get($this->session->getLocalUserId(), 'system', 'infinite_scroll') && ($_GET['mode'] ?? '') != 'minimal') {
|
if ($this->pConfig->get($this->session->getLocalUserId(), 'system', 'infinite_scroll') && ($_GET['mode'] ?? '') != 'minimal') {
|
||||||
$tpl = Renderer::getMarkupTemplate('infinite_scroll_head.tpl');
|
$tpl = Renderer::getMarkupTemplate('infinite_scroll_head.tpl');
|
||||||
$o .= Renderer::replaceMacros($tpl, ['$reload_uri' => $this->args->getQueryString()]);
|
$o .= Renderer::replaceMacros($tpl, ['$reload_uri' => $this->args->getQueryString()]);
|
||||||
|
|
Loading…
Reference in a new issue