aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2009-03-10 11:53:17 +0000
committercash <cash.costello@gmail.com>2009-03-10 11:53:17 +0000
commitdf987f77f160873f364c0e3ef46628a40eca9479 (patch)
tree89f44cc5ef5ece382368a93685d5e87ffb16c584 /views/default/widgets
parent4bf65154f0828f6d3d4161945fa49565cb17f9b9 (diff)
downloadelgg-df987f77f160873f364c0e3ef46628a40eca9479.tar.gz
elgg-df987f77f160873f364c0e3ef46628a40eca9479.tar.bz2
now using content wrapper from 1.5 plus working on handling more tags
Diffstat (limited to 'views/default/widgets')
-rw-r--r--views/default/widgets/feed_reader/view.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/views/default/widgets/feed_reader/view.php b/views/default/widgets/feed_reader/view.php
index a069a5a1f..0182c8c0b 100644
--- a/views/default/widgets/feed_reader/view.php
+++ b/views/default/widgets/feed_reader/view.php
@@ -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){
@@ -41,9 +42,15 @@
<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 } ?>