@@ 149-164 (lines=16) @@ | ||
146 | * |
|
147 | * @return $this |
|
148 | */ |
|
149 | public function jqueryFactory() |
|
150 | { |
|
151 | $this->jquery(); |
|
152 | ||
153 | $this->Html->script('libs/utils.min.js', $this->_setOptions([ |
|
154 | 'weight' => self::WEIGHT_LIB, |
|
155 | 'alias' => 'jquery-utils', |
|
156 | ])); |
|
157 | ||
158 | $this->Html->script('libs/jquery-factory.min.js', $this->_setOptions([ |
|
159 | 'weight' => self::WEIGHT_LIB, |
|
160 | 'alias' => 'jquery-factory', |
|
161 | ])); |
|
162 | ||
163 | return $this; |
|
164 | } |
|
165 | ||
166 | /** |
|
167 | * Autoload plugin assets. |
|
@@ 86-101 (lines=16) @@ | ||
83 | * |
|
84 | * @return $this |
|
85 | */ |
|
86 | public function fancyBox() |
|
87 | { |
|
88 | $this->jquery(); |
|
89 | ||
90 | $this->Html->script('libs/fancybox.min.js', $this->_setOptions([ |
|
91 | 'weight' => self::WEIGHT_LIB, |
|
92 | 'alias' => __FUNCTION__, |
|
93 | ])); |
|
94 | ||
95 | $this->Html->css('libs/fancybox.min.css', $this->_setOptions([ |
|
96 | 'weight' => self::WEIGHT_CORE, |
|
97 | 'alias' => __FUNCTION__, |
|
98 | ])); |
|
99 | ||
100 | return $this; |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * Include font awesome. |
|
@@ 194-209 (lines=16) @@ | ||
191 | * |
|
192 | * @return $this |
|
193 | */ |
|
194 | public function materialize() |
|
195 | { |
|
196 | $this->jquery(); |
|
197 | ||
198 | $this->Html->script('libs/materialize.min.js', $this->_setOptions([ |
|
199 | 'weight' => self::WEIGHT_LIB, |
|
200 | 'alias' => __FUNCTION__, |
|
201 | ])); |
|
202 | ||
203 | $this->Html->css('libs/materialize.min.css', $this->_setOptions([ |
|
204 | 'weight' => self::WEIGHT_CORE, |
|
205 | 'alias' => __FUNCTION__, |
|
206 | ])); |
|
207 | ||
208 | return $this; |
|
209 | } |
|
210 | ||
211 | /** |
|
212 | * Include jquery slugify plugin. |
|
@@ 233-248 (lines=16) @@ | ||
230 | * |
|
231 | * @return $this |
|
232 | */ |
|
233 | public function sweetAlert() |
|
234 | { |
|
235 | $this->jquery(); |
|
236 | ||
237 | $this->Html->script('libs/sweetalert.min.js', $this->_setOptions([ |
|
238 | 'weight' => self::WEIGHT_LIB, |
|
239 | 'alias' => __FUNCTION__, |
|
240 | ])); |
|
241 | ||
242 | $this->Html->css('libs/sweetalert.min.css', $this->_setOptions([ |
|
243 | 'weight' => self::WEIGHT_CORE, |
|
244 | 'alias' => __FUNCTION__, |
|
245 | ])); |
|
246 | ||
247 | return $this; |
|
248 | } |
|
249 | ||
250 | /** |
|
251 | * Include jquery table check all. |