Moved acp template to adm/style/portal/

This commit is contained in:
Marc Alexander
2010-09-12 18:46:17 +00:00
parent df162ac76c
commit dbde96b7ac
5 changed files with 15 additions and 4 deletions

View File

@@ -39,8 +39,6 @@ class acp_portal
$form_key = 'acp_portal'; $form_key = 'acp_portal';
add_form_key($form_key); add_form_key($form_key);
// @todo: add a way to show custom HTML files, instead of the standard board3 portal one, on the settings page of the modules
/** /**
* Validation types are: * Validation types are:
@@ -172,7 +170,15 @@ class acp_portal
trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link(($module_id) ? append_sid("{$phpbb_root_path}/adm/index.$phpEx", 'i=portal&mode=modules') : $this->u_action)); trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link(($module_id) ? append_sid("{$phpbb_root_path}/adm/index.$phpEx", 'i=portal&mode=modules') : $this->u_action));
} }
$this->tpl_name = 'acp_portal_config'; // show custom HTML files on the settings page of the modules instead of the standard board3 portal one, if chosen by module
if(!isset($c_class->custom_acp_tpl))
{
$this->tpl_name = 'portal/acp_portal_config';
}
else
{
$this->tpl_name = 'portal/' . $c_class->custom_acp_tpl;
}
$this->page_title = $display_vars['title']; $this->page_title = $display_vars['title'];
$template->assign_vars(array( $template->assign_vars(array(
@@ -470,7 +476,7 @@ class acp_portal
$db->sql_freeresult($result); $db->sql_freeresult($result);
} }
$this->tpl_name = 'acp_portal_modules'; $this->tpl_name = 'portal/acp_portal_modules';
$this->page_title = 'ACP_PORTAL_MODULES'; $this->page_title = 'ACP_PORTAL_MODULES';
break; break;
default: default:

View File

@@ -45,6 +45,11 @@ class portal_main_menu_module
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_main_menu_module'; var $language = 'portal_main_menu_module';
/**
* custom acp template
* file must be in "adm/style/portal/"
*/
function get_template_side($module_id) function get_template_side($module_id)
{ {