aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/videolist/labels/youtube.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/forms/videolist/labels/youtube.php')
-rw-r--r--views/default/forms/videolist/labels/youtube.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/views/default/forms/videolist/labels/youtube.php b/views/default/forms/videolist/labels/youtube.php
new file mode 100644
index 000000000..4c824f6f3
--- /dev/null
+++ b/views/default/forms/videolist/labels/youtube.php
@@ -0,0 +1,27 @@
+<?php
+
+/**
+ * Elgg Video Plugin
+ * This plugin allows users to create a library of youtube/vimeo/metacafe videos
+ * @file - load youtube label
+ * @package Elgg
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Prateek Choudhary <synapticfield@gmail.com>
+ * @copyright Prateek Choudhary
+ */
+
+$body = '<p class="margin_none"><label>'.elgg_echo("videolist:title_search_tube").'</label></p>';
+$body .= "<div class='search_videos clearfloat'>";
+$body .= "<div style='float:left;'>";
+$body .= "<a href=\"http://www.youtube.com\"><img src='".$vars['url']."mod/videolist/graphics/badge3.gif' height='30'/></a>";
+$body .= "</div>";
+$body .= "<div style='float:left;'>";
+$body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/>";
+if($error['no-search'] == 0) {
+ $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>';
+}
+$body .= "</div>";
+$body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('videolist:searchTubeVideos')));
+$body .= "</div>";
+
+print $body; \ No newline at end of file