From: garvinhicking Date: Wed, 11 Oct 2006 08:02:40 +0000 (+0000) Subject: Make title configurable X-Git-Tag: 1.1~77 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6c66a7749ab5202d4345062246d68a52360d1662;p=s9y.git Make title configurable --- diff --git a/include/plugin_internal.inc.php b/include/plugin_internal.inc.php index 9d46ac5..bb40e1a 100644 --- a/include/plugin_internal.inc.php +++ b/include/plugin_internal.inc.php @@ -661,8 +661,9 @@ class serendipity_syndication_plugin extends serendipity_plugin { $propbag->add('description', SHOWS_RSS_BLAHBLAH); $propbag->add('stackable', true); $propbag->add('author', 'Serendipity Team'); - $propbag->add('version', '1.2'); + $propbag->add('version', '1.3'); $propbag->add('configuration', array( + 'title', 'fullfeed', 'show_0.91', 'show_1.0', @@ -695,6 +696,13 @@ class serendipity_syndication_plugin extends serendipity_plugin { function introspect_config_item($name, &$propbag) { switch($name) { + case 'title': + $propbag->add('type', 'string'); + $propbag->add('name', TITLE); + $propbag->add('description', TITLE_FOR_NUGGET); + $propbag->add('default', SYNDICATE_THIS_BLOG); + break; + case 'fullfeed': $radio['value'][] = 'false'; $radio['desc'][] = NO; @@ -880,7 +888,7 @@ class serendipity_syndication_plugin extends serendipity_plugin { { global $serendipity; - $title = $this->title; + $title = $this->get_config('title'); if (serendipity_db_bool($this->get_config('show_0.91', true))) { ?>