--- plus1.module +++ plus1.module @@ -427,7 +427,7 @@ function theme_plus1_widget($node, $scor } elseif (user_access('vote on content')) { // Is this the user's own content and do we allow them to vote on it? - if ($is_author && variable_get('plus1_vote_on_own', 1)) { + if (!$is_author || ($is_author && variable_get('plus1_vote_on_own', 1))) { if ($vote_text = variable_get('plus1_vote', 'Vote')) { // User is eligible to vote. // The class name provided by Drupal.settings.plus1.vote_class what @@ -447,6 +447,12 @@ function theme_plus1_widget($node, $scor $output_content .= ''; } } + elseif ($is_author && !variable_get('plus1_vote_on_own', 1)) { + $author_text = variable_get('plus1_author_text', 'Your content'); + if ($author_text) { + $output_content .= '
' . t(filter_xss_admin($author_text)) . '
'; + } + } } if ($output_content) {