mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Removed global $style from tablerender()
This commit is contained in:
parent
a2235cfd39
commit
86a2269f89
@ -23,12 +23,19 @@ define('COMMENTOFFSTRING', '');
|
||||
|
||||
define('PRE_EXTENDEDSTRING', '<br />');
|
||||
|
||||
|
||||
function tablestyle($caption, $text, $mode='')
|
||||
/**
|
||||
* @param string $caption
|
||||
* @param string $text
|
||||
* @param string $id : id of the current render
|
||||
* @param array $info : current style and other menu data.
|
||||
*/
|
||||
function tablestyle($caption, $text, $id='', $info=array())
|
||||
{
|
||||
global $style;
|
||||
// global $style; // no longer needed.
|
||||
|
||||
echo "<!-- tablestyle: style=".$style." mode=".$mode." -->\n\n";
|
||||
$style = $info['setStyle'];
|
||||
|
||||
echo "<!-- tablestyle: style=".$style." id=".$id." -->\n\n";
|
||||
|
||||
$type = $style;
|
||||
if(empty($caption))
|
||||
@ -42,6 +49,18 @@ function tablestyle($caption, $text, $mode='')
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
if($id == 'wm') // Example - If rendered from 'welcome message'
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
if($id == 'featurebox') // Example - If rendered from 'featurebox'
|
||||
{
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
if($style == 'jumbotron')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user