Pastoid

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

This paste was last updated on March 10, 2009 at 12:00 pm.

Pasted Coderaw

// On entry.multiple.php
<div id="more_entries">
<h2><?php $theme->next_page_link('&laquo; Entrades anteriors'); ?>&nbsp;<?php $theme->prev_page_link('Next Entries &raquo;'); ?></h2>
</div>
 
//On theme.php, inside "public function add_template_vars()"
parent::add_template_vars();		
//visiting page/2, /3 will offset to the next page of posts in the sidebar
$page=Controller::get_var( 'page' );
$pagination=Options::get('pagination');
if ( $page == '' ) { $page= 1; }
$this->assign( 'more_posts', Posts::get(array ( 'status' => 'published','content_type' => 'entry','offset' => ($pagination)*($page), 'limit' => 5,  ) ) );
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 7
search.live.com 3
Is this paste spam?
<Hide