From 83f54580699f2eda1be0c04f281120cb15e1c6f9 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 4 Jul 2010 20:06:24 +0000 Subject: minor code clean-ups --- languages/en.php | 1 + start.php | 3 +-- views/default/widgets/feed_reader/edit.php | 9 +++++++-- views/default/widgets/feed_reader/view.php | 11 +++++++++-- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/languages/en.php b/languages/en.php index e6c66b27f..07ff02905 100644 --- a/languages/en.php +++ b/languages/en.php @@ -9,6 +9,7 @@ $english = array( 'simplepie:num_items' => 'Number of items', 'simplepie:excerpt' => 'Include excerpt', 'simplepie:post_date' => 'Include post date', + 'simplepie:postedon' => 'Posted on', ); add_translation("en", $english); diff --git a/start.php b/start.php index 538c5625c..12acb74f9 100644 --- a/start.php +++ b/start.php @@ -8,8 +8,7 @@ function simplepie_init() { add_widget_type('feed_reader', elgg_echo('simplepie:widget'), elgg_echo('simplepie:description')); - - extend_view('css','feed_reader/css'); + elgg_extend_view('css', 'feed_reader/css'); } register_elgg_event_handler('plugins_boot', 'system', 'simplepie_init'); diff --git a/views/default/widgets/feed_reader/edit.php b/views/default/widgets/feed_reader/edit.php index 77355bfa4..a721f0e8a 100644 --- a/views/default/widgets/feed_reader/edit.php +++ b/views/default/widgets/feed_reader/edit.php @@ -41,7 +41,10 @@

'params[excerpt]', 'js' => 'id="params[excerpt]"', 'value' => $excerpt )); +// used a hidden input field so that something is always sent unlike a checkbox +echo elgg_view('input/hidden', array('internalname' => 'params[excerpt]', + 'js' => 'id="params[excerpt]"', + 'value' => $excerpt )); echo " 'params[post_date]', 'js' => 'id="params[post_date]"', 'value' => $post_date )); +echo elgg_view('input/hidden', array('internalname' => 'params[post_date]', + 'js' => 'id="params[post_date]"', + 'value' => $post_date )); echo " ' . strip_tags($item->get_description(true), $allow_tags) . ''; +?> +

+ get_description(true), $allow_tags); ?> +
+ -
Posted on get_date('j F Y | g:i a'); ?>
+
+ + get_date('j F Y | g:i a'); ?> +
-- cgit v1.2.3