Block template

A block is the second level of our three level template system, it's used to put windows like decorations to the bare content. For each single slot (the inner content), is possible to decide if to use an outer block or not. It's also possible to choose between different styles of block. Blocks are templates and they may be manipulated directly using the handle $_obweb->smblock (created for you by obliquid core). We can choose to have a strongly emphasized titled window (title_em), a simple titled window (title), a bordered window with no title (border) or no decorations (none). Any of these types, except none corresponds to a filename in the template directory.

To summarize a bit in a theme approach is mandatory to have a frame.tpl file for the outer frame and title_em.tpl, title.tpl, border.tpl for the blocks. In a custom approach, the block level may be skipped (using none), or may be used with custom theme filenames or by introducing new block files.

title_em.tpl and title.tpl have a mandatory title and a content section, and may have a caption and a button section. The button section is for adding some small graphic buttons for extra functions like an help button. The slot is automatically associated to the content section. Other sections have to be manipulated manually from the slot PHP code.

+--------------------------------+
| {{$title}}         {{$button}} |
+--------------------------------+
| {{$content}}                   |
+--------------------------------+
| {{$caption}}                   |
+--------------------------------+