aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--start.php2
-rw-r--r--views/default/feed_reader/css.php23
-rw-r--r--views/default/widgets/feed_reader/view.php2
3 files changed, 26 insertions, 1 deletions
diff --git a/start.php b/start.php
index dd58a6ac5..5f138ff4d 100644
--- a/start.php
+++ b/start.php
@@ -9,6 +9,8 @@
function simplepie_init()
{
add_widget_type('feed_reader', elgg_echo('simplepie:widget'), elgg_echo('simplepie:description'));
+
+ extend_view('css','feed_reader/css');
}
register_elgg_event_handler('plugins_boot', 'system', 'simplepie_init');
diff --git a/views/default/feed_reader/css.php b/views/default/feed_reader/css.php
new file mode 100644
index 000000000..9dbadd0d1
--- /dev/null
+++ b/views/default/feed_reader/css.php
@@ -0,0 +1,23 @@
+/*-------------------------------
+SIMPLEPIE FEED WIDGET
+-------------------------------*/
+.simplepie_blog_title {
+ text-align: center;
+ margin-bottom: 15px;
+}
+
+.simplepie_item {
+ margin-bottom: 12px;
+}
+
+.simplepie_title {
+ margin-bottom: 4px;
+}
+
+.simplepie_excerpt {
+ margin-bottom: 4px;
+}
+
+.simplepie_date {
+ font-size: 70%;
+}
diff --git a/views/default/widgets/feed_reader/view.php b/views/default/widgets/feed_reader/view.php
index 96636ba4d..4f51fb77c 100644
--- a/views/default/widgets/feed_reader/view.php
+++ b/views/default/widgets/feed_reader/view.php
@@ -34,7 +34,7 @@
<?php if ($post_date)
{
?>
- <div class="simplepie_date"><small>Posted on <?php echo $item->get_date('j F Y | g:i a'); ?></small></div>
+ <div class="simplepie_date">Posted on <?php echo $item->get_date('j F Y | g:i a'); ?></div>
<?php } ?>
</div>