mirror of
https://github.com/e107inc/e107.git
synced 2025-07-16 20:41:27 +02:00
Removed global $style from tablerender()
This commit is contained in:
@@ -23,12 +23,19 @@ define('COMMENTOFFSTRING', '');
|
|||||||
|
|
||||||
define('PRE_EXTENDEDSTRING', '<br />');
|
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;
|
$type = $style;
|
||||||
if(empty($caption))
|
if(empty($caption))
|
||||||
@@ -42,6 +49,18 @@ function tablestyle($caption, $text, $mode='')
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
if($id == 'wm') // Example - If rendered from 'welcome message'
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if($id == 'featurebox') // Example - If rendered from 'featurebox'
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
if($style == 'jumbotron')
|
if($style == 'jumbotron')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user