Here's an example of the index.template.php file for the default templates.
Code:
<div class="left">
{{babelogr_template_partial('navigation')}}
</div>
<div class="middle">
{{items}}
<div class="box post">
<h3>{{title}}</h3>
<a href="{{url}}"><img src="{{thumbnail}}"></a>
<p class="description">{{description}}</p>
<span class="meta">Posted by <strong>{{user}}</strong> with {{babelogr_views_format({{views}})}}.</span>
</div>
{{/items}}
{{pagination}}
</div>
<div class="right">
{{babelogr_template_partial('sidebar')}}
</div>
The
{{babelogr_template_partial('navigation')}} is loading up a partial template file, which you can have as many as you want in any template file... So if you have a ad block code you want to put on the index, and gallery listing page, you can just do
{{babelogr_template_partial('adcode')}} and then create
adcode.partial.php in your templates folder and it'll load it into the template for you.
Really easy to use, and comes with a couple helper functions. You can also use raw PHP in it, or even PHP functions in the template language, so these:
And
Code:
<?php echo date('Y'); ?>
Will both produce the same result: 2013