From a8aa4bceed8e7ad0c5af2646a83d6a2da2e0b23a Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Fri, 26 Mar 2010 21:07:39 +0000 Subject: Changed line endings to unix-style for videolist plugin. --- views/default/forms/browsetube.php | 514 ++++++++++++++++++------------------- 1 file changed, 257 insertions(+), 257 deletions(-) (limited to 'views/default/forms/browsetube.php') diff --git a/views/default/forms/browsetube.php b/views/default/forms/browsetube.php index 50fa7b164..601fb4e6a 100644 --- a/views/default/forms/browsetube.php +++ b/views/default/forms/browsetube.php @@ -1,257 +1,257 @@ - - * @copyright Prateek Choudhary - */ - -$getcontainer_guid = get_input("container"); -$container_guid = explode(":", $getcontainer_guid); -if($container_guid[0] == "group"){ - $container = $container_guid[1]; -} -else{ - $container = $getcontainer_guid; -} - $error = array( - 'no-search' => 1 - ); - $error_msg = array( - 'no-search' => "Please enter a valid search term" - ); - $browseCat = get_input('q'); - if(empty($browseCat) || !isset($browseCat)) - $browseCat = "youtube"; - $confirm_action = get_input('video_action'); - - if(isset($confirm_action) && ($confirm_action == 'search_video')) - { - if(isset($title_search) && ($title_search != '')) - $error['no-search'] = 0; - else - $error['no-search'] = 1; - } - - - //$body = '
'; - //Load youtube menu - $body .= "
"; - $body .= "
    "; - $body .= "
  • "; - $body .= "YouTube"; - $body .= "
  • "; - $body .= "
  • "; - $body .= "Metacafe"; - $body .= "
  • "; - $body .= "
  • "; - $body .= "Vimeo"; - $body .= "
  • "; - /* - $body .= "
  • "; - $body .= "Google Videos"; - $body .= "
  • "; - */ - $body .= "
"; - $body .= "
"; - - $body .= "
"; - - //$body .= "
"; - $body .= '
'; - //$body .= ""; - $body .= elgg_view('input/hidden',array('internalname'=>'video_action', 'value'=>'search_video')); - $body .= elgg_view('input/hidden',array('internalname'=>'guid', 'value'=>$vars['guid'])); - //$body .= elgg_view('input/hidden',array('internalname'=>'start_index', 'value'=>1)); - - switch($browseCat) - { - case "youtube" : - $body .= elgg_view('forms/labels/youtube'); - break; - case "metacafe" : - $body .= elgg_view('forms/labels/metacafe'); - break; - case "vimeo" : - $body .= elgg_view('forms/labels/vimeo'); - break; - case "googlevideos" : - $body .= elgg_view('forms/labels/googlevideos'); - break; - default : - $body .= elgg_view('forms/labels/youtube'); - break; - } - $body .= elgg_view('input/hidden',array('internalname'=>'page', 'value'=>$browseCat)); - $body .= '
'; - //$body .= '
'; - //$body .= '
'; - - $body .= '
'; - $body .= '
'; - $body .= '
'; - $body .= '
'; - $body .= '
'; - $body .= '
'; - - print $body."

"; - - -?> - - + + * @copyright Prateek Choudhary + */ + +$getcontainer_guid = get_input("container"); +$container_guid = explode(":", $getcontainer_guid); +if($container_guid[0] == "group"){ + $container = $container_guid[1]; +} +else{ + $container = $getcontainer_guid; +} + $error = array( + 'no-search' => 1 + ); + $error_msg = array( + 'no-search' => "Please enter a valid search term" + ); + $browseCat = get_input('q'); + if(empty($browseCat) || !isset($browseCat)) + $browseCat = "youtube"; + $confirm_action = get_input('video_action'); + + if(isset($confirm_action) && ($confirm_action == 'search_video')) + { + if(isset($title_search) && ($title_search != '')) + $error['no-search'] = 0; + else + $error['no-search'] = 1; + } + + + //$body = '
'; + //Load youtube menu + $body .= "
"; + $body .= "
    "; + $body .= "
  • "; + $body .= "YouTube"; + $body .= "
  • "; + $body .= "
  • "; + $body .= "Metacafe"; + $body .= "
  • "; + $body .= "
  • "; + $body .= "Vimeo"; + $body .= "
  • "; + /* + $body .= "
  • "; + $body .= "Google Videos"; + $body .= "
  • "; + */ + $body .= "
"; + $body .= "
"; + + $body .= "
"; + + //$body .= "
"; + $body .= '
'; + //$body .= ""; + $body .= elgg_view('input/hidden',array('internalname'=>'video_action', 'value'=>'search_video')); + $body .= elgg_view('input/hidden',array('internalname'=>'guid', 'value'=>$vars['guid'])); + //$body .= elgg_view('input/hidden',array('internalname'=>'start_index', 'value'=>1)); + + switch($browseCat) + { + case "youtube" : + $body .= elgg_view('forms/labels/youtube'); + break; + case "metacafe" : + $body .= elgg_view('forms/labels/metacafe'); + break; + case "vimeo" : + $body .= elgg_view('forms/labels/vimeo'); + break; + case "googlevideos" : + $body .= elgg_view('forms/labels/googlevideos'); + break; + default : + $body .= elgg_view('forms/labels/youtube'); + break; + } + $body .= elgg_view('input/hidden',array('internalname'=>'page', 'value'=>$browseCat)); + $body .= '
'; + //$body .= '
'; + //$body .= '
'; + + $body .= '
'; + $body .= '
'; + $body .= '
'; + $body .= '
'; + $body .= '
'; + $body .= '
'; + + print $body."

"; + + +?> + + -- cgit v1.2.3