-
Notifications
You must be signed in to change notification settings - Fork 0
/
e_library.php
81 lines (64 loc) · 1.52 KB
/
e_library.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
class livetime_library
{
function config()
{
$libraries['moment.js'] = [
'name' => 'Moment.js',
'vendor_url' => 'https://github.com/moment/moment/',
'download_url' => 'http://momentjs.com/downloads/moment.js',
'library_path' => '{e_PLUGIN}livetime/js/libs/moment/',
'version_arguments' => [
'file' => 'moment.js',
//! version : 2.18.1
'pattern' => '/.*(\d+\.\d+\.\d+)/',
'lines' => 5,
],
'files' => [
'js' => [
'moment.js' => [
'type' => 'footer'
]
]
],
'variants' => [
'minified' => [
'js' => [
'min/moment.min.js' => [
'type' => 'footer'
]
]
]
]
];
$libraries['livestamp.js'] = [
'name' => 'Livestamp.js',
'vendor_url' => 'http://mattbradley.github.io/livestampjs/',
'download_url' => 'https://raw.github.com/mattbradley/livestampjs/1.1.2/livestamp.min.js',
'library_path' => '{e_PLUGIN}livetime/js/libs/livestamp/',
'version_arguments' => [
'file' => 'livestamp.js',
// Livestamp.js / v1.1.2 / (c) 2012 Matt Bradley / MIT License
'pattern' => '/.*(\d+\.\d+\.\d+)/',
'lines' => 2,
],
'files' => [
'js' => [
'livestamp.js' => [
'type' => 'footer'
]
],
],
'variants' => [
'minified' => [
'js' => [
'livestamp.min.js' => [
'type' => 'footer'
]
]
]
]
];
return $libraries;
}
}