Commit 15df531c authored by Nigel McNie's avatar Nigel McNie
Browse files

More template/$THEME cleanups: artefact.file

parent 13c9a070
......@@ -52,7 +52,7 @@ $smarty = smarty(
)
);
$smarty->assign('heading', get_string('myfiles', 'artefact.file'));
$smarty->assign('PAGEHEADING', hsc(get_string('myfiles', 'artefact.file')));
$smarty->assign('form', $form);
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->display('artefact:file:files.tpl');
......
......@@ -993,7 +993,8 @@ class ArtefactTypeFile extends ArtefactTypeFileBase {
}
public static function get_icon($options=null) {
return theme_get_url('images/file.gif');
global $THEME;
return $THEME->get_url('images/file.gif');
}
public static function get_config_options() {
......@@ -1216,7 +1217,8 @@ class ArtefactTypeFolder extends ArtefactTypeFileBase {
}
public static function get_icon($options=null) {
return theme_get_url('images/folder.gif');
global $THEME;
return $THEME->get_url('images/folder.gif');
}
public static function collapse_config() {
......
{include file="header.tpl"}
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
{if $institution}
{$institutionselector}
{/if}
......@@ -12,5 +9,4 @@
{str tag='fileinstructions' section='artefact.file'}
{/if}
<div>{$form}</div>
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
{include file="header.tpl"}
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
{if $institution}
{$institutionselector}
{/if}
......@@ -20,5 +17,4 @@
<tbody><tr><th></th></tr></tbody>
</table>
</div>
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
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