Commit 59c4e679 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Clean up blog templates

parent d8f374ba
......@@ -78,6 +78,7 @@ $form = pieform(array(
$smarty =& smarty();
$smarty->assign_by_ref('newblogform', $form);
$smarty->assign_by_ref('PAGEHEADING', hsc(TITLE));
$smarty->display('artefact:blog:new.tpl');
exit;
......
......@@ -331,7 +331,7 @@ $smarty = smarty(array(), array(), array(), array(
));
$smarty->assign('INLINEJAVASCRIPT', $javascript);
$smarty->assign_by_ref('form', $form);
$smarty->assign('pagetitle', $pagetitle);
$smarty->assign('PAGEHEADING', hsc($pagetitle));
$smarty->display('artefact:blog:editpost.tpl');
......
......@@ -90,6 +90,7 @@ $form = pieform(array(
$smarty = smarty();
$smarty->assign_by_ref('editform', $form);
$smarty->assign_by_ref('blog', $blog);
$smarty->assign_by_ref('PAGEHEADING', hsc(TITLE));
$smarty->display('artefact:blog:settings.tpl');
exit;
......
{*
This template displays the 'edit blog post' form
*}
{include file="header.tpl"}
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
{$form}
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
{*
This template displays the 'new blog' form
*}
{include file="header.tpl"}
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
{$newblogform}
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
{include file="header.tpl"}
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
{$editform}
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
Supports Markdown
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