優惠推廣

$output = '
    '; if ( $arcresults ) { $numarticles = count($arcresults); $column1 = round($numarticles/3); $column2 = round($column1*2); $counter = 0; $afterafter = $after; foreach ( (array) $arcresults as $arcresult ) { if($counter == $column1) { $output .= "
    "; } elseif($counter == $column2) { $output .= "
    "; } $url = get_month_link( $arcresult->year, $arcresult->month ); /* translators: 1: month name, 2: 4-digit year */ $text = sprintf(__('%s'), $wp_locale->get_month($arcresult->month)); $year_text = sprintf('
  • %d
  • ', $arcresult->year); if ( $show_post_count ) $after = ' ('.$arcresult->posts.')' . $afterafter; $output .= ( $arcresult->year != $temp_year ) ? $year_text : ''; $output .= get_archives_link($url, $text, $format, $before, $after); $temp_year = $arcresult->year; $counter ++; } $output .= '
'; }