aboutsummaryrefslogtreecommitdiff
path: root/mod/opendd/views/default
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-30 09:53:19 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-30 09:53:19 +0000
commit85b94b0c3c9360bd8cf0aa8f9ba69a821d36f14b (patch)
tree55f89100b8b7bd576a0b92e8c0b895e09a95b7f5 /mod/opendd/views/default
parent57153e4292a1b9c2f4f840f3027d4c5c7b06b719 (diff)
downloadelgg-85b94b0c3c9360bd8cf0aa8f9ba69a821d36f14b.tar.gz
elgg-85b94b0c3c9360bd8cf0aa8f9ba69a821d36f14b.tar.bz2
Moved OpenDD out of the central repo.
git-svn-id: https://code.elgg.org/elgg/trunk@1590 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/opendd/views/default')
-rw-r--r--mod/opendd/views/default/forms/opendd/subscribe.php37
-rw-r--r--mod/opendd/views/default/object/oddentity.php25
-rw-r--r--mod/opendd/views/default/object/oddfeed.php21
-rw-r--r--mod/opendd/views/default/object/oddmetadata.php30
-rw-r--r--mod/opendd/views/default/object/oddrelationship.php25
-rw-r--r--mod/opendd/views/default/opendd/css.php3
-rw-r--r--mod/opendd/views/default/opendd/gallery.php25
-rw-r--r--mod/opendd/views/default/opendd/icon.php36
-rw-r--r--mod/opendd/views/default/opendd/link_logo.php22
-rw-r--r--mod/opendd/views/default/opendd/links.php3
-rw-r--r--mod/opendd/views/default/opendd/listing.php26
-rw-r--r--mod/opendd/views/default/opendd/metatags.php16
-rw-r--r--mod/opendd/views/default/opendd/profile.php109
-rw-r--r--mod/opendd/views/default/output/uuid.php26
-rw-r--r--mod/opendd/views/default/widgets/opendd_friends_elsewhere/edit.php20
-rw-r--r--mod/opendd/views/default/widgets/opendd_friends_elsewhere/view.php28
16 files changed, 0 insertions, 452 deletions
diff --git a/mod/opendd/views/default/forms/opendd/subscribe.php b/mod/opendd/views/default/forms/opendd/subscribe.php
deleted file mode 100644
index 16f0e808b..000000000
--- a/mod/opendd/views/default/forms/opendd/subscribe.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-?>
-<form action="<?php echo $vars['url']; ?>action/opendd/feed/subscribe" method="post">
-<?php
- if (is_array($vars['config']->opendd) && sizeof($vars['config']->opendd) > 0)
- foreach($vars['config']->opendd as $shortname => $valtype) {
-
-?>
-
- <p>
- <label>
- <?php echo elgg_echo("opendd:{$shortname}") ?><br />
- <?php echo elgg_view("input/{$valtype}",array(
- 'internalname' => $shortname,
- 'value' => $vars['entity']->$shortname,
- )); ?>
- </label>
- </p>
-
-<?php
-
- }
-
-?>
- <?php if ($vars['entity']) { ?><input type="hidden" name="feed_guid" value="<?php echo $vars['entity']->guid; ?>" /><?php } ?>
- <input type="hidden" name="user_guid" value="<?php echo page_owner_entity()->guid; ?>" />
- <input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" />
-</form> \ No newline at end of file
diff --git a/mod/opendd/views/default/object/oddentity.php b/mod/opendd/views/default/object/oddentity.php
deleted file mode 100644
index 43cba4a2f..000000000
--- a/mod/opendd/views/default/object/oddentity.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- $entity = $vars['entity'];
-?>
-<div class="opendd_entity">
- <div>
- <p><?php echo elgg_echo('opendd:published'); ?>: <?php echo $entity->get('opendd:published'); ?></p>
- </div>
- <div>
- <p><?php echo elgg_echo('opendd:entity:uuid'); ?>: <a href="<?php echo $entity->get('opendd:uuid'); ?>"><?php echo $entity->get('opendd:uuid'); ?></a></p>
- </div>
- <div>
- <p><?php echo elgg_echo('opendd:entity:class'); ?>: <?php echo $entity->get('opendd:class'); ?></p>
- <p><?php echo elgg_echo('opendd:entity:subclass'); ?>: <?php echo $entity->get('opendd:subclass'); ?></p>
- </div>
-</div> \ No newline at end of file
diff --git a/mod/opendd/views/default/object/oddfeed.php b/mod/opendd/views/default/object/oddfeed.php
deleted file mode 100644
index 265a78257..000000000
--- a/mod/opendd/views/default/object/oddfeed.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- if ($vars['full']) {
- echo elgg_view("opendd/profile",$vars);
- } else {
- if (get_input('search_viewtype') == "gallery") {
- echo elgg_view('opendd/gallery',$vars);
- } else {
- echo elgg_view("opendd/listing",$vars);
- }
- }
-?> \ No newline at end of file
diff --git a/mod/opendd/views/default/object/oddmetadata.php b/mod/opendd/views/default/object/oddmetadata.php
deleted file mode 100644
index cc63a09ec..000000000
--- a/mod/opendd/views/default/object/oddmetadata.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- $entity = $vars['entity'];
-?>
-<div class="opendd_metadata">
- <div>
- <p><?php echo elgg_echo('opendd:published'); ?>: <?php echo $entity->get('opendd:published'); ?></p>
- </div>
- <div>
- <p><?php echo elgg_echo('opendd:metadata:uuid'); ?>: <a href="<?php echo $entity->get('opendd:uuid'); ?>"><?php echo $entity->get('opendd:uuid'); ?></a></p>
- </div>
- <div>
- <p><?php echo elgg_echo('opendd:metadata:entityuuid'); ?>: <a href="<?php echo $entity->get('opendd:entity_uuid'); ?>"><?php echo $entity->get('opendd:entity_uuid'); ?></a></p>
- </div>
- <div>
- <p><?php echo elgg_echo('opendd:metadata:owneruuid'); ?>: <a href="<?php echo $entity->get('opendd:owner_uuid'); ?>"><?php echo $entity->get('opendd:owner_uuid'); ?></a></p>
- </div>
- <div>
- <p><?php echo $entity->get('opendd:name'); ?> : <?php echo $entity->get('opendd:body'); ?></p>
- </div>
-</div> \ No newline at end of file
diff --git a/mod/opendd/views/default/object/oddrelationship.php b/mod/opendd/views/default/object/oddrelationship.php
deleted file mode 100644
index beb7847d4..000000000
--- a/mod/opendd/views/default/object/oddrelationship.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- $entity = $vars['entity'];
-?>
-<div class="opendd_relationship">
- <div>
- <p><?php echo elgg_echo('opendd:published'); ?>: <?php echo $entity->get('opendd:published'); ?></p>
- </div>
- <div>
- <p>
- <a href="<?php echo $entity->get('opendd:uuid1'); ?>"><?php echo $entity->get('opendd:uuid1'); ?></a>
- <b><?php echo $entity->get('opendd:type'); ?></b>
- <a href="<?php echo $entity->get('opendd:uuid2'); ?>"><?php echo $entity->get('opendd:uuid2'); ?></a>
- </p>
- </div>
-</div> \ No newline at end of file
diff --git a/mod/opendd/views/default/opendd/css.php b/mod/opendd/views/default/opendd/css.php
deleted file mode 100644
index 15c5adc7f..000000000
--- a/mod/opendd/views/default/opendd/css.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-
-?> \ No newline at end of file
diff --git a/mod/opendd/views/default/opendd/gallery.php b/mod/opendd/views/default/opendd/gallery.php
deleted file mode 100644
index 008c1c6bd..000000000
--- a/mod/opendd/views/default/opendd/gallery.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- $icon = elgg_view(
- "opendd/icon", array(
- 'entity' => $vars['entity'],
- 'size' => 'large',
- )
- );
-
- $info .= "<p><b><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->feedurl . "</a></b></p>";
-
- // 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
deleted file mode 100644
index bb8614ea7..000000000
--- a/mod/opendd/views/default/opendd/icon.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- $group = $vars['entity'];
-
- // Get size
- if (!in_array($vars['size'],array('small','medium','large','tiny','master','topbar')))
- $vars['size'] = "medium";
-
- // Get any align and js
- if (!empty($vars['align'])) {
- $align = " align=\"{$vars['align']}\" ";
- } else {
- $align = "";
- }
-
- if ($icontime = $vars['entity']->icontime) {
- $icontime = "{$icontime}";
- } else {
- $icontime = "default";
- }
-
-
-?>
-
-<div class="groupicon">
-<a href="<?php echo $vars['entity']->getURL(); ?>" class="icon" ><img src="<?php echo $vars['url']; ?>mod/opendd/graphics/default<?php echo $vars['size']; ?>" border="0" <?php echo $align; ?> <?php echo $vars['js']; ?> /></a>
-</div> \ 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
deleted file mode 100644
index 1d1a81049..000000000
--- a/mod/opendd/views/default/opendd/link_logo.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- global $CONFIG;
-
- $url = $vars['feed_url'];
-
-
-?>
-<div id="feed_icon">
-<a href="<?php echo $url; ?>">
-<img src="<?php echo $CONFIG->url . "mod/opendd/graphics/defaulttiny.jpg"; ?>" border="0" />
-</a>
-</div> \ No newline at end of file
diff --git a/mod/opendd/views/default/opendd/links.php b/mod/opendd/views/default/opendd/links.php
deleted file mode 100644
index 15c5adc7f..000000000
--- a/mod/opendd/views/default/opendd/links.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-
-?> \ No newline at end of file
diff --git a/mod/opendd/views/default/opendd/listing.php b/mod/opendd/views/default/opendd/listing.php
deleted file mode 100644
index 748edc20c..000000000
--- a/mod/opendd/views/default/opendd/listing.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
-
- $icon = elgg_view(
- "opendd/icon", array(
- 'entity' => $vars['entity'],
- 'size' => 'small',
- )
- );
-
- $info .= "<p><b><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->feedurl . "</a></b></p>";
-
- // 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
deleted file mode 100644
index 6cc130fc6..000000000
--- a/mod/opendd/views/default/opendd/metatags.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- global $CONFIG;
- $owner = page_owner_entity();
-
-?>
-<link rel="alternate" type="application/odd+xml" title="OpenDD" href="<?php echo $CONFIG->url . "pg/opendd/{$owner->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
deleted file mode 100644
index ce4dc9e0f..000000000
--- a/mod/opendd/views/default/opendd/profile.php
+++ /dev/null
@@ -1,109 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- if ($vars['full'] == true) {
- $iconsize = "large";
- } else {
- $iconsize = "medium";
- }
-?>
-
-<table>
- <tr>
- <td>
-
- <div id="opendd_info_column_left">
- <div id="opendd_icon_wrapper">
-
- <?php
- echo elgg_view(
- "opendd/icon", array(
- 'entity' => $vars['entity'],
- //'align' => "left",
- 'size' => $iconsize,
- )
- );
-
- // display relevant links
- echo elgg_view("opendd/links", array("entity" => $vars['entity']));
- ?>
-
- </div>
- </div>
-
- </td>
-
- <td>
- <div id="opendd_info_column_right">
-
- <?php
- echo "<h2><a href=\"" . $vars['entity']->feedurl. "\">" . $vars['entity']->feedurl . "</a></h2> <br />";
-
- ?>
-
- <?php
-
- if ($vars['full'] == true) {
- if (is_array($vars['config']->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 "<p class=\"{$even_odd}\">";
- echo "<b>";
- echo elgg_echo("opendd:{$shortname}");
- echo ": </b>";
-
- echo elgg_view("output/{$valtype}",array('value' => $vars['entity']->$shortname));
-
- echo "</p>";
- }
- }
- }
- }
-
-
- ?>
-
- </div>
- </td>
- </tr>
-</table>
-
-<div id="opendd_info_wide">
-
- <p class="opendd_info_edit_buttons">
-
-<?php
- if ($vars['entity']->canEdit())
- {
-
-?>
-
- <a href="<?php echo $vars['url']; ?>mod/opendd/edit.php?feed_guid=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("edit"); ?></a>
- &nbsp;
- <a href="<?php echo $vars['url']; ?>action/opendd/feed/delete?feed_guid=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("delete"); ?></a>
-<?php
-
- }
-
-?>
-
- </p>
-</div>
diff --git a/mod/opendd/views/default/output/uuid.php b/mod/opendd/views/default/output/uuid.php
deleted file mode 100644
index 07b45f150..000000000
--- a/mod/opendd/views/default/output/uuid.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator.
- * Displays a uuid as a link, but links back to the opendd viewer to display.
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- global $CONFIG;
-
- $val = trim($vars['value']);
- if (!empty($val)) {
- if ((substr_count($val, "http://") == 0) && (substr_count($val, "https://") == 0)) {
- $val = "http://" . $val;
- }
-
- $vallink = $CONFIG->url . "mod/opendd/viewuuid.php?uuid=" . urlencode($val);
-
- echo "<a href=\"{$vallink}\" target=\"_blank\">{$val}</a>";
- }
-
-?> \ No newline at end of file
diff --git a/mod/opendd/views/default/widgets/opendd_friends_elsewhere/edit.php b/mod/opendd/views/default/widgets/opendd_friends_elsewhere/edit.php
deleted file mode 100644
index 2b912f567..000000000
--- a/mod/opendd/views/default/widgets/opendd_friends_elsewhere/edit.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- $feeds = opendd_get_feed_urls(page_owner());
-
-
- echo elgg_view('input/checkboxes', array(
- 'internalname' => 'params[feeds]',
- 'options' => $feeds,
- 'value' => $vars['entity']->feeds
- ));
-?> \ No newline at end of file
diff --git a/mod/opendd/views/default/widgets/opendd_friends_elsewhere/view.php b/mod/opendd/views/default/widgets/opendd_friends_elsewhere/view.php
deleted file mode 100644
index 3cbcc51e3..000000000
--- a/mod/opendd/views/default/widgets/opendd_friends_elsewhere/view.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-//include ("../../../../../../engine/start.php");
-
-//$vars['entity'] = get_entity(80);
-
- $owner = page_owner_entity();
- $limit = 8;
-
- if ($vars['entity']->limit)
- $limit = $vars['entity']->limit;
-
- $river = opendd_aggregate_remote_river($vars['entity']->feeds, $limit, $offset);
-
-
- if ($river)
- echo elgg_view('river/dashboard', array('river' => $river));
- else
- echo elgg_echo("opendd:noriver");
-?> \ No newline at end of file