{* $Id: mod-last_blog_posts.tpl 13501 2008-07-10 13:46:35Z nyloth $ *}

{if $prefs.feature_blogs eq 'y'}
{if $nonums eq 'y'}
{eval var="{tr}Last `$module_rows` blog posts{/tr}" assign="tpl_module_title"}
{else}
{eval var="{tr}Last blog posts{/tr}" assign="tpl_module_title"}
{/if}
{tikimodule title=$tpl_module_title name="last_blog_posts" flip=$module_params.flip decorations=$module_params.decorations}
{if $nonums != 'y'}<ol>{/if}
  {section name=ix loop=$modLastBlogPosts}
       {if $nonums != 'y'}<li>{/if}
         <a class="linkmodule" href="tiki-view_blog.php?blogId={$modLastBlogPosts[ix].blogId}">
           <b>{$modLastBlogPosts[ix].blogTitle}</b>: {$modLastBlogPosts[ix].title}<br />
           {if $modLastBlogPostsTitle eq "title" and $modLastBlogPosts[ix].title}
             {$modLastBlogPosts[ix].title}
           {else}
             {$modLastBlogPosts[ix].created|tiki_short_datetime}
           {/if}
         </a>
	{if $nonums != 'y'}</li>{else}<br />{/if}
  {/section}
{if $nonums != 'y'}</ol>{/if}
{/tikimodule}
{/if}
