In the previous chapter, we looked at themes to customize the site's layout. While this has probably been the more important part, concrete5 does not limit you to page layout customization. You can also adapt every block layout to suit your needs, without touching its actual logic, the inner working of it.
You can use PHP as well as JavaScript and CSS to change the output of a block with this feature. We'll cover this topic with the following steps:
An example showing you how to add a thumbnail to the page list block output
A bit of theory with an example to explain how you can add CSS and JavaScript files to block templates
Another example that extends the content block to make it possible to insert pictures that open in a lightbox
An example that turns the core slideshow block into a picture gallery
An example that shows you how to inject a JavaScript in every page of your concrete5 site