-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathe_library.php
76 lines (69 loc) · 1.65 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
<?php
/**
* @file
* Provides information about external libraries.
*/
/**
* Class simplemde_library.
*/
class simplemde_library
{
/**
* Return information about external libraries.
*/
function config()
{
// SimpleMDE.
$libraries['simplemde'] = array(
'name' => 'SimpleMDE',
'vendor_url' => 'https://simplemde.com/',
'download_url' => 'https://github.com/NextStepWebs/simplemde-markdown-editor/zipball/master',
'library_path' => '{e_PLUGIN}simplemde/vendor/NextStepWebs/simplemde-markdown-editor',
'path' => 'dist',
'version_arguments' => array(
'file' => 'simplemde.min.js',
'pattern' => '/v(\d\.\d+\.\d+)/',
'lines' => 5,
),
'files' => array(
'css' => array(
'simplemde.min.css' => array(
'zone' => 2,
),
),
'js' => array(
'simplemde.min.js' => array(
'zone' => 2,
'type' => 'footer',
),
),
),
);
// Highlight.js (CDN)
$libraries['cdn.highlight.js'] = array(
'name' => 'Highlight.js (CDN)',
'vendor_url' => 'https://github.com/isagalaev/highlight.js',
'library_path' => 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js',
'path' => '9.9.0',
'version_arguments' => array(
'file' => 'highlight.min.js',
'pattern' => '/v(\d\.\d+\.\d+)/',
'lines' => 5,
),
'files' => array(
'css' => array(
'styles/github.min.css' => array(
'zone' => 2,
),
),
'js' => array(
'highlight.min.js' => array(
'zone' => 2,
'type' => 'footer',
),
),
),
);
return $libraries;
}
}