Skip to content
Snippets Groups Projects
Commit c21cb143 authored by Dorian Merz's avatar Dorian Merz Committed by André Lahmann
Browse files

refs #19252 [finc] replace PHP tags in finc theme

parent 711f5700
No related merge requests found
......@@ -2,11 +2,11 @@
<?php if (!empty($data)): ?>
<?php if (is_array($data)): ?>
<?php foreach ($data as $author): ?>
<? if(isset($author['name'])): ?>
<?php if(isset($author['name'])): ?>
<a href="<?=$this->record($this->driver)->getLink('author', $author['name'])?>">
<?= $author['name'] ?>
</a>
<? endif; ?>
<?php endif; ?>
<?php if(isset($author['dates'])): ?>
<?= $author['dates'] ?>
<?php endif; ?>
......
<!-- finc: RecordDriver - SolrMarc - data-bk -->
<? if (!(empty($data))): ?>
<? $i = 0; foreach ($data as $item): ?>
<?php if (!(empty($data))): ?>
<?php $i = 0; foreach ($data as $item): ?>
<?= ($i++ == 0) ? '' : '<br>'; ?>
<?php //ToDo: add link to embed bk notation search via search type on upcoming solr field
/*
......@@ -21,6 +21,6 @@
echo $output;
}
?>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<!-- finc: RecordDriver - SolrMarc - data-bk - END -->
\ No newline at end of file
......@@ -21,6 +21,6 @@ foreach ($formats as $format): ?>
?>
<span class="format"><?=$translated_genre?></span>
<?php endif; ?>
<? endforeach; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; */ ?>
......@@ -155,7 +155,7 @@ if (!empty($holdingTitleHold)): ?>
</td>
</tr>
<?php endforeach; endif; ?>
<? /* finc: we use call numbers after "Notes" - END */ ?>
<?php /* finc: we use call numbers after "Notes" - END */ ?>
<?php if (!empty($holding['purchase_history'])): ?>
<tr>
<th><?=$this->transEsc("Most Recent Received Issues")?>:</th>
......
......@@ -51,7 +51,7 @@
<i class="fa fa-flag"></i>&nbsp;<?= $this->transEsc($checkEmailHold ? "EmailHold::email_hold_check_text" : "EmailHold::email_hold_place_text") ?>
</a>
<?php endif; ?>
<? /* finc-specific insert - #6096 - END */ ?>
<?php /* finc-specific insert - #6096 - END */ ?>
<?php else: ?>
<?php /* Begin Unavailable Items (Recalls) */ ?>
<?php /* finc: use empty status and transEsc 'Unavailable', CK */ ?>
......
<!-- finc: admin - i18n - home -->
<? $this->headTitle($this->translate('admin_i18n_menu_entry')); ?>
<?php $this->headTitle($this->translate('admin_i18n_menu_entry')); ?>
<div class="<?= ($this->layoutClass('mainbody') . (!$this->config()->get('config')->Site->admin_enabled ? ' solo' : '')) ?>">
<h1><?= $this->transEsc('admin_i18n_menu_entry') ?></h1>
......@@ -13,22 +13,22 @@
<form id="change-language-form" action="<?= $this->url('admin/i18n') ?>">
<div class="form-group">
<p><strong><?= $this->transEsc('admin_i18n_select_languages') ?>:</strong></p>
<? foreach ($this->languages as $language): ?>
<? $checked = $language['selected'] ? 'checked' : ''; ?>
<?php foreach ($this->languages as $language): ?>
<?php $checked = $language['selected'] ? 'checked' : ''; ?>
<label class="checkbox-inline">
<input type="radio" name="locale" <?= $checked ?> value="<?= $language['locale'] ?>">
<?= $language['name'] ?>
</label>
<? endforeach; ?>
<?php endforeach; ?>
</div>
<div class="form-group">
<p><strong><?= $this->transEsc('admin_i18n_select_domains') ?>:</strong></p>
<? foreach ($domains as $domain): ?>
<?php foreach ($domains as $domain): ?>
<label class="checkbox-inline">
<input type="radio" name="domain" value="<?= $domain['name'] ?>"<?= $domain['selected'] ? 'checked' : '' ?>>
<?= $domain['name'] ?>
</label>
<? endforeach; ?>
<?php endforeach; ?>
</div>
<button type="submit" form="change-language-form"
class="btn btn-primary">
......@@ -76,11 +76,11 @@
</table>
</div>
<? if ($this->config()->get('config')->Site->admin_enabled): ?>
<?php if ($this->config()->get('config')->Site->admin_enabled): ?>
<div class="<?= $this->layoutClass('sidebar') ?>">
<?= $this->render("admin/menu.phtml") ?>
</div>
<? endif; ?>
<?php endif; ?>
<?php
$script = <<<JS
......@@ -108,9 +108,9 @@ $script = <<<JS
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET'); ?>
<? $this->headScript()
<?php $this->headScript()
->appendFile("vendor/datatables/jquery.dataTables.min.js"); ?>
<? $this->headScript()
<?php $this->headScript()
->appendFile("vendor/datatables/dataTables.bootstrap.min.js"); ?>
<!-- finc: admin - i18n - home - END -->
<!-- finc: RuntimeException -->
<?/* largely copied from /bootstrap3/templates/error/index.phtml #17035 - RL */?>
<?php /* largely copied from /bootstrap3/templates/error/index.phtml #17035 - RL */?>
<?php
// Set page title.
$this->headTitle($this->translate('An error has occurred'));
......
<!-- finc: TimeoutException -->
<?/* largely copied from /bootstrap3/templates/error/index.phtml #17035 - RL */?>
<?php /* largely copied from /bootstrap3/templates/error/index.phtml #17035 - RL */?>
<?php
// Set page title.
$this->headTitle($this->translate('An error has occurred'));
......
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