Skip to content
Snippets Groups Projects
Commit 69e4d15f authored by Florian Bieringer's avatar Florian Bieringer
Browse files

Show more plugins on switch to list

parent 18abd8a7
No related branches found
No related tags found
1 merge request!45Show more plugins on switch to list
...@@ -8,7 +8,7 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin ...@@ -8,7 +8,7 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
$top = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array(), "presenting/overview")); $top = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array('view' => 'tiles'), "presenting/overview"));
$top->setImage($this->getPluginURL()."/assets/topicon.svg"); $top->setImage($this->getPluginURL()."/assets/topicon.svg");
$overview = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array(), "presenting/overview")); $overview = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array(), "presenting/overview"));
......
...@@ -59,7 +59,7 @@ class PresentingController extends MarketController ...@@ -59,7 +59,7 @@ class PresentingController extends MarketController
if ($action != 'details') { if ($action != 'details') {
$viewWidget = new ViewsWidget(); $viewWidget = new ViewsWidget();
$viewWidget->addLink(_('Kacheln'), URLHelper::getLink('', array('view' => 'tiles')))->setActive($_SESSION['pluginmarket']['view'] == 'tiles'); $viewWidget->addLink(_('Kacheln'), URLHelper::getLink('', array('view' => 'tiles')))->setActive($_SESSION['pluginmarket']['view'] == 'tiles');
$viewWidget->addLink(_('Liste'), URLHelper::getLink('', array('view' => 'list')))->setActive($_SESSION['pluginmarket']['view'] == 'list'); $viewWidget->addLink(_('Liste'), $this->url_for('presenting/all', array('view' => 'list')))->setActive($_SESSION['pluginmarket']['view'] == 'list');
$sidebar->addWidget($viewWidget); $sidebar->addWidget($viewWidget);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment