Esempio n. 1
0
 function PeoplePage()
 {
     parent::ModulePage("pagepeople");
 }
Esempio n. 2
0
            } else {
                $type = '';
                foreach ($this->modules as $mtype => $module) {
                    if ($module->get_tree_subpath() != '' && Cms::path_start_with($parent_node->full_path, $module->get_tree_subpath(), true)) {
                        $type = $module->get_new_node_type($parent_node, $mtype);
                        break;
                    }
                }
            }
            if ($type == '') {
                return;
            }
            $node = new Node();
            $node->type = $type;
            $node->flags = Node::Visible | Node::UserChilds;
            $node->path = $parent_node->full_path . '/';
            $this->vars['content'] = $this->modules[$type]->render_editor($node);
        } elseif (strlen(_GET('module')) && strlen(_GET('item_id'))) {
            if (!array_key_exists(_GET('module'), $this->modules)) {
                return;
            }
            require_once CMS . 'modules/' . _GET('module') . '/admin.php';
            $class_name = $this->modules[_GET('module')];
            $module = new $class_name();
            $module->owner = $this;
            $this->vars['content'] = $module->render_nav_editor(_GET('item_id'));
        }
    }
}
$page = new ModulePage();
$page->process();