1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Issue #2000 Enable news category to determine news category default template. Admin area completed. Frontend still to come.

This commit is contained in:
Cameron
2017-09-28 09:35:56 -07:00
parent a8a49f5aad
commit 229f0486aa
3 changed files with 27 additions and 3 deletions

View File

@@ -5496,7 +5496,21 @@ class e_form
$where = vartrue($parms['area'], 'front'); //default is 'front'
$filter = varset($parms['filter']);
$merge = vartrue($parms['merge']) ? true : false;
if($tmp = e107::getTemplateInfo($location,$ilocation, null,true,$merge)) // read xxxx_INFO array from template file.
{
$opt = array();
foreach($tmp as $k=>$inf)
{
$opt[$k] = $inf['title'];
}
return vartrue($parms['pre'],'').$this->select($key,$opt,$value,$parms).vartrue($parms['post'],'');
}
$layouts = e107::getLayouts($location, $ilocation, $where, $filter, $merge, true);
if(varset($parms['default']) && !isset($layouts[0]['default']))
{
$layouts[0] = array('default' => $parms['default']) + $layouts[0];