4 комментария

avatar
А block.videos.tpl и block.news.tpl можно глянуть?
avatar
block.news.tpl

{block 'block_title'}
{literal}
<style>
.indexnewssurl:hover {background:#1F2844;}
</style>
{/literal}

 
{/block}
<table class="containerindexnews" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto">
<tr><td class="containernews" valign="top">

{block 'block_content'}
    {$smarty.local.content }
{/block}


block.videos.tpl
{block 'block_title'}
{literal}
<style>
.indexvideosurl:hover {background:#11111A;}
</style>
{/literal}


 
{/block}
<td width="200px" valign="top">

{block 'block_contentindexvideos'}
    {$smarty.local.contentindexvideos }
{/block}

</td>
</tr>
</table>
avatar
Сделать третий блок.
В котором внутри Exec будет вот это.
$aResult = $this->PluginNews_Main_GetNewTopics($iPage, 25);
if ($aResult['count']) {
    $oViewer = $this->Viewer_GetLocalViewer();
    $oViewer->Assign('topics', $aResult['collection'], true);
    $sTextResult = $oViewer->Fetch(«component@activity.recent-newstwo»);
    $this->Viewer_Assign('sNewsHtml', $sTextResult, true);
}

$aResult = $this->PluginVideos_Main_GetVideoTopics($iPage, 8);
if ($aResult['count']) {
    $oViewer = $this->Viewer_GetLocalViewer();
    $oViewer->Assign('topics', $aResult['collection'], true);
    $sTextResult = $oViewer->Fetch(«component@activity.recent-videostwo»);
    $this->Viewer_Assign('sVideoHtml', $sTextResult, true);
}


Под него шаблон в котором
...
{sNewsHtml}
{sVideosHtml}
...
avatar
$aResultNews = $this->PluginNews_Main_GetNewTopics($iPage, 25);
if ($aResultNews['count']) {
    $oViewer = $this->Viewer_GetLocalViewer();
    $oViewer->Assign('topics', $aResultNews['collection'], true);
    $sTextResult = $oViewer->Fetch(«component@activity.recent-newstwo»);
    $this->Viewer_Assign('sNewsHtml', $sTextResult, true);
}

$aResultVideos = $this->PluginVideos_Main_GetVideoTopics($iPage, 8);
if ($aResultVideos['count']) {
    $oViewer = $this->Viewer_GetLocalViewer();
    $oViewer->Assign('topics', $aResultVideos['collection'], true);
    $sTextResult = $oViewer->Fetch(«component@activity.recent-videostwo»);
    $this->Viewer_Assign('sVideoHtml', $sTextResult, true);
}
Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.