Amiro.CMS API Reference
Amiro.Ru / Manual
Loading search...

AMI_TemplateSystem usage example template

  • ##-- file: "templates/AMI_TemplateSystem.tpl" --##
  •  
  • %%include_template "templates/AMI_TemplateSystem.inclusion.tpl"%%
  • %%include_language "templates/lang/AMI_TemplateSystem.lng"%%
  •  
  • <!--#set var="body" value="
  • <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  • <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  • <head>
  • <title>Template - AMI_TemplateSystem - Example - Amiro.CMS API Reference [beta]</title>
  • </head>
  • <body>##body##</body>
  • </html>
  • "-->
  •  
  • <!--#set var="content" value="
  • <div style="border: 1px solid #000; background: #dfd; padding: 5px; margin-bottom: 5px;">
  •  
  • <ul>
  •     <li>variable1 is [##variable1##]</li>
  •     <li>variable2 is [##variable2##]</li>
  •     <li>variable3 is [##variable3##]</li>
  • </ul>
  •  
  • ##if(variable3)##
  • <p>Condition text.</p>
  • ##endif##
  •  
  • Locale variable value - [%%variable%%].
  •  
  • </div>
  • "-->