From f5f0a66acc6f914f63f05f7ea7042e30f5f600d0 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Wed, 11 Oct 2006 08:02:40 +0000 Subject: [PATCH] Make title configurable --- include/plugin_internal.inc.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/plugin_internal.inc.php b/include/plugin_internal.inc.php index 9d46ac5a..bb40e1ac 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))) { ?>