1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Experimental - render variable accumulator.

This commit is contained in:
Cameron
2019-06-12 13:13:22 -07:00
parent 36b4c354eb
commit e5061e2c01
2 changed files with 12 additions and 2 deletions

View File

@@ -947,6 +947,7 @@ if (!class_exists('e107table', false))
private $uniqueId = null;
private $content = array();
private $contentTypes = array('header','footer','text','title','image', 'list');
public $renders = array(); // all render vars.
function __construct()
@@ -1044,6 +1045,8 @@ if (!class_exists('e107table', false))
*/
public function tablerender($caption, $text, $mode = 'default', $return = false)
{
$override_tablerender = e107::getSingleton('override', e_HANDLER.'override_class.php')->override_check('tablerender');
if ($override_tablerender)
@@ -1118,6 +1121,10 @@ if (!class_exists('e107table', false))
$options['menuCount'] = $this->eMenuCount;
$options['menuTotal'] = varset($this->eMenuTotal[$this->eMenuArea]);
$options['setStyle'] = $this->eSetStyle;
$options['caption'] = $caption;
$this->renders[] = $options;
if(is_object(vartrue($thm)))