mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Closes #515 - Moved custom theme configuration to separate tab
This commit is contained in:
@@ -1139,6 +1139,13 @@ class themeHandler
|
||||
$text .= "<li><a data-toggle='tab' href='#core-thememanager-help'>".LAN_HELP."</a></li>\n";
|
||||
}
|
||||
|
||||
|
||||
if($this->themeConfigObj && call_user_func(array(&$this->themeConfigObj, 'config')) && $mode == 1)
|
||||
{
|
||||
$text .= "<li><a data-toggle='tab' href='#core-thememanager-customconfig'>".LAN_CUSTOM."</a></li>\n";
|
||||
}
|
||||
|
||||
|
||||
$text .= "</ul>
|
||||
<div class='tab-content'>
|
||||
<div class='tab-pane active' id='core-thememanager-configure'>
|
||||
@@ -1381,11 +1388,12 @@ class themeHandler
|
||||
$text .= "</table></td></tr>";
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
if($mode == 1)
|
||||
{
|
||||
$text .= $this->renderThemeConfig();
|
||||
}
|
||||
*/
|
||||
|
||||
$text .= "</table>
|
||||
|
||||
@@ -1412,6 +1420,19 @@ class themeHandler
|
||||
</div>
|
||||
|
||||
<div class='tab-pane' id='core-thememanager-help'>".$this->renderThemeHelp()."</div>
|
||||
|
||||
<div class='tab-pane' id='core-thememanager-customconfig'>
|
||||
<table class='table adminform'>
|
||||
<colgroup>
|
||||
<col class='col-label' />
|
||||
<col class='col-control' />
|
||||
<col class='col-control' />
|
||||
</colgroup>
|
||||
|
||||
".$this->renderThemeConfig()."
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
\n";
|
||||
|
||||
|
@@ -306,6 +306,7 @@ define("LAN_AUTHOR", "Author");
|
||||
define("LAN_CATEGORY", "Category");
|
||||
|
||||
define("LAN_HELP", "Help");
|
||||
define("LAN_CUSTOM", "Custom configuration");
|
||||
define("LAN_MENULAYOUT", "Menu Layout");
|
||||
define("LAN_MEDIAMANAGER", "Media Manager");
|
||||
|
||||
|
Reference in New Issue
Block a user