示例#1
0
        return $path . '/' . $tag->shortname;
    }
    // }}}
    // {{{ public static function getAuthorRelativeUri()
    public static function getAuthorRelativeUri(SiteApplication $app, BlorgAuthor $author)
    {
        $path = $app->config->blorg->path . 'author';
        return $path . '/' . $author->shortname;
    }
    // }}}
    // {{{ public static function getCommentRelativeUri()
    public static function getCommentRelativeUri(SiteApplication $app, SiteComment $comment)
    {
        return Blorg::getPostRelativeUri($app, $comment->post) . '#comment' . $comment->id;
    }
    // }}}
    // {{{ private function __construct()
    /**
     * Prevent instantiation of this static class
     */
    private function __construct()
    {
    }
}
Blorg::setupGettext();
SwatUI::mapClassPrefixToPath('Blorg', 'Blorg');
SiteViewFactory::addPath('Blorg/views');
SiteViewFactory::registerView('post', 'BlorgPostView');
SiteViewFactory::registerView('post-comment', 'BlorgCommentView');
SiteViewFactory::registerView('author', 'BlorgAuthorView');
SiteGadgetFactory::addPath('Blorg/gadgets');