Skip to content
Snippets Groups Projects
Commit d4387c6b authored by Demian Katz's avatar Demian Katz
Browse files

Normalize binary operator spaces.

parent 168e0a36
No related merge requests found
Showing
with 25 additions and 25 deletions
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<? $methods = $this->auth()->getManager()->getSelectableAuthOptions(); ?> <? $methods = $this->auth()->getManager()->getSelectableAuthOptions(); ?>
<? $count = count($methods); ?> <? $count = count($methods); ?>
<? foreach ($methods as $loop=>$method):?> <? foreach ($methods as $loop=>$method):?>
<div class="authmethod<?=$loop?> span<?=floor(12/$count) ?>"> <div class="authmethod<?=$loop?> span<?=floor(12 / $count) ?>">
<? $this->auth()->getManager()->setAuthMethod($method) ?> <? $this->auth()->getManager()->setAuthMethod($method) ?>
<?=$this->auth()->getLoginDesc() ?> <?=$this->auth()->getLoginDesc() ?>
<?=$this->auth()->getLogin() ?> <?=$this->auth()->getLogin() ?>
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<? endforeach; ?> <? endforeach; ?>
<!-- Last page link --> <!-- Last page link -->
<li<? if (isset($this->last) && $this->last != $this->current): ?>> <li<? if (isset($this->last) && $this->last != $this->current): ?>>
<? $newParams = $this->params; $newParams['page'] = $this->last; ?> <? $newParams = $this->params; $newParams['page'] = $this->last; ?>
<a href="<?= $this->currentPath() . '?' . http_build_query($newParams); ?>"> <a href="<?= $this->currentPath() . '?' . http_build_query($newParams); ?>">
<?=$this->translate('Last')?> <?=$this->translate('Last')?>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="author-list"> <div class="author-list">
<? endif; ?> <? endif; ?>
<a href="<?=$this->url('author-home') . '?author=' . urlencode($author['value'])?>"><?=$author['value'] ?><? /* count disabled -- uncomment to add: echo ' - ' . $author['count']; */ ?></a> <a href="<?=$this->url('author-home') . '?author=' . urlencode($author['value'])?>"><?=$author['value'] ?><? /* count disabled -- uncomment to add: echo ' - ' . $author['count']; */ ?></a>
<? if ($i+1 < count($similarAuthors['list'])): ?> <? if ($i + 1 < count($similarAuthors['list'])): ?>
<br/> <br/>
<? endif; ?> <? endif; ?>
<? endforeach; ?> <? endforeach; ?>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<li> <li>
<a href="http://openlibrary.org<?=$work['key']?>" title="<?=$this->transEsc('Get full text')?>" target="_blank"> <a href="http://openlibrary.org<?=$work['key']?>" title="<?=$this->transEsc('Get full text')?>" target="_blank">
<span class="olSubjectCover"> <span class="olSubjectCover">
<? if (isset($work['cover_id']) && !empty($work['cover_id'])): ?> <? if (isset($work['cover_id']) && !empty($work['cover_id'])): ?>
<img src="http://covers.openlibrary.org/b/<?=$this->escapeHtmlAttr($work['cover_id_type'])?>/<?=$this->escapeHtmlAttr($work['cover_id'])?>-S.jpg" class="olSubjectImage" alt="<?=$this->escapeHtmlAttr($work['title'])?>" /> <img src="http://covers.openlibrary.org/b/<?=$this->escapeHtmlAttr($work['cover_id_type'])?>/<?=$this->escapeHtmlAttr($work['cover_id'])?>-S.jpg" class="olSubjectImage" alt="<?=$this->escapeHtmlAttr($work['title'])?>" />
<? else: ?> <? else: ?>
<img src="<?=$this->imageLink('noCover2.gif')?>" class="olSubjectImage" alt="<?=$this->escapeHtmlAttr($work['title'])?>" /> <img src="<?=$this->imageLink('noCover2.gif')?>" class="olSubjectImage" alt="<?=$this->escapeHtmlAttr($work['title'])?>" />
......
<? $recommend = $this->recommend->getResults(); if (count($recommend)> 0): ?> <? $recommend = $this->recommend->getResults(); if (count($recommend) > 0): ?>
<ul class="list-group random <?=$this->recommend->getDisplayMode()?>"> <ul class="list-group random <?=$this->recommend->getDisplayMode()?>">
<li class="list-group-item title" data-toggle="collapse" href="#side-collapse-randomrecommend"> <li class="list-group-item title" data-toggle="collapse" href="#side-collapse-randomrecommend">
<?=$this->transEsc("random_recommendation_title")?> <?=$this->transEsc("random_recommendation_title")?>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<? $this->headLink()->appendStylesheet('vendor/bootstrap-slider.min.css'); ?> <? $this->headLink()->appendStylesheet('vendor/bootstrap-slider.min.css'); ?>
<? <?
$min = !empty($this->facet['values'][0]) ? min($this->facet['values'][0], 1400) : 1400; $min = !empty($this->facet['values'][0]) ? min($this->facet['values'][0], 1400) : 1400;
$future = date('Y', time()+31536000); // next year $future = date('Y', time() + 31536000); // next year
$max = !empty($this->facet['values'][1]) ? max($future, $this->facet['values'][1]) : $future; $max = !empty($this->facet['values'][1]) ? max($future, $this->facet['values'][1]) : $future;
$low = !empty($this->facet['values'][0]) ? $this->facet['values'][0] : $min; $low = !empty($this->facet['values'][0]) ? $this->facet['values'][0] : $min;
$high = !empty($this->facet['values'][1]) ? $this->facet['values'][1] : $max; $high = !empty($this->facet['values'][1]) ? $this->facet['values'][1] : $max;
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<? if (count($this->lists) > 0): ?> <? if (count($this->lists) > 0): ?>
<strong><?=$this->transEsc('Saved in')?>:</strong> <strong><?=$this->transEsc('Saved in')?>:</strong>
<? $i=0;foreach($this->lists as $current): ?> <? $i=0;foreach($this->lists as $current): ?>
<a href="<?=$this->url('userList', array('id' => $current->id))?>"><?=$this->escapeHtml($current->title)?></a><? if($i++ < count($this->lists)-1): ?>,<? endif; ?> <a href="<?=$this->url('userList', array('id' => $current->id))?>"><?=$this->escapeHtml($current->title)?></a><? if($i++ < count($this->lists) - 1): ?>,<? endif; ?>
<? endforeach; ?> <? endforeach; ?>
<br/> <br/>
<? endif; ?> <? endif; ?>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<!-- Indicators --> <!-- Indicators -->
<ol class="carousel-indicators"> <ol class="carousel-indicators">
<li data-target="#similar-items-carousel" data-slide-to="0" class="active"></li> <li data-target="#similar-items-carousel" data-slide-to="0" class="active"></li>
<? for($i=1;$i<count($similarRecords)/$perPage;$i++): ?> <? for($i=1;$i < count($similarRecords) / $perPage;$i++): ?>
<li data-target="#similar-items-carousel" data-slide-to="<?=$i ?>"></li> <li data-target="#similar-items-carousel" data-slide-to="<?=$i ?>"></li>
<? endfor; ?> <? endfor; ?>
</ol> </ol>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</div> </div>
</a> </a>
</div> </div>
<? if(($index+1) % $perPage == 0 && $index < count($similarRecords)-1): ?> <? if(($index + 1) % $perPage == 0 && $index < count($similarRecords) - 1): ?>
</div> </div>
<div class="item"> <div class="item">
<? endif; ?> <? endif; ?>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<select id="save_list" name="list" class="form-control"> <select id="save_list" name="list" class="form-control">
<? if (count($this->lists) > 0): ?> <? if (count($this->lists) > 0): ?>
<? foreach ($this->lists as $list): ?> <? foreach ($this->lists as $list): ?>
<option value="<?=$list['id'] ?>"<? if ($list['id']==$this->userList()->lastUsed()): ?> selected="selected"<? endif; ?>><?=$this->escapeHtml($list['title'])?></option> <option value="<?=$list['id'] ?>"<? if ($list['id'] == $this->userList()->lastUsed()): ?> selected="selected"<? endif; ?>><?=$this->escapeHtml($list['title'])?></option>
<? endforeach; ?> <? endforeach; ?>
<? else: ?> <? else: ?>
<option value=""><?=$this->transEsc('My Favorites') ?></option> <option value=""><?=$this->transEsc('My Favorites') ?></option>
......
...@@ -38,12 +38,12 @@ ...@@ -38,12 +38,12 @@
<td><?=isset($record['checkout']) ? $this->escapeHtml($record['checkout']) : ''?></td> <td><?=isset($record['checkout']) ? $this->escapeHtml($record['checkout']) : ''?></td>
<td><?=isset($record['duedate']) ? $this->escapeHtml($record['duedate']) : ''?></td> <td><?=isset($record['duedate']) ? $this->escapeHtml($record['duedate']) : ''?></td>
<td><?=isset($record['fine']) ? $this->escapeHtml($record['fine']) : ''?></td> <td><?=isset($record['fine']) ? $this->escapeHtml($record['fine']) : ''?></td>
<td><?=isset($record['amount']) ? $this->safeMoneyFormat($record['amount']/100.00) : ''?></td> <td><?=isset($record['amount']) ? $this->safeMoneyFormat($record['amount'] / 100.00) : ''?></td>
<td><?=isset($record['balance']) ? $this->safeMoneyFormat($record['balance']/100.00) : ''?></td> <td><?=isset($record['balance']) ? $this->safeMoneyFormat($record['balance'] / 100.00) : ''?></td>
</tr> </tr>
<? $totalDue += $record['balance']; ?> <? $totalDue += $record['balance']; ?>
<? endforeach; ?> <? endforeach; ?>
<tr style="font-weight:bold"><td colspan="5"><?=$this->transEsc('Total Balance Due')?></td><td><?=$this->safeMoneyFormat($totalDue/100.00) ?></td></tr> <tr style="font-weight:bold"><td colspan="5"><?=$this->transEsc('Total Balance Due')?></td><td><?=$this->safeMoneyFormat($totalDue / 100.00) ?></td></tr>
</table> </table>
<? endif; ?> <? endif; ?>
</div> </div>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
$this->headScript()->appendFile("check_item_statuses.js"); $this->headScript()->appendFile("check_item_statuses.js");
// Load Javascript only if list view parameter is NOT full: // Load Javascript only if list view parameter is NOT full:
if ($this->params->getOptions()->getListViewOption()!="full") { if ($this->params->getOptions()->getListViewOption() != "full") {
$this->headScript()->appendFile("record.js"); $this->headScript()->appendFile("record.js");
$this->headScript()->appendFile("embedded_record.js"); $this->headScript()->appendFile("embedded_record.js");
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<? if (!empty($this->containingLists)): ?> <? if (!empty($this->containingLists)): ?>
<p><?=$this->transEsc('This item is already part of the following list/lists') ?>: <p><?=$this->transEsc('This item is already part of the following list/lists') ?>:
<? foreach ($this->containingLists as $i=>$list): ?> <? foreach ($this->containingLists as $i=>$list): ?>
<a href="<?=$this->url('userList', ['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; ?> <? endforeach; ?>
</p><hr/> </p><hr/>
<? endif; ?> <? endif; ?>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<select class="form-control" id="save_list" name="list"> <select class="form-control" id="save_list" name="list">
<? if ($this->nonContainingLists): ?> <? if ($this->nonContainingLists): ?>
<? foreach ($this->nonContainingLists as $list): ?> <? foreach ($this->nonContainingLists as $list): ?>
<option value="<?=$list['id'] ?>"<? if ($list['id']==$this->userList()->lastUsed()): ?> selected="selected"<? endif; ?>><?=$this->escapeHtml($list['title'])?></option> <option value="<?=$list['id'] ?>"<? if ($list['id'] == $this->userList()->lastUsed()): ?> selected="selected"<? endif; ?>><?=$this->escapeHtml($list['title'])?></option>
<? endforeach; ?> <? endforeach; ?>
<? else: ?> <? else: ?>
<option value=""><?=$this->transEsc('My Favorites') ?></option> <option value=""><?=$this->transEsc('My Favorites') ?></option>
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
$this->headScript()->appendFile('vendor/bootstrap-slider.min.js'); $this->headScript()->appendFile('vendor/bootstrap-slider.min.js');
$this->headLink()->appendStylesheet('vendor/bootstrap-slider.min.css'); $this->headLink()->appendStylesheet('vendor/bootstrap-slider.min.css');
$min = !empty($current['values'][0]) ? min($current['values'][0], 1400) : 1400; $min = !empty($current['values'][0]) ? min($current['values'][0], 1400) : 1400;
$future = date('Y', time()+31536000); $future = date('Y', time() + 31536000);
$max = !empty($current['values'][1]) ? max($future, $current['values'][1]) : $future; $max = !empty($current['values'][1]) ? max($future, $current['values'][1]) : $future;
$low = !empty($current['values'][0]) ? $current['values'][0] : $min; $low = !empty($current['values'][0]) ? $current['values'][0] : $min;
$high = !empty($current['values'][1]) ? $current['values'][1] : $max; $high = !empty($current['values'][1]) ? $current['values'][1] : $max;
......
...@@ -79,8 +79,8 @@ ...@@ -79,8 +79,8 @@
<div id="groupJoin" class="form-inline pull-right flip"> <div id="groupJoin" class="form-inline pull-right flip">
<label for="groupJoinOptions"><?=$this->transEsc("search_match")?>:</label> <label for="groupJoinOptions"><?=$this->transEsc("search_match")?>:</label>
<select id="groupJoinOptions" name="join" class="form-control"> <select id="groupJoinOptions" name="join" class="form-control">
<option value="AND"<? if($searchDetails && $searchDetails->getOperator()=='ALL'):?> selected<?endif?>><?= $this->transEsc('group_AND') ?></option> <option value="AND"<? if($searchDetails && $searchDetails->getOperator() == 'ALL'):?> selected<?endif?>><?= $this->transEsc('group_AND') ?></option>
<option value="OR"<? if($searchDetails && $searchDetails->getOperator()=='OR'):?> selected<?endif?>><?= $this->transEsc('group_OR') ?></option> <option value="OR"<? if($searchDetails && $searchDetails->getOperator() == 'OR'):?> selected<?endif?>><?= $this->transEsc('group_OR') ?></option>
</select> </select>
</div> </div>
</div> </div>
...@@ -93,14 +93,14 @@ ...@@ -93,14 +93,14 @@
<? if(!empty($this->formOverride)): ?> <? if(!empty($this->formOverride)): ?>
<?=$this->formOverride ?> <?=$this->formOverride ?>
<? else: ?> <? else: ?>
<? for($group=0; $group<3 || $group<=$setGroupCount; $group++): ?> <? for($group=0; $group < 3 || $group <= $setGroupCount; $group++): ?>
<? if($group == 0): ?> <? if($group == 0): ?>
<div id="new_group_template"> <div id="new_group_template">
<? endif; ?> <? endif; ?>
<div id="group<?=$group ?>" class="adv-group"> <div id="group<?=$group ?>" class="adv-group">
<div class="adv-group-terms"> <div class="adv-group-terms">
<label class="adv-group-label"><?=$this->transEsc("adv_search_label")?>:</label> <label class="adv-group-label"><?=$this->transEsc("adv_search_label")?>:</label>
<? for($search=0; $search<3 || (isset($setQueries[$group]) && $search<count($setQueries[$group])); $search++): ?> <? for($search=0; $search < 3 || (isset($setQueries[$group]) && $search < count($setQueries[$group])); $search++): ?>
<? if($group == 0 && $search == 0): ?> <? if($group == 0 && $search == 0): ?>
<div id="new_search_template"> <div id="new_search_template">
<? endif; ?> <? endif; ?>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
$this->headScript()->appendFile('vendor/bootstrap-slider.min.js'); $this->headScript()->appendFile('vendor/bootstrap-slider.min.js');
$this->headLink()->appendStylesheet('vendor/bootstrap-slider.min.css'); $this->headLink()->appendStylesheet('vendor/bootstrap-slider.min.css');
$min = !empty($current['values'][0]) ? min($current['values'][0], 1400) : 1400; $min = !empty($current['values'][0]) ? min($current['values'][0], 1400) : 1400;
$future = date('Y', time()+31536000); $future = date('Y', time() + 31536000);
$max = !empty($current['values'][1]) ? max($future, $current['values'][1]) : $future; $max = !empty($current['values'][1]) ? max($future, $current['values'][1]) : $future;
$low = !empty($current['values'][0]) ? $current['values'][0] : $min; $low = !empty($current['values'][0]) ? $current['values'][0] : $min;
$high = !empty($current['values'][1]) ? $current['values'][1] : $max; $high = !empty($current['values'][1]) ? $current['values'][1] : $max;
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="full-facet-list facet-group<? if(!$active): ?> hidden<? endif; ?>" id="facet-list-<?=$this->escapeHtmlAttr($key) ?>"> <div class="full-facet-list facet-group<? if(!$active): ?> hidden<? endif; ?>" id="facet-list-<?=$this->escapeHtmlAttr($key) ?>">
<? if ($active): ?> <? if ($active): ?>
<? if ($this->page > 1): ?> <? if ($this->page > 1): ?>
<a href="<?=$urlBase . '&amp;facetpage=' . ($this->page-1) . '&amp;facetsort=' . $this->sort ?>" class="facet js-facet-prev-page" data-page="<?=($this->page+1) ?>" data-sort="<?=$this->sort ?>" data-limit="<?=count($this->data) ?>" data-lightbox-ignore><?=$this->translate('prev') ?> ...</a> <a href="<?=$urlBase . '&amp;facetpage=' . ($this->page - 1) . '&amp;facetsort=' . $this->sort ?>" class="facet js-facet-prev-page" data-page="<?=($this->page + 1) ?>" data-sort="<?=$this->sort ?>" data-limit="<?=count($this->data) ?>" data-lightbox-ignore><?=$this->translate('prev') ?> ...</a>
<? endif; ?> <? endif; ?>
<? foreach ($this->data as $item): ?> <? foreach ($this->data as $item): ?>
<? $toggleUrl = $item['isApplied'] <? $toggleUrl = $item['isApplied']
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<? endforeach; ?> <? endforeach; ?>
<? endif; ?> <? endif; ?>
<? if ($this->anotherPage): ?> <? if ($this->anotherPage): ?>
<a href="<?=$urlBase . '&amp;facetpage=' . ($this->page+1) . '&amp;facetsort=' . urlencode($key) ?>" class="facet js-facet-next-page" data-page="<?=($this->page+1) ?>" data-sort="<?=$this->escapeHtmlAttr($key) ?>" data-lightbox-ignore><?=$this->translate('more') ?> ...</a> <a href="<?=$urlBase . '&amp;facetpage=' . ($this->page + 1) . '&amp;facetsort=' . urlencode($key) ?>" class="facet js-facet-next-page" data-page="<?=($this->page + 1) ?>" data-sort="<?=$this->escapeHtmlAttr($key) ?>" data-lightbox-ignore><?=$this->translate('more') ?> ...</a>
<? endif; ?> <? endif; ?>
</div> </div>
<? endforeach; ?> <? endforeach; ?>
......
<? if (!isset($this->indexStart)) $this->indexStart = 0; ?> <? if (!isset($this->indexStart)) $this->indexStart = 0; ?>
<? $i = $this->indexStart; ?> <? $i = $this->indexStart; ?>
<? foreach ($this->results->getResults() as $current): ?> <? foreach ($this->results->getResults() as $current): ?>
<? $recordNumber = $this->results->getStartRecord() + $i-$this->indexStart; ?> <? $recordNumber = $this->results->getStartRecord() + $i - $this->indexStart; ?>
<div id="result<?=$i++ ?>" class="result<?=$current->supportsAjaxStatus()?' ajaxItem':''?>"> <div id="result<?=$i++ ?>" class="result<?=$current->supportsAjaxStatus()?' ajaxItem':''?>">
<? if (isset($this->showCheckboxes) && $this->showCheckboxes): ?> <? if (isset($this->showCheckboxes) && $this->showCheckboxes): ?>
<?=$this->record($current)->getCheckbox('', 'search-cart-form')?> <?=$this->record($current)->getCheckbox('', 'search-cart-form')?>
......
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