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

Delete duplicate files from bootprint.

parent 7d52e2b5
No related merge requests found
<?
$topFacetSet = $this->recommend->getTopFacetSet();
$topFacetSettings = $this->recommend->getTopFacetSettings();
?>
<? if (isset($topFacetSet)): ?>
<? $row=0; foreach($topFacetSet as $title => $cluster): ?>
<? $moreClass = ' NarrowGroupHidden_'.$this->escapeHtml($title).' hidden'; ?>
<? $allowExclude = $this->recommend->excludeAllowed($title); ?>
<strong><?=$this->transEsc($cluster['label'])?></strong><?=$this->transEsc("top_facet_suffix") ?>
<div class="row-fluid top-row">
<? $iter=1;$corner=$topFacetSettings['rows']*$topFacetSettings['cols']; ?>
<? foreach($cluster['list'] as $thisFacet): ?>
<? /* More link */ ?>
<? if ($iter == $corner+1): ?>
</div><div id="moreNarrowGroupHidden_<?=$this->escapeHtml($title)?>" class="row-fluid">
<span class="span12"><a href="#" onclick="moreFacets('NarrowGroupHidden_<?=$this->escapeHtml($title)?>'); return false;"><?=$this->transEsc('more') ?> ...</a></span>
</div><div class="row-fluid<?=$moreClass ?>">
<? endif; ?>
<? /* Columns */ ?>
<span class="span<?=floor(12/$topFacetSettings['cols'])?><? if ($iter == $corner+1) echo $moreClass ?>">
<? if ($thisFacet['isApplied']): ?>
<?=$this->escapeHtml($thisFacet['displayText'])?> <img src="<?=$this->imageLink('silk/tick.png')?>" alt="<?=$this->transEsc('Selected') ?>"/>
<? else: ?>
<a href="<?=$this->currentPath().$this->recommend->getResults()->getUrlQuery()->addFacet($title, $thisFacet['value'], $thisFacet['operator'])?>"><?=$this->escapeHtml($thisFacet['displayText'])?></a> (<?=number_format($thisFacet['count']) ?>)
<? if ($allowExclude): ?>
<a href="<?=$this->currentPath().$results->getUrlQuery()->addFacet($title, $thisFacet['value'], 'NOT')?>"><?=$this->transEsc('exclude_facet')?></a>
<? endif; ?>
<? endif; ?>
</span>
<? /* Close rows */ ?>
<? if ($iter%$topFacetSettings['cols'] == 0 && $iter > 0): ?></div><div class="row-fluid<? if(++$row > $topFacetSettings['rows']) echo $moreClass ?>"><? endif; ?>
<? /* Less link */ ?>
<? if (count($cluster['list']) > $corner && $iter == count($cluster['list'])): ?>
<a class="span12" href="#" onclick="lessFacets('NarrowGroupHidden_<?=$title ?>'); return false;"><?=$this->transEsc('less') ?> ...</a>
<? endif; ?>
<? $iter++; ?>
<? endforeach; ?>
</div>
<? endforeach; ?>
<? endif; ?>
<?
// Grab list object from search results (if applicable):
$list = $this->results->getListObject();
// Set up page title:
$this->headTitle(isset($list) ? $list->title : $this->translate('Favorites'));
// Set up breadcrumbs:
$currPage = isset($list) ? 'List' : 'Favorites';
$this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a> <span class="divider">&gt;</span></li>'
. '<li class="active">' . $this->transEsc($currPage) . '</li>';
// Load Javascript dependencies into header:
$this->headScript()->appendFile("check_item_statuses.js");
$recordTotal = $this->results->getResultTotal();
// Convenience variable:
$account = $this->auth()->getManager();
$user = $this->auth()->isLoggedIn();
?>
<?=$this->flashmessages()?>
<div class="<?=$this->layoutClass('mainbody')?>">
<div class="clearfix noprint">
<? if (isset($list)): ?>
<div class="pull-right">
<? if ($list->editAllowed($account->isLoggedIn())): ?>
<a href="<?=$this->url('editList', array('id' => $list->id)) ?>" class="btn btn-link" title="<?=$this->transEsc("edit_list")?>"><i class="icon-edit"></i> <?=$this->transEsc("edit_list")?></a>
<div class="btn-group">
<a class="btn btn-link dropdown-toggle" data-toggle="dropdown" href="<?=$this->url('myresearch-deletelist') ?>?listID=<?=urlencode($list->id)?>">
<i class="icon-trash"></i> <?=$this->transEsc("delete_list")?>
</a>
<ul class="dropdown-menu">
<li><a href="<?=$this->url('myresearch-deletelist') ?>?listID=<?=urlencode($list->id)?>&amp;confirm=1"><?=$this->transEsc('Delete') ?></a></li>
<li><a href="#"><?=$this->transEsc('confirm_dialog_no')?></a></li>
</ul>
</div>
<? endif; ?>
</div>
<p class="lead"><?=$this->escapeHtml($list->title)?></p>
<? if (!empty($list->description)): ?>
<p><?=$this->escapeHtml($list->description)?></p><hr />
<? endif; ?>
<? elseif ($recordTotal > 0): ?>
<div class="pull-right">
<?=$this->transEsc("Showing")?>
<strong><?=$this->escapeHtml($this->results->getStartRecord())?></strong> - <strong><?=$this->escapeHtml($this->results->getEndRecord())?></strong>
<?=$this->transEsc('of')?> <strong><?=number_format($recordTotal)?></strong>
</div>
<p class="lead"><?=$this->transEsc("Your Favorites")?></p>
<? endif; ?>
</div>
<? if ($recordTotal > 0): ?>
<div class="resulthead">
<div class="pull-right">
<?=$this->render('search/controls/sort.phtml')?>
</div>
</div>
<form class="form-inline" method="post" name="bulkActionForm" action="<?=$this->url('cart-myresearchbulk')?>">
<?=$this->context($this)->renderInContext('myresearch/bulk-action-buttons.phtml', array('idPrefix' => '', 'list' => isset($list) ? $list : null, 'account' => $this->account))?>
<? foreach ($this->results->getResults() as $i=>$current): ?>
<?=$this->record($current)->getListEntry($list, $user)?>
<? endforeach; ?>
</form>
<?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $this->results))?>
<? else: ?>
<p><?=$this->transEsc('You do not have any saved resources')?></p>
<? endif; ?>
</div>
<div class="<?=$this->layoutClass('sidebar')?>">
<?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => isset($list) ? 'list' . $list['id'] : 'favorites'))?>
<? foreach ($this->results->getRecommendations('side') as $current): ?>
<?=$this->recommend($current)?>
<? endforeach; ?>
</div>
<? if (!isset($this->indexStart)) $this->indexStart = 0; ?>
<? $i = $this->indexStart; foreach ($this->results->getResults() as $current):
$recordNumber = $this->results->getStartRecord()+$i-$this->indexStart; ?>
<div id="result<?=$i++ ?>" class="row-fluid result clearfix">
<label class="checkbox pull-left"><? if (!isset($this->hideCartControls) && $this->cart()->isActive()): ?><?=$this->record($current)->getCheckbox()?><? endif; ?><?=$recordNumber?></label>
<?=$this->record($current)->getSearchResult('list')?>
</div>
<? endforeach; ?>
\ No newline at end of file
<?
// Set up page title:
$lookfor = $this->results->getUrlQuery()->isQuerySuppressed() ? '' : $this->params->getDisplayQuery();
if (isset($this->overrideTitle)) {
$this->headTitle($this->overrideTitle);
} else {
$this->headTitle($this->translate('Search Results') . (empty($lookfor) ? '' : " - {$lookfor}"));
}
// Set up search box:
$this->layout()->searchbox = $this->context($this)->renderInContext(
'search/searchbox.phtml',
array(
'lookfor' => $lookfor,
'searchIndex' => $this->params->getSearchHandler(),
'searchType' => $this->params->getSearchType(),
'searchId' => $this->results->getSearchId(),
'searchClassId' => $this->params->getsearchClassId(),
'checkboxFilters' => $this->params->getCheckboxFacets(),
'filterList' => $this->params->getFilters(),
'selectedShards' => $this->params->getSelectedShards()
)
);
// Set up breadcrumbs:
if (isset($this->overrideTitle)) {
$this->layout()->breadcrumbs .= '<li class="active">' . $this->escapeHtml($this->overrideTitle) . '</li>';
} else {
$this->layout()->breadcrumbs .= '<li class="active">' . $this->transEsc('Search') . ': ' . $this->escapeHtml($lookfor) . '</li>';
}
// Load Javascript dependencies into header:
$this->headScript()->appendFile("check_item_statuses.js");
$this->headScript()->appendFile("check_save_statuses.js");
?>
<div class="<?=$this->layoutClass('mainbody')?>">
<? if (($recordTotal = $this->results->getResultTotal()) > 0): // only display these at very top if we have results ?>
<? foreach ($this->results->getRecommendations('top') as $current): ?>
<?=$this->recommend($current)?>
<? endforeach; ?>
<? endif; ?>
<?=$this->flashmessages()?>
<div class="clearfix noprint search-controls">
<div class="pull-left help-block">
<? if ($recordTotal > 0): ?>
<?=$this->transEsc("Showing")?>
<strong><?=number_format($this->results->getStartRecord())?></strong> - <strong><?=number_format($this->results->getEndRecord())?></strong>
<? if (!isset($this->skipTotalCount)): ?>
<?=$this->transEsc('of')?> <strong><?=number_format($recordTotal)?></strong>
<? endif; ?>
<? if (isset($this->overrideSearchHeading)): ?>
<?=$this->overrideSearchHeading?>
<? elseif ($this->params->getSearchType() == 'basic'): ?>
<?=$this->transEsc('for search')?>: <strong>'<?=$this->escapeHtml($lookfor)?>'</strong>,
<? endif; ?>
<? if ($qtime = $this->results->getQuerySpeed()): ?>
<?=$this->transEsc('query time')?>: <?=$this->escapeHtml(round($qtime, 2))?>s
<? endif; ?>
<?=$this->search()->renderSpellingSuggestions('<strong>' . $this->transEsc('spell_suggest') . '</strong>:', $this->results, $this); ?>
<? else: ?>
<p class="lead"><?=$this->transEsc('nohit_heading')?></p>
<? endif; ?>
</div>
<? if ($recordTotal > 0): ?>
<div class="pull-right">
<?=$this->render('search/controls/limit.phtml')?>
<?=$this->render('search/controls/sort.phtml')?>
<br/>
<?=$this->render('search/controls/view.phtml')?>
</div>
<? endif; ?>
</div>
<? /* End Listing Options */ ?>
<? if ($recordTotal < 1): ?>
<p>
<? if (isset($this->overrideEmptyMessage)): ?>
<?=$this->overrideEmptyMessage?>
<? else: ?>
<?=$this->transEsc('nohit_prefix')?> - <strong><?=$this->escapeHtml($lookfor)?></strong> - <?=$this->transEsc('nohit_suffix')?>
<? endif; ?>
</p>
<? if (isset($this->parseError)): ?>
<p class="alert-error"><?=$this->transEsc('nohit_parse_error')?></p>
<? endif; ?>
<?=$this->search()->renderSpellingSuggestions($this->transEsc('nohit_spelling') . ':', $this->results, $this); ?>
<? foreach ($this->results->getRecommendations('top') as $current): ?>
<?=$this->recommend($current)?>
<? endforeach; ?>
<? foreach ($this->results->getRecommendations('noresults') as $current): ?>
<?=$this->recommend($current)?>
<? endforeach; ?>
<? else: ?>
<form class="form-inline" method="post" name="bulkActionForm" action="<?=$this->url('cart-home')?>">
<?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => ''))?>
<?=$this->render('search/list-' . $this->params->getView() . '.phtml')?>
<?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => 'bottom_'))?>
<?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $this->results))?>
</form>
<div class="searchtools small text-center noprint">
<strong><?=$this->transEsc('Search Tools')?>:</strong>
<i class="icon-bell"></i> <a href="<?=$this->results->getUrlQuery()->setViewParam('rss')?>"><?=$this->transEsc('Get RSS Feed')?></a>
&mdash;
<i class="icon-envelope"></i> <a href="<?=$this->url('search-email')?>" class="mailSearch modal-link" id="mailSearch<?=$this->escapeHtml($this->results->getSearchId())?>" title="<?=$this->transEsc('Email this Search')?>"><?=$this->transEsc('Email this Search')?></a>
&mdash;
<? if (is_numeric($this->results->getSearchId())): ?>
<? if ($this->results->isSavedSearch()): ?>
<i class="icon-minus-sign"></i> <a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($this->results->getSearchId())?>"><?=$this->transEsc('save_search_remove')?></a>
<? else: ?>
<i class="icon-plus-sign"></i> <a href="<?=$this->url('myresearch-savesearch')?>?save=<?=urlencode($this->results->getSearchId())?>"><?=$this->transEsc('save_search')?></a>
<? endif; ?>
<? endif; ?>
</div>
<? endif; ?>
</div>
<? /* End Main Listing */ ?>
<? /* Narrow Search Options */ ?>
<div class="<?=$this->layoutClass('sidebar')?>">
<? foreach ($this->results->getRecommendations('side') as $current): ?>
<?=$this->recommend($current)?>
<? endforeach; ?>
</div>
<? /* End Narrow Search Options */ ?>
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