Commit f25abe07 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

Changed breadcrumbs so items are seperated by arrows

parent e3189ab4
......@@ -70,16 +70,18 @@ $breadcrumbs = array(
get_string('nameplural', 'interaction.forum')
),
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $post->forum,
$post->forumtitle
),
array(
get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $post->topic,
$post->topicsubject
),
array(
get_config('wwwroot') . 'interaction/forum/deletepost.php?id=' . $postid,
get_string('deletepost', 'interaction.forum')
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $post->forum,
$post->forumtitle
),
array(
get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $post->topic,
$post->topicsubject
),
array(
get_config('wwwroot') . 'interaction/forum/deletepost.php?id=' . $postid,
get_string('deletepost', 'interaction.forum')
)
)
);
......
......@@ -46,7 +46,7 @@ $topic = get_record_sql(
);
if (!$topic) {
throw new NotFoundException(get_string('cantfindtopic', 'interaction.forum', $topicid));
throw new NotFoundException(get_string('cantfindtopic', 'interaction.forum', $topicid));
}
$membership = user_can_access_group((int)$topic->group);
......@@ -67,16 +67,18 @@ $breadcrumbs = array(
get_string('nameplural', 'interaction.forum')
),
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $topic->forumid,
$topic->title
),
array(
get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $topicid,
$topic->subject
),
array(
get_config('wwwroot') . 'interaction/forum/deletetopic.php?id=' . $topicid,
get_string('deletetopic', 'interaction.forum')
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $topic->forumid,
$topic->title
),
array(
get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $topicid,
$topic->subject
),
array(
get_config('wwwroot') . 'interaction/forum/deletetopic.php?id=' . $topicid,
get_string('deletetopic', 'interaction.forum')
)
)
);
......
......@@ -79,16 +79,18 @@ if ($postid==0) {
get_string('nameplural', 'interaction.forum')
),
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $topic->forum,
$topic->forumtitle
),
array(
get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $topicid,
$topic->subject
),
array(
get_config('wwwroot') . 'interaction/forum/editpost.php?parent=' . $parentid,
get_string('postreply', 'interaction.forum')
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $topic->forum,
$topic->forumtitle
),
array(
get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $topicid,
$topic->subject
),
array(
get_config('wwwroot') . 'interaction/forum/editpost.php?parent=' . $parentid,
get_string('postreply', 'interaction.forum')
)
)
);
}
......@@ -137,16 +139,18 @@ if (isset($postid)) {
get_string('nameplural', 'interaction.forum')
),
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $post->forum,
$post->forumtitle
),
array(
get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $topicid,
$topicsubject
),
array(
get_config('wwwroot') . 'interaction/forum/editpost.php?id=' . $postid,
get_string('editpost', 'interaction.forum')
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $post->forum,
$post->forumtitle
),
array(
get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $topicid,
$topicsubject
),
array(
get_config('wwwroot') . 'interaction/forum/editpost.php?id=' . $postid,
get_string('editpost', 'interaction.forum')
)
)
);
}
......
......@@ -66,12 +66,14 @@ if ($topicid==0) {
get_string('nameplural', 'interaction.forum')
),
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $forumid,
$forum->title
),
array(
get_config('wwwroot') . 'interaction/forum/edittopic.php?forum=' . $forumid,
get_string('addtopic', 'interaction.forum')
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $forumid,
$forum->title
),
array(
get_config('wwwroot') . 'interaction/forum/edittopic.php?forum=' . $forumid,
get_string('addtopic', 'interaction.forum')
)
)
);
}
......@@ -115,16 +117,18 @@ if (isset($topicid)) {
get_string('nameplural', 'interaction.forum')
),
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $topic->forumid,
$topic->title
),
array(
get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $topicid,
$topic->subject
),
array(
get_config('wwwroot') . 'interaction/forum/edittopic.php?id=' . $topicid,
get_string('edittopic', 'interaction.forum')
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $topic->forumid,
$topic->title
),
array(
get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $topicid,
$topic->subject
),
array(
get_config('wwwroot') . 'interaction/forum/edittopic.php?id=' . $topicid,
get_string('edittopic', 'interaction.forum')
)
)
);
......
......@@ -55,7 +55,8 @@ $breadcrumbs = array(
array(
get_config('wwwroot') . 'interaction/forum/index.php?group=' . $groupid,
get_string('nameplural', 'interaction.forum')
)
),
array()
);
$forums = get_records_sql_array(
......
......@@ -4,8 +4,9 @@
{include file="columnleftstart.tpl"}
<p>
{foreach from=$breadcrumbs item=item}
<a href="{$item[0]}">{$item[1]|escape}</a>
<a href="{$breadcrumbs[0][0]|escape}">{$breadcrumbs[0][1]|escape}</a>
{foreach from=$breadcrumbs[1] item=item}
&raquo <a href="{$item[0]|escape}">{$item[1]|escape}</a>
{/foreach}
</p>
......
......@@ -4,8 +4,9 @@
{include file="columnleftstart.tpl"}
<p>
{foreach from=$breadcrumbs item=item}
<a href="{$item[0]}">{$item[1]|escape}</a>
<a href="{$breadcrumbs[0][0]|escape}">{$breadcrumbs[0][1]|escape}</a>
{foreach from=$breadcrumbs[1] item=item}
&raquo <a href="{$item[0]|escape}">{$item[1]|escape}</a>
{/foreach}
</p>
......
......@@ -4,8 +4,9 @@
{include file="columnleftstart.tpl"}
<p>
{foreach from=$breadcrumbs item=item}
<a href="{$item[0]}">{$item[1]|escape}</a>
<a href="{$breadcrumbs[0][0]|escape}">{$breadcrumbs[0][1]|escape}</a>
{foreach from=$breadcrumbs[1] item=item}
&raquo <a href="{$item[0]|escape}">{$item[1]|escape}</a>
{/foreach}
</p>
......
......@@ -4,8 +4,9 @@
{include file="columnleftstart.tpl"}
<p>
{foreach from=$breadcrumbs item=item}
<a href="{$item[0]}">{$item[1]|escape}</a>
<a href="{$breadcrumbs[0][0]|escape}">{$breadcrumbs[0][1]|escape}</a>
{foreach from=$breadcrumbs[1] item=item}
&raquo <a href="{$item[0]|escape}">{$item[1]|escape}</a>
{/foreach}
</p>
......
......@@ -4,10 +4,12 @@
{include file="columnleftstart.tpl"}
<p>
{foreach from=$breadcrumbs item=item}
<a href="{$item[0]}">{$item[1]|escape}</a>
<a href="{$breadcrumbs[0][0]|escape}">{$breadcrumbs[0][1]|escape}</a>
{foreach from=$breadcrumbs[1] item=item}
&raquo <a href="{$item[0]|escape}">{$item[1]|escape}</a>
{/foreach}
</p>
<h2>{$groupname|escape}</h2>
<h3>{str tag=nameplural section=interaction.forum}</h3>
{if $admin}
......
......@@ -4,8 +4,9 @@
{include file="columnleftstart.tpl"}
<p>
{foreach from=$breadcrumbs item=item}
<a href="{$item[0]}">{$item[1]|escape}</a>
<a href="{$breadcrumbs[0][0]|escape}">{$breadcrumbs[0][1]|escape}</a>
{foreach from=$breadcrumbs[1] item=item}
&raquo <a href="{$item[0]|escape}">{$item[1]|escape}</a>
{/foreach}
</p>
......
......@@ -4,8 +4,9 @@
{include file="columnleftstart.tpl"}
<p>
{foreach from=$breadcrumbs item=item}
<a href="{$item[0]}">{$item[1]|escape}</a>
<a href="{$breadcrumbs[0][0]|escape}">{$breadcrumbs[0][1]|escape}</a>
{foreach from=$breadcrumbs[1] item=item}
&raquo <a href="{$item[0]|escape}">{$item[1]|escape}</a>
{/foreach}
</p>
......
......@@ -73,12 +73,14 @@ $breadcrumbs = array(
get_string('nameplural', 'interaction.forum')
),
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $topic->forumid,
$topic->forumtitle
),
array(
get_config('wwwroot') . 'interaction/forum/topic?id=' . $topic->id,
$topic->subject
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $topic->forumid,
$topic->forumtitle
),
array(
get_config('wwwroot') . 'interaction/forum/topic?id=' . $topic->id,
$topic->subject
)
)
);
......
......@@ -113,8 +113,10 @@ $breadcrumbs = array(
get_string('nameplural', 'interaction.forum')
),
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $forumid,
$forum->title
array(
get_config('wwwroot') . 'interaction/forum/view.php?id=' . $forumid,
$forum->title
)
)
);
......
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