-
Notifications
You must be signed in to change notification settings - Fork 0
/
getbibleloader.php
56 lines (49 loc) · 1.72 KB
/
getbibleloader.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
<?php
/*----------------------------------------------------------------------------------| io.vdm.dev |----/
Vast Development Method
/-------------------------------------------------------------------------------------------------------/
@package getBible.net
@created 3rd December, 2015
@author Llewellyn van der Merwe <https://getbible.net>
@git Get Bible <https://git.vdm.dev/getBible>
@github Get Bible <https://github.com/getBible>
@support Get Bible <https://git.vdm.dev/getBible/support>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Html\HTMLHelper;
/**
* System - GetBibleLoader plugin.
*
* @package GetBibleLoader
* @since 3.1.0
*/
class PlgSystemGetBibleLoader extends CMSPlugin
{
/**
* Application object
*
* @var CMSApplication
* @since 1.0.0
*/
protected $app;
/**
* This method is called before the head is compiled and allows manipulation of the head data.
* In this case, it's used to add a JavaScript file to the front end of the Joomla site.
*
* @return void
*
* @since 3.0.0
* @throws Exception on error.
*/
public function onBeforeCompileHead()
{
// Check if we are in the site application
if ($this->app->isClient('site')) {
HTMLHelper::_('script', 'https://cdn.jsdelivr.net/gh/getbible/[email protected]/dist/js/getBible.min.js', ['version' => 'auto']);
}
}
}