Skip to content

Commit

Permalink
Merge pull request #29 from backdrop-contrib/BWPanda-patch-1
Browse files Browse the repository at this point in the history
Better RSS feed wording
  • Loading branch information
jenlampton authored Aug 27, 2021
2 parents 72b65f4 + b8d22dc commit d567f04
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion on_the_web.module
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,16 @@ function on_the_web_display_block($delta, $settings = array(), $contexts = array
$title = t('Find !us on !service', array('!us' => $name, '!service' => $info['name']));
}
else {
$title = t('!us RSS feed', array('!us' => $name));
if ($config->get('sitename') == 1) {
$rss_name = $name;
}
elseif ($config->get('sitename') == 0) {
$rss_name = t('Our');
}
elseif ($config->get('sitename') == 2) {
$rss_name = t('My');
}
$title = t('!us RSS feed', array('!us' => $rss_name));
}

$size = $config->get('size');
Expand Down

0 comments on commit d567f04

Please sign in to comment.