get('plugins.file-content'); if (in_array($path_info['extension'], $config['allowed_extensions'])) { if (Utils::startsWith($path, '/')) { if ($config['allow_in_grav'] && file_exists(GRAV_ROOT . $path)) { return file_get_contents(GRAV_ROOT . $path); } elseif ($config['allow_in_filesystem'] && file_exists($path)) { return file_get_contents($path); } } else { $page_path = Grav::instance()['page']->path() . '/' . $path; if ($config['allow_in_page'] && file_exists($page_path)) { return file_get_contents($page_path); } } } return $path; } }