Changeset 554 for trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_popular_posts_block_theme.php
- Timestamp:
- Mar 17, 2010, 3:27:24 PM (14 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.