-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
34 lines (28 loc) · 908 Bytes
/
plugin.php
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
32
33
34
<?php
/*
Copyright 2015 eScience-Center, University of Tübingen
Authors: Michael Derntl <[email protected]>
License: WTFPL Version 2 (http://www.wtfpl.net/txt/copying/)
*/
class NeatlineDisplayExtensionsPlugin extends Omeka_Plugin_AbstractPlugin
{
protected $_hooks = array(
'neatline_public_static',
'neatline_editor_static'
);
public function hookNeatlinePublicStatic($args) {
$this->queueThemFilthyAssets();
}
public function hookNeatlineEditorStatic($args) {
$this->queueThemFilthyAssets();
}
protected function queueThemFilthyAssets() {
queue_js_file('esc-neatline-ext');
queue_js_file('esc-jquery.fancybox.pack');
queue_css_file('esc-neatline-ext');
queue_css_file('esc-jquery.fancybox');
}
};
$NeatlineDisplayExtensionsPlugin = new NeatlineDisplayExtensionsPlugin();
$NeatlineDisplayExtensionsPlugin->setUp();
?>