| 1 |
<?php |
<?php |
| 2 |
// $Id: pagination.module,v 1.1.2.19 2009/02/18 05:45:59 mundowen Exp $ |
// $Id: pagination.module,v 1.1.2.22 2009/02/21 02:47:36 mundowen Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file pagination.module |
* @file pagination.module |
| 259 |
$paging = $pg->getValue($node->type); |
$paging = $pg->getValue($node->type); |
| 260 |
$style = $pg->getStyle($node->type); |
$style = $pg->getStyle($node->type); |
| 261 |
$ignore = array_map('trim', explode(',', variable_get('pagination_ignore', '') ) ); |
$ignore = array_map('trim', explode(',', variable_get('pagination_ignore', '') ) ); |
| 262 |
|
$build = ($node->build_mode != NODE_BUILD_PRINT and $node->build_mode != NODE_BUILD_PREVIEW); |
| 263 |
|
|
| 264 |
if (!$teaser and $paging and $page !== 'show' and $node->build_mode != NODE_BUILD_PRINT and !in_array($node->nid, $ignore, true) ) { |
if (!$teaser and $paging and $page !== 'show' and $build and !in_array($node->nid, $ignore, true) ) { |
| 265 |
$pg->paginate($node->content['body']['#value'], $paging); |
$pg->paginate($node->content['body']['#value'], $paging); |
| 266 |
$node->content['body']['#value'] = $pg->getPage($page); |
$node->content['body']['#value'] = $pg->getPage($page); |
| 267 |
|
|