1 <?php
2
3 /*
4 * This file is part of the Icybee package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Icybee\Modules\Images;
13
14 use Brickrouge\Group;
15 use Brickrouge\Text;
16
17 class EditBlock extends \Icybee\Modules\Files\EditBlock
18 {
19 protected $accept = array
20 (
21 'image/gif', 'image/png', 'image/jpeg'
22 );
23
24 protected $uploader_class = 'Icybee\Modules\Images\ImageUpload';
25
26 protected function lazy_get_children()
27 {
28 return array_merge
29 (
30 parent::lazy_get_children(), array
31 (
32 'alt' => new Text
33 (
34 array
35 (
36 Group::LABEL => 'alt'
37 )
38 )
39 )
40 );
41 }
42 }