10 public $mActiveResource =
true;
12 public function __construct()
15 if (isset($initVars)) {
16 $this->mVars = $initVars;
19 $this->initVar(
'id', XOBJ_DTYPE_INT,
'',
true);
20 $this->initVar(
'name', XOBJ_DTYPE_STRING,
'',
true, 255);
21 $this->initVar(
'tplset_id', XOBJ_DTYPE_INT,
'0',
true);
22 $this->initVar(
'enable_select', XOBJ_DTYPE_BOOL,
'0',
true);
23 $initVars=$this->mVars;
26 public function loadPackage()
28 $themeDir = XOOPS_THEME_PATH .
'/' . $this->
get(
'name');
30 if (file_exists($mnfFile = $themeDir .
'/manifesto.ini.php')) {
32 $this->mPackage = $iniHandler->getAllConfig();
35 if (isset($this->mPackage[
'Manifesto'])) {
39 if (isset($this->mPackage[
'Manifesto'], $this->mPackage[
'Manifesto'][
'Depends'])) {
40 $this->mActiveResource = (
'Legacy_RenderSystem' === $this->mPackage[
'Manifesto'][
'Depends']);
43 $file = XOOPS_THEME_PATH .
'/' . $this->
get(
'name') .
'/theme.html';
44 $this->mActiveResource = file_exists($file);
48 public function isActiveResource()
50 return $this->mActiveResource;