diff --git a/themes/bootstrap3/templates/Helpers/email-form-fields.phtml b/themes/bootstrap3/templates/Helpers/email-form-fields.phtml index 8a982c42399ca501f86ed50094a719ee977faebb..952ce93a52877f5d3af16c6c7fdda4439a887ad7 100644 --- a/themes/bootstrap3/templates/Helpers/email-form-fields.phtml +++ b/themes/bootstrap3/templates/Helpers/email-form-fields.phtml @@ -6,7 +6,7 @@ <br /> <?=$this->transEsc('email_multiple_recipients_note')?> <? if ($this->maxRecipients > 1): ?> - <?=$this->transEsc('email_maximum_recipients_note', array('%%max%%' => $this->maxRecipients))?> + <?=$this->transEsc('email_maximum_recipients_note', ['%%max%%' => $this->maxRecipients])?> <? endif; ?> <? endif; ?> </div> diff --git a/themes/bootstrap3/templates/Recommend/CollectionSideFacets.phtml b/themes/bootstrap3/templates/Recommend/CollectionSideFacets.phtml index cc6d7f476819cb67bbbc44f6a5cc6c650ccfe5d1..f4a0e5545309e7a6b84da043b47f61c2978a7fcc 100644 --- a/themes/bootstrap3/templates/Recommend/CollectionSideFacets.phtml +++ b/themes/bootstrap3/templates/Recommend/CollectionSideFacets.phtml @@ -5,16 +5,16 @@ <? $keywordFilter = $this->recommend->getKeywordFilter(); if (!empty($keywordFilter)) { - $this->extraSideFacetFilters = array( - 'Keyword' => array( - array( + $this->extraSideFacetFilters = [ + 'Keyword' => [ + [ 'value' => $keywordFilter, 'displayText' => $keywordFilter, 'specialType' => 'keyword', 'operator' => 'OR' - ) - ) - ); + ] + ] + ]; } ?> <? ob_start() ?> diff --git a/themes/bootstrap3/templates/Recommend/MapSelection.phtml b/themes/bootstrap3/templates/Recommend/MapSelection.phtml index 4170ec5e442b20bcddcb7c2f43dbae0a14c4787b..6ebcfbaedead9fcbd10bd7b53f22cbc38e746971 100644 --- a/themes/bootstrap3/templates/Recommend/MapSelection.phtml +++ b/themes/bootstrap3/templates/Recommend/MapSelection.phtml @@ -17,9 +17,9 @@ } $height = $this->recommend->getHeight(); $searchParams = $this->recommend->getSearchParams(); - $params = array(json_encode($geoField), json_encode($coordinates), json_encode($urlpath), + $params = [json_encode($geoField), json_encode($coordinates), json_encode($urlpath), json_encode($baseUrl), json_encode($searchParams), json_encode($showSelection), - json_encode($resultsCoords), json_encode($popupTitle)); + json_encode($resultsCoords), json_encode($popupTitle)]; $jsParams = implode(', ', $params); $jsLoad = "loadMapSelection(" . $jsParams . ");"; $addSearchOption = <<<EOF diff --git a/themes/bootstrap3/templates/Recommend/PubDateVisAjax.phtml b/themes/bootstrap3/templates/Recommend/PubDateVisAjax.phtml index 67f43cad8fdf1624d0108113c3e7d373404dc521..06a770e5a77bad056f657895d8ab7df8b526ad94 100644 --- a/themes/bootstrap3/templates/Recommend/PubDateVisAjax.phtml +++ b/themes/bootstrap3/templates/Recommend/PubDateVisAjax.phtml @@ -2,7 +2,7 @@ <? if ($visFacets): ?> <? /* load jQuery flot */ ?> -<?$this->headScript()->appendFile('vendor/flot/excanvas.min.js', null, array('conditional' => 'IE')); +<?$this->headScript()->appendFile('vendor/flot/excanvas.min.js', null, ['conditional' => 'IE']); $this->headScript()->appendFile('vendor/flot/jquery.flot.min.js'); $this->headScript()->appendFile('vendor/flot/jquery.flot.resize.min.js'); $this->headScript()->appendFile('vendor/flot/jquery.flot.selection.min.js'); diff --git a/themes/bootstrap3/templates/Recommend/SideFacets.phtml b/themes/bootstrap3/templates/Recommend/SideFacets.phtml index 5a598d8dd0f71e9115e2e83da4863a578e691ac9..fd26aa6d1ae75566121abfc727491b15758ebea8 100644 --- a/themes/bootstrap3/templates/Recommend/SideFacets.phtml +++ b/themes/bootstrap3/templates/Recommend/SideFacets.phtml @@ -25,7 +25,7 @@ ?> <div class="checkboxFilter<?if($shown == 0):?> hidden<? endif; ?>"><?=$html ?></div> <? endif; ?> -<? $extraFilters = isset($this->extraSideFacetFilters) ? $this->extraSideFacetFilters : array(); ?> +<? $extraFilters = isset($this->extraSideFacetFilters) ? $this->extraSideFacetFilters : []; ?> <? $collapsedFacets = $this->recommend->getCollapsedFacets() ?> <? $hierarchicalFacetSortOptions = $this->recommend->getHierarchicalFacetSortOptions() ?> <? $hierarchicalFacets = $this->recommend->getHierarchicalFacets() ?> @@ -71,7 +71,7 @@ <? if (isset($rangeFacets[$title])): ?> <div class="list-group-item"> <form name="<?=$this->escapeHtmlAttr($title)?>Filter" id="<?=$this->escapeHtmlAttr($title)?>Filter"> - <?=$results->getUrlQuery()->asHiddenFields(array('page' => "/./", 'filter' => "/^{$title}:.*/"))?> + <?=$results->getUrlQuery()->asHiddenFields(['page' => "/./", 'filter' => "/^{$title}:.*/"])?> <input type="hidden" name="<?=$this->escapeHtmlAttr($rangeFacets[$title]['type'])?>range[]" value="<?=$this->escapeHtmlAttr($title)?>"/> <div class="row"> <? $extraInputAttribs = ($rangeFacets[$title]['type'] == 'date') ? 'maxlength="4" ' : ''; ?> diff --git a/themes/bootstrap3/templates/Recommend/SwitchTab.phtml b/themes/bootstrap3/templates/Recommend/SwitchTab.phtml index 35541ccf4cf17a823c06fcfaf2e7d52c0c08229b..8a95b293c79c2a90583d846777079019efbc56f9 100644 --- a/themes/bootstrap3/templates/Recommend/SwitchTab.phtml +++ b/themes/bootstrap3/templates/Recommend/SwitchTab.phtml @@ -4,7 +4,7 @@ ?> <? if (count($searchTabs) > 0): ?> <div class="alert alert-info"> - <?=$this->transEsc('nohit_change_tab', array('%%activeTab%%' => $this->translate($this->recommend->getActiveTab($searchTabs)['label'])))?> + <?=$this->transEsc('nohit_change_tab', ['%%activeTab%%' => $this->translate($this->recommend->getActiveTab($searchTabs)['label'])])?> <ul> <? $inactiveTabs = $this->recommend->getInactiveTabs($searchTabs); ?> <? foreach ($inactiveTabs as $tab): ?> diff --git a/themes/bootstrap3/templates/Recommend/VisualFacets.phtml b/themes/bootstrap3/templates/Recommend/VisualFacets.phtml index 38f748b184361cb12a0a9a42036c9c58f2c1ab17..c94b1bb4b72e6bec36e33b4d251e381031c8d8d3 100644 --- a/themes/bootstrap3/templates/Recommend/VisualFacets.phtml +++ b/themes/bootstrap3/templates/Recommend/VisualFacets.phtml @@ -4,16 +4,16 @@ $visualFacetSet = $this->recommend->getPivotFacetSet(); if (isset($visualFacetSet->children)) { - $flarechildren = array(); + $flarechildren = []; foreach ($visualFacetSet->children as $toplevelfacet) { - $toplevelinfo = array(); - $toplevelchildren = array(); + $toplevelinfo = []; + $toplevelchildren = []; $toplevelinfo['name'] = $toplevelfacet['value']; $toplevelinfo['field'] = $toplevelfacet['field']; $toplevelinfo['size'] = $toplevelfacet['count']; foreach($toplevelfacet['pivot'] as $secondlevelfacet) { - $secondlevelinfo = array(); + $secondlevelinfo = []; $secondlevelinfo['name'] = $secondlevelfacet['value']; $secondlevelinfo['size'] = $secondlevelfacet['count']; $secondlevelinfo['field'] = $secondlevelfacet['field']; diff --git a/themes/bootstrap3/templates/RecordTab/collectionlist.phtml b/themes/bootstrap3/templates/RecordTab/collectionlist.phtml index 7519425906264a442365d1b55090deb0671109a1..d17ac6b90900417747f696219890ec18266c9f96 100644 --- a/themes/bootstrap3/templates/RecordTab/collectionlist.phtml +++ b/themes/bootstrap3/templates/RecordTab/collectionlist.phtml @@ -5,7 +5,7 @@ // Get search results $results = $this->tab->getResults(); $params = $this->tab->getParams(); - $searchDetails = array('results' => $results, 'params' => $params, 'indexStart' => 1); + $searchDetails = ['results' => $results, 'params' => $params, 'indexStart' => 1]; ?> <? if (($recordTotal = $results->getResultTotal()) > 0): // only display these at very top if we have results ?> <? foreach ($results->getRecommendations('top') as $current): ?> @@ -25,9 +25,9 @@ </div> </div> <form class="form-inline" method="post" name="bulkActionForm" action="<?=$this->url('cart-searchresultsbulk')?>"> - <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', $searchDetails + array('idPrefix' => ''))?> + <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', $searchDetails + ['idPrefix' => ''])?> <?=$this->render('search/list-' . $results->getParams()->getView() . '.phtml', $searchDetails)?> - <?=$this->paginationControl($results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $results))?> + <?=$this->paginationControl($results->getPaginator(), 'Sliding', 'search/pagination.phtml', ['results' => $results])?> </form> <? else: ?> <?=$this->transEsc('collection_empty')?> diff --git a/themes/bootstrap3/templates/RecordTab/description.phtml b/themes/bootstrap3/templates/RecordTab/description.phtml index f4de972c4e7ba06562396f5164647b5a6df85e54..d1794847e4f159158d5a0825f3025319a8d8b9f0 100644 --- a/themes/bootstrap3/templates/RecordTab/description.phtml +++ b/themes/bootstrap3/templates/RecordTab/description.phtml @@ -218,7 +218,7 @@ </tr> <? endif; ?> - <? $authorNotes = empty($isbn) ? array() : $this->authorNotes($isbn); if (!empty($authorNotes)): ?> + <? $authorNotes = empty($isbn) ? [] : $this->authorNotes($isbn); if (!empty($authorNotes)): ?> <? $contentDisplayed = true; ?> <tr> <th><?=$this->transEsc('Author Notes')?>: </th> diff --git a/themes/bootstrap3/templates/RecordTab/hierarchytree.phtml b/themes/bootstrap3/templates/RecordTab/hierarchytree.phtml index 710844ba4504c12787b9108f386ca7bdcccb9136..3a788b8cdebfcca74c3305aed128d6afa7456e61 100644 --- a/themes/bootstrap3/templates/RecordTab/hierarchytree.phtml +++ b/themes/bootstrap3/templates/RecordTab/hierarchytree.phtml @@ -13,7 +13,7 @@ 'SET' ); $this->jsTranslations()->addStrings( - array('showTree' => 'hierarchy_show_tree', 'hideTree' => 'hierarchy_hide_tree') + ['showTree' => 'hierarchy_show_tree', 'hideTree' => 'hierarchy_hide_tree'] ); $this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'vendor/jsTree/jstree.min.js'); $this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'hierarchyTree.js'); @@ -43,7 +43,7 @@ <i id="treeSearchLoadingImg" class="fa fa-spinner fa-spin hidden" aria-hidden="true"></i> </div> <div id="treeSearchNoResults" class="alert alert-danger hidden"><?=$this->translate('nohit_heading')?></div> - <div id="treeSearchLimitReached" class="alert alert-danger hidden"><?=$this->translate('tree_search_limit_reached_html', array('%%url%%' => $this->url('search-results'), '%%limit%%' => $this->tab->getSearchLimit()))?></div> + <div id="treeSearchLimitReached" class="alert alert-danger hidden"><?=$this->translate('tree_search_limit_reached_html', ['%%url%%' => $this->url('search-results'), '%%limit%%' => $this->tab->getSearchLimit()])?></div> <? endif; ?> <div id="hierarchyLoading" class="hide"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i> <?=$this->transEsc("Loading")?>...</div> <div id="hierarchyTree" class="hierarchy-tree"> diff --git a/themes/bootstrap3/templates/RecordTab/holdingsils.phtml b/themes/bootstrap3/templates/RecordTab/holdingsils.phtml index 683f14c74a5415fe374fe24c81c2415f9032d877..03e79777430f7bce1405e74ebeb59aef3309c7be 100644 --- a/themes/bootstrap3/templates/RecordTab/holdingsils.phtml +++ b/themes/bootstrap3/templates/RecordTab/holdingsils.phtml @@ -17,7 +17,7 @@ $this->headTitle($this->translate('Holdings') . ': ' . $this->driver->getBreadcrumb()); ?> -<?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> +<?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', ['user' => $this->auth()->isLoggedIn()]); ?> <?=($offlineMode == "ils-offline") ? $this->render('Helpers/ils-offline.phtml', ['offlineModeMsg' => 'ils_offline_holdings_message']) : ''?> <? if (($this->ils()->getHoldsMode() == 'driver' && !empty($holdings)) || $this->ils()->getTitleHoldsMode() == 'driver'): ?> @@ -28,7 +28,7 @@ </div> <? elseif (!$user->cat_username): ?> <div class="alert alert-info"> - <?=$this->translate("hold_profile_html", array('%%url%%' => $this->recordLink()->getTabUrl($this->driver, 'Holdings') . '?catalogLogin=true'))?> + <?=$this->translate("hold_profile_html", ['%%url%%' => $this->recordLink()->getTabUrl($this->driver, 'Holdings') . '?catalogLogin=true'])?> </div> <? endif; ?> <? endif; ?> @@ -47,7 +47,7 @@ <? endif; ?> <? foreach ($holdings as $holding): ?> <h3> - <? $locationText = $this->transEsc('location_' . $holding['location'], array(), $holding['location']); ?> + <? $locationText = $this->transEsc('location_' . $holding['location'], [], $holding['location']); ?> <? if (isset($holding['locationhref']) && $holding['locationhref']): ?> <a href="<?=$holding['locationhref']?>" target="_blank"><?=$locationText?></a> <? else: ?> diff --git a/themes/bootstrap3/templates/RecordTab/map.phtml b/themes/bootstrap3/templates/RecordTab/map.phtml index 462bcbbfe9056ba87975088eeea2a8da8dbcdce0..ce4254a4a3eda9b6408c3947c091651817ff16bc 100644 --- a/themes/bootstrap3/templates/RecordTab/map.phtml +++ b/themes/bootstrap3/templates/RecordTab/map.phtml @@ -5,7 +5,7 @@ $this->headLink()->appendStylesheet('vendor/ol/ol.css'); $mapTabData = $this->tab->getMapTabData(); $popupTitle = $this->transEsc('map_results_label'); - $params = array(json_encode($mapTabData), json_encode($popupTitle)); + $params = [json_encode($mapTabData), json_encode($popupTitle)]; $jsParams = implode(', ', $params); $jsLoad = "loadMapTab(" . $jsParams . ");"; ?> <div id="wrap" style="width: 674px; height: 479px"> diff --git a/themes/bootstrap3/templates/RecordTab/staffviewarray.phtml b/themes/bootstrap3/templates/RecordTab/staffviewarray.phtml index f098cdd690f0f6cbeb7d21a37c95cfe1d4816061..a640373c06e844e9c095b5564059c063ce40d481 100644 --- a/themes/bootstrap3/templates/RecordTab/staffviewarray.phtml +++ b/themes/bootstrap3/templates/RecordTab/staffviewarray.phtml @@ -7,7 +7,7 @@ <tr> <th><?=$this->escapeHtml($field)?></th> <td> - <? if (!is_array($values)) { $values = array($values); } ?> + <? if (!is_array($values)) { $values = [$values]; } ?> <? foreach ($values as $value): ?> <?=$this->escapeHtml(is_array($value) ? print_r($value, true) : $value)?><br /> <? endforeach; ?> diff --git a/themes/bootstrap3/templates/admin/home.phtml b/themes/bootstrap3/templates/admin/home.phtml index ff6c1da76d08b7f48c2d9604486200380480112a..f0eced109733d25e52042fc558f263652fc3087b 100644 --- a/themes/bootstrap3/templates/admin/home.phtml +++ b/themes/bootstrap3/templates/admin/home.phtml @@ -3,17 +3,17 @@ $this->headTitle($this->translate('VuFind Administration - Home')); // Set up map of core name => label - $coreLabels = array( + $coreLabels = [ 'biblio' => $this->translate('Bibliographic Index'), 'authority' => $this->translate('Authority Index'), 'stats' => $this->translate('Usage Statistics Index') - ); + ]; ?> <div class="row"> <div class="<?=$this->layoutClass('mainbody')?>"> <h2><?=$this->transEsc('VuFind Administration')?></h2> - <? $cores = is_object($this->xml) ? $this->xml->xpath('/response/lst[@name="status"]/lst') : array(); ?> + <? $cores = is_object($this->xml) ? $this->xml->xpath('/response/lst[@name="status"]/lst') : []; ?> <? foreach ($cores as $core): ?> <? $coreName = (string)$core['name']; ?> <? $coreLabel = isset($coreLabels[$coreName]) ? $coreLabels[$coreName] : ucwords($coreName) . ' Index'; ?> diff --git a/themes/bootstrap3/templates/ajax/export-favorites.phtml b/themes/bootstrap3/templates/ajax/export-favorites.phtml index 63648f8b29f09716eed353e348b81d66d3c63a1c..768576efba619ade1eb10a6d55fcbfa4259c027e 100644 --- a/themes/bootstrap3/templates/ajax/export-favorites.phtml +++ b/themes/bootstrap3/templates/ajax/export-favorites.phtml @@ -3,7 +3,7 @@ <?=$this->transEsc('export_success'); ?> — <a class="btn btn-primary" href="<?=$this->escapeHtmlAttr($this->url)?>"<?=$this->export()->needsRedirect($this->format) ? ' target="_blank"' : ''?>><?= $this->export()->needsRedirect($this->format) - ? $this->transEsc('export_redirect', array('%%service%%' => $this->translate($this->export()->getLabelForFormat($this->format)))) + ? $this->transEsc('export_redirect', ['%%service%%' => $this->translate($this->export()->getLabelForFormat($this->format))]) : $this->transEsc('export_download') ?></a> </div> diff --git a/themes/bootstrap3/templates/ajax/status-full.phtml b/themes/bootstrap3/templates/ajax/status-full.phtml index a04420f3b63f42ea6a9a6737b5433a825845fadb..4c72e03f9377a7c2b21e2eb7e8807773cb1db42b 100644 --- a/themes/bootstrap3/templates/ajax/status-full.phtml +++ b/themes/bootstrap3/templates/ajax/status-full.phtml @@ -8,7 +8,7 @@ <? if (++$i == 5) break; // Show no more than 5 items ?> <tr> <td class="fullLocation"> - <? $locationText = $this->transEsc('location_' . $item['location'], array(), $item['location']); ?> + <? $locationText = $this->transEsc('location_' . $item['location'], [], $item['location']); ?> <? if (isset($item['locationhref']) && $item['locationhref']): ?> <a href="<?=$item['locationhref']?>" target="_blank"><?=$locationText?></a> <? else: ?> @@ -34,6 +34,6 @@ </tr> <? endforeach; ?> <? if (count($this->statusItems) > 5): ?> - <tr><td colspan="3"><a href="<?=$this->url('record', array('id' => $this->statusItems[0]['id']))?>"><?=count($this->statusItems) - 5?> <?=$this->transEsc('more')?> ...</a></td></tr> + <tr><td colspan="3"><a href="<?=$this->url('record', ['id' => $this->statusItems[0]['id']])?>"><?=count($this->statusItems) - 5?> <?=$this->transEsc('more')?> ...</a></td></tr> <? endif; ?> </table> diff --git a/themes/bootstrap3/templates/alphabrowse/home.phtml b/themes/bootstrap3/templates/alphabrowse/home.phtml index 1faf64bbf0b2b037a60cbe005f198a5dcff7cc7c..8ac31ec3b4daeb7bc678fb11d32133bd8b5a0cc0 100644 --- a/themes/bootstrap3/templates/alphabrowse/home.phtml +++ b/themes/bootstrap3/templates/alphabrowse/home.phtml @@ -1,20 +1,20 @@ <? $this->headTitle($this->translate('Browse the Collection Alphabetically')); $this->layout()->breadcrumbs = '<a href="' . $this->url('alphabrowse-home') . '">' . $this->transEsc('Browse Alphabetically') . '</a>'; - $baseQuery = array('source' => $this->source, 'from' => $this->from); + $baseQuery = ['source' => $this->source, 'from' => $this->from]; ?> <? /* LOAD THE LINK INFORMATION INTO $pageLinks, similar to smarty's {capture} */ ?> <? ob_start(); ?> <ul class="pager"> <? if (isset($this->prevpage)): ?> - <li><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', array(), array('query' => $baseQuery + array('page' => $this->prevpage))))?>">« <?=$this->transEsc('Prev')?></a></li> + <li><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', [], ['query' => $baseQuery + ['page' => $this->prevpage]]))?>">« <?=$this->transEsc('Prev')?></a></li> <? else: ?> <li class="disabled"><a href="#">« <?=$this->transEsc('Prev')?></a></li> <? endif; ?> <? if (isset($this->nextpage)): ?> - <li><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', array(), array('query' => $baseQuery + array('page' => $this->nextpage))))?>"><?=$this->transEsc('Next')?> »</a></li> + <li><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', [], ['query' => $baseQuery + ['page' => $this->nextpage]]))?>"><?=$this->transEsc('Next')?> »</a></li> <? else: ?> <li class="disabled"><a href="#"><?=$this->transEsc('Next')?> »</a></li> <? endif; ?> @@ -76,7 +76,7 @@ <?=$this->transEsc('Use instead') ?>: <ul> <? foreach ($item['useInstead'] as $heading): ?> - <li><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', array(), array('query' => array('from' => $heading) + $baseQuery)))?>"><?=$this->escapeHtml($heading)?></a></li> + <li><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', [], ['query' => ['from' => $heading] + $baseQuery]))?>"><?=$this->escapeHtml($heading)?></a></li> <? endforeach; ?> </ul> </div> @@ -87,7 +87,7 @@ <?=$this->transEsc('See also') ?>: <ul> <? foreach ($item['seeAlso'] as $heading): ?> - <li><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', array(), array('query' => array('from' => $heading) + $baseQuery)))?>"><?=$this->escapeHtml($heading)?></a></li> + <li><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', [], ['query' => ['from' => $heading] + $baseQuery]))?>"><?=$this->escapeHtml($heading)?></a></li> <? endforeach; ?> </ul> </div> @@ -106,7 +106,7 @@ <? foreach ($this->extras as $extraName): ?> <td> <? - $extraDisplayArray = array(); + $extraDisplayArray = []; foreach ($item['extras'][$extraName] as $j => $e): $extraDisplayArray = array_unique(array_merge($extraDisplayArray, $e)); endforeach; diff --git a/themes/bootstrap3/templates/author/results.phtml b/themes/bootstrap3/templates/author/results.phtml index 5f83e8ccea863d4cb47a166fcf34a43040700812..d0859ea035a51c1210476a4c6e9ada7cb6245c44 100644 --- a/themes/bootstrap3/templates/author/results.phtml +++ b/themes/bootstrap3/templates/author/results.phtml @@ -8,7 +8,7 @@ $this->headTitle($this->translate('Author Search Results')); // Set up empty search box (we want Author search boxes to point at the Solr search screen): - $this->layout()->searchbox = $this->context($this)->renderInContext('search/searchbox.phtml', array('searchClassId' => 'Solr')); + $this->layout()->searchbox = $this->context($this)->renderInContext('search/searchbox.phtml', ['searchClassId' => 'Solr']); // Set up breadcrumbs: $this->layout()->breadcrumbs = '<li><a href="' . $this->url('author-home') . '">' . $this->transEsc('Author') . '</a></li><li class="active">' . $this->escapeHtml($this->params->getDisplayQuery()) . '</li>'; diff --git a/themes/bootstrap3/templates/author/search.phtml b/themes/bootstrap3/templates/author/search.phtml index e613c5829181b8d81ec8fbd0d8e34c2131c29a2c..61d858568ad571a7db37a214c2672be3f56dc849 100644 --- a/themes/bootstrap3/templates/author/search.phtml +++ b/themes/bootstrap3/templates/author/search.phtml @@ -13,7 +13,7 @@ $this->headTitle($this->translate('Author Browse')); // Set up empty search box pointing at Solr module: - $this->layout()->searchbox = $this->context($this)->renderInContext('search/searchbox.phtml', array('searchClassId' => 'Solr')); + $this->layout()->searchbox = $this->context($this)->renderInContext('search/searchbox.phtml', ['searchClassId' => 'Solr']); // Set up breadcrumbs: $this->layout()->breadcrumbs = '<li><a href="' . $this->url('author-home') . '">' . $this->transEsc('Author') . '</a></li> ' diff --git a/themes/bootstrap3/templates/breadcrumbs/default.phtml b/themes/bootstrap3/templates/breadcrumbs/default.phtml index 17d0d06fbcfdabfb2daa33ebcad2ff75b0deb186..cb592c323a80ba06358a715f02bb560a7511b5fb 100644 --- a/themes/bootstrap3/templates/breadcrumbs/default.phtml +++ b/themes/bootstrap3/templates/breadcrumbs/default.phtml @@ -1,7 +1,7 @@ <li><a href="<?=$this->url('home')?>"><?=$this->transEsc('Home')?></a></li> <? $current = $this->layout()->breadcrumbs; $current = current($current); ?> <? foreach($current as $id=>$parent): ?> - <li><a href="<?=$this->url('collection', array('id'=>$id)) ?>"><?=$parent ?></a></li> + <li><a href="<?=$this->url('collection', ['id'=>$id]) ?>"><?=$parent ?></a></li> <? endforeach; ?> <? if(isset($this->layout()->end)): ?> <li title="<?=$this->layout()->title ?>"><?=$this->truncate($this->layout()->title, 100) ?></li> diff --git a/themes/bootstrap3/templates/cart/save.phtml b/themes/bootstrap3/templates/cart/save.phtml index a982ee7952ebfaf9ce43a6b3ecf1425c3fa8918f..4e2aebfd72999ed93a89642134affb411933c92d 100644 --- a/themes/bootstrap3/templates/cart/save.phtml +++ b/themes/bootstrap3/templates/cart/save.phtml @@ -11,7 +11,7 @@ <?=$this->flashmessages()?> <form class="form-horizontal" method="post" action="<?=$this->url('cart-save')?>" name="bulkSave"> - <? $idParams = array(); ?> + <? $idParams = []; ?> <? foreach ($this->records as $current): ?> <? $idParams[] = urlencode('ids[]') . '=' . urlencode($current->getSourceIdentifier() . '|' . $current->getUniqueId()) ?> <input type="hidden" name="ids[]" value="<?=$this->escapeHtmlAttr($current->getSourceIdentifier() . '|' . $current->getUniqueId())?>" /> @@ -48,7 +48,7 @@ <option value=""><?=$this->transEsc('My Favorites') ?></option> <? endif; ?> </select> - <a class="btn btn-link" id="make-list" href="<?=$this->url('editList', array('id' => 'NEW')) . '?' . implode('&', $idParams) ?>"><?=$this->transEsc('or create a new list'); ?></a> + <a class="btn btn-link" id="make-list" href="<?=$this->url('editList', ['id' => 'NEW']) . '?' . implode('&', $idParams) ?>"><?=$this->transEsc('or create a new list'); ?></a> </div> </div> diff --git a/themes/bootstrap3/templates/collection/view.phtml b/themes/bootstrap3/templates/collection/view.phtml index 08b328f6ff679b60ca91fe9a6cdd901506b3c866..f22a393502c19963e022cdfcc82ec2d49275df47 100644 --- a/themes/bootstrap3/templates/collection/view.phtml +++ b/themes/bootstrap3/templates/collection/view.phtml @@ -76,7 +76,7 @@ <? foreach ($this->tabs as $tab => $obj): ?> <? // add current tab to breadcrumbs if applicable: $desc = $obj->getDescription(); - $tab_classes = array(); + $tab_classes = []; if (0 === strcasecmp($this->activeTab, $tab)) { if (!$this->loadInitialTabWithAjax || !$obj->supportsAjax()) { $tab_classes[] = 'active'; @@ -107,7 +107,7 @@ <?=$this->driver->supportsCoinsOpenURL()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenURL()).'"></span>':''?> </div> - <? if (isset($activeTabObj) && is_callable(array($activeTabObj, 'getSideRecommendations'))): ?> + <? if (isset($activeTabObj) && is_callable([$activeTabObj, 'getSideRecommendations'])): ?> <div class="<?=$this->layoutClass('sidebar')?>"> <? foreach ($activeTabObj->getSideRecommendations() as $current): ?> <?=$this->recommend($current)?> diff --git a/themes/bootstrap3/templates/collections/bytitle.phtml b/themes/bootstrap3/templates/collections/bytitle.phtml index aa49a5b70f80f2042f9904fc5c234a7ef24e703c..83d144557745bd2253fc670bb7cffe2ab05b9a76 100644 --- a/themes/bootstrap3/templates/collections/bytitle.phtml +++ b/themes/bootstrap3/templates/collections/bytitle.phtml @@ -11,7 +11,7 @@ <div id="disambiguationItemsDiv"> <? foreach ($collections as $i => $collection): ?> <div class="disambiguationItem <?=$i % 2 ? 'alt ' : ''?>record<?=$i?>"> - <a href="<?=$this->url('collection', array('id' => $collection->getUniqueId()))?>"><?=$this->escapeHtml($collection->getTitle())?></a> + <a href="<?=$this->url('collection', ['id' => $collection->getUniqueId()])?>"><?=$this->escapeHtml($collection->getTitle())?></a> <p><?=$this->escapeHtml(implode(' ', $collection->getSummary()))?></p> </div> <? endforeach; ?> diff --git a/themes/bootstrap3/templates/collections/home.phtml b/themes/bootstrap3/templates/collections/home.phtml index b2aa329adb982500fd5ab79281e190911a82fc74..b85910e5c9baaa27982974753db11a6daee96922 100644 --- a/themes/bootstrap3/templates/collections/home.phtml +++ b/themes/bootstrap3/templates/collections/home.phtml @@ -1,9 +1,9 @@ <? $this->headTitle($this->translate('Collection Browse')); $this->layout()->breadcrumbs = '<a href="' . $this->url('collections-home') . '">' . $this->transEsc('Collections') . '</a>'; - $filterList = array(); + $filterList = []; $filterString = ''; - foreach (isset($filters['Other']) ? $filters['Other'] : array() as $filter) { + foreach (isset($filters['Other']) ? $filters['Other'] : [] as $filter) { $filter['urlPart'] = $filter['field'] . ':' . $filter['value']; $filterList[] = $filter; $filterString .= '&' . urlencode('filter[]') . '=' . urlencode($filter['urlPart']); diff --git a/themes/bootstrap3/templates/collections/list.phtml b/themes/bootstrap3/templates/collections/list.phtml index cc5fc011ae0d6f2a7bd44e6c33ae827900417afa..eeafd1fd530c6936837bf6b7487a31a69616ed45 100644 --- a/themes/bootstrap3/templates/collections/list.phtml +++ b/themes/bootstrap3/templates/collections/list.phtml @@ -1,6 +1,6 @@ <div class="list-group"> <? foreach ($result as $i => $item): ?> - <a class="list-group-item" href="<?=$this->url('collection', array('id' => $item['value']))?>"> + <a class="list-group-item" href="<?=$this->url('collection', ['id' => $item['value']])?>"> <strong><?=$this->escapeHtml($item['displayText'])?></strong> <span class="badge"> <?=$item['count']?> <?=$this->transEsc('items')?> diff --git a/themes/bootstrap3/templates/combined/results-list.phtml b/themes/bootstrap3/templates/combined/results-list.phtml index 5c8fe93ca8986066109068f25e041ee56bcb9aeb..8886e5cd8d931d7ab7352152a5f1a6b3a1d6e294 100644 --- a/themes/bootstrap3/templates/combined/results-list.phtml +++ b/themes/bootstrap3/templates/combined/results-list.phtml @@ -71,12 +71,12 @@ <? $viewType = in_array('list', array_keys($params->getViewList())) ? 'list' : $params->getView(); - $viewParams = array( + $viewParams = [ 'results' => $results, 'params' => $params, 'showCartControls' => $this->showCartControls, 'showBulkOptions' => $this->showBulkOptions - ); + ]; ?> <?=$this->render('search/list-' . $viewType . '.phtml', $viewParams)?> <? if (isset($currentSearch['more_link']) && $currentSearch['more_link']): ?> diff --git a/themes/bootstrap3/templates/combined/results.phtml b/themes/bootstrap3/templates/combined/results.phtml index 93885ef57abfe3e57f4c335526de7a0f6414fb6c..0c4f351e11c7823b1e3257aa14a943c0335f3bf0 100644 --- a/themes/bootstrap3/templates/combined/results.phtml +++ b/themes/bootstrap3/templates/combined/results.phtml @@ -10,7 +10,7 @@ // 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(), @@ -20,7 +20,7 @@ 'filterList' => $this->params->getFilters(), 'hasDefaultsApplied' => $this->params->hasDefaultsApplied(), 'selectedShards' => $this->params->getSelectedShards() - ) + ] ); // Create shortcut to combined results (since $this->results may get overwritten in processing below): @@ -55,15 +55,15 @@ <? endforeach; ?> </div> <? endif; ?> - <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => ''))?> + <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', ['idPrefix' => ''])?> <? - $viewParams = array( + $viewParams = [ 'searchClassId' => $searchClassId, 'combinedResults' => $this->combinedResults, 'supportsCartOptions' => $this->supportsCartOptions, 'showCartControls' => $this->showCartControls, 'showBulkOptions' => $this->showBulkOptions - ); + ]; ?> <?=$this->context($this)->renderInContext('combined/stack-'.$placement.'.phtml', $viewParams)?> <? $recs = $combinedResults->getRecommendations('bottom'); if (!empty($recs)): ?> diff --git a/themes/bootstrap3/templates/combined/stack-distributed.phtml b/themes/bootstrap3/templates/combined/stack-distributed.phtml index bfd7281646e5c6338efdb687cabee2c5eb7c15cb..221df5ae442f90ef5d735f677d6e1e5c1c0e72fb 100644 --- a/themes/bootstrap3/templates/combined/stack-distributed.phtml +++ b/themes/bootstrap3/templates/combined/stack-distributed.phtml @@ -1,8 +1,8 @@ <div class="row"> <? $span = floor(12/$columns); ?> <? $sectionCount = count($this->combinedResults); ?> - <? $keys = array(); ?> - <? $searches = array(); ?> + <? $keys = []; ?> + <? $searches = []; ?> <? foreach ($this->combinedResults as $searchClassId => $currentSearch): ?> <? $keys[] = $searchClassId; ?> <? $searches[] = $currentSearch; ?> @@ -15,7 +15,7 @@ <? $currentSearch = $searches[$columnIndex]; ?> <? if ((!isset($currentSearch['ajax']) || !$currentSearch['ajax']) && isset($currentSearch['hide_if_empty']) && $currentSearch['hide_if_empty'] && $currentSearch['view']->results->getResultTotal() == 0) { $columnIndex += $columns; continue; } ?> <? - $viewParams = array('searchClassId' => $searchClassId, 'currentSearch' => $currentSearch); + $viewParams = ['searchClassId' => $searchClassId, 'currentSearch' => $currentSearch]; // Enable cart if appropriate: $viewParams['showCartControls'] = $this->supportsCartOptions[$columnIndex] && $this->showCartControls; // Enable bulk options if appropriate: diff --git a/themes/bootstrap3/templates/combined/stack-left.phtml b/themes/bootstrap3/templates/combined/stack-left.phtml index b75aa6bc471dcf2fe3c98422e042da496a227a31..0c1bf5303f8e097f602f3ad11ca02ef9fb6e5a18 100644 --- a/themes/bootstrap3/templates/combined/stack-left.phtml +++ b/themes/bootstrap3/templates/combined/stack-left.phtml @@ -8,7 +8,7 @@ <div class="col-sm-<?=$span ?><? if($columnIndex == $columns-1): ?> col-sm-pull-<?=$span*($columns-1) ?><? else: ?> col-sm-push-<?=$span ?><? endif; ?> combined-list"> <? endif; ?> <? - $viewParams = array('searchClassId' => $searchClassId, 'currentSearch' => $currentSearch); + $viewParams = ['searchClassId' => $searchClassId, 'currentSearch' => $currentSearch]; // Enable cart if appropriate: $viewParams['showCartControls'] = $this->supportsCartOptions[$columnIndex] && $this->showCartControls; // Enable bulk options if appropriate: diff --git a/themes/bootstrap3/templates/combined/stack-right.phtml b/themes/bootstrap3/templates/combined/stack-right.phtml index bd6126dc369716963530e4cc2134e19800667da4..e0d394698a642a7cde072a94097a299a88b30061 100644 --- a/themes/bootstrap3/templates/combined/stack-right.phtml +++ b/themes/bootstrap3/templates/combined/stack-right.phtml @@ -8,7 +8,7 @@ <div class="col-sm-<?=$span ?> combined-list"> <? endif; ?> <? - $viewParams = array('searchClassId' => $searchClassId, 'currentSearch' => $currentSearch); + $viewParams = ['searchClassId' => $searchClassId, 'currentSearch' => $currentSearch]; // Enable cart if appropriate: $viewParams['showCartControls'] = $this->supportsCartOptions[$columnIndex] && $this->showCartControls; // Enable bulk options if appropriate: diff --git a/themes/bootstrap3/templates/error/index.phtml b/themes/bootstrap3/templates/error/index.phtml index 19a86243a3f2dcd8fd961a4b69acff19a3f948b7..36ac5fb44d0e4bce00d6a74daa3be83fa7f8071b 100644 --- a/themes/bootstrap3/templates/error/index.phtml +++ b/themes/bootstrap3/templates/error/index.phtml @@ -16,10 +16,10 @@ </div> <? if ($this->showInstallLink): ?> - <h2><a href="<?=$this->url('install-home')?>"><?=$this->transEsc('auto_configure_title', array(), 'Auto Configure')?></a></h2> - <?=$this->transEsc('auto_configure_description', array(), 'If this is a new installation, you may be able to fix the error using VuFind\'s Auto Configure tool.')?> + <h2><a href="<?=$this->url('install-home')?>"><?=$this->transEsc('auto_configure_title', [], 'Auto Configure')?></a></h2> + <?=$this->transEsc('auto_configure_description', [], 'If this is a new installation, you may be able to fix the error using VuFind\'s Auto Configure tool.')?> <h2><a href="<?=$this->url('upgrade-home')?>"><?=$this->transEsc('Upgrade VuFind')?></a></h2> - <?=$this->transEsc('upgrade_description', array(), 'If you are upgrading a previous VuFind version, you can load your old settings with this tool.')?> + <?=$this->transEsc('upgrade_description', [], 'If you are upgrading a previous VuFind version, you can load your old settings with this tool.')?> <? endif; ?> <? if (isset($this->display_exceptions) && $this->display_exceptions): ?> diff --git a/themes/bootstrap3/templates/layout/layout.phtml b/themes/bootstrap3/templates/layout/layout.phtml index 49d6be94f60444e426b2a3354465a28bb53369ac..a287ee3cba63cd9150a9ad1b323185f4e9511fad 100644 --- a/themes/bootstrap3/templates/layout/layout.phtml +++ b/themes/bootstrap3/templates/layout/layout.phtml @@ -10,12 +10,12 @@ <? // Set up OpenSearch link: $this->headLink( - array( + [ 'href' => $this->url('search-opensearch') . '?method=describe', 'type' => 'application/opensearchdescription+xml', 'title' => $this->transEsc('Library Catalog Search'), 'rel' => 'search' - ) + ] ); ?> <!-- RTL styling --> @@ -28,7 +28,7 @@ if (!isset($this->renderingError)) { // Add translation strings $this->jsTranslations()->addStrings( - array( + [ 'add_tag_success' => 'add_tag_success', 'bulk_email_success' => 'bulk_email_success', 'bulk_noitems_advice' => 'bulk_noitems_advice', @@ -50,11 +50,11 @@ 'number_thousands_separator', null, ',' ], 'sms_success' => 'sms_success' - ) + ] ); // Add libphonenumber.js strings $this->jsTranslations()->addStrings( - array( + [ "Phone number invalid" => 'libphonenumber_invalid', "Invalid country calling code" => 'libphonenumber_invalidcountry', "Invalid region code" => 'libphonenumber_invalidregion', @@ -62,7 +62,7 @@ "The string supplied is too long to be a phone number" => 'libphonenumber_toolong', "The string supplied is too short to be a phone number" => 'libphonenumber_tooshort', "Phone number too short after IDD" => 'libphonenumber_tooshortidd' - ) + ] ); // Deal with cart stuff: $cart = $this->cart(); @@ -76,7 +76,7 @@ ); } $this->jsTranslations()->addStrings( - array( + [ 'addBookBag' => 'Add to Book Bag', 'bookbagFull' => 'bookbag_full_msg', 'bookbagMax' => $cart->getMaxSize(), @@ -87,7 +87,7 @@ 'itemsInBag' => 'items_already_in_bookbag', 'removeBookBag' => 'Remove from Book Bag', 'viewBookBag' => 'View Book Bag' - ) + ] ); } $this->headScript()->appendScript( @@ -145,16 +145,16 @@ JS; <ul class="breadcrumb hidden-print"> <? if(is_array($this->layout()->breadcrumbs)): ?> <? if(count($this->layout()->breadcrumbs) > 1): ?> - <?=$this->render('breadcrumbs/multi.phtml', array( + <?=$this->render('breadcrumbs/multi.phtml', [ 'parents' => $this->layout()->breadcrumbs, 'title' => $this->layout()->title, 'from' => $this->layout()->from - )) ?> + ]) ?> <? else: ?> - <?=$this->render('breadcrumbs/default.phtml', array( + <?=$this->render('breadcrumbs/default.phtml', [ 'parents' => $this->layout()->breadcrumbs, 'title' => $this->layout()->title - )) ?> + ]) ?> <? endif; ?> <? else: ?> <?=$this->layout()->breadcrumbs ?> diff --git a/themes/bootstrap3/templates/librarycards/home.phtml b/themes/bootstrap3/templates/librarycards/home.phtml index 3d5eb9a978cf7f8f47081f7df3d48645b915215a..bf3ec17a35b65054a89e8b56c454c9923c1d58a6 100644 --- a/themes/bootstrap3/templates/librarycards/home.phtml +++ b/themes/bootstrap3/templates/librarycards/home.phtml @@ -57,7 +57,7 @@ </div> <div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'librarycards'))?> + <?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'librarycards'])?> </div> </div> diff --git a/themes/bootstrap3/templates/myresearch/checkedout.phtml b/themes/bootstrap3/templates/myresearch/checkedout.phtml index 0faacfc2aaaeda01dcc4681973dbcdec11948e96..cf2a6c504f068927ef0b5517d608b1cdad8b8896 100644 --- a/themes/bootstrap3/templates/myresearch/checkedout.phtml +++ b/themes/bootstrap3/templates/myresearch/checkedout.phtml @@ -11,7 +11,7 @@ <h2><?=$this->transEsc('Your Checked Out Items')?></h2> <?=$this->flashmessages()?> - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> + <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', ['user' => $this->auth()->isLoggedIn()]); ?> <? if (!empty($this->transactions)): ?> <? if ($this->renewForm): ?> @@ -115,12 +115,12 @@ <? endif; ?> <? if (!empty($ilsDetails['institution_name']) && (empty($ilsDetails['borrowingLocation']) || $ilsDetails['institution_name'] != $ilsDetails['borrowingLocation'])): ?> - <strong><?=$this->transEsc('location_' . $ilsDetails['institution_name'], array(), $ilsDetails['institution_name'])?></strong> + <strong><?=$this->transEsc('location_' . $ilsDetails['institution_name'], [], $ilsDetails['institution_name'])?></strong> <br /> <? endif; ?> <? if (!empty($ilsDetails['borrowingLocation'])): ?> - <strong><?=$this->transEsc('Borrowing Location')?>:</strong> <?=$this->transEsc('location_' . $ilsDetails['borrowingLocation'], array(), $ilsDetails['borrowingLocation'])?> + <strong><?=$this->transEsc('Borrowing Location')?>:</strong> <?=$this->transEsc('location_' . $ilsDetails['borrowingLocation'], [], $ilsDetails['borrowingLocation'])?> <br /> <? endif; ?> @@ -172,6 +172,6 @@ </div> <div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'checkedout'))?> + <?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'checkedout'])?> </div> </div> diff --git a/themes/bootstrap3/templates/myresearch/edit.phtml b/themes/bootstrap3/templates/myresearch/edit.phtml index 3ec402b3c166f48e56833f7dd05355a876d43140..0e98aef21841971b95be405393e1a8c6e2718b93 100644 --- a/themes/bootstrap3/templates/myresearch/edit.phtml +++ b/themes/bootstrap3/templates/myresearch/edit.phtml @@ -24,7 +24,7 @@ <? foreach ($this->savedData as $i=>$current): ?> <fieldset> <legend> - <a href="<?=$this->url('userList', array('id' => $current['listId'])) ?>?delete=<?=urlencode($this->driver->getUniqueId())?>&source=<?=urlencode($this->driver->getSourceIdentifier())?>" id="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>delete<?=$current['listId'] ?>" title="<?=$this->transEsc('confirm_delete')?>" class="close">×</a> <?=$this->transEsc('List') ?>: <?=$this->escapeHtml($current['listTitle'])?> + <a href="<?=$this->url('userList', ['id' => $current['listId']]) ?>?delete=<?=urlencode($this->driver->getUniqueId())?>&source=<?=urlencode($this->driver->getSourceIdentifier())?>" id="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>delete<?=$current['listId'] ?>" title="<?=$this->transEsc('confirm_delete')?>" class="close">×</a> <?=$this->transEsc('List') ?>: <?=$this->escapeHtml($current['listTitle'])?> </legend> <input type="hidden" name="lists[]" value="<?=$current['listId'] ?>"/> <? if ($this->usertags()->getMode() !== 'disabled'): ?> diff --git a/themes/bootstrap3/templates/myresearch/fines.phtml b/themes/bootstrap3/templates/myresearch/fines.phtml index fc40cfd3353e165deb646b3bc17d7895f6a1f12d..dcbab7be80a52a981b13e7a44045b160f64eb692 100644 --- a/themes/bootstrap3/templates/myresearch/fines.phtml +++ b/themes/bootstrap3/templates/myresearch/fines.phtml @@ -9,7 +9,7 @@ <h2><?=$this->transEsc('Your Fines')?></h2> <?=$this->flashmessages()?> - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> + <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', ['user' => $this->auth()->isLoggedIn()]); ?> <? if (empty($this->fines)): ?> <?=$this->transEsc('You do not have any fines')?> @@ -49,5 +49,5 @@ </div> <div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'fines'))?> + <?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'fines'])?> </div> \ No newline at end of file diff --git a/themes/bootstrap3/templates/myresearch/holds.phtml b/themes/bootstrap3/templates/myresearch/holds.phtml index 7f0e5e95b8450eef11f4d7cb1b5ef35456269422..8e8f9ac545731406bb1ca7aeb0d79ec199ae0c38 100644 --- a/themes/bootstrap3/templates/myresearch/holds.phtml +++ b/themes/bootstrap3/templates/myresearch/holds.phtml @@ -12,7 +12,7 @@ <?=$this->flashmessages()?> - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> + <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', ['user' => $this->auth()->isLoggedIn()]); ?> <? if (!empty($this->recordList)): ?> <? if ($this->cancelForm): ?> @@ -145,7 +145,7 @@ <? if (isset($ilsDetails['available']) && $ilsDetails['available'] == true): ?> <div class="text-success"><?=$this->transEsc("hold_available") ?></div> <? elseif (isset($ilsDetails['in_transit']) && $ilsDetails['in_transit']): ?> - <div class="text-success"><?=$this->transEsc('request_in_transit') . (is_string($ilsDetails['in_transit']) ? ': ' . $this->transEsc('institution_' . $ilsDetails['in_transit'], array(), $ilsDetails['in_transit']) : '') ?></div> + <div class="text-success"><?=$this->transEsc('request_in_transit') . (is_string($ilsDetails['in_transit']) ? ': ' . $this->transEsc('institution_' . $ilsDetails['in_transit'], [], $ilsDetails['in_transit']) : '') ?></div> <? elseif (isset($ilsDetails['position'])): ?> <p><strong><?=$this->transEsc("hold_queue_position") ?>:</strong> <?=$this->escapeHtml($ilsDetails['position']) ?></p> <? endif; ?> @@ -163,6 +163,6 @@ </div> <div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'holds'))?> + <?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'holds'])?> </div> </div> diff --git a/themes/bootstrap3/templates/myresearch/illrequests.phtml b/themes/bootstrap3/templates/myresearch/illrequests.phtml index cfb1f3fd85472dc5dc2aff4655bdbabff441304c..acda2bbbbd1d90dcf8fab80e94641ab1e7f61c0f 100644 --- a/themes/bootstrap3/templates/myresearch/illrequests.phtml +++ b/themes/bootstrap3/templates/myresearch/illrequests.phtml @@ -13,7 +13,7 @@ <?=$this->flashmessages()?> - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> + <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', ['user' => $this->auth()->isLoggedIn()]); ?> <? if (!empty($this->recordList)): ?> <? if ($this->cancelForm): ?> @@ -139,7 +139,7 @@ <? endif; ?> <? if (isset($ilsDetails['in_transit']) && $ilsDetails['in_transit']): ?> - <div class="text-success"><?=$this->transEsc("request_in_transit") . (is_string($ilsDetails['in_transit']) ? ': ' . $this->transEsc('institution_' . $ilsDetails['in_transit'], array(), $ilsDetails['in_transit']) : '') ?></div> + <div class="text-success"><?=$this->transEsc("request_in_transit") . (is_string($ilsDetails['in_transit']) ? ': ' . $this->transEsc('institution_' . $ilsDetails['in_transit'], [], $ilsDetails['in_transit']) : '') ?></div> <? endif; ?> <? if (isset($ilsDetails['processed']) && $ilsDetails['processed']): ?> <div class="text-success"><?=$this->transEsc("ill_request_processed") . (is_string($ilsDetails['processed']) ? ': ' . $ilsDetails['processed'] : '') ?></div> @@ -164,6 +164,6 @@ </div> <div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'ILLRequests'))?> + <?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'ILLRequests'])?> </div> </div> diff --git a/themes/bootstrap3/templates/myresearch/menu.phtml b/themes/bootstrap3/templates/myresearch/menu.phtml index 33dea93d5d457efd5e45cb1f7c45edb81ab85eda..a0c78cacc5eea6453e43efd93234f9e6ba7975f4 100644 --- a/themes/bootstrap3/templates/myresearch/menu.phtml +++ b/themes/bootstrap3/templates/myresearch/menu.phtml @@ -69,12 +69,12 @@ </a> <? $lists = $user->getLists() ?> <? foreach ($lists as $list): ?> - <a href="<?=$this->url('userList', array('id' => $list['id']))?>" class="list-group-item<?=$this->active == 'list' . $list['id'] ? ' active' : ''?>"> + <a href="<?=$this->url('userList', ['id' => $list['id']])?>" class="list-group-item<?=$this->active == 'list' . $list['id'] ? ' active' : ''?>"> <?=$this->escapeHtml($list['title'])?> <span class="badge"><?=$list->cnt?></span> </a> <? endforeach; ?> - <a href="<?=$this->url('editList', array('id'=>'NEW'))?>" class="list-group-item"> + <a href="<?=$this->url('editList', ['id'=>'NEW'])?>" class="list-group-item"> <i class="fa fa-fw fa-plus" aria-hidden="true"></i> <?=$this->transEsc('Create a List') ?> </a> </div> diff --git a/themes/bootstrap3/templates/myresearch/mylist.phtml b/themes/bootstrap3/templates/myresearch/mylist.phtml index df9aae819b5691b0198f9019faf019024385f915..57844a6441e8d5f0885b0d36ce658a3891b6e429 100644 --- a/themes/bootstrap3/templates/myresearch/mylist.phtml +++ b/themes/bootstrap3/templates/myresearch/mylist.phtml @@ -34,7 +34,7 @@ <div class="pull-right flip"> <? if (isset($list)): ?> <? if ($list->editAllowed($account->isLoggedIn())): ?> - <a href="<?=$this->url('editList', array('id' => $list->id)) ?>" class="btn btn-link"><i class="fa fa-edit" aria-hidden="true"></i> <?=$this->transEsc("edit_list")?></a> + <a href="<?=$this->url('editList', ['id' => $list->id]) ?>" class="btn btn-link"><i class="fa fa-edit" aria-hidden="true"></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="fa fa-trash-o" aria-hidden="true"></i> <?=$this->transEsc("delete_list")?> @@ -63,19 +63,19 @@ </div> </div> <form class="form-inline" method="post" name="bulkActionForm" action="<?=$this->url('cart-myresearchbulk')?>" data-lightbox data-lightbox-onsubmit="bulkFormHandler"> - <?=$this->context($this)->renderInContext('myresearch/bulk-action-buttons.phtml', array('idPrefix' => '', 'list' => isset($list) ? $list : null, 'account' => $this->account))?> + <?=$this->context($this)->renderInContext('myresearch/bulk-action-buttons.phtml', ['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))?> + <?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', ['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'))?> + <?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => isset($list) ? 'list' . $list['id'] : 'favorites'])?> <? foreach ($this->results->getRecommendations('side') as $current): ?> <?=$this->recommend($current)?> <? endforeach; ?> diff --git a/themes/bootstrap3/templates/myresearch/newpassword.phtml b/themes/bootstrap3/templates/myresearch/newpassword.phtml index 8391573200f32efa7bbaee5009be4b316f491007..e1986bc96ce68a0b38d6ad9c627e453248d4e97a 100644 --- a/themes/bootstrap3/templates/myresearch/newpassword.phtml +++ b/themes/bootstrap3/templates/myresearch/newpassword.phtml @@ -37,7 +37,7 @@ <? if ($this->auth()->isLoggedIn()): ?> </div> <div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'newpassword'))?> + <?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'newpassword'])?> </div> </div> <? endif; ?> diff --git a/themes/bootstrap3/templates/myresearch/profile.phtml b/themes/bootstrap3/templates/myresearch/profile.phtml index 24a25874fc6f3f278bfccbde3147b3968bd006b9..05cd652c17cb82b15beab7f9d74959ccbc724ea6 100644 --- a/themes/bootstrap3/templates/myresearch/profile.phtml +++ b/themes/bootstrap3/templates/myresearch/profile.phtml @@ -17,16 +17,16 @@ <h2><?=$this->transEsc('Your Profile')?></h2> <?=$this->flashmessages();?> - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> + <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', ['user' => $this->auth()->isLoggedIn()]); ?> <table class="table table-striped"> <? echo $this->renderArray( $arrTemplate, $this->profile, - array( + [ $this->transEsc('First Name') => 'firstname', $this->transEsc('Last Name') => 'lastname' - ) + ] ); ?> <? if ($showHomeLibForm): ?> @@ -49,7 +49,7 @@ <? echo $this->renderArray( $arrTemplate, $this->profile, - array( + [ $this->transEsc('Address') . ' 1' => 'address1', $this->transEsc('Address') . ' 2' => 'address2', $this->transEsc('Zip') => 'zip', @@ -57,13 +57,13 @@ $this->transEsc('Country') => 'country', $this->transEsc('Phone Number') => 'phone', $this->transEsc('Group') => 'group' - ) + ] ); ?> </table> </div> <div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'profile'))?> + <?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'profile'])?> </div> </div> \ No newline at end of file diff --git a/themes/bootstrap3/templates/myresearch/storageretrievalrequests.phtml b/themes/bootstrap3/templates/myresearch/storageretrievalrequests.phtml index fc8050b7e0c0c78d237f703f9c8ed0974d61a188..5c7ea6c4352c0ee448a4bb1e865c6e75696c16ec 100644 --- a/themes/bootstrap3/templates/myresearch/storageretrievalrequests.phtml +++ b/themes/bootstrap3/templates/myresearch/storageretrievalrequests.phtml @@ -11,7 +11,7 @@ <?=$this->flashmessages()?> - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> + <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', ['user' => $this->auth()->isLoggedIn()]); ?> <? if (!empty($this->recordList)): ?> <? if ($this->cancelForm): ?> @@ -158,6 +158,6 @@ </div> <div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'storageRetrievalRequests'))?> + <?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'storageRetrievalRequests'])?> </div> </div> diff --git a/themes/bootstrap3/templates/record/ajaxview-accordion.phtml b/themes/bootstrap3/templates/record/ajaxview-accordion.phtml index b243a2fd54806e407c3681717411f740f364d0e2..6363fa6a4f9c73e3d0316570461573648f4e2626 100644 --- a/themes/bootstrap3/templates/record/ajaxview-accordion.phtml +++ b/themes/bootstrap3/templates/record/ajaxview-accordion.phtml @@ -65,7 +65,7 @@ <? foreach ($this->tabs as $tab => $obj): ?> <? // add current tab to breadcrumbs if applicable: $desc = $obj->getDescription(); - $tab_classes = array(); + $tab_classes = []; if (!$obj->isVisible()) { $tab_classes[] = 'hidden'; } if (!$obj->supportsAjax()) { $tab_classes[] = 'noajax'; } if ($this->defaultTab === strtolower($tab)) { $tab_classes[] = 'default'; } diff --git a/themes/bootstrap3/templates/record/ajaxview-tabs.phtml b/themes/bootstrap3/templates/record/ajaxview-tabs.phtml index a995b43151542b2ef4e59c86ded443ba0405e5c0..a90101dff53a26677d0ec01594bef29b2895f653 100644 --- a/themes/bootstrap3/templates/record/ajaxview-tabs.phtml +++ b/themes/bootstrap3/templates/record/ajaxview-tabs.phtml @@ -33,7 +33,7 @@ <? foreach ($this->tabs as $tab => $obj): ?> <? // add current tab to breadcrumbs if applicable: $desc = $obj->getDescription(); - $tab_classes = array(); + $tab_classes = []; if ($this->defaultTab === strtolower($tab)) { if (!$this->ajaxTabs || !$obj->supportsAjax()) { $tab_classes[] = 'active'; diff --git a/themes/bootstrap3/templates/record/cite.phtml b/themes/bootstrap3/templates/record/cite.phtml index a6db3edaea7ac8c160d76b16a3ec535e4d870133..09798ecd6701748217dc7590abc1a83982895983 100644 --- a/themes/bootstrap3/templates/record/cite.phtml +++ b/themes/bootstrap3/templates/record/cite.phtml @@ -9,7 +9,7 @@ // Collect citation data: $helper = $this->citation($this->driver); - $citations = array(); + $citations = []; foreach ($this->driver->getCitationFormats() as $format) { $citations[$format . ' Citation'] = $helper->getCitation($format); } diff --git a/themes/bootstrap3/templates/record/save.phtml b/themes/bootstrap3/templates/record/save.phtml index 8124416e968d4a6802db3077b7b08b0075713244..b97c7d98ad43da12190574498073c3b1131aa32c 100644 --- a/themes/bootstrap3/templates/record/save.phtml +++ b/themes/bootstrap3/templates/record/save.phtml @@ -15,7 +15,7 @@ <? if (!empty($this->containingLists)): ?> <p><?=$this->transEsc('This item is already part of the following list/lists') ?>: <? foreach ($this->containingLists as $i=>$list): ?> - <a href="<?=$this->url('userList', array('id' => $list['id'])) ?>" data-lightbox-ignore><?=$this->escapeHtml($list['title'])?></a><? if($i<count($this->containingLists)-1): ?>, <? endif; ?> + <a href="<?=$this->url('userList', ['id' => $list['id']]) ?>" data-lightbox-ignore><?=$this->escapeHtml($list['title'])?></a><? if($i<count($this->containingLists)-1): ?>, <? endif; ?> <? endforeach; ?> </p><hr/> <? endif; ?> @@ -40,7 +40,7 @@ <? endif; ?> </select> <? endif; ?> - <a class="btn btn-link" id="make-list" href="<?=$this->url('editList', array('id' => 'NEW'))?>?recordId=<?=urlencode($this->driver->getUniqueId())?>&recordSource=<?=urlencode($this->driver->getSourceIdentifier())?>"><?=$showLists ? $this->transEsc('or create a new list') : $this->transEsc('Create a List'); ?></a> + <a class="btn btn-link" id="make-list" href="<?=$this->url('editList', ['id' => 'NEW'])?>?recordId=<?=urlencode($this->driver->getUniqueId())?>&recordSource=<?=urlencode($this->driver->getSourceIdentifier())?>"><?=$showLists ? $this->transEsc('or create a new list') : $this->transEsc('Create a List'); ?></a> </div> </div> diff --git a/themes/bootstrap3/templates/record/sms.phtml b/themes/bootstrap3/templates/record/sms.phtml index bada672d77e466031a470868d5def4df3a771e8f..f7eaed955879156675040c4887967a9edfc6e9b0 100644 --- a/themes/bootstrap3/templates/record/sms.phtml +++ b/themes/bootstrap3/templates/record/sms.phtml @@ -33,7 +33,7 @@ </div> </div> <? else: ?> - <? $keys = is_array($this->carriers) ? array_keys($this->carriers) : array(); ?> + <? $keys = is_array($this->carriers) ? array_keys($this->carriers) : []; ?> <input type="hidden" name="provider" value="<?=isset($keys[0]) ? $keys[0] : ''?>" /> <? endif; ?> <?=$this->recaptcha()->html($this->useRecaptcha) ?> diff --git a/themes/bootstrap3/templates/record/view.phtml b/themes/bootstrap3/templates/record/view.phtml index d17786fd5b43a7ddcd00221c1b919edda019ba75..623a19d89d38266a3b1dfb2f17c75bc9260783df 100644 --- a/themes/bootstrap3/templates/record/view.phtml +++ b/themes/bootstrap3/templates/record/view.phtml @@ -70,7 +70,7 @@ <? foreach ($this->tabs as $tab => $obj): ?> <? // add current tab to breadcrumbs if applicable: $desc = $obj->getDescription(); - $tab_classes = array(); + $tab_classes = []; if (0 === strcasecmp($this->activeTab, $tab)) { if (!$this->loadInitialTabWithAjax || !$obj->supportsAjax()) { $tab_classes[] = 'active'; diff --git a/themes/bootstrap3/templates/search/history.phtml b/themes/bootstrap3/templates/search/history.phtml index 377a1020bfd6f482326c8120b2e864ac16499d3a..68db73c3f5de778cc11ffc5abf340864485d04da 100644 --- a/themes/bootstrap3/templates/search/history.phtml +++ b/themes/bootstrap3/templates/search/history.phtml @@ -14,12 +14,12 @@ <?=$this->flashmessages()?> <? if ($saveSupported && !empty($this->saved)): ?> <h2><?=$this->transEsc("history_saved_searches")?></h2> - <?=$this->context()->renderInContext('search/history-table.phtml', array('showSaved' => true));?> + <?=$this->context()->renderInContext('search/history-table.phtml', ['showSaved' => true]);?> <? endif; ?> <h2><?=$this->transEsc("history_recent_searches")?></h2> <? if (!empty($this->unsaved)): ?> - <?=$this->context()->renderInContext('search/history-table.phtml', array('showSaved' => false));?> + <?=$this->context()->renderInContext('search/history-table.phtml', ['showSaved' => false]);?> <a href="?purge=true"><i class="fa fa-remove" aria-hidden="true"></i> <?=$this->transEsc("history_purge")?></a> <? else: ?> <?=$this->transEsc("history_no_searches")?> @@ -31,7 +31,7 @@ <?=$this->context($this)->renderInContext( "myresearch/menu.phtml", // Only activate search history in account menu if user is logged in. - $this->auth()->isLoggedIn() ? array('active' => 'history') : array() + $this->auth()->isLoggedIn() ? ['active' => 'history'] : [] ); ?> </div> diff --git a/themes/bootstrap3/templates/search/home.phtml b/themes/bootstrap3/templates/search/home.phtml index 0ff456b7b4899e80425ba97150b5d78b58308728..551a20c336abefb9f4d9c799a3c3396d6909e823 100644 --- a/themes/bootstrap3/templates/search/home.phtml +++ b/themes/bootstrap3/templates/search/home.phtml @@ -25,7 +25,7 @@ </div> </div> -<? $facetList = is_object($this->results) ? $this->results->getFacetList() : array(); ?> +<? $facetList = is_object($this->results) ? $this->results->getFacetList() : []; ?> <? if (isset($facetList) && is_array($facetList)): ?> <div class="row"> <? foreach ($facetList as $field => $details): ?> diff --git a/themes/bootstrap3/templates/search/list-visual.phtml b/themes/bootstrap3/templates/search/list-visual.phtml index 350256083851917565e1f04339bb24fe8a7b9b5c..2c85dba1450d648cbba6a9469969ee0903025e51 100644 --- a/themes/bootstrap3/templates/search/list-visual.phtml +++ b/themes/bootstrap3/templates/search/list-visual.phtml @@ -5,6 +5,6 @@ </div> <div id="viz-instructions"> - <p><strong><a href="<?=$this->url('help-home', array(), array('query' => array('topic' => 'visualization')))?>" class="visualizationHelp"><?=$this->transEsc('What am I looking at')?></a></strong></p> + <p><strong><a href="<?=$this->url('help-home', [], ['query' => ['topic' => 'visualization']])?>" class="visualizationHelp"><?=$this->transEsc('What am I looking at')?></a></strong></p> </div> </div> diff --git a/themes/bootstrap3/templates/search/reservessearch.phtml b/themes/bootstrap3/templates/search/reservessearch.phtml index 49341bb848de232203118950ffef945c09f69fa2..ff450a823fff6f6127a2cd4eb9a80dfc4099c9fc 100644 --- a/themes/bootstrap3/templates/search/reservessearch.phtml +++ b/themes/bootstrap3/templates/search/reservessearch.phtml @@ -65,7 +65,7 @@ </tr> <? endforeach; ?> </table> - <?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $this->results))?> + <?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', ['results' => $this->results])?> <? endif; ?> </div> diff --git a/themes/bootstrap3/templates/search/results.phtml b/themes/bootstrap3/templates/search/results.phtml index c0fb8203084d52e7b5cfe6565929bda832df295a..36b8ebffcfec7140094bd79cc956bacc24b917bf 100644 --- a/themes/bootstrap3/templates/search/results.phtml +++ b/themes/bootstrap3/templates/search/results.phtml @@ -110,10 +110,10 @@ <? endforeach; ?> <? else: ?> <form class="form-inline" method="post" name="bulkActionForm" action="<?=$this->url('cart-searchresultsbulk')?>" data-lightbox data-lightbox-onsubmit="bulkFormHandler"> - <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => ''))?> + <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', ['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, 'options' => isset($this->paginationOptions) ? $this->paginationOptions : []))?> + <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', ['idPrefix' => 'bottom_'])?> + <?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', ['results' => $this->results, 'options' => isset($this->paginationOptions) ? $this->paginationOptions : []])?> </form> <div class="searchtools hidden-print"> diff --git a/themes/bootstrap3/templates/search/searchbox.phtml b/themes/bootstrap3/templates/search/searchbox.phtml index e7d0c4ea19db9434d8d1cc4d473d032ece871cdb..9c02a53cdcfb3fc5d80186f7626f58e12a7d018f 100644 --- a/themes/bootstrap3/templates/search/searchbox.phtml +++ b/themes/bootstrap3/templates/search/searchbox.phtml @@ -73,8 +73,8 @@ <? endif; ?> <? $filterDetails = $this->searchbox()->getFilterDetails( - isset($this->filterList) && is_array($this->filterList) ? $this->filterList : array(), - isset($this->checkboxFilters) && is_array($this->checkboxFilters) ? $this->checkboxFilters : array() + isset($this->filterList) && is_array($this->filterList) ? $this->filterList : [], + isset($this->checkboxFilters) && is_array($this->checkboxFilters) ? $this->checkboxFilters : [] ); ?> <? if ((isset($hasDefaultsApplied) && $hasDefaultsApplied) || !empty($filterDetails)): ?>