谁能告诉我下面提到的代码是用哪种语言编写的。该文件被命名为 xxxx.tpl

Can anyone please tell me in which language the below mentioned code is written. The file is named as xxxx.tpl

<div id="c-content">       
            <div id="list-wrap">
              <h1 class="pageHead">[{$search_head}]</h1>
                [{block name="search_results"}]
                [{if $oView->getArticleCount() }]
                  <div class="listRefine clear bottomRound">
                      [{block name="search_top_listlocator"}]
                      [{include file="widget/locator/listlocator.tpl"  locator=$oView->getPageNavigationLimitedTop() listDisplayType=true itemsPerPage=true sort=true }]
                      [{/block}]
                  </div>
                [{else}]
                  <div>[{ oxmultilang ident="PAGE_SEARCH_SEARCH_NOITEMSFOUND" }]</div>
                [{/if}]
                [{if $oView->getArticleList() }]
                  [{foreach from=$oView->getArticleList() name=search item=product}]
                    [{include file="widget/product/list.tpl" type=$oView->getListDisplayType() listId="searchList" products=$oView->getArticleList() showMainLink=true }]
                  [{/foreach}]
                [{/if}]
                [{if $oView->getArticleCount() }]
                  [{include file="widget/locator/listlocator.tpl" locator=$oView->getPageNavigationLimitedBottom() place="bottom"}]
                [{/if}]
                [{/block}]
              [{ insert name="oxid_tracker" title=$template_title }]

            </div>

.tpl文件用于smarty,它是一个模板系统。

您可以在www.smarty.net

上查看详情

HTML + Smarty V2 使用自定义分隔符 [{...}] 而不是常规的 smarty 分隔符 {...}