Pastoid

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

This paste was last updated on December 14, 2009 at 7:30 pm.

Pasted Coderaw

  /**
   * contructs a ul of the popular posts (technically, entries with higher views)
   */
   public function popular_posts()
   {
     $posts = Posts::get(array(
       'content_type' => 'entry',
       'has:info' => 'views',
       'orderby' => 'info_views_value DESC',
       'limit' => 5
     ));
     $out = "<ul>\n";
     foreach ($posts as $post) {
       $out .= '<li><a href="' . $post->permalink . '">' . $post->title . "</a></li>\n";
     }
     $out .= '</ul>';
     return $out;
   }

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 14
drunkenmonkey.org 2
Is this paste spam?
<Hide