XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 16, 2009, 6:17:13 PM (15 years ago)
Author:
toemon
Message:

カレンダーブロック、人気記事リストの実装、インデックスページテンプレート実装

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/xpress_render.php

    r96 r109  
    9999function xpress_render($contents){ 
    100100        global $xoops_config , $xoopsTpl; 
     101        $mydirname = basename(dirname(dirname(__FILE__))); 
    101102        include $xoops_config->xoops_root_path ."/header.php"; 
    102103        $page_title = $GLOBALS["xoopsModule"]->getVar("name")." ".wp_title('»', false); 
     
    104105        $xoopsTpl->assign('xoops_pagetitle', $page_title); 
    105106        $xoopsTpl->assign('xpress_body_contents', get_body($contents)); 
    106         echo get_body($contents); 
     107        $templates_file = 'db:'.$mydirname. '_index.html'; 
     108        echo $xoopsTpl->fetch( $templates_file ) ; 
    107109        require_once( ABSPATH .'/include/xpress_breadcrumbs.php' ); 
    108110        include $xoops_config->xoops_root_path . '/footer.php'; 
Note: See TracChangeset for help on using the changeset viewer.