/** * list the containers * * @return void * @author Andy Bennett */ private function listing() { $data = array('action' => 'edit', 'name' => null, 'role' => User::instance()->get_role()); Event::run('steamcore.aclcheck', $data); $root = ORM::factory('pages_position')->where('lft', 0)->find(); $xml = $root->render_descendants('pages', false)->render(); $l = xsl::translate_string($xml, 'page_plugins_list', array(), array('')); $c = View::factory('pages/page_plugins_list', array('list' => $l, 'controller' => 'page_plugins'))->render(); preg_match_all('/{pid=([0-9]+)}/', $c, $matches); $count = count($matches[0]); for ($i = 0; $i < $count; $i++) { $c = str_replace($matches[0][$i], plugins::page_plugins_admin($matches[1][$i]), $c); } $content = array(); $content['content'] = new stdClass(); $content['content']->title = 'Page Plugins'; $content['content']->copy = $c; Assets::instance()->add_css('/cache/css/display'); Assets::instance()->add_javascript('/cache/js/display'); $container = Container::instance('display')->render($content); Display::instance()->display($container); }