forked from swook/Mediator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass.mediator.plugin.php
More file actions
31 lines (26 loc) · 1021 Bytes
/
class.mediator.plugin.php
File metadata and controls
31 lines (26 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php if (!defined('APPLICATION')) exit();
/* Mediator Plugin for Vanilla Forums by Seon-Wook Park | CC BY-NC-SA */
$PluginInfo['Mediator'] = array(
'Name' => 'Mediator',
'Description' => 'Allows automatic embedding of media by converting media links to embed code. Supports Youtube, Vimeo, Imgur, Pastebin, Soundcloud [Bandcamp], Gyazo.',
'Version' => '0.2.14',
'Date' => '01 Feb 2012',
'Author' => 'Seon-Wook Park',
'AuthorEmail' => 'seon.wook@swook.net',
'AuthorUrl' => 'http://www.swook.net/',
'RequiredTheme' => FALSE,
'RequiredPlugins' => FALSE,
'RegisterPermissions' => FALSE,
'SettingsPermission' => FALSE,
'License' => 'CC BY-NC-SA'
);
class MediatorPlugin implements Gdn_IPlugin {
public function Base_Render_Before(&$Sender) {
if ($Sender->DeliveryType() == DELIVERY_TYPE_ALL && $Sender->SyndicationMethod == SYNDICATION_NONE) {
$Sender->AddJsFile('plugins/Mediator/mediator.js');
$Sender->AddCssFile('plugins/Mediator/design/style.css');
}
}
public function Setup() {
}
}