| 415 | | if ( $show_post_count ) |
| 416 | | $after = ' ('.$arcresult->posts.')' . $afterafter; |
| | 415 | if ( $show_post_count ) { |
| | 416 | if ( $show_post_count > 1 ) { |
| | 417 | $detail_counts=""; |
| | 418 | foreach( get_categories() as $categoria) { |
| | 419 | $howmanyincat=count(query_posts("year=$arcresult->year&monthnum=$arcresult->month&category_name=$categoria->cat_name")); |
| | 420 | if ($howmanyincat > 0) |
| | 421 | $detail_counts .= $howmanyincat . " " . $categoria->cat_name . ', '; |
| | 422 | } |
| | 423 | $detail_counts=substr($detail_counts, 0, -2); |
| | 424 | } |
| | 425 | if ( $show_post_count == 1 ) { |
| | 426 | $after = ' ('. $arcresult->posts . ')' . $afterafter; |
| | 427 | } else if ( $show_post_count == 2 ) { |
| | 428 | $after = ' ('. $detail_counts . ')' . $afterafter; |
| | 429 | } else { |
| | 430 | $after = ' ('.$arcresult->posts . ', ' . $detail_counts . ')' . $afterafter; |
| | 431 | } |
| | 432 | } |
| 436 | | if ($show_post_count) |
| 437 | | $after = ' ('.$arcresult->posts.')' . $afterafter; |
| | 452 | if ($show_post_count) { |
| | 453 | if ( $show_post_count > 1 ) { |
| | 454 | $detail_counts=""; |
| | 455 | foreach( get_categories() as $categoria) { |
| | 456 | $howmanyincat=count(query_posts("year=$arcresult->year&monthnum=$arcresult->month&category_name=$categoria->cat_name")); |
| | 457 | if ($howmanyincat > 0) |
| | 458 | $detail_counts .= $howmanyincat . " " . $categoria->cat_name . ', '; |
| | 459 | } |
| | 460 | $detail_counts=substr($detail_counts, 0, -2); |
| | 461 | } |
| | 462 | if ( $show_post_count == 1 ) { |
| | 463 | $after = ' ('. $arcresult->posts . ')' . $afterafter; |
| | 464 | } else if ( $show_post_count == 2 ) { |
| | 465 | $after = ' ('. $detail_counts . ')' . $afterafter; |
| | 466 | } else { |
| | 467 | $after = ' ('.$arcresult->posts . ', ' . $detail_counts . ')' . $afterafter; |
| | 468 | } |
| | 469 | } |