Changeset 49
- Timestamp:
- Dec 27, 2008, 12:29:06 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/xpress_block_render.php
r46 r49 116 116 // xpress_block_cache_write($mydirname,$cache_title. $blockID, $block); 117 117 } else { 118 $block = xpress_block_cache_read($mydirname,$cache_title. $blockID); 118 $xml = xpress_block_cache_read($mydirname,$cache_title. $blockID); 119 $block = $xml['block']; 119 120 } 120 121 return $block; -
trunk/templates/blocks/recent_comments_block.html
r44 r49 1 <{* ************************** usage **************************** 2 The template tag of the following list can be used. 3 <{$block.data_count}> 4 <{$content.from_auther_to_post}> 5 <{$content.comment_ID}> 6 <{$content.comment_post_ID}> 7 <{$content.comment_date}> 8 <{$content.comment_date_time}> 9 <{$content.comment_content}> 10 <{$content.comment_excerpt}> 11 <{$content.comment_link}> 12 <{$content.comment_title}> 13 <{$content.comment_title_link}> 14 <{$content.post_link}> 15 <{$content.post_title}> 16 <{$content.post_title_link}> 17 <{$content.author_link}> 18 <{$content.author_name}> 19 <{$content.author_name_link}> 20 <{$content.comment_type}> 21 ************************* End of usage ************************ *}> 22 <{* Start Template *}> 23 1 24 <ul class="xpress_recent_comments"> 2 <!-- The template tag of the following list can be used. 3 <{$content.from_auther_to_post}> 4 <{$content.comment_ID}> 5 <{$content.comment_post_ID}> 6 <{$content.comment_date}> 7 <{$content.comment_date_time}> 8 <{$content.comment_content}> 9 <{$content.comment_excerpt}> 10 <{$content.comment_link}> 11 <{$content.comment_title}> 12 <{$content.comment_title_link}> 13 <{$content.post_link}> 14 <{$content.post_title}> 15 <{$content.post_title_link}> 16 <{$content.author_link}> 17 <{$content.author_name}> 18 <{$content.author_name_link}> 19 <{$content.comment_type}> 20 --> 21 25 <{$block.data_count}> 22 26 <{foreach from=$block.contents item=content}> 23 27 <li> -
trunk/wp-content/plugins/xpressme/include/custom_functions.php
r46 r49 203 203 require_once $block_theme_file; 204 204 $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); 206 207 } 207 208 } -
trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php
r46 r49 94 94 $item_no++; 95 95 } 96 $block['data_count'] = $item_no; //xml unserialise error 96 97 } 97 98 }
Note: See TracChangeset
for help on using the changeset viewer.