mirror of
https://github.com/e107inc/e107.git
synced 2025-08-17 20:01:47 +02:00
Deprecate noTableRender from template files - send template name to tablerender() $mode instead for less confusion and consistent logic.
This commit is contained in:
@@ -6,20 +6,14 @@
|
||||
|
||||
$MENU_TEMPLATE['default']['start'] = '';
|
||||
$MENU_TEMPLATE['default']['body'] = '{CMENUBODY}';
|
||||
$MENU_TEMPLATE['default']['noTableRender'] = false; // XXX Let the theme decide.
|
||||
|
||||
$MENU_TEMPLATE['button']['start'] = '<div class="cpage-menu">';
|
||||
$MENU_TEMPLATE['button']['body'] = '{CMENUBODY}{CPAGEBUTTON}';
|
||||
$MENU_TEMPLATE['buttom-image']['end'] = '</div>';
|
||||
$MENU_TEMPLATE['button']['noTableRender'] = false;
|
||||
|
||||
$MENU_TEMPLATE['buttom-image']['start'] = '<div class="cpage-menu">';
|
||||
$MENU_TEMPLATE['buttom-image']['body'] = '{CMENUIMAGE}{CPAGEBUTTON}';
|
||||
$MENU_TEMPLATE['buttom-image']['end'] = '</div>';
|
||||
$MENU_TEMPLATE['buttom-image']['noTableRender'] = false;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
@@ -75,7 +75,7 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
|
||||
$PAGE_TEMPLATE['default']['end'] = '</div>';
|
||||
|
||||
// options per template - disable table render
|
||||
$PAGE_TEMPLATE['default']['noTableRender'] = false;
|
||||
// $PAGE_TEMPLATE['default']['noTableRender'] = false; //XXX Deprecated
|
||||
|
||||
// define different tablerender mode here
|
||||
$PAGE_TEMPLATE['default']['tableRender'] = 'cpage';
|
||||
@@ -91,7 +91,7 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
|
||||
';
|
||||
|
||||
$PAGE_TEMPLATE['custom']['end'] = '</div>';
|
||||
$PAGE_TEMPLATE['custom']['noTableRender'] = true;
|
||||
// $PAGE_TEMPLATE['custom']['noTableRender'] = true; //XXX Deprecated
|
||||
$PAGE_TEMPLATE['custom']['tableRender'] = '';
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user