/** returns raw content of layout page specified by first argument */ function wiki_fn_layout($args, $renderer_state) { $inc_page_name = array_shift($args); $inc_page = load_layout_page($inc_page_name); if ($inc_page !== null) { return wiki_include($inc_page, $args, true); } return '[[' . $inc_page_name . ']]'; }
function get_wiki_content() { if ($this->is_data_page) { return "[[" . $this->name . "]]"; } else { $layout_page = load_special_page(MW_SPECIAL_PAGE_UPLOAD); if ($layout_page !== null) { $link_prefix = strpos($this->mime_type, "image/") === 0 ? MW_LINK_NAME_PREFIX_IMAGE : MW_PAGE_NAME_PREFIX_DATA; return wiki_include($layout_page, array('download_link' => $link_prefix . $this->upload_name . ($this->revision != MW_REVISION_HEAD ? '$' . $this->revision : ''), 'filename' => $this->upload_name, 'mimetype' => $this->mime_type), false, false); } } }
function get_wiki_content() { $special_page = load_special_page(MW_SPECIAL_PAGE_USER); if ($special_page !== null) { return wiki_include($special_page, array('related_user' => $this->related_user, 'user_page_content' => $this->page->get_wiki_content()), false, false); } }