diff --git a/config/config.inc.php b/config/config.inc.php index ba4ef334c..6d5177eaf 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -51,6 +51,7 @@ // use for example https://keycode.info to get the key code $config['photo_key'] = null; $config['collage_key'] = null; +$config['collage_layout'] = '2x2'; //possible layouts are 2x2 or 2x4 (row x column) // LANGUAGE // possible values: de, en, es, fr, gr, hu diff --git a/lib/collage.php b/lib/collage.php index 50cd6de3b..3b6aa644d 100644 --- a/lib/collage.php +++ b/lib/collage.php @@ -1,41 +1,101 @@ '', 'value' => $config['collage_key'] ], + 'collage_layout' => [ + 'type' => 'select', + 'name' => 'collage_layout', + 'placeholder' => $defaultConfig['collage_layout'], + 'options' => [ + '2x2' => '2x2' + '2x4' => '2x4' + ], + 'value' => $config['collage_layout'] + ], 'collage_limit' => [ 'type' => 'hidden', 'name' => 'collage_limit',