| @@ 75-90 (lines=16) @@ | ||
| 72 | * |
|
| 73 | * @return $this |
|
| 74 | */ |
|
| 75 | public function bootstrap() |
|
| 76 | { |
|
| 77 | $this->jquery(); |
|
| 78 | ||
| 79 | $this->Html->script('libs/bootstrap.min.js', $this->_setOptions([ |
|
| 80 | 'weight' => self::WEIGHT_LIB, |
|
| 81 | 'alias' => __FUNCTION__, |
|
| 82 | ])); |
|
| 83 | ||
| 84 | $this->Html->css('libs/bootstrap.min.css', $this->_setOptions([ |
|
| 85 | 'weight' => self::WEIGHT_CORE, |
|
| 86 | 'alias' => __FUNCTION__, |
|
| 87 | ])); |
|
| 88 | ||
| 89 | return $this; |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * Include fancybox. |
|
| @@ 97-112 (lines=16) @@ | ||
| 94 | * |
|
| 95 | * @return $this |
|
| 96 | */ |
|
| 97 | public function fancyBox() |
|
| 98 | { |
|
| 99 | $this->jquery(); |
|
| 100 | ||
| 101 | $this->Html->script('libs/fancybox.min.js', $this->_setOptions([ |
|
| 102 | 'weight' => self::WEIGHT_LIB, |
|
| 103 | 'alias' => __FUNCTION__, |
|
| 104 | ])); |
|
| 105 | ||
| 106 | $this->Html->css('libs/fancybox.min.css', $this->_setOptions([ |
|
| 107 | 'weight' => self::WEIGHT_CORE, |
|
| 108 | 'alias' => __FUNCTION__, |
|
| 109 | ])); |
|
| 110 | ||
| 111 | return $this; |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * Include font awesome. |
|
| @@ 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 | * Include materialize design. |
|
| @@ 171-186 (lines=16) @@ | ||
| 168 | * |
|
| 169 | * @return $this |
|
| 170 | */ |
|
| 171 | public function materialize() |
|
| 172 | { |
|
| 173 | $this->jquery(); |
|
| 174 | ||
| 175 | $this->Html->script('libs/materialize.min.js', $this->_setOptions([ |
|
| 176 | 'weight' => self::WEIGHT_LIB, |
|
| 177 | 'alias' => __FUNCTION__, |
|
| 178 | ])); |
|
| 179 | ||
| 180 | $this->Html->css('libs/materialize.min.css', $this->_setOptions([ |
|
| 181 | 'weight' => self::WEIGHT_CORE, |
|
| 182 | 'alias' => __FUNCTION__, |
|
| 183 | ])); |
|
| 184 | ||
| 185 | return $this; |
|
| 186 | } |
|
| 187 | ||
| 188 | /** |
|
| 189 | * Include sweet alert. |
|
| @@ 193-208 (lines=16) @@ | ||
| 190 | * |
|
| 191 | * @return $this |
|
| 192 | */ |
|
| 193 | public function sweetAlert() |
|
| 194 | { |
|
| 195 | $this->jquery(); |
|
| 196 | ||
| 197 | $this->Html->script('libs/sweetalert.min.js', $this->_setOptions([ |
|
| 198 | 'weight' => self::WEIGHT_LIB, |
|
| 199 | 'alias' => __FUNCTION__, |
|
| 200 | ])); |
|
| 201 | ||
| 202 | $this->Html->css('libs/sweetalert.min.css', $this->_setOptions([ |
|
| 203 | 'weight' => self::WEIGHT_CORE, |
|
| 204 | 'alias' => __FUNCTION__, |
|
| 205 | ])); |
|
| 206 | ||
| 207 | return $this; |
|
| 208 | } |
|
| 209 | ||
| 210 | /** |
|
| 211 | * Include jquery table check all. |
|