diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-06-20 10:44:28 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-06-20 10:44:28 +0000 |
| commit | 772c70240c6c1edf92f2b49d9546dba2c5a22acf (patch) | |
| tree | bd7fbf86d31274658fe1fe1ad93cb978a2976c12 /modules | |
| parent | cb3342d3cd3c560a5c3eab68c0eedd9ecd3e3759 (diff) | |
| download | webtrees-772c70240c6c1edf92f2b49d9546dba2c5a22acf.tar.gz webtrees-772c70240c6c1edf92f2b49d9546dba2c5a22acf.tar.bz2 webtrees-772c70240c6c1edf92f2b49d9546dba2c5a22acf.zip | |
Remove RSS functions. They don't work very well (if at all). If we want RSS feeds, we need a better requirements specification.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/rss_block/module.php | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/modules/rss_block/module.php b/modules/rss_block/module.php deleted file mode 100644 index ee83fd3d32..0000000000 --- a/modules/rss_block/module.php +++ /dev/null @@ -1,103 +0,0 @@ -<?php -/** - * Classes and libraries for module system - * - * webtrees: Web based Family History software - * Copyright (C) 2010 webtrees development team. - * - * Derived from PhpGedView - * Copyright (C) 2010 John Finlay - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @version $Id: class_media.php 5451 2009-05-05 22:15:34Z fisharebest $ - */ - -if (!defined('WT_WEBTREES')) { - header('HTTP/1.0 403 Forbidden'); - exit; -} - -require_once WT_ROOT.'includes/classes/class_module.php'; - -class rss_block_WT_Module extends WT_Module implements WT_Module_Block { - // Extend class WT_Module - public function getTitle() { - return i18n::translate('RSS Feeds'); - } - - // Extend class WT_Module - public function getDescription() { - global $GEDCOM_TITLE; - return i18n::translate('News and links from the %s site', $GEDCOM_TITLE); - } - - // Implement class WT_Module_Block - public function getBlock($block_id, $template=true) { - global $THEME_DIR; - $id=$this->getName().$block_id; - $title=i18n::translate('RSS Feeds').help_link('rss_feed'); - $content = "<br /><div class=\"center\">"; - $content .= "<form method=\"post\" action=\"\" name=\"rssform\">"; - $content .= "<select name=\"rssStyle\" class=\"header_select\" onchange=\"javascript:document.getElementById('rss_button').href = '".encode_url("rss.php?ged=".WT_GEDCOM."&lang=".WT_LOCALE) . "' + (document.rssform.module.value==''? '' : '&module=' + document.rssform.module.value) + (document.rssform.rssStyle.value==''? '' : '&rssStyle=' + document.rssform.rssStyle.value);\">"; - $content .= "<option value=\"ATOM\" selected=\"selected\">ATOM 1.0</option>"; - $content .= "<option value=\"RSS2.0\">RSS 2.0</option>"; - $content .= "<option value=\"RSS1.0\">RSS 1.0</option>"; - $content .= "<option value=\"ATOM0.3\">ATOM 0.3</option>"; - $content .= "<option value=\"RSS0.91\">RSS 0.91</option>"; - $content .= "<option value=\"HTML\">HTML</option>"; - $content .= "<option value=\"JS\">JavaScript</option>"; - $content .= "</select>"; - $content .= "<select name=\"module\" class=\"header_select\" onchange=\"javascript:document.getElementById('rss_button').href = '".encode_url("rss.php?ged=".WT_GEDCOM."&lang=".WT_LOCALE) . "' + (document.rssform.module.value==''? '' : '&module=' + document.rssform.module.value) + (document.rssform.rssStyle.value==''? '' : '&rssStyle=' + document.rssform.rssStyle.value);\">"; - $content .= "<option value=\"\">" . i18n::translate('All') . "</option>"; - $content .= "<option value=\"today\">" . i18n::translate('On This Day ...') . " </option>"; - $content .= "<option value=\"upcoming\">" . i18n::translate('Upcoming Events') . "</option>"; - $content .= "<option value=\"gedcomStats\">" . i18n::translate('GEDCOM Statistics') . "</option>"; - $content .= "<option value=\"gedcomNews\">" . i18n::translate('News') . "</option>"; - $content .= "<option value=\"top10Surnames\">" . i18n::translate('Top 10 Surnames') . "</option>"; - $content .= "<option value=\"recentChanges\">" . i18n::translate('Recent Changes') . "</option>"; - $content .= "<option value=\"randomMedia\">" . i18n::translate('Random Picture') . "</option>"; - $content .= "</select>"; - $content .= " <a id=\"rss_button\" href=\"".encode_url("rss.php?ged=".WT_GEDCOM."&lang=".WT_LOCALE) . "\"><img class=\"icon\" src=\"images/feed-icon16x16.png\" alt=\"RSS\" title=\"RSS\" /></a>"; - $content .= "</form></div>"; - $content .= "<div class=\"center\">"; - $content .= "</div><br />"; - - if ($template) { - require $THEME_DIR.'templates/block_main_temp.php'; - } else { - return $content; - } - } - - // Implement class WT_Module_Block - public function loadAjax() { - return false; - } - - // Implement class WT_Module_Block - public function isUserBlock() { - return false; - } - - // Implement class WT_Module_Block - public function isGedcomBlock() { - return true; - } - - // Implement class WT_Module_Block - public function configureBlock($block_id) { - } -} |
