Problem/Motivation
At the moment, SiteTemplateForm makes no assumptions about the recipes having, or not having, screenshots. That is handled entirely by the installer's theme.
Now that SiteTemplateForm can load externally-provided information about available site templates, it needs to be able to figure out where the screenshots might live, and how to surface them to the form (and thence to the theme).
Proposed resolution
SiteTemplateForm::getChoices() will set a $choices[$name]['extra']['screenshot'] key, which is the absolute path of screenshot.yml, if it exists.
Comments
Comment #2
phenaproximaComment #3
phenaproximaComment #5
phenaproximaComment #7
phenaproximaManually tested and this worked well (albeit requiring a few small changes in the theme). In the name of keeping this moving, merged into 1.x.