]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
now using content wrapper from 1.5 plus working on handling more tags
authorcash <cash.costello@gmail.com>
Tue, 10 Mar 2009 11:53:17 +0000 (11:53 +0000)
committercash <cash.costello@gmail.com>
Tue, 10 Mar 2009 11:53:17 +0000 (11:53 +0000)
views/default/widgets/feed_reader/view.php

index a069a5a1f60014ef42ea91c363d1b72cfa9fc219..0182c8c0b2b208cf3bc748051e3d17d093ad9b90 100644 (file)
@@ -6,7 +6,8 @@
   {
     require_once $CONFIG->pluginspath . '/simplepie/simplepie.inc';
   }
-   
+  
+  $blog_tags = '<a><p><br><b><i><em><del><pre><strong><ul><ol><li><img>';
   $feed_url = $vars['entity']->feed_url;
   if($feed_url){
 
                  <div class="simplepie_title">
                          <h4><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h4>
       </div>
-                       <?php if ($excerpt) echo '<div class="simplepie_excerpt">' . strip_tags($item->get_description(true),'<a>') . '</div>'; ?>
-      <?php if ($post_date) 
-            {
+                       <?php 
+        if ($excerpt)
+        {
+          echo '<div class="simplepie_excerpt">' . strip_tags($item->get_description(true),$blog_tags) . '</div>';
+          //echo $feed->get_image_width();
+        }
+
+        if ($post_date) 
+        {
       ?>
         <div class="simplepie_date">Posted on <?php echo $item->get_date('j F Y | g:i a'); ?></div>
       <?php } ?>