From 58bd19d7cf35e6159124716d0da48d91354d3a2f Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 25 Dec 2010 17:07:41 +0000 Subject: amtrak does not have wifi so here is one big commit with group blogs, blog widget, and improved blog sidebar git-svn-id: http://code.elgg.org/elgg/trunk@7720 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/widgets/blog/content.php | 29 +++++++++++++++++++++++++ mod/blog/views/default/widgets/blog/edit.php | 22 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 mod/blog/views/default/widgets/blog/content.php create mode 100644 mod/blog/views/default/widgets/blog/edit.php (limited to 'mod/blog/views/default/widgets') diff --git a/mod/blog/views/default/widgets/blog/content.php b/mod/blog/views/default/widgets/blog/content.php new file mode 100644 index 000000000..83d1c0c41 --- /dev/null +++ b/mod/blog/views/default/widgets/blog/content.php @@ -0,0 +1,29 @@ +num_display; + +$options = array( + 'type' => 'object', + 'subtype' => 'blog', + 'container_guid' => $vars['entity']->owner_guid, + 'limit' => $num, + 'full_view' => FALSE, + 'pagination' => FALSE, +); +$content = elgg_list_entities($options); + +echo $content; + +if ($content) { + $blog_url = "pg/blog/owner/" . elgg_get_page_owner()->username; + $more_link = elgg_view('output/url', array( + 'href' => $blog_url, + 'text' => elgg_echo('blog:moreblogs'), + )); + echo "$more_link"; +} else { + echo elgg_echo('blog:noblogs'); +} diff --git a/mod/blog/views/default/widgets/blog/edit.php b/mod/blog/views/default/widgets/blog/edit.php new file mode 100644 index 000000000..aaa9d1a10 --- /dev/null +++ b/mod/blog/views/default/widgets/blog/edit.php @@ -0,0 +1,22 @@ +num_display)) { + $vars['entity']->num_display = 4; +} + +$params = array( + 'internalname' => 'params[num_display]', + 'value' => $vars['entity']->num_display = 4, + 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), +); +$dropdown = elgg_view('input/pulldown', $params); + +?> +

+ : + +

-- cgit v1.2.3