-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathemojione.php
30 lines (25 loc) · 1.17 KB
/
emojione.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
<?php
function hook_emojione_render_includes($data)
{
$data['css_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/css/emojione.css';
if($data['_PAGE_'] === Router::$PAGE_EDITLINK){
$data['css_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/css/autocomplete.css';
}
return $data;
}
function hook_emojione_render_footer($data)
{
/*
* Uncomment the five lines below to use the autocomplete function.
* If your theme use jquery, let the second line commented.
*/
# if($data['_PAGE_'] === Router::$PAGE_EDITLINK){
# $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/js/jquery.min.js';
# $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/js/textcomplete.min.js';
# $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/js/autocomplete.js';
# }
$data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/js/emojione.min.js';
$data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/js/unicode.js';
$data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/js/emojione.js';
return $data;
}