-
Notifications
You must be signed in to change notification settings - Fork 0
/
loader.php
107 lines (89 loc) · 2.07 KB
/
loader.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
/*
* @version
* @package JUGRS.Framework
* @author Emerson Rocha Luiz
* @copyright Copyright (C) 2011 Joomla User Group Rio Grande do Sul. Some rights reserved.
* @license GPL
*/
abstract class JUGRS
{
public static $addtoany = null;
public static $css3 = null;
public static $facebook = null;
public static $google = null;
public static $html5 = null;
public static $twitter = null;
/*
* Return addtoany Object, creating if aready doesent exists
* @since 0.1
*/
public static function getAddtoany()
{
if (!self::$addtoany) {
jimport('jugrs.addtoany.load');
self::$addtoany = LoadAddtoany::getInstance();
}
return self::$addtoany;
}
/*
* Return CSS3 Object, creating if aready doesent exists
* @since 0.2
*/
public static function getCss3()
{
if (!self::$css3) {
jimport('jugrs.css3.load');
self::$css3 = LoadCss3::getInstance();
}
return self::$css3;
}
/*
* Return Facebook Object, creating if aready doesent exists
* @since 0.1
*/
public static function getFacebook()
{
if (!self::$facebook) {
jimport('jugrs.facebook.load');
self::$facebook = LoadFacebook::getInstance();
}
return self::$facebook;
}
/*
* Return Google Object, creating if aready doesent exists
* @since 0.1
*/
public static function getGoogle()
{
if (!self::$google) {
jimport('jugrs.google.load');
self::$google = LoadGoogle::getInstance();
}
return self::$google;
}
/*
* Return HTML5 Object, creating if aready doesent exists
* @since 0.2
*/
public static function getHtml5()
{
if (!self::$html5) {
jimport('jugrs.html5.load');
self::$html5 = LoadHtml5::getInstance();
}
return self::$html5;
}
/*
* Return Facebook Object, creating if aready doesent exists
* @since 0.1
*/
public static function getTwitter()
{
if (!self::$twitter) {
jimport('jugrs.twitter.load');
self::$twitter = LoadTwitter::getInstance();
}
return self::$twitter;
}
}