| @@ 378-387 (lines=10) @@ | ||
| 375 | if($args->tab_type == 'none' || $args->tab_type == '') |
|
| 376 | { |
|
| 377 | $items = array(); |
|
| 378 | foreach($content_items as $key => $val) |
|
| 379 | { |
|
| 380 | foreach($val as $k => $v) |
|
| 381 | { |
|
| 382 | $date = $v->get('regdate'); |
|
| 383 | $i=0; |
|
| 384 | while(array_key_exists(sprintf('%s%02d',$date,$i), $items)) $i++; |
|
| 385 | $items[sprintf('%s%02d',$date,$i)] = $v; |
|
| 386 | } |
|
| 387 | } |
|
| 388 | if($args->order_type =='asc') ksort($items); |
|
| 389 | else krsort($items); |
|
| 390 | $content_items = array_slice(array_values($items),0,$args->list_count*$args->page_count); |
|
| @@ 345-354 (lines=10) @@ | ||
| 342 | if($args->tab_type == 'none' || $args->tab_type == '') |
|
| 343 | { |
|
| 344 | $items = array(); |
|
| 345 | foreach($content_items as $key => $val) |
|
| 346 | { |
|
| 347 | foreach($val as $k => $v) |
|
| 348 | { |
|
| 349 | $date = $v->get('regdate'); |
|
| 350 | $i=0; |
|
| 351 | while(array_key_exists(sprintf('%s%02d',$date,$i), $items)) $i++; |
|
| 352 | $items[sprintf('%s%02d',$date,$i)] = $v; |
|
| 353 | } |
|
| 354 | } |
|
| 355 | if($args->order_type =='asc') ksort($items); |
|
| 356 | else krsort($items); |
|
| 357 | $content_items = array_slice(array_values($items),0,$args->list_count); |
|