From c324d9aa7b903545b6d693934713bec2d8568d60 Mon Sep 17 00:00:00 2001 From: tgloeggl Date: Wed, 29 Sep 2021 09:28:57 +0200 Subject: [PATCH] fixes #526 --- OpenCast.class.php | 10 ++++++---- package-lock.json | 5 +++-- package.json | 2 +- plugin.manifest | 2 +- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/OpenCast.class.php b/OpenCast.class.php index d9cc47b70..e1afa5c41 100644 --- a/OpenCast.class.php +++ b/OpenCast.class.php @@ -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'); diff --git a/package-lock.json b/package-lock.json index a609d002b..6b3cb4d0b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,12 @@ { "name": "studip-opencast-plugin", - "version": "2.0.0", + "version": "2.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "2.0.0", + "name": "studip-opencast-plugin", + "version": "2.2.0", "license": "AGPL-3.0-or-later", "dependencies": { "axios": "^0.21.1", diff --git a/package.json b/package.json index 13d382dd7..b05b7c831 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/plugin.manifest b/plugin.manifest index e80663503..bea932dcc 100644 --- a/plugin.manifest +++ b/plugin.manifest @@ -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