Skip to content

Commit

Permalink
adding docs and i18n, because - why not
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkingorg committed Sep 4, 2011
1 parent e94717c commit 4ec5e9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions redacted.php
Expand Up @@ -6,11 +6,13 @@
*/ */


function akv3_shortcode_redacted($atts, $content) { function akv3_shortcode_redacted($atts, $content) {
// allows for styling as desired in the single post view
if (is_single()) { if (is_single()) {
$output = '<span class="redacted">REDACTED</span>'; $output = '<span class="redacted">'.__('REDACTED', 'ak-redacted').'</span>';
} }
// handles situations where tags are stripped (feeds, excerpts, etc.)
else { else {
$output = '[REDACTED]'; $output = __('[REDACTED]', 'ak-redacted');
} }
return $output; return $output;
} }
Expand Down

0 comments on commit 4ec5e9a

Please sign in to comment.