Skip to content
Snippets Groups Projects
databases.phtml 2.33 KiB
Newer Older
<!-- fid-adlr: databases -->
<?php

// Set up breadcrumbs:
$this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a></li> <li class="active">' . $this->transEsc('fid::dbis_licenses_name') . '</li>';

// Convenience variable:
$account = $this->auth()->getManager();
?>

<div class="<?= $this->layoutClass('mainbody') ?>">
  <?php if ($account->isLoggedIn()): ?>
    <?php /* finc V5: adds offcanvas-toggler missing in VF5, compare with finc/fid themes during update - CK */ ?>
    <?=$this->render('RecordDriver/DefaultRecord/offcanvas-toggler-myresearch'); ?>
  <?php endif; ?>
Claas Kazzer's avatar
Claas Kazzer committed

  <h3><?= $this->translate('dbis_licenses_name') ?></h3>
  <?php if (!$account->isLoggedIn()): ?>
    <?= $this->translate('licenses_forbidden_login_required') ?><br/><br/>
  <?php elseif (!$this->permission()->allowDisplay('access.Licenses')) : ?>
    <?= $this->translate('licenses_forbidden_permission_denied') ?><br/><br/>
  <?php elseif (empty($licenses)) : ?>
    <?= $this->translate('licenses_not_available') ?><br/><br/>
  <?php else: ?>
    <?= $this->translate('licenses_text') ?><br/><br/>
    <div class="dbis_description">
      <button class="title collapsed" data-toggle="collapse" href="#fid_terms"><?= $this->translate('dbis_hint') ?></button>
      <div id="fid_terms" class="collapse">
        <p>
          <?= $this->translate('licenses_notice_html', ['%%contact_url%%' => $this->url('feedback-home'), '%%terms_url%%' => $this->url('fid/user/terms')]) ?><br/><br/>
        </p>
    <div><?= $this->transEsc('licenses_desc_1') ?></div><br/>
    <ul class="licenses">
      <?php foreach ($licenses as $license): ?>
        <li>
          <a href="<?= $license['url'] ?>" target="_blank"><?= $this->translate('licenses_' . $license['name']) ?></a><br/>
          <span><?= $license['desc'] ?></span>
          <br/><br/>
        </li>
      <?php endforeach; ?>
    </ul>
  <?php endif; ?>
  <!-- fid-adlr: licenses - END -->

  <?php if ($this->isDbisAvailable) : ?>
      <?= $this->render('myresearch/dbis-content'); ?>
  <?php endif; ?>
</div>

<div class="<?= $this->layoutClass('sidebar') ?>">
  <?= $this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'databases']) ?>
</div>
<!-- fid-adlr: databases - END -->