Lines Matching defs:page

149      * Parses the instructions list of the page which contains the includes
163 $page = '';
192 foreach ($pages as $page) {
193 $this->_append_includeins($ins_inc, $page['id'], $flags);
218 foreach ($pages as $title => $page) {
219 $this->_append_includeins($ins_inc, $page['id'], $flags);
229 if ($mode == 'page' || $mode == 'section') {
230 $page = cleanID($this->_apply_macro($ins[$i][1][1][1]));
231 $perm = auth_quickaclcheck($page);
233 array_push($this->hasparts, $page);
240 resolve_pageid(getNS($scope), $page, $exists); // resolve shortcuts
242 $scope = $page;
245 if (!page_exists($page)) {
247 $ins[$i] = $this->_footer($page, $sect, '', $flags, 0);
252 $ins_inc = $this->_get_instructions($page, $sect, $mode, $lvl, $flags);
293 * Returns the converted instructions of a give page/section
297 function _get_instructions($page, $sect, $mode, $lvl, $flags)
299 $key = ($sect) ? $page . '#' . $sect : $page;
303 $ins = p_cached_instructions(wikiFN($page));
305 $this->_convert_instructions($ins, $lvl, $page, $sect, $flags);
311 * Converts instructions of the included page
323 function _convert_instructions(&$ins, $lvl, $page, $sect, $flags)
332 $this->_get_firstsec($ins, $page); // only first section
335 $ns = getNS($page);
426 $this->_permalink($ins[$idx], $page, $sect, $flags);
457 if ($flags['editbtn'] && (auth_quickaclcheck($page) >= AUTH_EDIT)) {
458 $this->_editbtn($ins, $page, $sect, $sect_title);
463 $ins[] = $this->_footer($page, $sect, $sect_title, $flags, $footer_lvl);
467 array_unshift($ins, array('plugin', array('include_div', array('open', $page))));
488 $ins_tmp[1][1][0] = 'page';
501 function _footer($page, $sect, $sect_title, $flags, $footer_lvl)
505 $footer[1] = array('mediasyntax_footer', array($page, $sect, $sect_title, $flags, $this->toplevel_id, $footer_lvl));
514 function _editbtn(&$ins, $page, $sect, $sect_title)
518 $editbtn[1] = array('mediasyntax_editbtn', array($page, $sect, $sect_title, $this->toplevel_id));
527 function _permalink(&$ins, $page, $sect, $flags)
530 $ins[1] = array('mediasyntax_header', array($ins[1][0], $ins[1][1], $page, $sect, $flags));
566 * Only display the first section of a page and a readmore link
570 function _get_firstsec(&$ins, $page)
581 $ins[] = array('internallink', array($page, $this->getLang('readmore')));