XPressME Integration Kit

Trac


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

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

File:
1 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} 
Note: See TracChangeset for help on using the changeset viewer.