Skip to content
Snippets Groups Projects
Commit eb12bd5b authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Merge branch 'release-2.3'

parents da01e11b f8ba21e0
No related merge requests found
...@@ -23,15 +23,13 @@ ...@@ -23,15 +23,13 @@
<? endif; ?> <? endif; ?>
</div> </div>
<? if ($user = $this->auth()->isLoggedIn()): ?> <div class="<?=$this->layoutClass('sidebar')?>">
<div class="<?=$this->layoutClass('sidebar')?>"> <?=$this->context($this)->renderInContext(
<?=$this->context($this)->renderInContext( "myresearch/menu.phtml",
"myresearch/menu.phtml", // Only activate search history in account menu if user is logged in.
// Only activate search history in account menu if user is logged in. $this->auth()->isLoggedIn() ? array('active' => 'history') : array()
$this->auth()->isLoggedIn() ? array('active' => 'history') : array() );
); ?>
?> </div>
</div>
<? endif; ?>
<div class="clear"></div> <div class="clear"></div>
\ No newline at end of file
...@@ -21,13 +21,11 @@ ...@@ -21,13 +21,11 @@
<? endif; ?> <? endif; ?>
</div> </div>
<? if ($user = $this->auth()->isLoggedIn()): ?> <div class="<?=$this->layoutClass('sidebar')?>">
<div class="<?=$this->layoutClass('sidebar')?>"> <?=$this->context($this)->renderInContext(
<?=$this->context($this)->renderInContext( "myresearch/menu.phtml",
"myresearch/menu.phtml", // Only activate search history in account menu if user is logged in.
// Only activate search history in account menu if user is logged in. $this->auth()->isLoggedIn() ? array('active' => 'history') : array()
$this->auth()->isLoggedIn() ? array('active' => 'history') : array() );
); ?>
?> </div>
</div> \ No newline at end of file
<? endif; ?>
\ No newline at end of file
<? <?
// Set page title. // Set page title.
$this->headTitle($this->translate('Search History')); $this->headTitle($this->translate('Search History'));
// Set up breadcrumbs: // Set up breadcrumbs:
$this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a></li>' $this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a></li>'
. '<li class="active">' . $this->transEsc('History') . '</li>'; . '<li class="active">' . $this->transEsc('History') . '</li>';
?> ?>
<div class="row"> <div class="row">
<div class="<?=$this->layoutClass('mainbody')?>"> <div class="<?=$this->layoutClass('mainbody')?>">
<? if (!empty($this->saved)): ?> <? if (!empty($this->saved)): ?>
<h2><?=$this->transEsc("history_saved_searches")?></h2> <h2><?=$this->transEsc("history_saved_searches")?></h2>
<?=$this->context()->renderInContext('search/history-table.phtml', array('showSaved' => true));?> <?=$this->context()->renderInContext('search/history-table.phtml', array('showSaved' => true));?>
<? endif; ?> <? endif; ?>
<h2><?=$this->transEsc("history_recent_searches")?></h2> <h2><?=$this->transEsc("history_recent_searches")?></h2>
<? if (!empty($this->unsaved)): ?> <? if (!empty($this->unsaved)): ?>
<?=$this->context()->renderInContext('search/history-table.phtml', array('showSaved' => false));?> <?=$this->context()->renderInContext('search/history-table.phtml', array('showSaved' => false));?>
<? else: ?> <? else: ?>
<?=$this->transEsc("history_no_searches")?> <?=$this->transEsc("history_no_searches")?>
<? endif; ?> <? endif; ?>
</div> </div>
<? if ($user = $this->auth()->isLoggedIn()): ?>
<div class="<?=$this->layoutClass('sidebar')?>"> <div class="<?=$this->layoutClass('sidebar')?>">
<?=$this->context($this)->renderInContext( <?=$this->context($this)->renderInContext(
"myresearch/menu.phtml", "myresearch/menu.phtml",
// Only activate search history in account menu if user is logged in. // Only activate search history in account menu if user is logged in.
$this->auth()->isLoggedIn() ? array('active' => 'history') : array() $this->auth()->isLoggedIn() ? array('active' => 'history') : array()
); );
?> ?>
</div> </div>
<? endif; ?>
</div> </div>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment