Fix upload option not used for modal file browsing
Add macro upload_buttons()
Use macro upload_buttons() for filelists
Use macro upload_buttons() for imagelists
Use macro upload_buttons() for files
Use macro upload_buttons() for images
Add stack button to macro upload_buttons()
Let filelists use stack button generation of upload_buttons()
Let imagelists use stack button generation of upload_buttons()
Let file use stack button generation of upload_buttons()
Let images use stack button generation of upload_buttons()
Variable paths is global, no need to inject as parameter
Generate upload button text from type inside macro
Optimize macro upload_buttons()
Comment macro upload_buttons()
Remove now unneccesary getting of  stack items
Use real buttons
Add some comments
Move the button wrapper inside the macro
Add button type