src/Content/CFileBasedContent.php 1 location
|
@@ 176-180 (lines=5) @@
|
173 |
|
// TODO ciamge doc, can be replaced by __toc__ in meta? |
174 |
|
$id = (int) $matches[1]; |
175 |
|
$level = 2; |
176 |
|
if ($id % 100 === 0) { |
177 |
|
$level = 0; |
178 |
|
} elseif ($id % 10 === 0) { |
179 |
|
$level = 1; |
180 |
|
} |
181 |
|
|
182 |
|
$index[$key] = [ |
183 |
|
"file" => $filepath, |
src/Content/CPageContent.php 1 location
|
@@ 150-154 (lines=5) @@
|
147 |
|
// Create level depending on the file id |
148 |
|
$id = substr($filename, 0, strpos($filename, '_')); |
149 |
|
$level = 2; |
150 |
|
if ($id % 100 === 0) { |
151 |
|
$level = 0; |
152 |
|
} elseif ($id % 10 === 0) { |
153 |
|
$level = 1; |
154 |
|
} |
155 |
|
|
156 |
|
$toc[$url] = [ |
157 |
|
'title' => $title, |