forked from lonalore/testimonials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe_header.php
More file actions
45 lines (35 loc) · 676 Bytes
/
Copy pathe_header.php
File metadata and controls
45 lines (35 loc) · 676 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
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Testimonials plugin for e107 v2.
*
* @file
* e_header handler
*/
if(!defined('e107_INIT'))
{
exit;
}
/**
* Class testimonials_e_header.
*/
class testimonials_e_header
{
private $plugPrefs = null;
function __construct()
{
$this->plugPrefs = e107::getPlugConfig('testimonials')->getPref();
self::include_components();
}
/**
* Include necessary CSS and JS files.
*
* TODO: check that the testimonials_menu is active on the site or not.
*/
function include_components()
{
e107::css('testimonials', 'css/testimonials.css');
e107::js('testimonials', 'js/testimonials.js');
}
}
// Class instantiation.
new testimonials_e_header;