XPressME Integration Kit

Trac

Changeset 109


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

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

Location:
trunk
Files:
7 added
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/blocks/recent_comments_block.php

    r100 r109  
    2121                $disp_length = empty( $options[2] ) ? '30' : $options[2] ; 
    2222            $selected = array_slice($options,3); // get allowed cats 
    23                 $this_template = empty( $options[4] ) ? 'db:'.$mydirname.'_block_recent_comments.html' : trim( $options[4] ); 
     23                $this_template = empty( $options[4] ) ? 'db:'.$mydirname.'_recent_comments_block.html' : trim( $options[4] ); 
    2424                $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    2525 
  • trunk/blocks/recent_posts_content_block.php

    r100 r109  
    2323                $tag_select = $options[4] ; 
    2424            $selected = array_slice($options,5); // get allowed cats 
    25                 $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_block_recent_posts_content.html' : trim( $options[5] ); 
     25                $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_content_block.html' : trim( $options[5] ); 
    2626 
    2727                $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
  • trunk/blocks/recent_posts_list_block.php

    r100 r109  
    2222                $tag_select = $options[4] ; 
    2323                $selected = array_slice($options,5); // get allowed cats 
    24                 $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_block_posts.html' : trim( $options[6] ); 
     24                $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[6] ); 
    2525                $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    2626                 
  • 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){ 
  • trunk/language/ja_utf8/blocks.php

    r100 r109  
    2222        define("_MB_XPRESS_BLOCK_CACHE_ERR","キャッシュが存在しません。<br />最初に%sモジュールにアクセスしてください。"); 
    2323 
     24// calender              
     25        define("_MB_XPRESS_SUN_COLOR","日曜日の表示色"); 
     26        define("_MB_XPRESS_SAT_COLOR","土曜日の表示色"); 
     27         
     28// popular               
     29        define("_MB_MONTH_RANGE","指定月数内のものを表示(0;指定なし)"); 
    2430} 
    2531?> 
  • trunk/language/ja_utf8/modinfo.php

    r107 r109  
    2020        define("_MI_XPRESS_BLOCK_CONTENT","最近の記事内容"); 
    2121        define("_MI_XPRESS_BLOCK_POSTS","最近の記事"); 
     22        define("_MI_XPRESS_BLOCK_CALENDER","カレンダー"); 
     23        define("_MI_XPRESS_BLOCK_POPULAR","人気記事リスト"); 
    2224         
    2325        // Notify Categories 
  • trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php

    r104 r109  
    88        $disp_length = empty( $options[2] ) ? '30' : $options[2] ; 
    99        $selected = array_slice($options,3); // get allowed cats 
    10         $this_template = empty( $options[4] ) ? 'db:'.$mydirname.'_block_comments.html' : trim( $options[4] ); 
     10        $this_template = empty( $options[4] ) ? 'db:'.$mydirname.'_recent_comments_block.html' : trim( $options[4] ); 
    1111//      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    1212        $mydirpath = get_xpress_dir_path(); 
  • trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php

    r95 r109  
    1010        $tag_select = $options[4] ; 
    1111    $selected = array_slice($options,5); // get allowed cats 
    12         $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_block_content.html' : trim( $options[6] ); 
     12        $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_content_block.html' : trim( $options[6] ); 
    1313//      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    1414        $mydirpath = get_xpress_dir_path(); 
  • trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php

    r100 r109  
    88        $tag_select = $options[4] ; 
    99        $selected = array_slice($options,5); // get allowed cats 
    10         $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_block_posts.html' : trim( $options[6] ); 
     10        $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[6] ); 
    1111//      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    1212        $mydirpath = get_xpress_dir_path(); 
  • trunk/xoops_version.php

    r108 r109  
    132132        'func_num'              => 3,    
    133133); 
     134$modversion['blocks'][4] = array( 
     135        'file'                  => 'calender_block.php' , 
     136        'name'                  => constant('_MI_XPRESS_BLOCK_CALENDER') , 
     137        'description'   => '' , 
     138        'show_func'     => "b_". $mydirname . "_calender_show" , 
     139        'edit_func'     => "b_". $mydirname . "_calender_edit" , 
     140        'options'               => $mydirname. '|#DB0000|#004D99' , 
     141        'can_clone'             => false , 
     142        'func_num'              => 4, 
     143); 
     144$modversion['blocks'][5] = array( 
     145        'file'                  => 'popular_posts_block.php' , 
     146        'name'                  => constant('_MI_XPRESS_BLOCK_POPULAR') , 
     147        'description'   => '' , 
     148        'show_func'     => "b_". $mydirname . "_popular_show" , 
     149        'edit_func'     => "b_". $mydirname . "_popular_edit" , 
     150        'options'               => $mydirname. '|10|0||0' , 
     151        'can_clone'             => true , 
     152        'func_num'              => 5,    
     153); 
    134154 
    135155// Notification 
Note: See TracChangeset for help on using the changeset viewer.