<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="0.92" xml:base="http://www.campaignmoney.org">
<channel>
 <title>Public Campaign Action Fund - Popular Content - Comments</title>
 <link>http://www.campaignmoney.org/popular</link>
 <description>Comments for &quot;Popular Content&quot;</description>
 <language>en</language>
<item>
 <title>Popular Content</title>
 <link>http://www.campaignmoney.org/popular</link>
 <description>&lt;div class=&quot;popular-lists-holder&quot;&gt;

&lt;?php
  $limit = 10; //list length

  $todays = views_build_view(&#039;items&#039;, views_get_view(&#039;recent-popular&#039;), NULL, FALSE, $limit);
  foreach ($todays[&#039;items&#039;] as $node) { $todays_items[] = l($node-&gt;node_title, &#039;node/&#039;. $node-&gt;nid); }
  print &#039;&lt;h2 class=&quot;popular-lists-title&quot;&gt;Recent Popular Content&lt;/h2&gt;&#039;;
  print theme_item_list($todays_items);

  $alltime = views_build_view(&#039;items&#039;, views_get_view(&#039;popular&#039;), NULL, FALSE, $limit);
  foreach ($alltime[&#039;items&#039;] as $node) { $alltime_items[] = l($node-&gt;node_title, &#039;node/&#039;. $node-&gt;nid); }
  print &#039;&lt;a name=&quot;alltime&quot;&gt; &lt;/a&gt;&lt;h2 class=&quot;popular-lists-title&quot;&gt;All Time Popular Content&lt;/h2&gt;&#039;;
  print theme_item_list($alltime_items);


  $query=&#039;SELECT n.nid, n.title, count(*) FROM {forward_log} s LEFT JOIN {node} n ON s.nid = n.nid WHERE s.type=&quot;sent&quot; GROUP BY n.nid DESC&#039;;
  $result = db_query_range($query, 0, $limit);
  while ($node = db_fetch_object($result)) { $emailed_items[] = l($node-&gt;title, &#039;node/&#039;. $node-&gt;nid); }
  print &#039;&lt;a name=&quot;emailed&quot;&gt; &lt;/a&gt;&lt;h2 class=&quot;popular-lists-title&quot;&gt;Most Emailed Content&lt;/h2&gt;&#039;;
  print theme_item_list($emailed_items);
   
?&gt;

&lt;/div&gt;
</description>
 <pubDate>Wed, 26 Jul 2006 15:08:43 -0500</pubDate>
</item>
</channel>
</rss>
