navigation MDL-25410 Fixed up marking of active item/items and fixed blog links on navigation so they only display for current user.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
.block_navigation .block_tree .type_activity > .tree_item.branch {background-image:none;position:relative;}
|
||||
.block_navigation .block_tree .type_activity > .tree_item.branch img {position:absolute;left:0;}
|
||||
.block_navigation .block_tree .root_node.leaf {padding-left:0px;}
|
||||
.block_navigation .block_tree .current_branch {font-weight:bold;}
|
||||
.block_navigation .block_tree .active_tree_node {font-weight:bold;}
|
||||
.block_navigation .block_tree .depth_1.current_branch ul {font-weight:normal;}
|
||||
|
||||
.jsenabled .block_navigation .block_tree .tree_item.branch {cursor:pointer;}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
.block_settings .block_tree .tree_item.branch {background-image: url([[pix:t/expanded]]);background-position: 0 10%;background-repeat: no-repeat;}
|
||||
.block_settings .block_tree .root_node.leaf {padding-left:0px;}
|
||||
.block_settings .block_tree .current_branch {font-weight:bold;}
|
||||
.block_settings .block_tree .active_tree_node {font-weight:bold;}
|
||||
.jsenabled .block_settings .block_tree .tree_item.branch {cursor:pointer;}
|
||||
.jsenabled .block_settings .block_tree .tree_item.emptybranch {background-image: url([[pix:t/collapsed_empty]]);background-position: 0 10%;background-repeat: no-repeat;}
|
||||
.jsenabled .block_settings .block_tree .collapsed ul {display: none;}
|
||||
|
||||
@@ -3440,7 +3440,7 @@ class settings_navigation extends navigation_node {
|
||||
}
|
||||
|
||||
// Blogs
|
||||
if (!empty($CFG->bloglevel)) {
|
||||
if ($currentuser && !empty($CFG->bloglevel)) {
|
||||
$blog = $usersetting->add(get_string('blogs', 'blog'), null, navigation_node::TYPE_CONTAINER, null, 'blogs');
|
||||
$blog->add(get_string('preferences', 'blog'), new moodle_url('/blog/preferences.php'), navigation_node::TYPE_SETTING);
|
||||
if (!empty($CFG->useexternalblogs) && $CFG->maxexternalblogsperuser > 0 && has_capability('moodle/blog:manageexternal', get_context_instance(CONTEXT_SYSTEM))) {
|
||||
|
||||
Reference in New Issue
Block a user