- Timestamp:
- Mar 17, 2010, 3:27:24 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_popular_posts_block_theme.php
r552 r554 171 171 $wp_rewrite->init(); 172 172 } 173 usort($data_array, "post_views_cmp"); 174 if (!empty($disp_count)){ 175 $data_array = array_slice($data_array,0,$disp_count); 176 } 177 178 $item_no = 0; 179 foreach ($data_array as $data) { 180 $block['contents']['item'.$item_no] = $data; 181 $item_no++; 182 } 183 $block['data_count'] = $item_no; 184 } else { 185 $block['err_message'] = __('This blog is not set to the multi blog.', 'xpress'); 173 186 } 174 175 usort($data_array, "post_views_cmp");176 if (!empty($disp_count)){177 $data_array = array_slice($data_array,0,$disp_count);178 }179 180 $item_no = 0;181 foreach ($data_array as $data) {182 $block['contents']['item'.$item_no] = $data;183 $item_no++;184 }185 $block['data_count'] = $item_no;186 187 187 return $block ; 188 188 } -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_recent_comments_block_theme.php
r543 r554 116 116 $wp_rewrite->init(); 117 117 } // end of foreach 118 usort($comment_array, "the_comment_time_cmp"); 119 if (!empty($disp_count)){ 120 $comment_array = array_slice($comment_array,0,$disp_count); 121 } 122 123 $item_no = 0; 124 foreach ($comment_array AS $comment) { 125 $block['contents']['item'.$item_no] = $comment; 126 $item_no++; 127 } 128 $block['data_count'] = $item_no; 129 } else { 130 $block['err_message'] = __('This blog is not set to the multi blog.', 'xpress'); 118 131 } 119 usort($comment_array, "the_comment_time_cmp");120 if (!empty($disp_count)){121 $comment_array = array_slice($comment_array,0,$disp_count);122 }123 124 $item_no = 0;125 foreach ($comment_array AS $comment) {126 $block['contents']['item'.$item_no] = $comment;127 $item_no++;128 }129 $block['data_count'] = $item_no;130 132 131 133 return $block ;
Note: See TracChangeset
for help on using the changeset viewer.