0
<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>
Phiter
  • 14,570
  • 14
  • 50
  • 84
Reshmi
  • 11
  • 4

2 Answers2

2

HTML + Smarty V2 with custom delimiters [{...}] instead of regular smarty delimiters {...}

Marat
  • 617
  • 5
  • 12
  • can I use pure php code in these files? – Reshmi Nov 10 '16 at 04:39
  • yes, you have to enable parsing php code in templates (somewhere in general shop settings) and then you can use php code this way: [{php}] echo "hello"; [{/php}] but most people would tell you not to use raw php in templates. – Marat Nov 10 '16 at 08:53
0

.tpl files are used in smarty, its a template system.

You can check details on www.smarty.net

Zubair Ahmed
  • 44
  • 11