Pastoid

The page you are looking at now is at this URL: http://pastoid.com/al7

This paste was last updated on February 5, 2009 at 8:56 am.

Pasted Coderaw

	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 );
	}
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 125
pastoid.com 12
search.live.com 1
Is this paste spam?
<Hide