From ad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 1 Dec 2010 00:57:18 +0000 Subject: Fixes #2555 content.php is the new display view for widgets git-svn-id: http://code.elgg.org/elgg/trunk@7484 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/thewire/views/default/widgets/thewire/content.php | 15 +++++++++++++++ mod/thewire/views/default/widgets/thewire/view.php | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 mod/thewire/views/default/widgets/thewire/content.php delete mode 100644 mod/thewire/views/default/widgets/thewire/view.php (limited to 'mod/thewire') diff --git a/mod/thewire/views/default/widgets/thewire/content.php b/mod/thewire/views/default/widgets/thewire/content.php new file mode 100644 index 000000000..bed5c140b --- /dev/null +++ b/mod/thewire/views/default/widgets/thewire/content.php @@ -0,0 +1,15 @@ +num_display; +if (!$num) { + $num = 4; +} + +$content = elgg_list_entities(array('types' => 'object', 'subtypes' => 'thewire', 'container_guid' => $vars['entity']->owner_guid, 'limit' => $num, 'full_view' => FALSE, 'pagination' => FALSE)); + +echo $content; + +if ($content) { + $blogurl = elgg_get_site_url() . "pg/thewire/" . elgg_get_page_owner()->username; + echo "
".elgg_echo('thewire:moreposts')."
"; +} diff --git a/mod/thewire/views/default/widgets/thewire/view.php b/mod/thewire/views/default/widgets/thewire/view.php deleted file mode 100644 index bed5c140b..000000000 --- a/mod/thewire/views/default/widgets/thewire/view.php +++ /dev/null @@ -1,15 +0,0 @@ -num_display; -if (!$num) { - $num = 4; -} - -$content = elgg_list_entities(array('types' => 'object', 'subtypes' => 'thewire', 'container_guid' => $vars['entity']->owner_guid, 'limit' => $num, 'full_view' => FALSE, 'pagination' => FALSE)); - -echo $content; - -if ($content) { - $blogurl = elgg_get_site_url() . "pg/thewire/" . elgg_get_page_owner()->username; - echo "
".elgg_echo('thewire:moreposts')."
"; -} -- cgit v1.2.3