@@ 168-183 (lines=16) @@ | ||
165 | * |
|
166 | * @return $this |
|
167 | */ |
|
168 | public function jqueryFactory() |
|
169 | { |
|
170 | $this->jquery(); |
|
171 | ||
172 | $this->Html->script('libs/utils.min.js', $this->_setOptions([ |
|
173 | 'alias' => 'jquery-utils', |
|
174 | 'weight' => self::WEIGHT_LIB |
|
175 | ])); |
|
176 | ||
177 | $this->Html->script('libs/jquery-factory.min.js', $this->_setOptions([ |
|
178 | 'weight' => self::WEIGHT_LIB, |
|
179 | 'alias' => 'jquery-factory' |
|
180 | ])); |
|
181 | ||
182 | return $this; |
|
183 | } |
|
184 | ||
185 | /** |
|
186 | * Autoload plugin assets. |
|
@@ 66-81 (lines=16) @@ | ||
63 | * |
|
64 | * @return $this |
|
65 | */ |
|
66 | public function bootstrap() |
|
67 | { |
|
68 | $this->jquery(); |
|
69 | ||
70 | $this->Html->script('libs/bootstrap.min.js', $this->_setOptions([ |
|
71 | 'alias' => __FUNCTION__, |
|
72 | 'weight' => self::WEIGHT_LIB |
|
73 | ])); |
|
74 | ||
75 | $this->Html->css('libs/bootstrap.min.css', $this->_setOptions([ |
|
76 | 'alias' => __FUNCTION__, |
|
77 | 'weight' => self::WEIGHT_CORE |
|
78 | ])); |
|
79 | ||
80 | return $this; |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * Include fancybox. |
|
@@ 88-103 (lines=16) @@ | ||
85 | * |
|
86 | * @return $this |
|
87 | */ |
|
88 | public function fancyBox() |
|
89 | { |
|
90 | $this->jquery(); |
|
91 | ||
92 | $this->Html->script('libs/fancybox.min.js', $this->_setOptions([ |
|
93 | 'alias' => __FUNCTION__, |
|
94 | 'weight' => self::WEIGHT_LIB |
|
95 | ])); |
|
96 | ||
97 | $this->Html->css('libs/fancybox.min.css', $this->_setOptions([ |
|
98 | 'alias' => __FUNCTION__, |
|
99 | 'weight' => self::WEIGHT_CORE |
|
100 | ])); |
|
101 | ||
102 | return $this; |
|
103 | } |
|
104 | ||
105 | /** |
|
106 | * Include font awesome. |
|
@@ 216-231 (lines=16) @@ | ||
213 | * |
|
214 | * @return $this |
|
215 | */ |
|
216 | public function materialize() |
|
217 | { |
|
218 | $this->jquery(); |
|
219 | ||
220 | $this->Html->script('libs/materialize.min.js', $this->_setOptions([ |
|
221 | 'alias' => __FUNCTION__, |
|
222 | 'weight' => self::WEIGHT_LIB |
|
223 | ])); |
|
224 | ||
225 | $this->Html->css('libs/materialize.min.css', $this->_setOptions([ |
|
226 | 'alias' => __FUNCTION__, |
|
227 | 'weight' => self::WEIGHT_CORE |
|
228 | ])); |
|
229 | ||
230 | return $this; |
|
231 | } |
|
232 | ||
233 | /** |
|
234 | * Include jquery slugify plugin. |
|
@@ 255-270 (lines=16) @@ | ||
252 | * |
|
253 | * @return $this |
|
254 | */ |
|
255 | public function sweetAlert() |
|
256 | { |
|
257 | $this->jquery(); |
|
258 | ||
259 | $this->Html->script('libs/sweetalert.min.js', $this->_setOptions([ |
|
260 | 'alias' => __FUNCTION__, |
|
261 | 'weight' => self::WEIGHT_LIB |
|
262 | ])); |
|
263 | ||
264 | $this->Html->css('libs/sweetalert.min.css', $this->_setOptions([ |
|
265 | 'alias' => __FUNCTION__, |
|
266 | 'weight' => self::WEIGHT_CORE |
|
267 | ])); |
|
268 | ||
269 | return $this; |
|
270 | } |
|
271 | ||
272 | /** |
|
273 | * Include jquery table check all. |