aboutsummaryrefslogtreecommitdiff
path: root/mod/livestream/views/default/new.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:56:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:56:18 -0300
commita7be81c3f81c807d43ed32965ee7ac11ebe71895 (patch)
tree71751c05eb80ae6e348790f3e46652c9dfe0be7d /mod/livestream/views/default/new.php
parentf3beeb45f9f192aee6ede0c9b6f0fa8b8d82a9ef (diff)
parent059badecbc0be895c6165430e5096a9ab653027e (diff)
downloadelgg-a7be81c3f81c807d43ed32965ee7ac11ebe71895.tar.gz
elgg-a7be81c3f81c807d43ed32965ee7ac11ebe71895.tar.bz2
Merge commit '059badecbc0be895c6165430e5096a9ab653027e' as 'mod/livestream'
Diffstat (limited to 'mod/livestream/views/default/new.php')
-rwxr-xr-xmod/livestream/views/default/new.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/mod/livestream/views/default/new.php b/mod/livestream/views/default/new.php
new file mode 100755
index 000000000..e318f70fd
--- /dev/null
+++ b/mod/livestream/views/default/new.php
@@ -0,0 +1,27 @@
+<?php
+ /**
+ * Elgg livestream plugin
+ *
+ * @package LiveStream
+ * @todo JS validation
+ */
+
+ $form_body = "";
+ $form_body.= elgg_echo("livestream:title")."<br />".elgg_view('input/text', array('internalname' => 'title', 'value' => ''))."<br />";
+ $form_body.= elgg_echo("livestream:type")."<br />".elgg_view('input/radio', array('internalname' => 'mediatype', 'value' => '', 'options' => livestream_gettypes()))."<br />";
+ $form_body.= elgg_echo("livestream:src").elgg_view('input/text', array('internalname' => 'src', 'value' => ''))."<br />";
+ $form_body.= elgg_echo("livestream:width").elgg_view('input/text', array('internalname' => 'width', 'value' => '80'))."<br />";
+ $form_body.= elgg_echo("livestream:height").elgg_view('input/text', array('internalname' => 'height', 'value' => '50'))."<br />";
+ $form_body.= elgg_view(
+ 'input/hidden',
+ array(
+ 'internalname' => 'container_guid',
+ 'options_values' => $options,
+ 'value' => $vars['entity']->container_id?(int)$vars['entity']->container_id : page_owner()
+ )
+ );
+ $form_body.= "<input type='submit' value='".elgg_echo("livestream:save")."'>";
+ echo elgg_view('input/form', array('body' => $form_body, 'action' => $vars['url']."action/livestream/new"));
+
+ //$object = new ElggObject();
+?>