-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme_library.php
More file actions
99 lines (83 loc) · 2.73 KB
/
theme_library.php
File metadata and controls
99 lines (83 loc) · 2.73 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* e107 website system
*
* Copyright (C) 2008-2017 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* @file
* Provides information about external libraries.
*/
/**
* Class theme_library.
*/
class theme_library
{
/**
* Provides information about external libraries.
*/
function config()
{
// ----------------- Fontawesome 5 ---------------------------//
// Fontawesome 5.
// Font-Awesome 5 (Cloudflare) converted from
// Font-Awesome 5 (CDN).
$libraries['cloudflare.fontawesome5'] = array(
'name' => 'Font-Awesome 5 (Cloudflare)',
'vendor_url' => 'https://fontawesome.com/',
'version_arguments' => array(
'file' => 'css/all.css',
'pattern' => '/(\d\.\d\.\d+)/',
'lines' => 10,
),
'files' => array(
'css' => array(
'css/all.css' => array(
'zone' => 2,
),
'css/v4-shims.css' => array(
'zone' => 2,
),
),
),
'library_path' => 'https://use.fontawesome.com/releases',
'path' => 'v5.8.1',
);
// ----------------- Bootstrap 4 ---------------------------//
// Bootstrap 4(Cloudflare).
$libraries['cloudflare.bootstrap4'] = array(
'name' => 'Bootstrap 4 (Cloudflare)',
'vendor_url' => 'https://cdnjs.cloudflare.com/',
'version_arguments' => array(
'file' => 'js/bootstrap.min.js',
'pattern' => '/Bootstrap\s+v(\d\.\d\.\d+)/',
'lines' => 5,
),
'files' => array(
'js' => array(
'js/bootstrap.bundle.min.js' => array(
'zone' => 2,
'type' => 'footer',
),
),
'css' => array(
'css/bootstrap.min.css' => array(
'zone' => 1,
),
),
),
// Override library path to CDN.
// https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.bundle.min.js
'library_path' => 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1',
'path' => '',
);
return $libraries;
}
/**
* Alters library information before detection and caching takes place.
*/
function config_alter(&$libraries)
{
}
}