mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 23:26:41 +02:00
featurebox missing counter
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* Copyright (c) e107 Inc 2009 - e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
* Copyright (c) e107 Inc 2009 - e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||||
* $Id: e_shortcode.php,v 1.9 2009-12-11 14:33:31 secretr Exp $
|
* $Id: e_shortcode.php,v 1.10 2009-12-11 14:38:26 secretr Exp $
|
||||||
*
|
*
|
||||||
* Featurebox shortcode batch class - shortcodes available site-wide. ie. equivalent to multiple .sc files.
|
* Featurebox shortcode batch class - shortcodes available site-wide. ie. equivalent to multiple .sc files.
|
||||||
*/
|
*/
|
||||||
@@ -272,11 +272,16 @@ class featurebox_shortcodes // must match the plugin's folder name. ie. [PLUGIN_
|
|||||||
$ret .= $node->setParam('counter', $counter)
|
$ret .= $node->setParam('counter', $counter)
|
||||||
->setParam('cols', $cols)
|
->setParam('cols', $cols)
|
||||||
->setParam('col_counter', $col_counter)
|
->setParam('col_counter', $col_counter)
|
||||||
|
->setParam('cols_counter', $cols_counter)
|
||||||
->setParam('limit', $category->get('fb_category_limit'))
|
->setParam('limit', $category->get('fb_category_limit'))
|
||||||
->setParam('total', $total)
|
->setParam('total', $total)
|
||||||
->setCategory($category)
|
->setCategory($category)
|
||||||
->toHTML($tmpl_item);
|
->toHTML($tmpl_item);
|
||||||
|
|
||||||
|
if($cols == $col_counter)
|
||||||
|
{
|
||||||
|
$cols_counter++;
|
||||||
|
}
|
||||||
|
|
||||||
$counter++;
|
$counter++;
|
||||||
$col_counter++;
|
$col_counter++;
|
||||||
|
Reference in New Issue
Block a user