From fe04f54b34210e6771fa06d8e4ca2849749c8477 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 9 Jul 2008 18:04:00 +0000 Subject: Closes #81: OpenDD aggregator http://trac.elgg.org/elgg/ticket/81 git-svn-id: https://code.elgg.org/elgg/trunk@1377 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/forms/opendd/subscribe.php | 37 +++++++ mod/opendd/views/default/object/oddentity.php | 25 +++++ mod/opendd/views/default/object/oddfeed.php | 21 ++++ mod/opendd/views/default/object/oddmetadata.php | 30 ++++++ .../views/default/object/oddrelationship.php | 25 +++++ mod/opendd/views/default/opendd/css.php | 3 + mod/opendd/views/default/opendd/gallery.php | 25 +++++ mod/opendd/views/default/opendd/icon.php | 36 +++++++ mod/opendd/views/default/opendd/link_logo.php | 22 +++++ mod/opendd/views/default/opendd/links.php | 3 + mod/opendd/views/default/opendd/listing.php | 26 +++++ mod/opendd/views/default/opendd/metatags.php | 16 +++ mod/opendd/views/default/opendd/profile.php | 109 +++++++++++++++++++++ 13 files changed, 378 insertions(+) create mode 100644 mod/opendd/views/default/forms/opendd/subscribe.php create mode 100644 mod/opendd/views/default/object/oddentity.php create mode 100644 mod/opendd/views/default/object/oddfeed.php create mode 100644 mod/opendd/views/default/object/oddmetadata.php create mode 100644 mod/opendd/views/default/object/oddrelationship.php create mode 100644 mod/opendd/views/default/opendd/css.php create mode 100644 mod/opendd/views/default/opendd/gallery.php create mode 100644 mod/opendd/views/default/opendd/icon.php create mode 100644 mod/opendd/views/default/opendd/link_logo.php create mode 100644 mod/opendd/views/default/opendd/links.php create mode 100644 mod/opendd/views/default/opendd/listing.php create mode 100644 mod/opendd/views/default/opendd/metatags.php create mode 100644 mod/opendd/views/default/opendd/profile.php (limited to 'mod/opendd/views/default') diff --git a/mod/opendd/views/default/forms/opendd/subscribe.php b/mod/opendd/views/default/forms/opendd/subscribe.php new file mode 100644 index 000000000..16f0e808b --- /dev/null +++ b/mod/opendd/views/default/forms/opendd/subscribe.php @@ -0,0 +1,37 @@ + +
+opendd) && sizeof($vars['config']->opendd) > 0) + foreach($vars['config']->opendd as $shortname => $valtype) { + +?> + +

+ +

+ + + + + " /> +
\ No newline at end of file diff --git a/mod/opendd/views/default/object/oddentity.php b/mod/opendd/views/default/object/oddentity.php new file mode 100644 index 000000000..43cba4a2f --- /dev/null +++ b/mod/opendd/views/default/object/oddentity.php @@ -0,0 +1,25 @@ + +
+
+

: get('opendd:published'); ?>

+
+
+

: get('opendd:uuid'); ?>

+
+
+

: get('opendd:class'); ?>

+

: get('opendd:subclass'); ?>

+
+
\ No newline at end of file diff --git a/mod/opendd/views/default/object/oddfeed.php b/mod/opendd/views/default/object/oddfeed.php new file mode 100644 index 000000000..265a78257 --- /dev/null +++ b/mod/opendd/views/default/object/oddfeed.php @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/mod/opendd/views/default/object/oddmetadata.php b/mod/opendd/views/default/object/oddmetadata.php new file mode 100644 index 000000000..cc63a09ec --- /dev/null +++ b/mod/opendd/views/default/object/oddmetadata.php @@ -0,0 +1,30 @@ + +
+
+

: get('opendd:published'); ?>

+
+
+

: get('opendd:uuid'); ?>

+
+
+

: get('opendd:entity_uuid'); ?>

+
+
+

: get('opendd:owner_uuid'); ?>

+
+
+

get('opendd:name'); ?> : get('opendd:body'); ?>

+
+
\ No newline at end of file diff --git a/mod/opendd/views/default/object/oddrelationship.php b/mod/opendd/views/default/object/oddrelationship.php new file mode 100644 index 000000000..beb7847d4 --- /dev/null +++ b/mod/opendd/views/default/object/oddrelationship.php @@ -0,0 +1,25 @@ + +
+
+

: get('opendd:published'); ?>

+
+
+

+ get('opendd:uuid1'); ?> + get('opendd:type'); ?> + get('opendd:uuid2'); ?> +

+
+
\ No newline at end of file diff --git a/mod/opendd/views/default/opendd/css.php b/mod/opendd/views/default/opendd/css.php new file mode 100644 index 000000000..15c5adc7f --- /dev/null +++ b/mod/opendd/views/default/opendd/css.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/mod/opendd/views/default/opendd/gallery.php b/mod/opendd/views/default/opendd/gallery.php new file mode 100644 index 000000000..008c1c6bd --- /dev/null +++ b/mod/opendd/views/default/opendd/gallery.php @@ -0,0 +1,25 @@ + $vars['entity'], + 'size' => 'large', + ) + ); + + $info .= "

