Improve visibility of the glossary
This commit is contained in:
parent
72fc44b96c
commit
ae482480b2
2 changed files with 16 additions and 5 deletions
Binary file not shown.
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 79 B |
|
@ -1068,11 +1068,22 @@ function theme_lexicon_block_term($vid, $term, $link = TRUE) {
|
|||
function lexicon_admin_links($vocabulary, $destination) {
|
||||
$output = '<div class="lexicon-admin-links">';
|
||||
$links = array();
|
||||
$url = 'admin/content/taxonomy/'. $vocabulary->vid;
|
||||
if ($router_item = menu_get_item($url .'/add/term')) {
|
||||
if ($router_item['access']) {
|
||||
$links['lexicon_add_term'] = array(
|
||||
'title' => t('Add term'),
|
||||
'href' => $url .'/add/term',
|
||||
'attributes' => array('class' => 'btn btn-primary icon-plus'),
|
||||
);
|
||||
$links['lexicon_list'] = array(
|
||||
'title' => t('List of terms'),
|
||||
'href' => $url,
|
||||
'attributes' => array('class' => 'btn btn-info icon-apply'),
|
||||
);
|
||||
}
|
||||
}
|
||||
if (user_access('administer taxonomy')) {
|
||||
$links['lexicon_add_term'] = array(
|
||||
'title' => t('Add term'),
|
||||
'href' => 'admin/content/taxonomy/'. $vocabulary->vid .'/add/term',
|
||||
);
|
||||
$links['lexicon_edit'] = array(
|
||||
'title' => decode_entities(t('Edit @name', array('@name' => drupal_strtolower($vocabulary->name)))),
|
||||
'href' => 'admin/content/taxonomy/edit/vocabulary/'. $vocabulary->vid,
|
||||
|
@ -1324,4 +1335,4 @@ function _lexicon_create_valid_id($name) {
|
|||
strip_tags($name)
|
||||
);
|
||||
return $id;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue