-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathe_header.php
55 lines (46 loc) · 2.18 KB
/
e_header.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
45
46
47
48
49
50
51
52
53
54
55
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2018 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* xpandSlider plugin - Perfect responsive image, HTML slider for e107 CMS
* Author: rolla <[email protected]>
*
*/
if (!defined('e107_INIT')) {
exit;
}
$scriptLoad = 'local';
$min = true;
$cameraV = '1.3.4';
$jqueryV = '1.4.1';
if (defined(XPNSLD_DEBUG) && XPNSLD_DEBUG == true) {
ini_set('display_errors', 'On');
error_reporting(E_ALL | E_STRICT);
$min = false;
}
$minLoad = $min ? '.min' : '';
// prevents inclusion of JS/CSS/meta in the admin area.
if (USER_AREA) {
e107::css('xpandslider', 'css/xpnsld.css');
if ($scriptLoad != 'cdn') {
e107::css('core', '../lib/camera-slideshow/css/camera.css');
e107::js('core', '../lib/camera-slideshow/scripts/jquery.easing.1.3.js');
e107::js('core', '../lib/camera-slideshow/scripts/camera.min.js');
e107::js('core', '../lib/camera-slideshow/scripts/jquery.mobile.customized.min.js');
}
if ($scriptLoad == 'cdn') {
e107::css('url', '//cdnjs.cloudflare.com/ajax/libs/Camera/' . $cameraV . '/css/camera' . $minLoad . '.css');
e107::js('url', '//cdnjs.cloudflare.com/ajax/libs/jquery-migrate/' . $jqueryV . '/jquery-migrate' . $minLoad . '.js');
e107::js('url', '//cdnjs.cloudflare.com/ajax/libs/Camera/' . $cameraV . '/scripts/camera' . $minLoad . '.js');
e107::js('url', '//cdnjs.cloudflare.com/ajax/libs/jquery-easing/' . $jqueryV . '/jquery.easing' . $minLoad . '.js');
e107::js('url', '//cdnjs.cloudflare.com/ajax/libs/jquery-easing/' . $jqueryV . '/jquery.easing.compatibility' . $minLoad . '.js');
e107::js('url', '//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.0/jquery.ui.widget' . $minLoad . '.js');
e107::js('xpandslider', 'js/jquery.mobile.customized.min.js', 'jquery');
//e107::js('url', '//cdnjs.cloudflare.com/ajax/libs/Camera/' . $cameraV . '/scripts/jquery.mobile.customized.min.js');
//e107::js('url', '//cdnjs.cloudflare.com/ajax/libs/jquery-mobile/1.4.5/jquery.mobile' . $minLoad . '.js', 'jquery', 0);
}
}