[geeklog-cvs] Geeklog-1.x/public_html article.php,1.97,1.98
Dirk Haun
dhaun at qs1489.pair.com
Sat Jul 26 12:25:19 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv25529/public_html
Modified Files:
article.php
Log Message:
Feature request #0000154: Added a "Subscribe to ..." option for easy subscription to topic feeds
Index: article.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/article.php,v
retrieving revision 1.97
retrieving revision 1.98
diff -C2 -d -r1.97 -r1.98
*** article.php 4 Jul 2008 14:57:56 -0000 1.97
--- article.php 26 Jul 2008 16:25:16 -0000 1.98
***************
*** 291,296 ****
$story_template->set_var ('lang_pdf_story', $LANG11[5]);
}
! $related = STORY_whatsRelated ($story->displayElements('related'),
! $story->displayElements('uid'), $story->displayElements('tid'));
if (!empty ($related)) {
$related = COM_startBlock ($LANG11[1], '',
--- 291,315 ----
$story_template->set_var ('lang_pdf_story', $LANG11[5]);
}
! if ($_CONF['backend'] == 1) {
! $tid = $story->displayElements('tid');
! $result = DB_query("SELECT filename, title, format FROM {$_TABLES['syndication']} WHERE type = 'geeklog' AND topic = '$tid' AND is_enabled = 1");
! $feeds = DB_numRows($result);
! for ($i = 0; $i < $feeds; $i++) {
! list($filename, $title, $format) = DB_fetchArray($result);
! $feedUrl = SYND_getFeedUrl($filename);
! $feedTitle = sprintf($LANG11[6], $title);
! $feedType = SYND_getMimeType($format);
! $feedClass = 'feed-link';
! if (!empty($LANG_DIRECTION) && ($LANG_DIRECTION == 'rtl')) {
! $feedClass .= '-rtl';
! }
! $story_options[] = COM_createLink($feedTitle, $feedUrl,
! array('type' => $feedType,
! 'class' => $feedClass));
! }
! }
! $related = STORY_whatsRelated($story->displayElements('related'),
! $story->displayElements('uid'),
! $story->displayElements('tid'));
if (!empty ($related)) {
$related = COM_startBlock ($LANG11[1], '',
More information about the geeklog-cvs
mailing list