XPressME Integration Kit

Trac

Changeset 49 for trunk/wp-content


Ignore:
Timestamp:
Dec 27, 2008, 12:29:06 PM (16 years ago)
Author:
toemon
Message:

コメントブロックにsmarty変数 data_countをアサイン
ブロックに表示されるコメント数を取得、主にテンプレート側でデータ無し時の処理を書くときに使用
(data_countが 0 のときは「コメントがありません」を表示等

Location:
trunk/wp-content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/plugins/xpressme/include/custom_functions.php

    r46 r49  
    203203                require_once $block_theme_file; 
    204204                $block_render = $call_theme_function_name($options);            //The block name and the called function name should be assumed to be the same name.                     
    205                 xpress_block_cache_write($mydirname,$cache_title. $blockID, $block_render); 
     205                $xml['block'] = $block_render; 
     206                xpress_block_cache_write($mydirname,$cache_title. $blockID, $xml); 
    206207        } 
    207208} 
  • trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php

    r46 r49  
    9494                                $item_no++; 
    9595                        } 
     96                        $block['data_count'] = $item_no;  //xml unserialise error 
    9697                } 
    9798        } 
Note: See TracChangeset for help on using the changeset viewer.