Я что то вообще ничего не понимаю. Куда его вставить. вот код шаблона куда я хочу вставить
<hr class='ipsHr'>
<section class='ipsType_normal ipsSpacer_both' >
{{if count($articles)}}
{{foreach $articles as $id => $record}}
{{if $id == 0}}
<div class='ipsGrid ipsGrid_collapsePhone'>
{template="entry" app="cms" location="database" group="category_2_column_first_featured" params="$record, $database, 0"}
</div>
{{else}}
{{if $id % 2}}
<div class='ipsGrid ipsGrid_collapsePhone cmsCategory2col'>
{{endif}}
{template="entry" app="cms" location="database" group="category_2_column_first_featured" params="$record, $database, $id"}
{{if $id % 2 == 0}}
</div>
{{endif}}
{{endif}}
{{endforeach}}
{{endif}}
</section>
{{if $database->featured_settings['pagination'] and ( $pagination['pages'] > 1 )}}
{template="pagination" app="core" location="global" group="global" params="$url, $pagination['pages'], $pagination['page'], $database->featured_settings['perpage'], TRUE, 'page'"}
{{endif}}