(path, mainPath, image = false, extension = true)
| 1297 | } |
| 1298 | |
| 1299 | function returnTextPath(path, mainPath, image = false, extension = true) |
| 1300 | { |
| 1301 | mainPathR = addSepToEnd(p.dirname(mainPath)); |
| 1302 | |
| 1303 | let files = path.replace(new RegExp('^\s*'+pregQuote(mainPathR)), '').split(p.sep); |
| 1304 | path = []; |
| 1305 | |
| 1306 | let _path = mainPathR; |
| 1307 | |
| 1308 | for(let i = 0, len = files.length; i < len; i++) |
| 1309 | { |
| 1310 | _path = p.normalize(p.join(_path, files[i])); |
| 1311 | files[i] = metadataPathName({path: _path, name: files[i]}, true); |
| 1312 | |
| 1313 | if(!extension && i == len - 1) |
| 1314 | files[i] = p.parse(files[i]).name; |
| 1315 | |
| 1316 | path.push(translatePageName(image ? htmlEntities(files[i]) : files[i])); |
| 1317 | } |
| 1318 | |
| 1319 | return path.join(image ? '<i class="material-icon navegation">chevron_right</i>' : ' / '); |
| 1320 | } |
| 1321 | |
| 1322 | var isFromLibrary = true; |
| 1323 |
no test coverage detected