Commit 13c9a070 authored by Nigel McNie's avatar Nigel McNie
Browse files

Theme cleanups in some parts of the blog plugin.

parent 5e861979
......@@ -91,7 +91,7 @@ EOF;
$smarty = smarty(array('tablerenderer'));
$smarty->assign_by_ref('INLINEJAVASCRIPT', $js);
$smarty->assign_by_ref('blogs', $blogs);
$smarty->assign('heading', get_string("myblogs", "artefact.blog"));
$smarty->assign('PAGEHEADING', hsc(get_string("myblogs", "artefact.blog")));
$smarty->display('artefact:blog:list.tpl');
?>
{*
This template displays a list of the user's blogs. The list is populated
using javascript.
*}
{include file="header.tpl"}
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
<div id="myblogs">
<span class="addicon">
<a href="{$WWWROOT}artefact/blog/new/">{str section="artefact.blog" tag="addblog"}</a>
......@@ -28,6 +17,4 @@
</table>
</div>
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
{*
This template displays a list of the user's blog posts for a particular blog.
*}
{include file="header.tpl"}
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
<div id="myblogs">
<span class="addicon fr">
......@@ -29,6 +19,4 @@
{/if}
</div>
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
......@@ -50,7 +50,7 @@ $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);
$smarty->assign('heading', get_string('viewblog', 'artefact.blog') . ' - ' . $blog->get('title'));
$smarty->assign('PAGEHEADING', hsc(get_string('viewblog', 'artefact.blog') . ' - ' . $blog->get('title')));
$smarty->assign('strnopostsaddone',
get_string('nopostsaddone', 'artefact.blog',
'<a href="' . get_config('wwwroot') . 'artefact/blog/post.php?blog=' . $blog->get('id') . '">', '</a>'));
......
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