Lines Matching refs:i

317         for($i=0; $i<$num; $i++) {
318 switch($ins[$i][0]) {
322 unset($ins[$i]);
327 $sect_title = $ins[$i][1][0];
334 $conv_idx[] = $i;
336 if($first_header == -1) $first_header = $i;
338 if(!$lvl_max || ($ins[$i][1][1] < $lvl_max)) {
339 $lvl_max = $ins[$i][1][1];
344 unset($ins[$i]);
346 $conv_idx[] = $i;
350 unset($ins[$i]);
353 $this->adapt_links($ins[$i][1][0], $page, $included_pages);
357 switch($ins[$i][1][0]) {
365 unset($ins[$i]);
370 $ins[$i][1][1][4] += $lvl;
375 * i.e. if there is a header which generates a section edit (depends on the levels, level
379 $endpos = $ins[$i][1][1][0];
380 unset($ins[$i]);
549 for($i=0; $i<$num; $i++) {
551 if (strpos($ins[$i][0], 'link') !== false && isset($ins[$i][1][1]) && is_array($ins[$i][1][1]) && $ins[$i][1][1]['type'] == 'internalmedia') {
553 $media_id = resolve_id($ns, $ins[$i][1][1]['src']);
556 $ins[$i][1][1]['src'] = $media_id;
558 switch($ins[$i][0]) {
563 $link_id = $ins[$i][1][0];
571 // this id is internal (i.e. absolute) now, add ':' to make resolve_id work again
574 $ins[$i][1][0] = ($link_params != '') ? $link_id.'?'.$link_params : $link_id;
576 if ($ins[$i][0] == 'internallink' && !empty($included_pages)) {
579 $link_id = $ins[$i][1][0];
593 $ins[$i][0] = 'locallink';
594 $ins[$i][1][0] = $hash;
598 $ins[$i][0] = 'plugin';
599 $ins[$i][1] = array('include_locallink', array($included_pages[$link_id]['hid'], $ins[$i][1][1], $ins[$i][1][0]));
608 $ins[$i][0] = 'internallink';
609 $ins[$i][1][0] = ':'.$page.'#'.$ins[$i][1][0];
630 for($i=0; $i<$num; $i++) {
631 if ($ins[$i][0] == 'header') {
634 if (sectionID($ins[$i][1][0], $check) == $sect) {
635 $offset = $i;
636 $lvl = $ins[$i][1][1];
637 } elseif ($offset && $lvl && ($ins[$i][1][1] <= $lvl)) {
638 $end = $i - $offset;
639 $endpos = $ins[$i][1][2]; // the position directly after the found section, needed for the section edit button
662 for($i=0; $i<$num; $i++) {
663 if($ins[$i][0] == 'section_close') {
664 $first_sect = $i;
666 if ($ins[$i][0] == 'header') {
673 $endpos = $ins[$i][1][2];
677 if(($first_sect) && ($ins[$i][0] == 'section_open')) {