More accesibility improvements
This commit is contained in:
parent
b3f2e096e1
commit
2e117ffa26
5 changed files with 11 additions and 8 deletions
|
@ -124,7 +124,7 @@ function book_menu() {
|
||||||
'access callback' => '_book_outline_access',
|
'access callback' => '_book_outline_access',
|
||||||
'access arguments' => array(1),
|
'access arguments' => array(1),
|
||||||
'type' => MENU_LOCAL_TASK,
|
'type' => MENU_LOCAL_TASK,
|
||||||
'weight' => 2,
|
'weight' => 3,
|
||||||
'file' => 'book.pages.inc',
|
'file' => 'book.pages.inc',
|
||||||
);
|
);
|
||||||
$items['node/%node/outline/remove'] = array(
|
$items['node/%node/outline/remove'] = array(
|
||||||
|
@ -1099,4 +1099,3 @@ function book_menu_subtree_data($item) {
|
||||||
|
|
||||||
return $tree[$cid];
|
return $tree[$cid];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ function clone_menu() {
|
||||||
'page callback' => 'clone_node_check',
|
'page callback' => 'clone_node_check',
|
||||||
'page arguments' => array(1),
|
'page arguments' => array(1),
|
||||||
'title' => 'Clone',
|
'title' => 'Clone',
|
||||||
'weight' => 10,
|
'weight' => 2,
|
||||||
'file' => 'clone.pages.inc',
|
'file' => 'clone.pages.inc',
|
||||||
'type' => MENU_LOCAL_TASK,
|
'type' => MENU_LOCAL_TASK,
|
||||||
);
|
);
|
||||||
|
|
|
@ -448,8 +448,8 @@ function stormtask_form(&$node) {
|
||||||
if (array_key_exists('project_nid', $_GET)) {
|
if (array_key_exists('project_nid', $_GET)) {
|
||||||
$breadcrumb[] = l(t('Projects'), 'projects');
|
$breadcrumb[] = l(t('Projects'), 'projects');
|
||||||
$project = node_load($_GET['project_nid']);
|
$project = node_load($_GET['project_nid']);
|
||||||
$breadcrumb[] = l(t('Project : !project', array('!project' => $project->title)), 'node/'. $project->nid);
|
$breadcrumb[] = l($project->title, 'node/'. $project->nid);
|
||||||
$breadcrumb[] = l(t('Tasks'), 'node/'. $project->nid .'/tasks');
|
$breadcrumb[] = l(t('Project tasks'), 'node/'. $project->nid .'/tasks');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$breadcrumb[] = l(t('Tasks'), 'tasks');
|
$breadcrumb[] = l(t('Tasks'), 'tasks');
|
||||||
|
@ -1006,7 +1006,11 @@ function stormtask_validate(&$node) {
|
||||||
function stormtask_view($node, $teaser = FALSE, $page = FALSE) {
|
function stormtask_view($node, $teaser = FALSE, $page = FALSE) {
|
||||||
$breadcrumb = array();
|
$breadcrumb = array();
|
||||||
$breadcrumb[] = l(t('Home'), '<front>');
|
$breadcrumb[] = l(t('Home'), '<front>');
|
||||||
|
$breadcrumb[] = l(t('Projects'), 'projects');
|
||||||
|
$breadcrumb[] = l($node->project_title, 'node/'. $node->project_nid);
|
||||||
$breadcrumb[] = l(t('Tasks'), 'tasks');
|
$breadcrumb[] = l(t('Tasks'), 'tasks');
|
||||||
|
$breadcrumb[] = l(t('Project tasks'), 'node/'. $node->project_nid .'/tasks');
|
||||||
|
|
||||||
drupal_set_breadcrumb($breadcrumb);
|
drupal_set_breadcrumb($breadcrumb);
|
||||||
|
|
||||||
return theme('stormtask_view', $node, $teaser, $page);
|
return theme('stormtask_view', $node, $teaser, $page);
|
||||||
|
|
|
@ -373,8 +373,8 @@ function zuitedesk_breadcrumb($breadcrumb) {
|
||||||
if (count($breadcrumb) == 0) {
|
if (count($breadcrumb) == 0) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
// No breadcrumb in home page and user tabs:
|
// No breadcrumb in home page and others:
|
||||||
if (arg(0) == 'user') {
|
if (in_array(arg(0), array('user', 'ideas'))) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
// No breadcrumb if it's only one link to home page:
|
// No breadcrumb if it's only one link to home page:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name = SuiteDesk Theme
|
name = SuiteDesk Theme
|
||||||
description = SuiteDesk Theme Zen.
|
description = SuiteDesk Theme Zen.
|
||||||
version = 0.2.48
|
version = 0.2.49
|
||||||
|
|
||||||
screenshot = screenshot.png
|
screenshot = screenshot.png
|
||||||
|
|
||||||
|
|
Reference in a new issue