Content of a plugin file

The PHP-file contains at least one PHP function.

It may contain up to, say, 20.000 functions. Those functions correspondent with additional Loudblog-Tag which have the same name.

Plain Tags

Let’s say that you want to write a function that is called “helloworld”.

function helloworld() { }

This function will be called evertime the template-parser explores the following Loudblog-Tag:

<lb:helloworld />

“Containing” Tags

The same goes with Linking-, Looping-, or Conditional Tags:

function link_momsblog($content) { }

This will be called when the template says:

<lb:link_momsblog>Go to Mom’s Blog</lb:link_momsblog>

The variable $content will be explained here