mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Switch 'help' and 'custom config' tab on theme configuration.
Added 'save options' button on custom config tab.
This commit is contained in:
@@ -1134,17 +1134,16 @@ class themeHandler
|
|||||||
<ul class='nav nav-tabs'>
|
<ul class='nav nav-tabs'>
|
||||||
<li class='active'><a data-toggle='tab' href='#core-thememanager-configure'>".LAN_CONFIGURE."</a></li>";
|
<li class='active'><a data-toggle='tab' href='#core-thememanager-configure'>".LAN_CONFIGURE."</a></li>";
|
||||||
|
|
||||||
if($this->themeConfigObj && call_user_func(array(&$this->themeConfigObj, 'help')))
|
|
||||||
{
|
|
||||||
$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)
|
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 .= "<li><a data-toggle='tab' href='#core-thememanager-customconfig'>".LAN_CUSTOM."</a></li>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->themeConfigObj && call_user_func(array(&$this->themeConfigObj, 'help')))
|
||||||
|
{
|
||||||
|
$text .= "<li><a data-toggle='tab' href='#core-thememanager-help'>".LAN_HELP."</a></li>\n";
|
||||||
|
}
|
||||||
|
|
||||||
$text .= "</ul>
|
$text .= "</ul>
|
||||||
<div class='tab-content'>
|
<div class='tab-content'>
|
||||||
@@ -1432,6 +1431,26 @@ class themeHandler
|
|||||||
".$this->renderThemeConfig()."
|
".$this->renderThemeConfig()."
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<div class='center buttons-bar'>";
|
||||||
|
|
||||||
|
if($mode == 2) // admin
|
||||||
|
{
|
||||||
|
$mainid = "selectmain[".$theme['id']."]";
|
||||||
|
$text .= $this->frm->admin_button('submit_adminstyle', TPVLAN_35, 'update');
|
||||||
|
//$text .= $this->frm->admin_button($mainid, TPVLAN_10, 'other');
|
||||||
|
|
||||||
|
}
|
||||||
|
else // main
|
||||||
|
{
|
||||||
|
$adminid = "selectadmin[".$theme['id']."]";
|
||||||
|
$text .= $this->frm->admin_button('submit_style', TPVLAN_35, 'update');
|
||||||
|
//$text .= $this->frm->admin_button($adminid, TPVLAN_32, 'other');
|
||||||
|
}
|
||||||
|
|
||||||
|
$text .= "<input type='hidden' name='curTheme' value='".$theme['path']."' />";
|
||||||
|
|
||||||
|
$text .= "</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
\n";
|
\n";
|
||||||
|
Reference in New Issue
Block a user