Developer's Manual  Blocks

Blocks

SiteSupra block is a page or website function written on PHP. Some blocks have site-wide functionality (e.g. page header, footer, or menu), some are placed on specific pages only. A block may have properties - a set of variable parameters accessible through a friendly GUI to the regular SiteSupra user. Using properties SiteSupra user can control block output or operation mode without having to deal with block's programme code.

A block may consist of the following files: blockâÀ™s code and configuration files (obligatory), blockâÀ™s template and blockâÀ™s icon files (optionally). By default, blockâÀ™s code file name is block.html. However, you can change the extension of the file in .htsupra configuration file. BlockâÀ™s configuration file name is conf, which couldn't be changed. BlockâÀ™s template file is block.tmpl. You can use the template file to split PHP code and HTML. The icon file name is icon.gif. SiteSupra shows the icon of a block when in Blocks List mode.

You can encode your blocks with Zend Encoder shall you require to protect your intellectual property.

In this section:

 Configuration File
 Property types
 Writing Blocks
 Creating icons for blocks
Please login to add comments.