Smarty
{include file='header.tpl' noShowSystemMessage=true}
Возможно ли через смарти отключить wrapper и content из header на определённой странице? Или же придется дублировать header без блоков — content и wrapper?
{include file='header.tpl' noShowSystemMessage=true}
{$oTopic->getVideoContent()}
1,21,31… изображение
2,3,4; 22,23,24… 32,33,34… изображения
5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 изображений
var aRouter = new Array();
{foreach from=$aRouter key=sPage item=sPath}
aRouter['{$sPage}'] = '{$sPath}';
{/foreach}
{if $aUsersList}
{foreach from=$aUsersList item=oUserList}
{assign var="oSession" value=$oUserList->getSession()}
{assign var="oUserNote" value=$oUserList->getUserNote()}
{assign var="aUserFieldValues" value=$oUserList->getUserFieldValues(true,array('contact'))}
{assign var="oGeoTarget" value=$oUserList->getGeoTarget()}
{$oUserList->getProfileCountry()} -- {$oGeoTarget->getCountryId()}
{/foreach}
{/if}
user_list.tpl
необходимо использовать метод getUserFieldValues()
$_content = $template->source->content;
$_content = "\n\n<!-- START {$this->template->source->filepath}-->\n".$template->source->content."\n<!-- END {$this->template->source->filepath}-->\n";