1
0
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:
Moc
2014-06-14 21:50:13 +02:00
parent 083c489b56
commit aa12c8d355
2 changed files with 23 additions and 1 deletions

View File

@@ -1138,6 +1138,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'>
@@ -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";

View File

@@ -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");