Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
88 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
third_party/structure_channel/libraries/structure_channel_pagination.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | ||
|
||
/** | ||
* ExpressionEngine Structure Channel Pagination Class | ||
* | ||
* @package ExpressionEngine | ||
* @subpackage Structure Channel | ||
* @category Pagination | ||
* @author Mark Croxton (mcroxton@hallmark-design.co.uk) | ||
* @link http://hallmark-design.co.uk | ||
*/ | ||
|
||
class Structure_channel_pagination extends CI_Pagination { | ||
|
||
public function __construct($pagination_param = 'p') | ||
{ | ||
$this->EE =& get_instance(); | ||
parent::__construct(); | ||
|
||
$this->query_string_segment = $pagination_param; | ||
$this->page_query_string = TRUE; | ||
} | ||
|
||
// -------------------------------------------------------------------- | ||
|
||
/** | ||
* Create's an array of pagination links including the first, previous, | ||
* next, and last page links | ||
* | ||
* @return array Associative array ready to go straight into EE's | ||
* template parser | ||
*/ | ||
public function create_link_array() | ||
{ | ||
$this->prefix = ''; | ||
return parent::create_link_array(); | ||
} | ||
} | ||
// END Structure_channel_pagination class | ||
|
||
/* End of file Structure_channel_pagination.php */ | ||
/* Location: ./system/expressionengine/third_party/structure_channel/libraries/Structure_channel_pagination.php */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.