mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Gallery pagination
This commit is contained in:
@@ -10,7 +10,13 @@ if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
|
||||
class gallery_shortcodes extends e_shortcode
|
||||
{
|
||||
{
|
||||
|
||||
public $total = 0;
|
||||
public $amount = 3;
|
||||
public $from = 0;
|
||||
public $curCat = null;
|
||||
|
||||
function sc_gallery_caption($parm='')
|
||||
{
|
||||
$text = "<a href='".e107::getParser()->replaceConstants($this->eParserVars['media_url'])."' rel='external shadowbox' >";
|
||||
@@ -46,5 +52,13 @@ class gallery_shortcodes extends e_shortcode
|
||||
return $text;
|
||||
}
|
||||
|
||||
function sc_gallery_nextprev($parm='')
|
||||
{
|
||||
$url = e_SELF."?cat=".$this->curCat."--AMP--frm=--FROM--";
|
||||
$parm = 'total='.$this->total.'&amount='.$this->amount.'¤t='.$this->from.'&url='.$url; // .'&url='.$url;
|
||||
$text .= e107::getParser()->parseTemplate("{NEXTPREV=".$parm."}");
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user