public static function extend_item($podcast, $episode, $feed, $format) { $url = sprintf('https://flattr.com/submit/auto?user_id=%s&language=%s&url=%s&title=%s&description=%s', urlencode(Flattr::get_setting("account")), urlencode(str_replace("-", "_", $podcast->language)), urlencode($episode->permalink()), urlencode($episode->title()), urlencode($episode->description())); echo sprintf('<atom:link rel="payment" title="Flattr this!" href="%s" type="text/html" />', $url); }
public static function adjust_contributors_shortcode_defaults($defaults) { $defaults['flattr'] = Flattr::get_setting('contributor_shortcode_default') === 'yes' ? 'yes' : 'no'; return $defaults; }