Skip to content

Conversation

@KH404
Copy link

@KH404 KH404 commented Sep 18, 2020

Hi everybody,

it took me a while but now I found some time to implement a second collage layout as desribed in issue "New Collage Layout #164"

Therefore I did the following changes:
• added a new checkbox in lib/configsetup.inc.php with the following options: '2x2' and'2x4'
• added the default layout in config/config.inc.php ('2x2', the currently existing layout)
• changed the code of lib/collage.php so the layout parameter is input value of a switch/case statement.
The case '2x2' is the old existing code of the collage. Everything in case '2x4' I added.

I tested the code on my raspberry pi 4B and it worked well.

Hope the code is good enough to be pulled. Php is totally new for me. I normally work with C and Python ;)

@andi34
Copy link
Collaborator

andi34 commented Sep 18, 2020

Hey and thanks for your contribution.
I guess by accident, you've deleted some options which needs to be reverted.

Another solution which I need to improve can be found here andi34#108

@KH404
Copy link
Author

KH404 commented Sep 18, 2020

Hi,

I changed the files lib/configsetup.inc.php and config/config.inc.php so the options which where deleted by accident are in the files again.

@andi34
Copy link
Collaborator

andi34 commented Sep 19, 2020

Thanks a lot!
I've applied some of your changes to the implementation I've been working on.
Final result: andi34#108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants