Commit 3195d878 authored by Nigel McNie's avatar Nigel McNie
Browse files

Render views at least structurally correctly.

parent 24691400
TODOs for export HTML plugin
============================
* views - render in proper structure
* resume display tidyup
* i18n
* G&D
......
......@@ -227,6 +227,9 @@ class PluginExportHtml extends PluginExport {
get_config('docroot') . 'export/html/static/' => $staticdir,
get_config('docroot') . 'js/tinymce/plugins/emotions/images' => $staticdir . 'smilies/',
);
$filestocopy = array(
get_config('docroot') . 'theme/views.css' => $staticdir . 'views.css',
);
foreach ($directoriestocopy as $from => $to) {
foreach (new RecursiveDirectoryIterator($from) as $fileinfo) {
......@@ -238,6 +241,12 @@ class PluginExportHtml extends PluginExport {
}
}
}
foreach ($filestocopy as $from => $to) {
if (!copy($from, $to)) {
throw new SystemException("Could not copy static file $from");
}
}
}
}
......
......@@ -4,6 +4,7 @@
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
<title>{str tag=usersportfolio section=export.html args=$user|full_name|escape}</title>
<link rel="stylesheet" type="text/css" href="{$rootpath}static/style.css">
<link rel="stylesheet" type="text/css" href="{$rootpath}static/views.css">
</head>
<body>
<div id="mahara-logo">
......
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