'array' => [
'add_stylesheets_inline' => { interface => 'add', hash_key => 'stylesheets_inline' },
'add_javascripts_inline' => { interface => 'add', hash_key => 'javascripts_inline' },
- 'sub_layouts',
- 'add_sub_layouts' => { interface => 'add', hash_key => 'sub_layouts' },
+ 'sub_layouts', => { interface => 'get_set_init' },
+ 'add_sub_layouts' => { interface => 'add', hash_key => 'sub_layouts' },
],
);
@{ $_[0]->{javascripts_inline} || [] };
}
+sub init_sub_layouts { [] }
+
#########################################
# Interface
-f "$css_path/$user_style/main.css") {
$css_path = "$css_path/$user_style";
} else {
- $css_path = "$css_path/lx-office-erp";
+ $css_path = "$css_path/kivitendo";
}
} else {
- $css_path = "$css_path/lx-office-erp";
+ $css_path = "$css_path/kivitendo";
}
$::myconfig{css_path} = $css_path; # needed for menunew, FIXME: don't do this here
my ($self) = @_;
return uniq map { $self->_find_javascript($_) }
- $self->use_javascript, map { $_->javascripts } $self->sub_layouts;
+ map({ $_->javascripts } $self->sub_layouts), $self->use_javascript;
}
sub _find_javascript {