XPressME Integration Kit

Trac

Changeset 109 for trunk/include


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

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

Location:
trunk/include
Files:
2 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'; 
  • trunk/include/xpress_templates_make.php

    r102 r109  
    7676                'recent_posts_content_block.html', 
    7777                'recent_posts_list_block.html', 
     78                'calender_block.html', 
     79                'popular_posts_block.html', 
     80                'index.html', 
    7881        ); 
    7982        foreach($temp_list as $ck_file){ 
Note: See TracChangeset for help on using the changeset viewer.