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

Merge branch 'release-2.3'

parents 8f14881c 0dd2242a
No related merge requests found
...@@ -23,13 +23,15 @@ ...@@ -23,13 +23,15 @@
<? endif; ?> <? endif; ?>
</div> </div>
<div class="<?=$this->layoutClass('sidebar')?>"> <? if ($user = $this->auth()->isLoggedIn()): ?>
<?=$this->context($this)->renderInContext( <div class="<?=$this->layoutClass('sidebar')?>">
"myresearch/menu.phtml", <?=$this->context($this)->renderInContext(
// Only activate search history in account menu if user is logged in. "myresearch/menu.phtml",
$this->auth()->isLoggedIn() ? array('active' => 'history') : array() // Only activate search history in account menu if user is logged in.
); $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,11 +21,13 @@ ...@@ -21,11 +21,13 @@
<? endif; ?> <? endif; ?>
</div> </div>
<div class="<?=$this->layoutClass('sidebar')?>"> <? if ($user = $this->auth()->isLoggedIn()): ?>
<?=$this->context($this)->renderInContext( <div class="<?=$this->layoutClass('sidebar')?>">
"myresearch/menu.phtml", <?=$this->context($this)->renderInContext(
// Only activate search history in account menu if user is logged in. "myresearch/menu.phtml",
$this->auth()->isLoggedIn() ? array('active' => 'history') : array() // Only activate search history in account menu if user is logged in.
); $this->auth()->isLoggedIn() ? array('active' => 'history') : array()
?> );
</div> ?>
\ No newline at end of file </div>
<? 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