|
@@ -234,25 +234,24 @@ $interbreadcrumb[] = array(
|
|
'name' => Blog::getBlogTitle($blog_id),
|
|
'name' => Blog::getBlogTitle($blog_id),
|
|
);
|
|
);
|
|
|
|
|
|
-$actionsLeft = [];
|
|
|
|
-$actionsLeft[] = Display::url(
|
|
|
|
|
|
+$actionsLeft = Display::url(
|
|
Display::return_icon('blog.png', get_lang('Home'), '', ICON_SIZE_MEDIUM),
|
|
Display::return_icon('blog.png', get_lang('Home'), '', ICON_SIZE_MEDIUM),
|
|
api_get_self().'?blog_id='.$blog_id.'&'.api_get_cidreq()
|
|
api_get_self().'?blog_id='.$blog_id.'&'.api_get_cidreq()
|
|
);
|
|
);
|
|
if (api_is_allowed('BLOG_'.$blog_id, 'article_add')) {
|
|
if (api_is_allowed('BLOG_'.$blog_id, 'article_add')) {
|
|
- $actionsLeft[] = Display::url(
|
|
|
|
|
|
+ $actionsLeft .= Display::url(
|
|
Display::return_icon('new_article.png', get_lang('NewPost'), '', ICON_SIZE_MEDIUM),
|
|
Display::return_icon('new_article.png', get_lang('NewPost'), '', ICON_SIZE_MEDIUM),
|
|
api_get_self().'?action=new_post&blog_id='.$blog_id
|
|
api_get_self().'?action=new_post&blog_id='.$blog_id
|
|
);
|
|
);
|
|
}
|
|
}
|
|
if (api_is_allowed('BLOG_'.$blog_id, 'task_management')) {
|
|
if (api_is_allowed('BLOG_'.$blog_id, 'task_management')) {
|
|
- $actionsLeft[] = Display::url(
|
|
|
|
|
|
+ $actionsLeft .= Display::url(
|
|
Display::return_icon('blog_tasks.png', get_lang('TaskManager'), '', ICON_SIZE_MEDIUM),
|
|
Display::return_icon('blog_tasks.png', get_lang('TaskManager'), '', ICON_SIZE_MEDIUM),
|
|
api_get_self().'?action=manage_tasks&blog_id='.$blog_id
|
|
api_get_self().'?action=manage_tasks&blog_id='.$blog_id
|
|
);
|
|
);
|
|
}
|
|
}
|
|
if (api_is_allowed('BLOG_'.$blog_id, 'member_management')) {
|
|
if (api_is_allowed('BLOG_'.$blog_id, 'member_management')) {
|
|
- $actionsLeft[] = Display::url(
|
|
|
|
|
|
+ $actionsLeft .= Display::url(
|
|
Display::return_icon('blog_admin_users.png', get_lang('MemberManager'), '', ICON_SIZE_MEDIUM),
|
|
Display::return_icon('blog_admin_users.png', get_lang('MemberManager'), '', ICON_SIZE_MEDIUM),
|
|
api_get_self().'?action=manage_members&blog_id='.$blog_id
|
|
api_get_self().'?action=manage_members&blog_id='.$blog_id
|
|
);
|
|
);
|
|
@@ -439,6 +438,13 @@ switch ($action) {
|
|
|
|
|
|
$content = Display::return_introduction_section(TOOL_BLOGS);
|
|
$content = Display::return_introduction_section(TOOL_BLOGS);
|
|
$content .= $tpl->fetch($blogLayout);
|
|
$content .= $tpl->fetch($blogLayout);
|
|
-$tpl->assign('actions', implode(PHP_EOL, $actionsLeft));
|
|
|
|
|
|
+
|
|
|
|
+if ($actionsLeft) {
|
|
|
|
+ $tpl->assign(
|
|
|
|
+ 'actions',
|
|
|
|
+ Display::toolbarAction('toolbar', [$actionsLeft])
|
|
|
|
+ );
|
|
|
|
+}
|
|
|
|
+
|
|
$tpl->assign('content', $content);
|
|
$tpl->assign('content', $content);
|
|
$tpl->display_one_col_template();
|
|
$tpl->display_one_col_template();
|