mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Allow shortcodes and other areas to retrieve tablerender() custom content, style, uniqueId etc.
This commit is contained in:
43
class2.php
43
class2.php
@@ -973,7 +973,7 @@ if (!class_exists('e107table', false))
|
|||||||
*/
|
*/
|
||||||
public function setStyle($style)
|
public function setStyle($style)
|
||||||
{
|
{
|
||||||
$this->eSetStyle = $style;
|
$this->eSetStyle = (string) $style;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -988,8 +988,8 @@ if (!class_exists('e107table', false))
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set Advanced Menu content (beyond just $caption and $text)
|
* Set Advanced Page/Menu content (beyond just $caption and $text)
|
||||||
* @param string $type header|footer|text|title|image
|
* @param string $type header|footer|text|title|image|list
|
||||||
* @param string $val
|
* @param string $val
|
||||||
*/
|
*/
|
||||||
public function setContent($type, $val)
|
public function setContent($type, $val)
|
||||||
@@ -1003,6 +1003,43 @@ if (!class_exists('e107table', false))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the value of custom content
|
||||||
|
* @param string $type header|footer|text|title|image|list
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getContent($type='')
|
||||||
|
{
|
||||||
|
if(empty($type))
|
||||||
|
{
|
||||||
|
return $this->content;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->content[$type];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the current value of {SETSTYLE}
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function getStyle()
|
||||||
|
{
|
||||||
|
return $this->eSetStyle;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the currenty set uniqueId.
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function getUniqueId()
|
||||||
|
{
|
||||||
|
return $this->uniqueId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $caption string caption text
|
* @param $caption string caption text
|
||||||
|
Reference in New Issue
Block a user