Lines Matching refs:flags
71 $flags = $this->defaults;
79 $flags['footer'] = 1;
82 $flags['footer'] = 0;
86 $flags['firstsec'] = 1;
89 $flags['firstsec'] = 0;
93 $flags['noheader'] = 0;
96 $flags['noheader'] = 1;
100 $flags['editbtn'] = 1;
104 $flags['editbtn'] = 0;
107 $flags['permalink'] = 1;
110 $flags['permalink'] = 0;
113 $flags['redirect'] = 1;
116 $flags['redirect'] = 0;
119 $flags['link'] = 1;
122 $flags['link'] = 0;
125 $flags['user'] = 1;
128 $flags['user'] = 0;
131 $flags['comments'] = 1;
134 $flags['comments'] = 0;
137 $flags['linkbacks'] = 1;
140 $flags['linkbacks'] = 0;
143 $flags['tags'] = 1;
146 $flags['tags'] = 0;
149 $flags['date'] = 1;
152 $flags['date'] = 0;
155 $flags['mdate'] = 1;
158 $flags['mdate'] = 0;
161 $flags['indent'] = 1;
164 $flags['indent'] = 0;
167 $flags['linkonly'] = 1;
171 $flags['linkonly'] = 0;
174 $flags['inline'] = 1;
177 $flags['title'] = 1;
180 $flags['title'] = 0;
183 $flags['pageexists'] = 1;
186 $flags['pageexists'] = 0;
189 $flags['pageexists'] = 1;
190 $flags['linkonly'] = 1;
193 $flags['parlink'] = 1;
196 $flags['parlink'] = 0;
199 $flags['order'] = $value;
202 $flags['rsort'] = 0;
205 $flags['rsort'] = 1;
208 $flags['depth'] = max(intval($value), 0);
211 $flags['beforeeach'] = $value;
214 $flags['aftereach'] = $value;
217 $flags['readmore'] = 1;
220 $flags['readmore'] = 0;
223 $flags['exclude'] = $value;
229 $flags['linkonly'] = 0;
230 return $flags;
239 …function _get_instructions($page, $sect, $mode, $lvl, $flags, $root_id = null, $included_pages = a… argument
249 if ($flags['linkonly']) {
250 if (page_exists($page) || $flags['pageexists'] == 0) {
252 if ($flags['title'])
254 if($flags['parlink']) {
277 … $this->_convert_instructions($ins, $lvl, $page, $sect, $flags, $root_id, $included_pages);
295 …function _convert_instructions(&$ins, $lvl, $page, $sect, $flags, $root_id, $included_pages = arra… argument
303 if($flags['firstsec']) {
304 $this->_get_firstsec($ins, $page, $flags); // only first section
331 if((!$no_header) && $flags['noheader']) {
344 if ($flags['inline'])
350 if ($flags['inline'])
370 if (!$flags['inline'] && $flags['indent'])
416 if($flags['indent']) {
425 if($flags['link'] && !$has_permalink && ($idx == $first_header)) {
426 $this->_permalink($ins[$idx], $page, $sect, $flags);
432 if($flags['indent'] && isset($lvl_new)) {
440 if($flags['indent']) {
447 if($flags['indent'] && isset($lvl_new)) {
461 $include_secid = (isset($flags['include_secid']) ? $flags['include_secid'] : NULL);
464 if($flags['editbtn']) {
465 …$this->_editbtn($ins, $page, $sect, $sect_title, ($flags['redirect'] ? $root_id : false), $include…
469 if($flags['footer']) {
470 $ins[] = $this->_footer($page, $sect, $sect_title, $flags, $footer_lvl, $root_id);
474 if ($lvl > 0 && $section_close_at !== 0 && $flags['indent'] && !$flags['inline']) {
490 …array_unshift($ins, array('plugin', array('include_wrap', array('open', $page, $flags['redirect'],…
491 if (isset($flags['beforeeach']))
492 array_unshift($ins, array('entity', array($flags['beforeeach'])));
494 if (isset($flags['aftereach']))
495 array_push($ins, array('entity', array($flags['aftereach'])));
498 if($lvl != 0 && $this->sec_close && !$flags['inline']) {
509 function _footer($page, $sect, $sect_title, $flags, $footer_lvl, $root_id) { argument
512 …$footer[1] = array('include_footer', array($page, $sect, $sect_title, $flags, $root_id, $footer_lv…
534 function _permalink(&$ins, $page, $sect, $flags) { argument
536 …$ins[1] = array('include_header', array($ins[1][0], $ins[1][1], $ins[1][2], $page, $sect, $flags));
657 function _get_firstsec(&$ins, $page, $flags) { argument
678 if ($flags['readmore']) {
694 function _get_included_pages($mode, $page, $sect, $parent_id, $flags) { argument
702 … $depth = $flags['depth'] ? $flags['depth'] + substr_count($page, ':') + ($page ? 1 : 0) : 0;
733 if (isset($flags['exclude']))
734 $pages = array_filter($pages, function ($page) use ($flags) {
735 if (@preg_match($flags['exclude'], $page))
741 if ($flags['order'] === 'id') {
742 if ($flags['rsort']) {
751 switch ($flags['order']) {
775 if ($flags['rsort']) {
818 $flags = $instruction['flags'];
819 … $pages = array_merge($pages, $this->_get_included_pages($mode, $page, $sect, $parent_id, $flags));