aboutsummaryrefslogtreecommitdiff
path: root/mod/opendd/views/default/forms
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-09 18:04:00 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-09 18:04:00 +0000
commitfe04f54b34210e6771fa06d8e4ca2849749c8477 (patch)
treefeaea79f1057a3313366fd7ec86ed1e3ce1db750 /mod/opendd/views/default/forms
parentd7718ebc40f9e28c6126e65df54e99d5b9948447 (diff)
downloadelgg-fe04f54b34210e6771fa06d8e4ca2849749c8477.tar.gz
elgg-fe04f54b34210e6771fa06d8e4ca2849749c8477.tar.bz2
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
Diffstat (limited to 'mod/opendd/views/default/forms')
-rw-r--r--mod/opendd/views/default/forms/opendd/subscribe.php37
1 files changed, 37 insertions, 0 deletions
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 @@
+<?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