Skip to content
Snippets Groups Projects
Commit d259140c authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "OER-Campus Icon nicht konsistent"

parent bac029e7
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ if ($folder_id) { ...@@ -59,7 +59,7 @@ if ($folder_id) {
<? if (Config::get()->OERCAMPUS_ENABLED && $GLOBALS['perm']->have_perm(Config::get()->OERCAMPUS_PUBLIC_STATUS)) : ?> <? if (Config::get()->OERCAMPUS_ENABLED && $GLOBALS['perm']->have_perm(Config::get()->OERCAMPUS_PUBLIC_STATUS)) : ?>
<a href="<?= $controller->link_for('oer/addfile/choose_file', array_merge($options, ['from_plugin' => ""])) ?>" <a href="<?= $controller->link_for('oer/addfile/choose_file', array_merge($options, ['from_plugin' => ""])) ?>"
data-dialog="height=800"> data-dialog="height=800">
<?= Icon::create('service', Icon::ROLE_CLICKABLE)->asImg(50) ?> <?= Icon::create('oer-campus')->asImg(50) ?>
<?= htmlReady(Config::get()->OER_TITLE) ?> <?= htmlReady(Config::get()->OER_TITLE) ?>
</a> </a>
<? endif ?> <? endif ?>
......
<div style="text-align: right;"> <div style="text-align: right;">
<a href="<?= URLHelper::getLink("dispatch.php/oer/market/details/{$id}") ?>" <a href="<?= URLHelper::getLink("dispatch.php/oer/market/details/{$id}") ?>"
title="<?= htmlReady(sprintf(_('Zum %s wechseln'), Config::get()->OER_TITLE)) ?>"> title="<?= htmlReady(sprintf(_('Zum %s wechseln'), Config::get()->OER_TITLE)) ?>">
<?= Icon::create('service')->asImg(['class' => 'text-bottom']) ?> <?= Icon::create('oer-campus')->asImg(['class' => 'text-bottom']) ?>
<?= htmlReady($material['name']) ?> <?= htmlReady($material['name']) ?>
</a> </a>
</div> </div>
...@@ -297,7 +297,7 @@ class StandardFile implements FileType, ArrayAccess ...@@ -297,7 +297,7 @@ class StandardFile implements FileType, ArrayAccess
$actionMenu->addLink( $actionMenu->addLink(
URLHelper::getURL('dispatch.php/file/share_oer/' . $this->fileref->id), URLHelper::getURL('dispatch.php/file/share_oer/' . $this->fileref->id),
_('Im OER Campus veröffentlichen'), _('Im OER Campus veröffentlichen'),
Icon::create('service', Icon::ROLE_CLICKABLE, ['size' => 20]), Icon::create('oer-campus'),
['data-dialog' => '1'] ['data-dialog' => '1']
); );
} }
......
...@@ -148,11 +148,6 @@ class OERMaterial extends SimpleORMap ...@@ -148,11 +148,6 @@ class OERMaterial extends SimpleORMap
? $material->host->url."download/".$material['foreign_material_id'] ? $material->host->url."download/".$material['foreign_material_id']
: URLHelper::getURL("dispatch.php/oer/endpoints/download/".$material->getId()); : URLHelper::getURL("dispatch.php/oer/endpoints/download/".$material->getId());
$right_link = '<div style="text-align: right;">';
$right_link .= '<a href="'.URLHelper::getLink("dispatch.php/oer/market/details/".$id).'" title="'._("Zum OER Campus").'">'.Icon::create("service", "clickable")->asImg(16, ['class' => "text-bottom"])." ".htmlReady($material['name']).'</a>';
if ($material['player_url'] || $material->isPDF()) { if ($material['player_url'] || $material->isPDF()) {
if ($material['player_url']) { if ($material['player_url']) {
OERDownloadcounter::addCounter($material->id); OERDownloadcounter::addCounter($material->id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment