Commit 0afedd1d authored by sylvieg's avatar sylvieg

[ENH]List blog posts in user information

parent b0f6a9d9
......@@ -241,6 +241,17 @@
{/section}
</div>
{/if}
{if $user_blog_posts|@count > 0}
<h3>{tr}Blogs Posts{/tr}</h3>
<div class="normal">
{section name=ix loop=$user_blog_posts}
<div>
<div class="{cycle}">
<a class="link" title="{tr}View{/tr}" href="{$user_blog_posts[ix].postId|sefurl:blogpost}">{$user_blog_posts[ix].title|escape}</a>
</div>
</div>
{/section}
{/if}
{if $user_articles|@count > 0}
<h3>{tr}Articles{/tr}</h3>
<div class="normal">
......
......@@ -124,6 +124,8 @@ if ($prefs['feature_display_my_to_others'] == 'y') {
require_once('lib/blogs/bloglib.php');
$user_blogs = $bloglib->list_user_blogs($userwatch, false);
$smarty->assign_by_ref('user_blogs', $user_blogs);
$user_blog_posts = $bloglib->list_posts(0, -1, 'created_desc', '', -1, $userwatch);
$smarty->assign_by_ref('user_blog_posts', $user_blog_posts['data']);
}
if ($prefs['feature_galleries'] == 'y') {
$user_galleries = $tikilib->get_user_galleries($userwatch, -1);
......
Markdown is supported
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