@@ -39,8 +39,11 @@ discard block |
||
39 | 39 | <div |
40 | 40 | <?php if ($td->get('editable')): ?> |
41 | 41 | class="format <?php echo $td->get('class'); ?> ui-editable is-editable" data-src="<?php echo $app->getRoute('updateField', ['entity' => $entityName, 'id' => $id, 'field' => $name]); ?>" data-value="<?php echo $td->val(); ?>" |
42 | - <?php else: ?> |
|
43 | - class="format <?php echo $td->get('class'); ?>" |
|
42 | + <?php else { |
|
43 | + : ?> |
|
44 | + class="format <?php echo $td->get('class'); |
|
45 | +} |
|
46 | +?>" |
|
44 | 47 | <?php endif; ?> |
45 | 48 | > |
46 | 49 | <?php echo $td->valToHtml(); ?> |
@@ -64,9 +67,12 @@ discard block |
||
64 | 67 | </footer> |
65 | 68 | <?php endif; ?> |
66 | 69 | |
67 | - <?php else: ?> |
|
70 | + <?php else { |
|
71 | + : ?> |
|
68 | 72 | <div class="page-list-noresults"> |
69 | - <p><?php echo p__('search', 'No items found'); ?></p> |
|
73 | + <p><?php echo p__('search', 'No items found'); |
|
74 | +} |
|
75 | +?></p> |
|
70 | 76 | </div> |
71 | 77 | <?php endif; ?> |
72 | 78 | </div> |
@@ -12,7 +12,7 @@ |
||
12 | 12 | $dispatcher = new Dispatcher([ |
13 | 13 | new Emitter(), |
14 | 14 | |
15 | - function ($request) { |
|
15 | + function($request) { |
|
16 | 16 | $admin = new Demo\Admin(__DIR__, new Uri('http://localhost:8888')); |
17 | 17 | return $admin->handle($request); |
18 | 18 | }, |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public function getFactories() |
12 | 12 | { |
13 | 13 | return [ |
14 | - 'builder' => function (App $app): FormatFactory { |
|
14 | + 'builder' => function(App $app): FormatFactory { |
|
15 | 15 | return new FormatFactory($app); |
16 | 16 | }, |
17 | 17 | ]; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Folk\Providers; |
4 | 4 | |
5 | 5 | use Fol\App; |
6 | -use Gettext\Translations; |
|
7 | 6 | use Gettext\Translator; |
8 | 7 | use Gettext\TranslatorFunctions; |
9 | 8 | use Interop\Container\ServiceProviderInterface; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | public function getFactories() |
16 | 16 | { |
17 | 17 | return [ |
18 | - 'middleware' => function (App $app): Dispatcher { |
|
18 | + 'middleware' => function(App $app): Dispatcher { |
|
19 | 19 | $middleware = []; |
20 | 20 | |
21 | 21 | $middleware[] = new Middlewares\Expires(); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $middleware[] = new Middlewares\ContentType(); |
25 | 25 | $middleware[] = new Middlewares\ContentLanguage(['en', 'gl', 'es']); |
26 | 26 | |
27 | - $middleware[] = function ($request, $next) use ($app) { |
|
27 | + $middleware[] = function($request, $next) use ($app) { |
|
28 | 28 | $language = $request->getHeaderLine('Accept-Language'); |
29 | 29 | $translator = (new Translator())->loadTranslations(dirname(dirname(__DIR__)).'/locales/'.$language.'.php'); |
30 | 30 | $prev = TranslatorFunctions::register($translator); |
@@ -1,43 +1,43 @@ |
||
1 | 1 | <?php return array ( |
2 | - 'domain' => 'messages', |
|
3 | - 'plural-forms' => NULL, |
|
4 | - 'messages' => |
|
5 | - array ( |
|
2 | + 'domain' => 'messages', |
|
3 | + 'plural-forms' => NULL, |
|
4 | + 'messages' => |
|
5 | + array ( |
|
6 | 6 | 'search' => |
7 | 7 | array ( |
8 | - 'Search %s...' => 'Buscar %s...', |
|
9 | - 'More results' => 'Más resultados', |
|
10 | - 'No items found' => 'No se encontraron resultados', |
|
8 | + 'Search %s...' => 'Buscar %s...', |
|
9 | + 'More results' => 'Más resultados', |
|
10 | + 'No items found' => 'No se encontraron resultados', |
|
11 | 11 | ), |
12 | 12 | '' => |
13 | 13 | array ( |
14 | - 'Data saved successfully' => 'Datos guardados correctamente', |
|
15 | - 'Too big data' => 'No se pueden subir archivos tan grandes', |
|
16 | - 'Creating "%s", are you sure?' => 'Creando "%s", estas seguro?', |
|
17 | - 'Edit as text' => 'Editar manualmente', |
|
18 | - 'Too big file: %s (%s max allowed)' => 'Archivo demasiado grande: %s (máximo permitido: %s)', |
|
19 | - 'Insert value as text' => 'Insertar el valor manualmente', |
|
20 | - 'New value (empty to remove)' => 'Nuevo valor (deja vacio para eliminar)', |
|
21 | - 'Previously uploaded...' => 'Cargados previamente...', |
|
22 | - 'Load %d more...' => 'Cargar %d más...', |
|
23 | - 'Are you sure?' => '¿Estas seguro?', |
|
14 | + 'Data saved successfully' => 'Datos guardados correctamente', |
|
15 | + 'Too big data' => 'No se pueden subir archivos tan grandes', |
|
16 | + 'Creating "%s", are you sure?' => 'Creando "%s", estas seguro?', |
|
17 | + 'Edit as text' => 'Editar manualmente', |
|
18 | + 'Too big file: %s (%s max allowed)' => 'Archivo demasiado grande: %s (máximo permitido: %s)', |
|
19 | + 'Insert value as text' => 'Insertar el valor manualmente', |
|
20 | + 'New value (empty to remove)' => 'Nuevo valor (deja vacio para eliminar)', |
|
21 | + 'Previously uploaded...' => 'Cargados previamente...', |
|
22 | + 'Load %d more...' => 'Cargar %d más...', |
|
23 | + 'Are you sure?' => '¿Estas seguro?', |
|
24 | 24 | ), |
25 | 25 | 'insert' => |
26 | 26 | array ( |
27 | - '%s - New | %s' => '%s - Nuevo | %s', |
|
28 | - 'Create' => 'Crear', |
|
27 | + '%s - New | %s' => '%s - Nuevo | %s', |
|
28 | + 'Create' => 'Crear', |
|
29 | 29 | ), |
30 | 30 | 'home' => |
31 | 31 | array ( |
32 | - 'View web' => 'Ver la web', |
|
32 | + 'View web' => 'Ver la web', |
|
33 | 33 | ), |
34 | 34 | 'edit' => |
35 | 35 | array ( |
36 | - 'Save' => 'Guardar', |
|
37 | - 'You will save this data as a new row. Are you sure?' => 'Vas a guardar estos datos en un nuevo registro. Estas seguro?', |
|
38 | - 'Duplicate' => 'Duplicar', |
|
39 | - 'This action cannot be undo. Are you sure?' => 'Esta acción no se puede deshacer. Estas seguro?', |
|
40 | - 'Delete' => 'Eliminar', |
|
36 | + 'Save' => 'Guardar', |
|
37 | + 'You will save this data as a new row. Are you sure?' => 'Vas a guardar estos datos en un nuevo registro. Estas seguro?', |
|
38 | + 'Duplicate' => 'Duplicar', |
|
39 | + 'This action cannot be undo. Are you sure?' => 'Esta acción no se puede deshacer. Estas seguro?', |
|
40 | + 'Delete' => 'Eliminar', |
|
41 | + ), |
|
41 | 42 | ), |
42 | - ), |
|
43 | 43 | ); |
44 | 44 | \ No newline at end of file |
@@ -1,16 +1,16 @@ discard block |
||
1 | -<?php return array ( |
|
1 | +<?php return array( |
|
2 | 2 | 'domain' => 'messages', |
3 | 3 | 'plural-forms' => NULL, |
4 | 4 | 'messages' => |
5 | - array ( |
|
5 | + array( |
|
6 | 6 | 'search' => |
7 | - array ( |
|
7 | + array( |
|
8 | 8 | 'Search %s...' => 'Buscar %s...', |
9 | 9 | 'More results' => 'Más resultados', |
10 | 10 | 'No items found' => 'No se encontraron resultados', |
11 | 11 | ), |
12 | 12 | '' => |
13 | - array ( |
|
13 | + array( |
|
14 | 14 | 'Data saved successfully' => 'Datos guardados correctamente', |
15 | 15 | 'Too big data' => 'No se pueden subir archivos tan grandes', |
16 | 16 | 'Creating "%s", are you sure?' => 'Creando "%s", estas seguro?', |
@@ -23,16 +23,16 @@ discard block |
||
23 | 23 | 'Are you sure?' => '¿Estas seguro?', |
24 | 24 | ), |
25 | 25 | 'insert' => |
26 | - array ( |
|
26 | + array( |
|
27 | 27 | '%s - New | %s' => '%s - Nuevo | %s', |
28 | 28 | 'Create' => 'Crear', |
29 | 29 | ), |
30 | 30 | 'home' => |
31 | - array ( |
|
31 | + array( |
|
32 | 32 | 'View web' => 'Ver la web', |
33 | 33 | ), |
34 | 34 | 'edit' => |
35 | - array ( |
|
35 | + array( |
|
36 | 36 | 'Save' => 'Guardar', |
37 | 37 | 'You will save this data as a new row. Are you sure?' => 'Vas a guardar estos datos en un nuevo registro. Estas seguro?', |
38 | 38 | 'Duplicate' => 'Duplicar', |
@@ -1,43 +1,43 @@ |
||
1 | 1 | <?php return array ( |
2 | - 'domain' => 'messages', |
|
3 | - 'plural-forms' => NULL, |
|
4 | - 'messages' => |
|
5 | - array ( |
|
2 | + 'domain' => 'messages', |
|
3 | + 'plural-forms' => NULL, |
|
4 | + 'messages' => |
|
5 | + array ( |
|
6 | 6 | 'search' => |
7 | 7 | array ( |
8 | - 'Search %s...' => 'Buscar %s...', |
|
9 | - 'More results' => 'Máis resultados', |
|
10 | - 'No items found' => 'Non se atoparon resultados', |
|
8 | + 'Search %s...' => 'Buscar %s...', |
|
9 | + 'More results' => 'Máis resultados', |
|
10 | + 'No items found' => 'Non se atoparon resultados', |
|
11 | 11 | ), |
12 | 12 | '' => |
13 | 13 | array ( |
14 | - 'Data saved successfully' => 'Datos gardados correctamente', |
|
15 | - 'Too big data' => 'Non se poden subir arquivos tan grandes', |
|
16 | - 'Creating "%s", are you sure?' => 'Creando "%s", estas seguro?', |
|
17 | - 'Edit as text' => 'Editar manualmente', |
|
18 | - 'Too big file: %s (%s max allowed)' => 'Arquivo demasiado grande: %s (máximo permitido: %s)', |
|
19 | - 'Insert value as text' => 'Insertar o valor manualmente', |
|
20 | - 'New value (empty to remove)' => 'Novo valor (deixa baleiro para eliminar)', |
|
21 | - 'Previously uploaded...' => 'Cargados previamente', |
|
22 | - 'Load %d more...' => 'Cargar %d más', |
|
23 | - 'Are you sure?' => 'Estas seguro?', |
|
14 | + 'Data saved successfully' => 'Datos gardados correctamente', |
|
15 | + 'Too big data' => 'Non se poden subir arquivos tan grandes', |
|
16 | + 'Creating "%s", are you sure?' => 'Creando "%s", estas seguro?', |
|
17 | + 'Edit as text' => 'Editar manualmente', |
|
18 | + 'Too big file: %s (%s max allowed)' => 'Arquivo demasiado grande: %s (máximo permitido: %s)', |
|
19 | + 'Insert value as text' => 'Insertar o valor manualmente', |
|
20 | + 'New value (empty to remove)' => 'Novo valor (deixa baleiro para eliminar)', |
|
21 | + 'Previously uploaded...' => 'Cargados previamente', |
|
22 | + 'Load %d more...' => 'Cargar %d más', |
|
23 | + 'Are you sure?' => 'Estas seguro?', |
|
24 | 24 | ), |
25 | 25 | 'insert' => |
26 | 26 | array ( |
27 | - '%s - New | %s' => '%s - Novo | %s', |
|
28 | - 'Create' => 'Crear', |
|
27 | + '%s - New | %s' => '%s - Novo | %s', |
|
28 | + 'Create' => 'Crear', |
|
29 | 29 | ), |
30 | 30 | 'home' => |
31 | 31 | array ( |
32 | - 'View web' => 'Ver a web', |
|
32 | + 'View web' => 'Ver a web', |
|
33 | 33 | ), |
34 | 34 | 'edit' => |
35 | 35 | array ( |
36 | - 'Save' => 'Gardar', |
|
37 | - 'You will save this data as a new row. Are you sure?' => 'Vas gardar estes datos nun novo rexistro. Estas seguro?', |
|
38 | - 'Duplicate' => 'Duplicar', |
|
39 | - 'This action cannot be undo. Are you sure?' => 'Esta acción non se pode desfacer. Estas seguro?', |
|
40 | - 'Delete' => 'Eliminar', |
|
36 | + 'Save' => 'Gardar', |
|
37 | + 'You will save this data as a new row. Are you sure?' => 'Vas gardar estes datos nun novo rexistro. Estas seguro?', |
|
38 | + 'Duplicate' => 'Duplicar', |
|
39 | + 'This action cannot be undo. Are you sure?' => 'Esta acción non se pode desfacer. Estas seguro?', |
|
40 | + 'Delete' => 'Eliminar', |
|
41 | + ), |
|
41 | 42 | ), |
42 | - ), |
|
43 | 43 | ); |
44 | 44 | \ No newline at end of file |
@@ -1,16 +1,16 @@ discard block |
||
1 | -<?php return array ( |
|
1 | +<?php return array( |
|
2 | 2 | 'domain' => 'messages', |
3 | 3 | 'plural-forms' => NULL, |
4 | 4 | 'messages' => |
5 | - array ( |
|
5 | + array( |
|
6 | 6 | 'search' => |
7 | - array ( |
|
7 | + array( |
|
8 | 8 | 'Search %s...' => 'Buscar %s...', |
9 | 9 | 'More results' => 'Máis resultados', |
10 | 10 | 'No items found' => 'Non se atoparon resultados', |
11 | 11 | ), |
12 | 12 | '' => |
13 | - array ( |
|
13 | + array( |
|
14 | 14 | 'Data saved successfully' => 'Datos gardados correctamente', |
15 | 15 | 'Too big data' => 'Non se poden subir arquivos tan grandes', |
16 | 16 | 'Creating "%s", are you sure?' => 'Creando "%s", estas seguro?', |
@@ -23,16 +23,16 @@ discard block |
||
23 | 23 | 'Are you sure?' => 'Estas seguro?', |
24 | 24 | ), |
25 | 25 | 'insert' => |
26 | - array ( |
|
26 | + array( |
|
27 | 27 | '%s - New | %s' => '%s - Novo | %s', |
28 | 28 | 'Create' => 'Crear', |
29 | 29 | ), |
30 | 30 | 'home' => |
31 | - array ( |
|
31 | + array( |
|
32 | 32 | 'View web' => 'Ver a web', |
33 | 33 | ), |
34 | 34 | 'edit' => |
35 | - array ( |
|
35 | + array( |
|
36 | 36 | 'Save' => 'Gardar', |
37 | 37 | 'You will save this data as a new row. Are you sure?' => 'Vas gardar estes datos nun novo rexistro. Estas seguro?', |
38 | 38 | 'Duplicate' => 'Duplicar', |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php return array ( |
2 | - 'domain' => 'messages', |
|
3 | - 'plural-forms' => NULL, |
|
4 | - 'messages' => |
|
5 | - array ( |
|
6 | - ), |
|
2 | + 'domain' => 'messages', |
|
3 | + 'plural-forms' => NULL, |
|
4 | + 'messages' => |
|
5 | + array ( |
|
6 | + ), |
|
7 | 7 | ); |
8 | 8 | \ No newline at end of file |
@@ -1,7 +1,7 @@ |
||
1 | -<?php return array ( |
|
1 | +<?php return array( |
|
2 | 2 | 'domain' => 'messages', |
3 | 3 | 'plural-forms' => NULL, |
4 | 4 | 'messages' => |
5 | - array ( |
|
5 | + array( |
|
6 | 6 | ), |
7 | 7 | ); |
8 | 8 | \ No newline at end of file |