Commit f2c180c2 authored by Nigel McNie's avatar Nigel McNie
Browse files

Stylesheet handling changes 2 - each artefact plugin hooks in its stylesheets.

parent 05f495c2
......@@ -42,7 +42,7 @@ class HtmlExportBlog extends HtmlExportArtefactPlugin {
// Render the first page of the blog (the only one if there's
// not many posts)
$smarty = $this->exporter->get_smarty('../../../');
$smarty = $this->exporter->get_smarty('../../../', 'blog');
$smarty->assign('breadcrumbs', array(
array('text' => get_string('blogs', 'artefact.blog')),
array('text' => $artefact->get('title'), 'path' => 'index.html'),
......
......@@ -164,7 +164,7 @@ class HtmlExportFile extends HtmlExportArtefactPlugin {
* represented by this directory
*/
private function create_index_for_directory($filesystemdirectory, $level, ArtefactTypeFolder $artefact=null) {
$smarty = $this->exporter->get_smarty(str_repeat('../', $level + 2));
$smarty = $this->exporter->get_smarty(str_repeat('../', $level + 2), 'file');
$smarty->assign('breadcrumbs', array(array('text' => 'Files', 'path' => 'index.html')));
if ($artefact) {
......
......@@ -37,7 +37,7 @@ class HtmlExportInternal extends HtmlExportArtefactPlugin {
return;
}
$smarty = $this->exporter->get_smarty('../../');
$smarty = $this->exporter->get_smarty('../../', 'internal');
// Profile page
$profileviewid = $this->exporter->get('user')->get_profile_view()->get('id');
......
......@@ -37,7 +37,7 @@ class HtmlExportResume extends HtmlExportArtefactPlugin {
// Dont' care about resume in this case
return;
}
$smarty = $this->exporter->get_smarty('../../');
$smarty = $this->exporter->get_smarty('../../', 'resume');
$smarty->assign('breadcrumbs', array(
array('text' => get_string('resume', 'artefact.resume'), 'path' => 'index.html'),
));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment