Fix mispositioned Akismet block/unblock buttons.

References #247
This commit is contained in:
Matthias Mees 2015-01-05 23:35:51 +01:00
parent 7f6194e195
commit e29009d1ba
2 changed files with 13 additions and 5 deletions

View File

@ -1359,8 +1359,8 @@ var $filter_defaults;
$akismet_apikey = $this->get_config('akismet');
$akismet = $this->get_config('akismet_filter');
if (!empty($akismet_apikey)) {
$eventData['action_more'] .= ' <a class="button_link" title="' . PLUGIN_EVENT_SPAMBLOCK_SPAM . '" href="serendipity_admin.php?serendipity[adminModule]=comments&amp;serendipity[spamIsSpam]=' . $eventData['id'] . $addData . '#' . $clink . '"><span class="icon-block"></span> ' . PLUGIN_EVENT_SPAMBLOCK_SPAM . '</a>';
$eventData['action_more'] .= ' <a class="button_link" title="' . PLUGIN_EVENT_SPAMBLOCK_NOT_SPAM . '" href="serendipity_admin.php?serendipity[adminModule]=comments&amp;serendipity[spamNotSpam]=' . $eventData['id'] . $addData . '#' . $clink . '"><span class="icon-ok-circled"></span> ' . PLUGIN_EVENT_SPAMBLOCK_NOT_SPAM . '</a>';
$eventData['action_more'] .= ' <a class="button_link actions_extra" title="' . PLUGIN_EVENT_SPAMBLOCK_SPAM . '" href="serendipity_admin.php?serendipity[adminModule]=comments&amp;serendipity[spamIsSpam]=' . $eventData['id'] . $addData . '#' . $clink . '"><span class="icon-block"></span><span class="visuallyhidden"> ' . PLUGIN_EVENT_SPAMBLOCK_SPAM . '</span></a>';
$eventData['action_more'] .= ' <a class="button_link actions_extra" title="' . PLUGIN_EVENT_SPAMBLOCK_NOT_SPAM . '" href="serendipity_admin.php?serendipity[adminModule]=comments&amp;serendipity[spamNotSpam]=' . $eventData['id'] . $addData . '#' . $clink . '"><span class="icon-ok-circled"></span><span class="visuallyhidden"> ' . PLUGIN_EVENT_SPAMBLOCK_NOT_SPAM . '</span></a>';
}
$eventData['action_author'] .= ' <a class="button_link" title="' . ($author_is_filtered ? PLUGIN_EVENT_SPAMBLOCK_REMOVE_AUTHOR : PLUGIN_EVENT_SPAMBLOCK_ADD_AUTHOR) . '" href="serendipity_admin.php?serendipity[adminModule]=comments&amp;serendipity[spamBlockAuthor]=' . $eventData['id'] . $addData . $randomString . '#' . $clink . '"><span class="icon-' . ($author_is_filtered ? 'ok-circled' : 'block') .'"></span><span class="visuallyhidden"> ' . ($author_is_filtered ? PLUGIN_EVENT_SPAMBLOCK_REMOVE_AUTHOR : PLUGIN_EVENT_SPAMBLOCK_ADD_AUTHOR) . '</span></a>';

View File

@ -433,6 +433,7 @@ form > a,
form > button,
.edit_actions li,
.actions li,
.actions_extra,
#login .form_field label,
#filter_comments label,
#serendipity_comment label,
@ -1526,7 +1527,8 @@ fieldset p,
margin: 0 .4em 0 0;
}
.actions li {
.actions li,
.actions_extra {
margin: 0 0 .5em;
}
@ -1563,7 +1565,8 @@ form > .button_link:first-of-type,
margin-bottom: 3em;
}
#serendipity_comments_list .actions {
#serendipity_comments_list .actions,
.actions_extra {
float: left;
margin: .75em 0;
}
@ -2737,10 +2740,15 @@ img.mfp-img {
padding-top: 0;
}
.actions li {
.actions li,
.actions_extra {
margin: 0 .4em .5em 0;
}
.actions_extra {
margin-top: .75em;
}
#edit_entry_submit {
top: -3.25em;
}