The Pligg default template is Wistie. A number of other free (open source) and for-purchase templates are available through the Pligg Templates forum.
Pligg uses the Smarty template engine. Smarty separates application data from presentation. This allows users to edit the way that their site looks and functions without having to modify the php files that handle the main processes.
Template files (.tpl) contain presentation mark-up (HTML, CSS), while content data is delivered through Smarty tags, enclosed in curly brackets: { ... }. Smarty also allows presentation logic from within template files, such as including one template inside of another .
About Templates
This Pligg Wiki book entry titled "Templates" will guide you though how Pligg templates work, how to modify them and how to add new templates to your Pligg website. It will discuss both beginner and advanced techniques for customizing your Pligg templates. By the end of this template guide you should have a better understanding of what each template file controls, how to use conditional statements to display content on specific pages and how to become a better template designer.
Smarty Variables
Smarty has several different types of variables. The type of the variable depends on what symbol it is prefixed with (or enclosed within). Variables in Smarty can be either displayed directly or used as arguments for function attributes and modifiers, inside conditional expressions, etc. To print a variable enclose it in the delimiters, for example: {$pligg_language} will print your Pligg site's language.
To list all of your available Smarty variables you can enter the following code into any of your template files for it to print all of the variables:
Code:
{php}
$myVars = $this->get_template_vars();
$this->assign('myVars',$myVars);
{/php}
{foreach from=$myVars key=k item=i}
{literal}{${/literal}{$k}} = {$i}
{/foreach}