getUrl() . "\">" . $vars['entity']->feedurl . "

"; + + // num users, last activity, owner etc + + + echo elgg_view('search/gallery_listing',array('icon' => $icon, 'info' => $info)); +?> \ No newline at end of file diff --git a/mod/opendd/views/default/opendd/icon.php b/mod/opendd/views/default/opendd/icon.php new file mode 100644 index 000000000..bb8614ea7 --- /dev/null +++ b/mod/opendd/views/default/opendd/icon.php @@ -0,0 +1,36 @@ +icontime) { + $icontime = "{$icontime}"; + } else { + $icontime = "default"; + } + + +?> + +
+ /> +
\ No newline at end of file diff --git a/mod/opendd/views/default/opendd/link_logo.php b/mod/opendd/views/default/opendd/link_logo.php new file mode 100644 index 000000000..1d1a81049 --- /dev/null +++ b/mod/opendd/views/default/opendd/link_logo.php @@ -0,0 +1,22 @@ + +
+ +" border="0" /> + +
\ No newline at end of file diff --git a/mod/opendd/views/default/opendd/links.php b/mod/opendd/views/default/opendd/links.php new file mode 100644 index 000000000..15c5adc7f --- /dev/null +++ b/mod/opendd/views/default/opendd/links.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/mod/opendd/views/default/opendd/listing.php b/mod/opendd/views/default/opendd/listing.php new file mode 100644 index 000000000..748edc20c --- /dev/null +++ b/mod/opendd/views/default/opendd/listing.php @@ -0,0 +1,26 @@ + $vars['entity'], + 'size' => 'small', + ) + ); + + $info .= "

getUrl() . "\">" . $vars['entity']->feedurl . "

"; + + // num users, last activity, owner etc + + echo elgg_view_listing($icon, $info); + +?> \ No newline at end of file diff --git a/mod/opendd/views/default/opendd/metatags.php b/mod/opendd/views/default/opendd/metatags.php new file mode 100644 index 000000000..6cc130fc6 --- /dev/null +++ b/mod/opendd/views/default/opendd/metatags.php @@ -0,0 +1,16 @@ + +username}/activity/opendd" ?>" /> \ No newline at end of file diff --git a/mod/opendd/views/default/opendd/profile.php b/mod/opendd/views/default/opendd/profile.php new file mode 100644 index 000000000..ce4dc9e0f --- /dev/null +++ b/mod/opendd/views/default/opendd/profile.php @@ -0,0 +1,109 @@ + + + + + + + + +
+ +
+
+ + $vars['entity'], + //'align' => "left", + 'size' => $iconsize, + ) + ); + + // display relevant links + echo elgg_view("opendd/links", array("entity" => $vars['entity'])); + ?> + +
+
+ +
+
+ + feedurl. "\">" . $vars['entity']->feedurl . "
"; + + ?> + + opendd) && sizeof($vars['config']->opendd) > 0) + { + + foreach($vars['config']->opendd as $shortname => $valtype) { + if ($shortname != "title") { + $value = $vars['entity']->$shortname; + + if (!empty($value)) { + + //This function controls the alternating class + $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; + } + + echo "

"; + echo ""; + echo elgg_echo("opendd:{$shortname}"); + echo ": "; + + echo elgg_view("output/{$valtype}",array('value' => $vars['entity']->$shortname)); + + echo "

"; + } + } + } + } + + + ?> + +
+
+ +
+ +

+ +canEdit()) + { + +?> + + +   + + + +

+
-- cgit v1.2.3