diff options
-rw-r--r-- | index.php | 3 | ||||
-rw-r--r-- | start.php | 4 | ||||
-rw-r--r-- | views/default/forms/add.php | 2 | ||||
-rw-r--r-- | views/default/forms/labels/googlevideos.php | 2 | ||||
-rw-r--r-- | views/default/forms/labels/metacafe.php | 2 | ||||
-rw-r--r-- | views/default/forms/labels/vimeo.php | 2 | ||||
-rw-r--r-- | views/default/forms/labels/youtube.php | 2 | ||||
-rw-r--r-- | views/default/videolist/css.php | 2 | ||||
-rw-r--r-- | world.php | 4 |
9 files changed, 10 insertions, 13 deletions
@@ -30,8 +30,7 @@ $title = sprintf(elgg_echo("videolist:home"), "$owner->name"); // Get objects $area2 = elgg_view_title($title); -//set_input('search_viewtype', 'gallery'); -$area2 .= list_entities("object","videolist", page_owner(), 10); +$area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'videolist', 'container_guids' => page_owner(), 'limit' => 10)); //$area2 .= elgg_view("staticvideo/index"); @@ -16,7 +16,7 @@ function videolist_init() { } // Extend system CSS with our own styles - extend_view('css','videolist/css'); + elgg_extend_view('css','videolist/css'); // Load the language file - default is english register_translations($CONFIG->pluginspath . "videolist/languages/"); @@ -25,7 +25,7 @@ function videolist_init() { register_page_handler('videolist','videolist_page_handler'); //extend this plugin for groups - extend_view('groups/left_column','videolist/groupprofile_videolist'); + elgg_extend_view('groups/left_column','videolist/groupprofile_videolist'); // Add a new videolist widget add_widget_type('videolist_view',elgg_echo("videolist:widget"),elgg_echo("videolist:widget:description"), 'profile'); diff --git a/views/default/forms/add.php b/views/default/forms/add.php index f6d5ed4c2..2da5353b7 100644 --- a/views/default/forms/add.php +++ b/views/default/forms/add.php @@ -138,7 +138,7 @@ $body .= elgg_view('input/hidden',array('internalname'=>'guid', 'value'=>$vars[' $body .= '<p><label>'.elgg_echo("videolist:title_videourl").'<br />'; $body .= elgg_view("input/text",array('internalname' => 'title_videourl','value'=>$title_add_videourl)); if($error['no-video'] == 0) { - $body .= '<div class="error">'.$error_msg['no-video'].'</div>'; + $body .= '<div class="videolist_error">'.$error_msg['no-video'].'</div>'; } $body .= '</label></p>'; diff --git a/views/default/forms/labels/googlevideos.php b/views/default/forms/labels/googlevideos.php index 41893cea2..1d4223232 100644 --- a/views/default/forms/labels/googlevideos.php +++ b/views/default/forms/labels/googlevideos.php @@ -19,7 +19,7 @@ $body .= "</div>"; $body .= "<div style='float:left;width:45%;'>"; $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> "; if($error['no-search'] == 0) { - $body .= '<div class="error">'.$error_msg['no-search'].'</div>'; + $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>'; } $body .= "</div>"; //$body .= "<div>"; diff --git a/views/default/forms/labels/metacafe.php b/views/default/forms/labels/metacafe.php index 08edbcfdd..76dabeb25 100644 --- a/views/default/forms/labels/metacafe.php +++ b/views/default/forms/labels/metacafe.php @@ -19,7 +19,7 @@ $body .= "</div>"; $body .= "<div style='float:left;width:45%;'>"; $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> "; if($error['no-search'] == 0) { - $body .= '<div class="error">'.$error_msg['no-search'].'</div>'; + $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>'; } $body .= "</div>"; //$body .= "<div>"; diff --git a/views/default/forms/labels/vimeo.php b/views/default/forms/labels/vimeo.php index 38ffc17f0..b890febb7 100644 --- a/views/default/forms/labels/vimeo.php +++ b/views/default/forms/labels/vimeo.php @@ -19,7 +19,7 @@ $body .= "</div>"; $body .= "<div style='float:left;width:45%;'>"; $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> "; if ($error['no-search'] == 0) { - $body .= '<div class="error">'.$error_msg['no-search'].'</div>'; + $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>'; } $body .= "</div>"; //$body .= "<div>"; diff --git a/views/default/forms/labels/youtube.php b/views/default/forms/labels/youtube.php index 37575c0f1..1b557522b 100644 --- a/views/default/forms/labels/youtube.php +++ b/views/default/forms/labels/youtube.php @@ -19,7 +19,7 @@ $body .= "</div>"; $body .= "<div style='float:left;width:45%;'>"; $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> "; if($error['no-search'] == 0) { - $body .= '<div class="error">'.$error_msg['no-search'].'</div>'; + $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>'; } $body .= "</div>"; //$body .= "<div>"; diff --git a/views/default/videolist/css.php b/views/default/videolist/css.php index 647def873..e2b9250b3 100644 --- a/views/default/videolist/css.php +++ b/views/default/videolist/css.php @@ -10,7 +10,7 @@ */ ?> -.error{ +.videolist_error{ color:red; font-weight:bold; font-size:11px; @@ -26,9 +26,7 @@ $title = sprintf(elgg_echo("videolist:search")); // Get objects $area2 = elgg_view_title($title); set_input('show_viewtype', 'all'); -$area2 .= list_entities("object","videolist", 0, 10, $fullview=true, $viewtypetoggle=false,$pagination=true); - -//$area2 .= elgg_view("staticvideo/index"); +$area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'videolist', 'container_guids' => page_owner(), 'limit' => 10, 'full_view' => TRUE, 'view_type_toggle' => FALSE, 'pagination' => TRUE)); set_context('videolist'); $body = elgg_view_layout('one_column_with_sidebar',$area1. $area2); |