Image:Themes.pngDidactic Example # 2: Another example but with the "waiting contents" from the
Extensible Waiting Block Module module.
0a 0b 0c 0d Same as example 1
1) First let's download the template block file:
admin system / templates / Waiting Contents Extensible [i]list / line
waiting_block_waiting.html,
[Download] <{foreach item=module from=$block.modules}>
<{$module.name}>
<{foreach item=pending from=$module.pending}>
-
<{if $pending.pendingnum}>
<{else}>
<{/if}>
<a href="<{$pending.adminlink}>"><{$pending.lang_linkname}></a>:<{$pending.pendingnum}>
</li>
<{/foreach}>
</ul>
<{/foreach}>
</code></div>
2) Let's modify the file you just downloaded and now have locally.
<code> <{foreach item=module from=$block.modules}>
</span><{$module.name}></b>
<{foreach item=pending from=$module.pending}>
-
<a href="<{$pending.adminlink}>"><{$pending.lang_linkname}></a> :
<{if $pending.pendingnum}>
<b></span><{$pending.pendingnum}></b></font>
<{else}>
<{$pending.pendingnum}>
<{/if}>
</li>
<{/foreach}>
</ul>
<{/foreach}> </code></div>
3) If my theme is 7dana-soft, via ftp, go to the directory
/themes/dana-soft Let's create the directory modules then down and create directory waiting then down and create directory blocks
4) Let's upload the local file waiting_block_waiting.html to /themes/dana-soft/modules/waiting/blocks/ on the server.
5) Let's delete files in the /template_c directory (except index.html) (or update modules cache) to see the result...
Image:Waiting default.jpg <== Default waiting contents bloc - Custum ==>Image:Waiting surcharge.jpg
</div>