Changeset 798


Ignore:
Timestamp:
05/17/11 09:42:02 (12 months ago)
Author:
r2
Message:

пагинация в "последних материалах"

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/mod_latest/ajax/latest.php

    r782 r798  
    131131        $smarty->assign('is_con', $is_con); 
    132132        $smarty->assign('module_id', $module_id); 
    133         $smarty->assign('pagebar', cmsPage::getPagebar($total_page, $page, $perpage, 'javascript:conPage(%page%, '.$module_id.')')); 
     133        $smarty->assign('pagebar_module', cmsPage::getPagebar($total_page, $page, $perpage, 'javascript:conPage(%page%, '.$module_id.')')); 
    134134        $smarty->display('mod_latest.tpl');                      
    135135        $html = ob_get_clean(); 
  • trunk/modules/mod_latest/module.php

    r782 r798  
    9595                } 
    9696                 
    97                         $smarty = $inCore->initSmarty('modules', 'mod_latest.tpl');                      
    98                         $smarty->assign('articles', $articles); 
    99                         $smarty->assign('rssid', $rssid); 
     97        $smarty = $inCore->initSmarty('modules', 'mod_latest.tpl'); 
     98        $smarty->assign('articles', $articles); 
     99        $smarty->assign('rssid', $rssid); 
     100 
    100101                if ($cfg['is_pag']) { 
    101                         $smarty->assign('pagebar', cmsPage::getPagebar($total_page, $page, $perpage, 'javascript:conPage(%page%, '.$module_id.')')); 
     102                        $smarty->assign('pagebar_module', cmsPage::getPagebar($total_page, $page, $perpage, 'javascript:conPage(%page%, '.$module_id.')')); 
    102103                } 
     104 
    103105                $smarty->assign('is_ajax', false); 
    104106                $smarty->assign('is_con', $is_con); 
    105107                $smarty->assign('module_id', $module_id); 
    106                         $smarty->assign('cfg', $cfg); 
    107                         $smarty->display('mod_latest.tpl');                      
     108        $smarty->assign('cfg', $cfg); 
     109        $smarty->display('mod_latest.tpl'); 
    108110                         
    109111                return true; 
  • trunk/templates/_default_/modules/mod_latest.tpl

    r539 r798  
    3232        </div> 
    3333{/if} 
    34 {if $pagebar} 
    35     <div class="mod_latest_pagebar">{$pagebar}</div> 
     34{if $pagebar_module} 
     35    <div class="mod_latest_pagebar">{$pagebar_module}</div> 
    3636{/if} 
    3737{if !$is_ajax}</div>{/if} 
Note: See TracChangeset for help on using the changeset viewer.