forked from simoneeconomo/fancy_forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.driver.php
44 lines (37 loc) · 1.38 KB
/
extension.driver.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
35
36
37
38
39
40
41
42
43
44
<?php
class extension_fancy_forms_korelogic extends Extension {
public function about() {
return array(
'name' => 'Fancy Forms',
'version' => '1.1.2beta',
'release-date' => '2011-12-18',
'author' => array(
'name' => 'Simone Economo',
'website' => 'http://www.lineheight.net/',
'email' => '[email protected]'
)
);
}
public function getSubscribedDelegates() {
return array(
array(
'page' => '/backend/',
'delegate' => 'AdminPagePreGenerate',
'callback' => 'appendAssets'
)
);
}
public function appendAssets($context) {
$page = $context['parent']->Page;
if ($page instanceof HTMLPage) {
$page->addStylesheetToHead(URL . '/extensions/fancy_forms/assets/symphony.selectbox.css', 'screen', 222);
$page->addStylesheetToHead(URL . '/extensions/fancy_forms/assets/symphony.textbox.css', 'screen', 222);
//$page->addStylesheetToHead(URL . '/extensions/fancy_forms/assets/symphony.checkbox.css', 'screen', 222);
//$page->addStylesheetToHead(URL . '/extensions/fancy_forms/assets/symphony.button.css', 'screen', 222);
$page->addScriptToHead(URL . '/extensions/fancy_forms/assets/symphony.selectbox.js', 222);
//$page->addScriptToHead(URL . '/extensions/fancy_forms/assets/symphony.checkbox.js', 222);
$page->addScriptToHead(URL . '/extensions/fancy_forms/assets/init.js', 222);
}
}
}
?>