public function theme_monthly_archives_links_list( $theme, $full_names = TRUE, $show_counts = TRUE, $type = 'entry', $status = 'published' )
{
$results = Posts::get( array( 'content_type' => $type, 'status' => $status, 'month_cts' => 1 ) );
$archives[] = '
';
foreach ( $results as $result ) {
// what format do we want to show the month in?
if( $full_names ) {
$display_month = HabariDateTime::date_create()->set_date( $result->year, $result->month, 1)->get( 'F' );
}
else {
$display_month = HabariDateTime::date_create()->set_date( $result->year, $result->month, 1)->get( 'M' );
}
// do we want to show the count of posts?
if ( $show_counts ) {
$count = ' (' . $result->ct . ')';
}
else {
$count = '';
}
$archives[] = '- ';
$archives[] = '' . $display_month . ' ' . $result->year . ' ' . $count . '';
$archives[] = '
';
}
$archives[] = '
';
return implode( "\n", $archives );
}