view.tpl 1.64 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
{include file="header.tpl"}
Naomi Guyer's avatar
Naomi Guyer committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<div class="text-right btn-top-right">
    <a class="btn btn-success addpost" href="{$WWWROOT}artefact/blog/post.php?blog={$blog->get('id')}">{str section="artefact.blog" tag="addpost"}</a>
    {if !$blog->get('locked')}
    <a class="btn btn-default settings" href="{$WWWROOT}artefact/blog/settings/index.php?id={$blog->get('id')}">{str section="artefact.blog" tag="settings"}</a>
    {/if}
</div>
<div id="myblogs" class="rel">
    <div id="blogdescription">
        {clean_html($blog->get('description'))|safe}
    </div>
    {if $blog->get('tags')}
    <div class="tags">
        {str tag=tags}: {list_tags owner=$blog->get('owner') tags=$blog->get('tags')}
    </div>
    {/if}
Naomi Guyer's avatar
Naomi Guyer committed
17

Naomi Guyer's avatar
Naomi Guyer committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
    {if $posts}
    <div id="postlist" class="fullwidth listing">
        {$posts.tablerows|safe}
    </div>
    <div id="blogpost_page_container" class="hidden">{$posts.pagination|safe}</div>
    <script>
    addLoadEvent(function() {literal}{{/literal}
        {$posts.pagination_js|safe}
        removeElementClass('blogpost_page_container', 'hidden');
        {literal}}{/literal});
    </script>
    {else}
    <div class="message">
        {str tag=nopostsyet section=artefact.blog} {if !$blog->get('locked')}<a href="{$WWWROOT}artefact/blog/post.php?blog={$blog->get('id')}">{str tag=addone section=mahara}</a>{/if}
    </div>
    {/if}
Naomi Guyer's avatar
Naomi Guyer committed
34

Naomi Guyer's avatar
Naomi Guyer committed
35 36 37 38 39 40 41
    {if $enablemultipleblogstext}
    <p class="dull center">{str tag=enablemultipleblogstext section=artefact.blog arg1=$WWWROOT}</p>
    {/if}
    {if $hiddenblogsnotification}
    <p class="dull center">{str tag=hiddenblogsnotification section=artefact.blog arg1=$WWWROOT}</p>
    {/if}
</div>
Naomi Guyer's avatar
Naomi Guyer committed
42 43
{include file="footer.tpl"}