We have transformed the look of the Dinosaur Portal in this chapter from a standard looking PHP‑Nuke installation to a very distinctive looking site. To do this, we started with the 3D‑Fantasy theme and gradually added our new design.
We met the main ingredients of a theme, the PHP code files theme.php
and tables.php
, and the HTML templates that determine how a particular part of the page will look. We saw how the templates and the PHP code interact, and how they are used to separate the design of the theme from the PHP code that drives it.
We changed the page header, adding a new banner, and then a simple navigation bar. Then we looked at using the CSS stylesheet, the style.css
file in the style
folder of the theme, to make formatting changes independently of both the template and the PHP files.
After that, we looked at blocks in the theme. In particular, we saw how to create a new block. We saw how to create a rounded box, and put this to use for formatting the stories on the homepage...