-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe_header.php
More file actions
35 lines (30 loc) · 894 Bytes
/
Copy pathe_header.php
File metadata and controls
35 lines (30 loc) · 894 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
32
33
34
35
<?php
/**
* Falling Snow plugin for CMS e107 v2
*
* @author OxigenO2 (oxigen.rg@gmail.com)
* @copyright Copyright (C) 2017 OxigenO2
* @license GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
* @link https://github.com/oxigeno2/falling_snow/
*/
if (!defined('e107_INIT')) { exit; }
$snowPrefs = e107::getPlugConfig('falling_snow')->getPref();
if(vartrue($snowPrefs['snow_on'], false))
{
if(USER_AREA) // prevents inclusion of JS/CSS/meta in the admin area.
{
e107::js('falling_snow', 'js/jquery.snow.min.js');
e107::js("footer-inline", "
$(document).ready( function(){
$.fn.snow({
flakeChar : '❆',
minSize : ".varset($snowPrefs['snow_minsize']).",
maxSize : ".varset($snowPrefs['snow_maxsize']).",
newOn : ".varset($snowPrefs['snow_newon']).",
flakeColor : ['".varset($snowPrefs['snow_color'])."']
});
});
");
}
}
?>