Skip to content

Commit

Permalink
fixes #526
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Sep 29, 2021
1 parent f549187 commit c324d9a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
10 changes: 6 additions & 4 deletions OpenCast.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ public function __construct()

$icon = new Icon($this->getPluginURL() . '/images/opencast-courseware.svg');

PageLayout::addStyle('.cw-blockadder-item.cw-blockadder-item-plugin-opencast-video {
background-image:url('. $icon->asImagePath() .')
}');
if (\StudipVersion::newerThan('4.6')) {
PageLayout::addStyle('.cw-blockadder-item.cw-blockadder-item-plugin-opencast-video {
background-image:url('. $icon->asImagePath() .')
}');

PageLayout::addScript($this->getPluginUrl() . '/static/register.js');
PageLayout::addScript($this->getPluginUrl() . '/static/register.js');
}

bindtextdomain(static::GETTEXT_DOMAIN, $this->getPluginPath() . '/locale');
bind_textdomain_codeset(static::GETTEXT_DOMAIN, 'UTF-8');
Expand Down
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "studip-opencast-plugin",
"version": "2.0.0",
"version": "2.2.0",
"description": "Stud.IP plugin for Opencast",
"devDependencies": {
"@babel/core": "^7.12.13",
Expand Down
2 changes: 1 addition & 1 deletion plugin.manifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pluginname=OpenCast
pluginclassname=OpenCast
origin=elan-ev
version=2.0.0
version=2.1
studipMinVersion=4.2
studipMaxVersion=5.1.99
summary=Vorlesungsaufzeichnung
Expand Down

0 comments on commit c324d9a

Please sign in to comment.