The page you are looking at now is at this URL: http://pastoid.com/arw
This paste was last updated on March 9, 2009 at 10:55 am.
// called in theme template like so: <?php $theme->monthly_archives_links_list(); ?> 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[] = '<ul class="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[] = '<li>'; $archives[] = '<a href="' . URL::get( 'display_entries_by_date', array( 'year' => $result->year, 'month' => $result->month ) ) . '" title="View entries in ' . $display_month . '/' . $result->year . '">' . $display_month . ' ' . $result->year . ' ' . $count . '</a>'; $archives[] = '</li>'; } $archives[] = '</ul>'; return implode( "\n", $archives ); }
| Referring Domain | Hits |
|---|---|
| Unknown Referer | 127 |
| pastoid.com | 12 |
| search.live.com | 1 |
Tip: Use Pastoid to shorten URLs with this bookmarklet: Pastoid This