Commit 07e647d4 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files
parents c4609cc5 e7c05860
......@@ -129,7 +129,7 @@ postlist.rowfunction = function(d, n, gd) {
var filerows = [TR(null, TD({'colSpan':3}, {$enc_files}))];
for (var i = 0; i < d.files.length; i++) {
filerows.push(TR({'class':'r'+((i+1)%2)},
TD(null, IMG({'src':get_themeurl(d.files[i].artefacttype + '.gif')})),
TD(null, IMG({'src':get_themeurl('images/' + d.files[i].artefacttype + '.gif')})),
TD(null, A({'href':config.wwwroot+'artefact/file/download.php?file='+d.files[i].file},
d.files[i].title)),
TD(null, d.files[i].description)));
......
......@@ -36,7 +36,9 @@ $blog = new ArtefactTypeBlog($id);
// This javascript is used to generate a list of blog posts.
$js = require('index.js.php');
$smarty = smarty(array('tablerenderer'));
$images = array('themepaths' => array('images/file.gif', 'images/image.gif'));
$smarty = smarty(array('tablerenderer'), array(), array(), $images);
$smarty->assign_by_ref('blog', $blog);
$smarty->assign_by_ref('editform', $form);
$smarty->assign_by_ref('INLINEJAVASCRIPT', $js);
......
......@@ -178,6 +178,11 @@ EOF;
foreach ($themepaths['mahara'] as $themepath) {
$theme_list[$themepath] = theme_get_url($themepath);
}
if (isset($extraconfig['themepaths']) && is_array($extraconfig['themepaths'])) {
foreach ($extraconfig['themepaths'] as $themepath) {
$theme_list[$themepath] = theme_get_url($themepath);
}
}
$stringjs = '<script type="text/javascript">';
$stringjs .= 'var strings = ' . json_encode($strings) . ';';
......
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