View details of Lexicon module, adding styles and global translationes
This commit is contained in:
parent
d1100db28e
commit
97bc3e5e20
7 changed files with 68 additions and 58 deletions
|
@ -104,6 +104,7 @@ div.lexicon-letter {
|
|||
}
|
||||
|
||||
.lexicon-links {
|
||||
clear: both;
|
||||
text-align: center;
|
||||
background-color: #eeeeff;
|
||||
color: #888888;
|
||||
|
@ -115,22 +116,42 @@ div.lexicon-letter {
|
|||
}
|
||||
|
||||
.lexicon-alphabar-instructions {
|
||||
clear: both;
|
||||
font-size: 89%;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.lexicon-admin-links {
|
||||
clear: both;
|
||||
margin: 0.5em 0 0 3.0em;
|
||||
margin: 0;
|
||||
}
|
||||
.lexicon-admin-links ul {
|
||||
padding: 0;
|
||||
}
|
||||
.lexicon-admin-links li {
|
||||
list-style: none;
|
||||
float: left;
|
||||
margin-bottom: .8em;
|
||||
}
|
||||
.lexicon-admin-links li.lexicon_edit,
|
||||
.lexicon-admin-links li.lexicon_admin {
|
||||
float: right;
|
||||
padding: 0 8px 3px;
|
||||
margin: .5em 0 .5em .5em;
|
||||
background-color: #ff6600;
|
||||
}
|
||||
|
||||
.lexicon-admin-links li a {
|
||||
padding: 5px;
|
||||
color: #fff;
|
||||
padding-right: 5px .8em 5px 5px;
|
||||
}
|
||||
.lexicon-admin-links li.lexicon_edit a,
|
||||
.lexicon-admin-links li.lexicon_admin a {
|
||||
font-size: 78%;
|
||||
}
|
||||
|
||||
.lexicon-list dt img {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
.lexicon-list .taxonomy_image_wrapper {
|
||||
width: 70px;
|
||||
|
@ -203,7 +224,7 @@ span.hovertip_target {
|
|||
}
|
||||
|
||||
.lexicon_checkboxes .form-item .description {
|
||||
clear: both;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.lexicon-detailed {
|
||||
|
@ -228,6 +249,34 @@ span.hovertip_target {
|
|||
|
||||
.block-lexicon {
|
||||
font-size: 89%;
|
||||
position: relative;
|
||||
}
|
||||
.block-lexicon .content {
|
||||
height: 42px;
|
||||
}
|
||||
.block-lexicon input.form-text {
|
||||
padding-right: 48px;
|
||||
background: #fff;
|
||||
font-weight: 300;
|
||||
}
|
||||
.block-lexicon button.form-submit {
|
||||
position: absolute;
|
||||
padding: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 39px;
|
||||
height: 39px;
|
||||
color: #3c8dbc;
|
||||
overflow: hidden;
|
||||
}
|
||||
.block-lexicon button.form-submit:hover {
|
||||
color: #307095;
|
||||
}
|
||||
.block-lexicon button.form-submit span {
|
||||
color: #fff;
|
||||
display: block;
|
||||
line-height: 34px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.lexicon-block-term-name {
|
||||
|
|
|
@ -38,14 +38,6 @@ function lexicon_help($path, $args = array()) {
|
|||
return t('Maintain one or more lexicons on your site.');
|
||||
break;
|
||||
|
||||
case 'lexicon':
|
||||
if (!$args[1]) {
|
||||
if (user_access('administer lexicon')) {
|
||||
return t('<a href="!url">Lexicon settings page</a>', array('!url' => url('admin/settings/lexicon')));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 'lexicon_search#noresults':
|
||||
return t('<ul>
|
||||
<li>Check if your spelling is correct.</li>
|
||||
|
@ -804,7 +796,7 @@ function _lexicon_alphabar($vid, &$tree) {
|
|||
$output = '<div class="lexicon-links">'. implode($sep, $letters);
|
||||
|
||||
$output .= '<div class="lexicon-alphabar-instructions">';
|
||||
$output .= variable_get('lexicon_alphabar_instruction', _alphabar_instruction_default());
|
||||
$output .= t(variable_get('lexicon_alphabar_instruction', _alphabar_instruction_default()));
|
||||
$output .= "</div></div>\n";
|
||||
|
||||
return $output;
|
||||
|
@ -1085,7 +1077,7 @@ function lexicon_admin_links($vocabulary, $destination) {
|
|||
}
|
||||
if (user_access('administer taxonomy')) {
|
||||
$links['lexicon_edit'] = array(
|
||||
'title' => decode_entities(t('Edit @name', array('@name' => drupal_strtolower($vocabulary->name)))),
|
||||
'title' => decode_entities(t('Edit @name', array('@name' => t(drupal_strtolower($vocabulary->name))))),
|
||||
'href' => 'admin/content/taxonomy/edit/vocabulary/'. $vocabulary->vid,
|
||||
'query' => $destination,
|
||||
);
|
||||
|
@ -1124,7 +1116,7 @@ function _lexicon_list() {
|
|||
$class = $eo[++$i & 1];
|
||||
if (user_access('administer taxonomy')) {
|
||||
$links['lexicon_edit'] = array(
|
||||
'title' => t('Edit @name', array('@name' => drupal_strto($vocabulary->name))),
|
||||
'title' => t('Edit @name', array('@name' => t(drupal_strto($vocabulary->name)))),
|
||||
'href' => 'admin/content/taxonomy/edit/vocabulary/'. $voc->vid,
|
||||
'query' => $destination,
|
||||
);
|
||||
|
|
Reference in a new issue