Summary
In this chapter, we looked into the details of the Frontend plugin programming. In the next chapter, we will use these techniques to create a Frontend plugin.
It must be noted here that Frontend plugins are usually not made in the form of a single function. Normally, they are classes, and typically extend a class named tslib_pibase
. Having a class allows us to implement complex logic using many functions and to keep working on data as class attributes. The example above should be really treated as an example, not as a recommendation on creating plugins. A proper plugin must be a class!