[Slashdotjp-dev 1168] [695] * Add "readmore" link for journal top rss

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2008年 7月 10日 (木) 13:53:22 JST


Revision: 695
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=695
Author:   tach
Date:     2008-07-10 13:53:22 +0900 (Thu, 10 Jul 2008)

Log Message:
-----------
* Add "readmore" link for journal top rss

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/debian/changelog
    slashjp/branches/2.5.0.192/plugins/Journal/journal.pl


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-07-10 04:08:45 UTC (rev 694)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-07-10 04:53:22 UTC (rev 695)
@@ -10,8 +10,9 @@
     journal id
   * Add new journal top rss url: "/journals/top/rss" and
     "/journals/top/recent/rss"
+  * Add "readmore" link for journal top rss
 
- -- Taku YASUI <tach****@osdn*****>  Thu, 10 Jul 2008 04:07:53 +0000
+ -- Taku YASUI <tach****@osdn*****>  Thu, 10 Jul 2008 04:52:56 +0000
 
 slash (2.5.0.192-15) unstable; urgency=low
 

Modified: slashjp/branches/2.5.0.192/plugins/Journal/journal.pl
===================================================================
--- slashjp/branches/2.5.0.192/plugins/Journal/journal.pl	2008-07-10 04:08:45 UTC (rev 694)
+++ slashjp/branches/2.5.0.192/plugins/Journal/journal.pl	2008-07-10 04:53:22 UTC (rev 695)
@@ -325,25 +325,34 @@
 
 		$title =~ s/s$// if $entry->[0] == 1 && ($type eq 'count' || $type eq 'friends');
 
+		my $link = "$gSkin->{absolutedir}/~" . fixparam($entry->[1]) . "/journal/$entry->[4]";
+		my $journalurl = "$gSkin->{absolutedir}/~" . fixparam($entry->[1]) . "/journal/";
+		my $text = strip_mode($entry->[6], $entry->[7]);
+		$text .= getData('rss_readmore', {
+			link		=> $link,
+			journalurl	=> $journalurl,
+			nickname	=> $entry->[1],
+		});
+
 		push @items, {
 			story	=> {
 				'time'	=> $entry->[3],
 				uid	=> $entry->[2],
 				tid	=> $entry->[8],
 			},
-			title	=> $title,
-			link	=> "$gSkin->{absolutedir}/~" . fixparam($entry->[1]) . "/journal/$entry->[4]",
-			'content:encoded' => balanceTags(strip_mode($entry->[6], $entry->[7]), { deep_nesting => 1 }),
-			description => strip_notags($entry->[6]),
-			relation		=> "$gSkin->{absolutedir}/~" . fixparam($entry->[1]) . "/journal/",
+			title			=> $title,
+			link			=> $link,
+			'content:encoded'	=> balanceTags($text, { deep_nesting => 1 }),
+			description		=> strip_notags($entry->[6]),
+			relation		=> $journalurl,
 		};
 	}
 
 	xmlDisplay($form->{content_type} => {
 		channel => {
-			title		=> "$constants->{sitename} Journals",
-			description	=> "Top $constants->{journal_top} Journals",
-			'link'		=> "$gSkin->{absolutedir}/journal.pl?op=top",
+			title		=> getData('rss_top_recent_title'),
+			description	=> getData('rss_top_recent_desc'),
+			'link'		=> "$gSkin->{absolutedir}/journals/top/",
 		},
 		image	=> 1,
 		items	=> \@items,


Slashdotjp-dev メーリングリストの案内
Zurück zum Archiv-Index