aboutsummaryrefslogtreecommitdiff
path: root/app/views/oer/market/add_to_course_select_class.php
blob: 72c092a8b319efa209fec6042d9178cdd7d3baa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

<h2><?= _('Bereich auswählen') ?></h2>

<div class="file_select_possibilities">
    <div>
        <? foreach ($classes as $class) : ?>
        <a href="<?= $controller->link_for("oer/market/add_to_course/".$material->getId(), ['seminar_id' => $course->getId(), 'class' => $class]) ?>">
            <? $object = PluginManager::getInstance()->getPlugin($class) ?: new $class() ?>
            <? $metadata = $object->getMetadata() ?>

            <? $icon = $object->oerGetIcon() ?>
            <? if ($icon) : ?>
                <?= $icon->asImg(50) ?>
            <? endif ?>
            <?= htmlReady($metadata['displayname']) ?>
        </a>
        <? endforeach ?>
    </div>
</div>