O'Reilly logo

Joomla! VirtueMart 1.1 Theme and Template Design by Joseph Kwan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The default theme class

As we have pointed out previously, theme.php must be there in order for a theme to work. There are no prescribed functions that must exist in the vmTheme class though. You can just simply inherit (or extend, in terms of PHP) from the vmTemplate class without adding any extra code, if that fits your needs.

In the default theme, the theme.php file contains a few lines of initialization code before actually defining the vmTheme class. There are four additional functions defined in the class. The following screenshot shows the major elements in this PHP file:

The default theme class

Initialization code

The initialization code is placed before the vmTheme ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required