From 6666efd4d4dabc1bdc317001a5bc2e95051b6e54 Mon Sep 17 00:00:00 2001 From: JoshyPHP Date: Tue, 8 Sep 2015 15:48:03 +0200 Subject: [PATCH] Enabled responsive embeds --- bootstrap.php | 2 ++ flarum.json | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index f741c87..7f5c0f8 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -29,6 +29,8 @@ public function subscribe(Dispatcher $events) public function addMediaSites(FormatterConfigurator $event) { + $event->configurator->templateChecker->remove('DisallowUnsafeDynamicCSS'); + $event->configurator->MediaEmbed->enableResponsiveEmbeds(); (new MediaPack)->configure($event->configurator); } } diff --git a/flarum.json b/flarum.json index 1061fa0..89ed975 100644 --- a/flarum.json +++ b/flarum.json @@ -2,8 +2,8 @@ "name": "s9e-mediaembed", "title": "s9e/mediaembed", "description": "Embed third-party content in your Flarum.", - "keywords": ["facebook","embed","media","twitter","youtube"], - "version": "0.1.0", + "keywords": ["embed","facebook","media","twitter","youtube"], + "version": "0.2.0", "author": { "name": "JoshyPHP" }, @@ -17,8 +17,8 @@ "issues": "https://github.com/s9e/flarum-ext-mediaembed/issues" }, "icon": { - "name": "youtube-play", - "backgroundColor": "#cc181e", - "color": "#fff" + "name": "youtube-play", + "backgroundColor": "#cc181e", + "color": "#fff" } } \ No newline at end of file