/** * Show just the registration page. */ public function getRegister() { $template = Template::getInstance(); $template->set('action', 'register'); $template->set('redirect', Scrub::toURL(Request::get('redirect', 'string'))); }
<? if (!empty($post['author_name']) && !empty($post['author_url'])): ?> <li> <a href="/blog/author/<?php echo $post['author_url']; ?> "><?php echo $post['author_name']; ?> </a> </li> <? endif; ?> <? if (!empty($post['categories'])): foreach ($post['categories'] as $cat): ?> <li> <a href="/blog/category/<?php echo Scrub::toURL($cat); ?> "><?php echo $cat; ?> </a> </li> <? endforeach; endif; ?> </ul> <div class="blog_body" <? if (!$blog->isList()):?>id='blog_body'<? endif; ?>> <? if ($user->isAdmin()): ?><a href="/blog/edit?return=view&id=<?php echo $post['blog_id']; ?> " class="button">Edit this Post</a><br /><? endif; ?> <? if ($blog->isList()): ?>