@@ -17,15 +17,15 @@ discard block |
||
17 | 17 | |
18 | 18 | //check to see if video is embeded |
19 | 19 | if($test){ |
20 | - $excerpt = str_replace($test, '', $object->description); |
|
21 | - $excerpt = strip_tags($excerpt); |
|
22 | - $excerpt = elgg_get_excerpt($excerpt); |
|
20 | + $excerpt = str_replace($test, '', $object->description); |
|
21 | + $excerpt = strip_tags($excerpt); |
|
22 | + $excerpt = elgg_get_excerpt($excerpt); |
|
23 | 23 | } else { |
24 | 24 | |
25 | - $description = gc_explode_translation($object->description, $lang); |
|
25 | + $description = gc_explode_translation($object->description, $lang); |
|
26 | 26 | |
27 | - $excerpt = strip_tags($description); |
|
28 | - $excerpt = elgg_get_excerpt($excerpt); |
|
27 | + $excerpt = strip_tags($description); |
|
28 | + $excerpt = elgg_get_excerpt($excerpt); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | |
@@ -39,5 +39,5 @@ discard block |
||
39 | 39 | 'item' => $item, |
40 | 40 | 'message' => $excerpt, |
41 | 41 | 'responses' => $responses, |
42 | - 'attachments' => elgg_view('output/url', array('href' => $test[0])), |
|
42 | + 'attachments' => elgg_view('output/url', array('href' => $test[0])), |
|
43 | 43 | )); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | $test = embed_discussion_river($object->description); |
17 | 17 | |
18 | 18 | //check to see if video is embeded |
19 | -if($test){ |
|
19 | +if ($test) { |
|
20 | 20 | $excerpt = str_replace($test, '', $object->description); |
21 | 21 | $excerpt = strip_tags($excerpt); |
22 | 22 | $excerpt = elgg_get_excerpt($excerpt); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | $target_link = elgg_view('output/url', array( |
23 | 23 | 'href' => $comment->getURL(), |
24 | - 'text' => gc_explode_translation($title_comment,$lang), |
|
24 | + 'text' => gc_explode_translation($title_comment, $lang), |
|
25 | 25 | 'class' => 'elgg-river-target', |
26 | 26 | 'is_trusted' => true, |
27 | 27 | )); |
@@ -18,14 +18,14 @@ |
||
18 | 18 | 'is_trusted' => true, |
19 | 19 | )); |
20 | 20 | |
21 | -if($object->title1){ |
|
21 | +if ($object->title1) { |
|
22 | 22 | $object->title = $object->title; |
23 | 23 | } |
24 | 24 | |
25 | 25 | $object_text = $object->title ? $object->title : $object->name; |
26 | 26 | |
27 | 27 | |
28 | -if($item->action_type != 'friend'){ |
|
28 | +if ($item->action_type != 'friend') { |
|
29 | 29 | $object_text = gc_explode_translation($object->title, $lang); |
30 | 30 | } |
31 | 31 |
@@ -17,68 +17,68 @@ |
||
17 | 17 | |
18 | 18 | if(intval($_SESSION['Suggested_friends'])==5 && elgg_is_logged_in()) |
19 | 19 | { |
20 | - try{ |
|
21 | - $user_guid = elgg_get_logged_in_user_guid(); |
|
22 | - $site_url = elgg_get_site_url(); |
|
23 | - mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); |
|
20 | + try{ |
|
21 | + $user_guid = elgg_get_logged_in_user_guid(); |
|
22 | + $site_url = elgg_get_site_url(); |
|
23 | + mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); |
|
24 | 24 | |
25 | - //connect to database , "3306" |
|
26 | - $db_config = new \Elgg\Database\Config($CONFIG); |
|
27 | - if ($db_config->isDatabaseSplit()) { |
|
28 | - $read_settings = $db_config->getConnectionConfig(\Elgg\Database\Config::READ); |
|
29 | - } else { |
|
30 | - $read_settings = $db_config->getConnectionConfig(\Elgg\Database\Config::READ_WRITE); |
|
31 | - } |
|
32 | - $connection = mysqli_connect($read_settings["host"], $read_settings["user"], $read_settings["password"], $read_settings["database"]); |
|
33 | - $result = mysqli_query($connection, "call GET_suggestedFriends({$user_guid}, 3);"); |
|
25 | + //connect to database , "3306" |
|
26 | + $db_config = new \Elgg\Database\Config($CONFIG); |
|
27 | + if ($db_config->isDatabaseSplit()) { |
|
28 | + $read_settings = $db_config->getConnectionConfig(\Elgg\Database\Config::READ); |
|
29 | + } else { |
|
30 | + $read_settings = $db_config->getConnectionConfig(\Elgg\Database\Config::READ_WRITE); |
|
31 | + } |
|
32 | + $connection = mysqli_connect($read_settings["host"], $read_settings["user"], $read_settings["password"], $read_settings["database"]); |
|
33 | + $result = mysqli_query($connection, "call GET_suggestedFriends({$user_guid}, 3);"); |
|
34 | 34 | |
35 | - if(intval($result->num_rows)>0){ |
|
36 | - $htmloutput='<div class="col-xs-12 mrgn-tp-sm col-xs-12 panel panel-river clearfix mrgn-bttm-xs">'; |
|
35 | + if(intval($result->num_rows)>0){ |
|
36 | + $htmloutput='<div class="col-xs-12 mrgn-tp-sm col-xs-12 panel panel-river clearfix mrgn-bttm-xs">'; |
|
37 | 37 | |
38 | - $htmloutput=$htmloutput.'<div class="elgg-body clearfix edit-comment wb-eqht">'; |
|
39 | - $htmloutput=$htmloutput.'<h4 class="h4 mrgn-tp-0 text-primary">'.elgg_echo('sf:title').'</h3>'; |
|
40 | - while ($row = $result->fetch_assoc()) { |
|
41 | - $userGUID=$row['guid_two']; |
|
38 | + $htmloutput=$htmloutput.'<div class="elgg-body clearfix edit-comment wb-eqht">'; |
|
39 | + $htmloutput=$htmloutput.'<h4 class="h4 mrgn-tp-0 text-primary">'.elgg_echo('sf:title').'</h3>'; |
|
40 | + while ($row = $result->fetch_assoc()) { |
|
41 | + $userGUID=$row['guid_two']; |
|
42 | 42 | if (elgg_get_user_validation_status($userGUID)){ |
43 | - $job=get_user($userGUID)->job; |
|
44 | - $user_department=get_user($userGUID)->department; |
|
45 | - $htmloutput=$htmloutput.'<div class="col-xs-4 text-center hght-inhrt">'; // suggested friend link to profile |
|
46 | - $htmloutput .= '<a href="'. $site_url. 'profile/'. get_user($row['guid_two'])->username.'" class="">'; |
|
43 | + $job=get_user($userGUID)->job; |
|
44 | + $user_department=get_user($userGUID)->department; |
|
45 | + $htmloutput=$htmloutput.'<div class="col-xs-4 text-center hght-inhrt">'; // suggested friend link to profile |
|
46 | + $htmloutput .= '<a href="'. $site_url. 'profile/'. get_user($row['guid_two'])->username.'" class="">'; |
|
47 | 47 | |
48 | - //EW - change to render icon so new ambassador badges can be shown |
|
49 | - $htmloutput.= elgg_view_entity_icon(get_entity($userGUID), 'medium', array('use_hover' => false, 'use_link' => false, 'class' => 'elgg-avatar-wet4-sf')); |
|
50 | - //$htmloutput=$htmloutput.'<img src="'.get_user($row['guid_two'])->getIcon('medium') . '" class="avatar-profile-page img-responsive center-block img-circle elgg-avatar-wet4-sf" alt="'.elgg_echo('sf:alttext').' '.get_user($row['guid_two'])->getDisplayName().'">'; |
|
51 | - $htmloutput=$htmloutput.'<h4 class="h4 mrgn-tp-sm"><span class="text-primary">'.get_user($row['guid_two'])->getDisplayName().'</span></h4></a>'; |
|
52 | - if($job){ // Nick - Adding department if no job, if none add a space |
|
53 | - $htmloutput=$htmloutput.'<p class="small mrgn-tp-0">'.$job.'</p>'; |
|
54 | - }elseif(!$job && $user_department){ |
|
55 | - $htmloutput=$htmloutput.'<p class="small mrgn-tp-0">'.$user_department.'</p>'; |
|
56 | - }else{ |
|
57 | - $htmloutput=$htmloutput.'<p class="small mrgn-tp-0 min-height-cs"></p>'; |
|
58 | - } |
|
48 | + //EW - change to render icon so new ambassador badges can be shown |
|
49 | + $htmloutput.= elgg_view_entity_icon(get_entity($userGUID), 'medium', array('use_hover' => false, 'use_link' => false, 'class' => 'elgg-avatar-wet4-sf')); |
|
50 | + //$htmloutput=$htmloutput.'<img src="'.get_user($row['guid_two'])->getIcon('medium') . '" class="avatar-profile-page img-responsive center-block img-circle elgg-avatar-wet4-sf" alt="'.elgg_echo('sf:alttext').' '.get_user($row['guid_two'])->getDisplayName().'">'; |
|
51 | + $htmloutput=$htmloutput.'<h4 class="h4 mrgn-tp-sm"><span class="text-primary">'.get_user($row['guid_two'])->getDisplayName().'</span></h4></a>'; |
|
52 | + if($job){ // Nick - Adding department if no job, if none add a space |
|
53 | + $htmloutput=$htmloutput.'<p class="small mrgn-tp-0">'.$job.'</p>'; |
|
54 | + }elseif(!$job && $user_department){ |
|
55 | + $htmloutput=$htmloutput.'<p class="small mrgn-tp-0">'.$user_department.'</p>'; |
|
56 | + }else{ |
|
57 | + $htmloutput=$htmloutput.'<p class="small mrgn-tp-0 min-height-cs"></p>'; |
|
58 | + } |
|
59 | 59 | |
60 | - //changed connect button to send a friend request we should change the wording |
|
61 | - $htmloutput=$htmloutput.'<a href="'.elgg_add_action_tokens_to_url("action/friends/add?friend={$userGUID}"). '" class="btn btn-primary mrgn-tp-sm">'.elgg_echo('friend:add').'</a>'; |
|
62 | - $htmloutput=$htmloutput.'</div>'; |
|
63 | - // $htmloutput=$htmloutput. $row['guid_two'].'-'; |
|
64 | - } |
|
65 | - } |
|
66 | - $htmloutput=$htmloutput.'</div>'; |
|
67 | - $htmloutput=$htmloutput.'<div class="clearfix"></div>'; |
|
68 | - $htmloutput=$htmloutput.'</div>'; |
|
69 | - echo $htmloutput; |
|
70 | - } |
|
71 | - $connection->close(); |
|
72 | - } |
|
73 | - catch (Exception $e) |
|
74 | - { |
|
75 | - $errMess=$e->getMessage(); |
|
76 | - $errStack=$e->getTraceAsString(); |
|
77 | - $errType=$e->getCode(); |
|
78 | - gc_err_logging($errMess,$errStack,'Suggested Friends',$errType); |
|
60 | + //changed connect button to send a friend request we should change the wording |
|
61 | + $htmloutput=$htmloutput.'<a href="'.elgg_add_action_tokens_to_url("action/friends/add?friend={$userGUID}"). '" class="btn btn-primary mrgn-tp-sm">'.elgg_echo('friend:add').'</a>'; |
|
62 | + $htmloutput=$htmloutput.'</div>'; |
|
63 | + // $htmloutput=$htmloutput. $row['guid_two'].'-'; |
|
64 | + } |
|
65 | + } |
|
66 | + $htmloutput=$htmloutput.'</div>'; |
|
67 | + $htmloutput=$htmloutput.'<div class="clearfix"></div>'; |
|
68 | + $htmloutput=$htmloutput.'</div>'; |
|
69 | + echo $htmloutput; |
|
70 | + } |
|
71 | + $connection->close(); |
|
72 | + } |
|
73 | + catch (Exception $e) |
|
74 | + { |
|
75 | + $errMess=$e->getMessage(); |
|
76 | + $errStack=$e->getTraceAsString(); |
|
77 | + $errType=$e->getCode(); |
|
78 | + gc_err_logging($errMess,$errStack,'Suggested Friends',$errType); |
|
79 | 79 | |
80 | - $connection->close(); |
|
81 | - } |
|
80 | + $connection->close(); |
|
81 | + } |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | echo elgg_view('page/components/image_block', array( |
@@ -13,11 +13,11 @@ discard block |
||
13 | 13 | |
14 | 14 | /*If this is the 3rd item in the River, lets call for suggestions*/ |
15 | 15 | |
16 | -$_SESSION['Suggested_friends']=intval($_SESSION['Suggested_friends'])+1; |
|
16 | +$_SESSION['Suggested_friends'] = intval($_SESSION['Suggested_friends']) + 1; |
|
17 | 17 | |
18 | -if(intval($_SESSION['Suggested_friends'])==5 && elgg_is_logged_in()) |
|
18 | +if (intval($_SESSION['Suggested_friends']) == 5 && elgg_is_logged_in()) |
|
19 | 19 | { |
20 | - try{ |
|
20 | + try { |
|
21 | 21 | $user_guid = elgg_get_logged_in_user_guid(); |
22 | 22 | $site_url = elgg_get_site_url(); |
23 | 23 | mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); |
@@ -32,50 +32,50 @@ discard block |
||
32 | 32 | $connection = mysqli_connect($read_settings["host"], $read_settings["user"], $read_settings["password"], $read_settings["database"]); |
33 | 33 | $result = mysqli_query($connection, "call GET_suggestedFriends({$user_guid}, 3);"); |
34 | 34 | |
35 | - if(intval($result->num_rows)>0){ |
|
36 | - $htmloutput='<div class="col-xs-12 mrgn-tp-sm col-xs-12 panel panel-river clearfix mrgn-bttm-xs">'; |
|
35 | + if (intval($result->num_rows) > 0) { |
|
36 | + $htmloutput = '<div class="col-xs-12 mrgn-tp-sm col-xs-12 panel panel-river clearfix mrgn-bttm-xs">'; |
|
37 | 37 | |
38 | - $htmloutput=$htmloutput.'<div class="elgg-body clearfix edit-comment wb-eqht">'; |
|
39 | - $htmloutput=$htmloutput.'<h4 class="h4 mrgn-tp-0 text-primary">'.elgg_echo('sf:title').'</h3>'; |
|
38 | + $htmloutput = $htmloutput . '<div class="elgg-body clearfix edit-comment wb-eqht">'; |
|
39 | + $htmloutput = $htmloutput . '<h4 class="h4 mrgn-tp-0 text-primary">' . elgg_echo('sf:title') . '</h3>'; |
|
40 | 40 | while ($row = $result->fetch_assoc()) { |
41 | - $userGUID=$row['guid_two']; |
|
42 | - if (elgg_get_user_validation_status($userGUID)){ |
|
43 | - $job=get_user($userGUID)->job; |
|
44 | - $user_department=get_user($userGUID)->department; |
|
45 | - $htmloutput=$htmloutput.'<div class="col-xs-4 text-center hght-inhrt">'; // suggested friend link to profile |
|
46 | - $htmloutput .= '<a href="'. $site_url. 'profile/'. get_user($row['guid_two'])->username.'" class="">'; |
|
41 | + $userGUID = $row['guid_two']; |
|
42 | + if (elgg_get_user_validation_status($userGUID)) { |
|
43 | + $job = get_user($userGUID)->job; |
|
44 | + $user_department = get_user($userGUID)->department; |
|
45 | + $htmloutput = $htmloutput . '<div class="col-xs-4 text-center hght-inhrt">'; // suggested friend link to profile |
|
46 | + $htmloutput .= '<a href="' . $site_url . 'profile/' . get_user($row['guid_two'])->username . '" class="">'; |
|
47 | 47 | |
48 | 48 | //EW - change to render icon so new ambassador badges can be shown |
49 | - $htmloutput.= elgg_view_entity_icon(get_entity($userGUID), 'medium', array('use_hover' => false, 'use_link' => false, 'class' => 'elgg-avatar-wet4-sf')); |
|
49 | + $htmloutput .= elgg_view_entity_icon(get_entity($userGUID), 'medium', array('use_hover' => false, 'use_link' => false, 'class' => 'elgg-avatar-wet4-sf')); |
|
50 | 50 | //$htmloutput=$htmloutput.'<img src="'.get_user($row['guid_two'])->getIcon('medium') . '" class="avatar-profile-page img-responsive center-block img-circle elgg-avatar-wet4-sf" alt="'.elgg_echo('sf:alttext').' '.get_user($row['guid_two'])->getDisplayName().'">'; |
51 | - $htmloutput=$htmloutput.'<h4 class="h4 mrgn-tp-sm"><span class="text-primary">'.get_user($row['guid_two'])->getDisplayName().'</span></h4></a>'; |
|
52 | - if($job){ // Nick - Adding department if no job, if none add a space |
|
53 | - $htmloutput=$htmloutput.'<p class="small mrgn-tp-0">'.$job.'</p>'; |
|
54 | - }elseif(!$job && $user_department){ |
|
55 | - $htmloutput=$htmloutput.'<p class="small mrgn-tp-0">'.$user_department.'</p>'; |
|
56 | - }else{ |
|
57 | - $htmloutput=$htmloutput.'<p class="small mrgn-tp-0 min-height-cs"></p>'; |
|
51 | + $htmloutput = $htmloutput . '<h4 class="h4 mrgn-tp-sm"><span class="text-primary">' . get_user($row['guid_two'])->getDisplayName() . '</span></h4></a>'; |
|
52 | + if ($job) { // Nick - Adding department if no job, if none add a space |
|
53 | + $htmloutput = $htmloutput . '<p class="small mrgn-tp-0">' . $job . '</p>'; |
|
54 | + }elseif (!$job && $user_department) { |
|
55 | + $htmloutput = $htmloutput . '<p class="small mrgn-tp-0">' . $user_department . '</p>'; |
|
56 | + } else { |
|
57 | + $htmloutput = $htmloutput . '<p class="small mrgn-tp-0 min-height-cs"></p>'; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | //changed connect button to send a friend request we should change the wording |
61 | - $htmloutput=$htmloutput.'<a href="'.elgg_add_action_tokens_to_url("action/friends/add?friend={$userGUID}"). '" class="btn btn-primary mrgn-tp-sm">'.elgg_echo('friend:add').'</a>'; |
|
62 | - $htmloutput=$htmloutput.'</div>'; |
|
61 | + $htmloutput = $htmloutput . '<a href="' . elgg_add_action_tokens_to_url("action/friends/add?friend={$userGUID}") . '" class="btn btn-primary mrgn-tp-sm">' . elgg_echo('friend:add') . '</a>'; |
|
62 | + $htmloutput = $htmloutput . '</div>'; |
|
63 | 63 | // $htmloutput=$htmloutput. $row['guid_two'].'-'; |
64 | 64 | } |
65 | 65 | } |
66 | - $htmloutput=$htmloutput.'</div>'; |
|
67 | - $htmloutput=$htmloutput.'<div class="clearfix"></div>'; |
|
68 | - $htmloutput=$htmloutput.'</div>'; |
|
66 | + $htmloutput = $htmloutput . '</div>'; |
|
67 | + $htmloutput = $htmloutput . '<div class="clearfix"></div>'; |
|
68 | + $htmloutput = $htmloutput . '</div>'; |
|
69 | 69 | echo $htmloutput; |
70 | 70 | } |
71 | 71 | $connection->close(); |
72 | 72 | } |
73 | 73 | catch (Exception $e) |
74 | 74 | { |
75 | - $errMess=$e->getMessage(); |
|
76 | - $errStack=$e->getTraceAsString(); |
|
77 | - $errType=$e->getCode(); |
|
78 | - gc_err_logging($errMess,$errStack,'Suggested Friends',$errType); |
|
75 | + $errMess = $e->getMessage(); |
|
76 | + $errStack = $e->getTraceAsString(); |
|
77 | + $errType = $e->getCode(); |
|
78 | + gc_err_logging($errMess, $errStack, 'Suggested Friends', $errType); |
|
79 | 79 | |
80 | 80 | $connection->close(); |
81 | 81 | } |
@@ -51,9 +51,9 @@ discard block |
||
51 | 51 | $htmloutput=$htmloutput.'<h4 class="h4 mrgn-tp-sm"><span class="text-primary">'.get_user($row['guid_two'])->getDisplayName().'</span></h4></a>'; |
52 | 52 | if($job){ // Nick - Adding department if no job, if none add a space |
53 | 53 | $htmloutput=$htmloutput.'<p class="small mrgn-tp-0">'.$job.'</p>'; |
54 | - }elseif(!$job && $user_department){ |
|
54 | + } elseif(!$job && $user_department){ |
|
55 | 55 | $htmloutput=$htmloutput.'<p class="small mrgn-tp-0">'.$user_department.'</p>'; |
56 | - }else{ |
|
56 | + } else{ |
|
57 | 57 | $htmloutput=$htmloutput.'<p class="small mrgn-tp-0 min-height-cs"></p>'; |
58 | 58 | } |
59 | 59 | |
@@ -69,8 +69,7 @@ discard block |
||
69 | 69 | echo $htmloutput; |
70 | 70 | } |
71 | 71 | $connection->close(); |
72 | - } |
|
73 | - catch (Exception $e) |
|
72 | + } catch (Exception $e) |
|
74 | 73 | { |
75 | 74 | $errMess=$e->getMessage(); |
76 | 75 | $errStack=$e->getTraceAsString(); |
@@ -68,16 +68,16 @@ discard block |
||
68 | 68 | if($subtype_test == 'comment' || $subtype_test =='discussion_reply'){ |
69 | 69 | |
70 | 70 | |
71 | - //$test = $subtype_test->getContainerEntity(); |
|
72 | - //get the container of the container if it's a comment or reply |
|
73 | - $container = $container->getContainerEntity(); |
|
74 | - $test = 'You need to find the group I am in.'; |
|
75 | - $commentordiscuss = true; |
|
71 | + //$test = $subtype_test->getContainerEntity(); |
|
72 | + //get the container of the container if it's a comment or reply |
|
73 | + $container = $container->getContainerEntity(); |
|
74 | + $test = 'You need to find the group I am in.'; |
|
75 | + $commentordiscuss = true; |
|
76 | 76 | |
77 | - //$subtype_test2 = $subtype_test->getContainerEntity(); |
|
77 | + //$subtype_test2 = $subtype_test->getContainerEntity(); |
|
78 | 78 | }else{ |
79 | - $test = ''; |
|
80 | - $commentordiscuss = false; |
|
79 | + $test = ''; |
|
80 | + $commentordiscuss = false; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
@@ -90,10 +90,10 @@ discard block |
||
90 | 90 | 'text' => $name, |
91 | 91 | 'is_trusted' => true, |
92 | 92 | )); |
93 | - //Nick - Changed "in the group" to just the group link in order to show this is group content. May need some looking at |
|
93 | + //Nick - Changed "in the group" to just the group link in order to show this is group content. May need some looking at |
|
94 | 94 | $group_string = $group_link; |
95 | - $group_image = elgg_view_entity_icon($container, 'medium'); |
|
96 | - $in_the_group = elgg_echo('river:ingroup', array($group_string)); |
|
95 | + $group_image = elgg_view_entity_icon($container, 'medium'); |
|
96 | + $in_the_group = elgg_echo('river:ingroup', array($group_string)); |
|
97 | 97 | // $group_testing = elgg_view_image_block($group_image, $group_link); |
98 | 98 | |
99 | 99 | |
@@ -107,8 +107,8 @@ discard block |
||
107 | 107 | //Nick - commented out comment or discuss var for instances of comments on blogs not within a group. |
108 | 108 | //Nick - checking for group activity context so it will use the other layout |
109 | 109 | if($group_string /*|| $commentordiscuss*/ && !elgg_in_context('group_activity_tab')){ |
110 | - $identify_activity = elgg_echo('group'); |
|
111 | - echo <<<RIVER |
|
110 | + $identify_activity = elgg_echo('group'); |
|
111 | + echo <<<RIVER |
|
112 | 112 | <div class=""> |
113 | 113 | |
114 | 114 | |
@@ -129,8 +129,8 @@ discard block |
||
129 | 129 | RIVER; |
130 | 130 | |
131 | 131 | }else{ |
132 | - $identify_activity = elgg_echo('friend:river'); |
|
133 | - echo <<<RIVER |
|
132 | + $identify_activity = elgg_echo('friend:river'); |
|
133 | + echo <<<RIVER |
|
134 | 134 | |
135 | 135 | <h3 class="elgg-river-summary mrgn-bttm-sm river-user-heading"> $summary </h3> |
136 | 136 |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | $subtype_test = $object->getSubtype(); |
67 | 67 | |
68 | -if($subtype_test == 'comment' || $subtype_test =='discussion_reply'){ |
|
68 | +if ($subtype_test == 'comment' || $subtype_test == 'discussion_reply') { |
|
69 | 69 | |
70 | 70 | |
71 | 71 | //$test = $subtype_test->getContainerEntity(); |
@@ -75,13 +75,13 @@ discard block |
||
75 | 75 | $commentordiscuss = true; |
76 | 76 | |
77 | 77 | //$subtype_test2 = $subtype_test->getContainerEntity(); |
78 | -}else{ |
|
78 | +} else { |
|
79 | 79 | $test = ''; |
80 | 80 | $commentordiscuss = false; |
81 | 81 | } |
82 | 82 | |
83 | 83 | |
84 | - $name = gc_explode_translation($container->name,$lang); |
|
84 | + $name = gc_explode_translation($container->name, $lang); |
|
85 | 85 | |
86 | 86 | |
87 | 87 | if ($container instanceof ElggGroup && $container->guid != elgg_get_page_owner_guid()) { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | //removed $responses |
107 | 107 | //Nick - commented out comment or discuss var for instances of comments on blogs not within a group. |
108 | 108 | //Nick - checking for group activity context so it will use the other layout |
109 | -if($group_string /*|| $commentordiscuss*/ && !elgg_in_context('group_activity_tab')){ |
|
109 | +if ($group_string /*|| $commentordiscuss*/ && !elgg_in_context('group_activity_tab')) { |
|
110 | 110 | $identify_activity = elgg_echo('group'); |
111 | 111 | echo <<<RIVER |
112 | 112 | <div class=""> |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | RIVER; |
130 | 130 | |
131 | -}else{ |
|
131 | +} else { |
|
132 | 132 | $identify_activity = elgg_echo('friend:river'); |
133 | 133 | echo <<<RIVER |
134 | 134 |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $commentordiscuss = true; |
76 | 76 | |
77 | 77 | //$subtype_test2 = $subtype_test->getContainerEntity(); |
78 | -}else{ |
|
78 | +} else{ |
|
79 | 79 | $test = ''; |
80 | 80 | $commentordiscuss = false; |
81 | 81 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | RIVER; |
130 | 130 | |
131 | -}else{ |
|
131 | +} else{ |
|
132 | 132 | $identify_activity = elgg_echo('friend:river'); |
133 | 133 | echo <<<RIVER |
134 | 134 |
@@ -24,52 +24,52 @@ |
||
24 | 24 | $subtype_test = $object->getSubtype(); |
25 | 25 | if($subtype_test == 'comment' || $subtype_test =='discussion_reply' || $subtype_test == 'image'){ |
26 | 26 | |
27 | - //get the container of the container if it's a comment or reply |
|
28 | - $container = $container->getContainerEntity(); |
|
29 | - $commentordiscuss = true; |
|
27 | + //get the container of the container if it's a comment or reply |
|
28 | + $container = $container->getContainerEntity(); |
|
29 | + $commentordiscuss = true; |
|
30 | 30 | |
31 | - //$subtype_test2 = $subtype_test->getContainerEntity(); |
|
31 | + //$subtype_test2 = $subtype_test->getContainerEntity(); |
|
32 | 32 | }else{ |
33 | 33 | |
34 | - $commentordiscuss = false; |
|
34 | + $commentordiscuss = false; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | //makes the widget icons small and the main river icons big :) |
38 | 38 | if(elgg_get_context() !== 'widgets'){ |
39 | - if(elgg_in_context('group_activity_tab')){ //Nick - Show creator of the content when viewing the group activity tab |
|
40 | - echo elgg_view_entity_icon($subject, 'medium'); |
|
41 | - } |
|
39 | + if(elgg_in_context('group_activity_tab')){ //Nick - Show creator of the content when viewing the group activity tab |
|
40 | + echo elgg_view_entity_icon($subject, 'medium'); |
|
41 | + } |
|
42 | 42 | if (elgg_in_context('widgets')) { |
43 | - if($container || $commentordiscuss){ |
|
44 | - echo elgg_view_entity_icon($container, 'medium'); |
|
43 | + if($container || $commentordiscuss){ |
|
44 | + echo elgg_view_entity_icon($container, 'medium'); |
|
45 | 45 | |
46 | - }else{ |
|
47 | - echo elgg_view_entity_icon($subject, 'medium'); |
|
48 | - } |
|
46 | + }else{ |
|
47 | + echo elgg_view_entity_icon($subject, 'medium'); |
|
48 | + } |
|
49 | 49 | |
50 | 50 | |
51 | 51 | } else { |
52 | 52 | |
53 | - //dont show group avatar when looking at group's activity feed |
|
54 | - if($container && $subtype_test && !elgg_in_context('group_activity_tab') && $container->guid != elgg_get_page_owner_guid()){//happens in group |
|
55 | - //if in group show the groups icon |
|
56 | - if(elgg_instanceof($container, 'group')){ |
|
57 | - echo elgg_view_entity_icon($container, 'medium'); |
|
58 | - } else { |
|
59 | - //if not just show user's icon |
|
60 | - echo elgg_view_entity_icon($object->getOwnerEntity(), 'medium'); |
|
61 | - } |
|
62 | - //echo $subtype_test; |
|
63 | - }else if($container && !elgg_in_context('group_activity_tab')){ |
|
64 | - //if user joins group show their photo, not group owner's image |
|
65 | - echo elgg_view_entity_icon($subject, 'medium'); |
|
66 | - }else if(!elgg_in_context('group_activity_tab')){ // Nick - do not show additional avatars on group activity tab |
|
67 | - echo elgg_view_entity_icon($subject, 'medium'); |
|
68 | - } |
|
53 | + //dont show group avatar when looking at group's activity feed |
|
54 | + if($container && $subtype_test && !elgg_in_context('group_activity_tab') && $container->guid != elgg_get_page_owner_guid()){//happens in group |
|
55 | + //if in group show the groups icon |
|
56 | + if(elgg_instanceof($container, 'group')){ |
|
57 | + echo elgg_view_entity_icon($container, 'medium'); |
|
58 | + } else { |
|
59 | + //if not just show user's icon |
|
60 | + echo elgg_view_entity_icon($object->getOwnerEntity(), 'medium'); |
|
61 | + } |
|
62 | + //echo $subtype_test; |
|
63 | + }else if($container && !elgg_in_context('group_activity_tab')){ |
|
64 | + //if user joins group show their photo, not group owner's image |
|
65 | + echo elgg_view_entity_icon($subject, 'medium'); |
|
66 | + }else if(!elgg_in_context('group_activity_tab')){ // Nick - do not show additional avatars on group activity tab |
|
67 | + echo elgg_view_entity_icon($subject, 'medium'); |
|
68 | + } |
|
69 | 69 | } |
70 | 70 | } else{ |
71 | 71 | if (elgg_in_context('widgets')) { |
72 | - echo elgg_view_entity_icon($subject, 'medium'); |
|
72 | + echo elgg_view_entity_icon($subject, 'medium'); |
|
73 | 73 | } else if(elgg_in_context('group_activity_tab')){ |
74 | 74 | |
75 | 75 | }else { |
@@ -22,28 +22,28 @@ discard block |
||
22 | 22 | //trying to get the container of a container for comments on content in a group |
23 | 23 | |
24 | 24 | $subtype_test = $object->getSubtype(); |
25 | -if($subtype_test == 'comment' || $subtype_test =='discussion_reply' || $subtype_test == 'image'){ |
|
25 | +if ($subtype_test == 'comment' || $subtype_test == 'discussion_reply' || $subtype_test == 'image') { |
|
26 | 26 | |
27 | 27 | //get the container of the container if it's a comment or reply |
28 | 28 | $container = $container->getContainerEntity(); |
29 | 29 | $commentordiscuss = true; |
30 | 30 | |
31 | 31 | //$subtype_test2 = $subtype_test->getContainerEntity(); |
32 | -}else{ |
|
32 | +} else { |
|
33 | 33 | |
34 | 34 | $commentordiscuss = false; |
35 | 35 | } |
36 | 36 | |
37 | 37 | //makes the widget icons small and the main river icons big :) |
38 | -if(elgg_get_context() !== 'widgets'){ |
|
39 | - if(elgg_in_context('group_activity_tab')){ //Nick - Show creator of the content when viewing the group activity tab |
|
38 | +if (elgg_get_context() !== 'widgets') { |
|
39 | + if (elgg_in_context('group_activity_tab')) { //Nick - Show creator of the content when viewing the group activity tab |
|
40 | 40 | echo elgg_view_entity_icon($subject, 'medium'); |
41 | 41 | } |
42 | 42 | if (elgg_in_context('widgets')) { |
43 | - if($container || $commentordiscuss){ |
|
43 | + if ($container || $commentordiscuss) { |
|
44 | 44 | echo elgg_view_entity_icon($container, 'medium'); |
45 | 45 | |
46 | - }else{ |
|
46 | + } else { |
|
47 | 47 | echo elgg_view_entity_icon($subject, 'medium'); |
48 | 48 | } |
49 | 49 | |
@@ -51,28 +51,28 @@ discard block |
||
51 | 51 | } else { |
52 | 52 | |
53 | 53 | //dont show group avatar when looking at group's activity feed |
54 | - if($container && $subtype_test && !elgg_in_context('group_activity_tab') && $container->guid != elgg_get_page_owner_guid()){//happens in group |
|
54 | + if ($container && $subtype_test && !elgg_in_context('group_activity_tab') && $container->guid != elgg_get_page_owner_guid()) {//happens in group |
|
55 | 55 | //if in group show the groups icon |
56 | - if(elgg_instanceof($container, 'group')){ |
|
56 | + if (elgg_instanceof($container, 'group')) { |
|
57 | 57 | echo elgg_view_entity_icon($container, 'medium'); |
58 | 58 | } else { |
59 | 59 | //if not just show user's icon |
60 | 60 | echo elgg_view_entity_icon($object->getOwnerEntity(), 'medium'); |
61 | 61 | } |
62 | 62 | //echo $subtype_test; |
63 | - }else if($container && !elgg_in_context('group_activity_tab')){ |
|
63 | + } else if ($container && !elgg_in_context('group_activity_tab')) { |
|
64 | 64 | //if user joins group show their photo, not group owner's image |
65 | 65 | echo elgg_view_entity_icon($subject, 'medium'); |
66 | - }else if(!elgg_in_context('group_activity_tab')){ // Nick - do not show additional avatars on group activity tab |
|
66 | + } else if (!elgg_in_context('group_activity_tab')) { // Nick - do not show additional avatars on group activity tab |
|
67 | 67 | echo elgg_view_entity_icon($subject, 'medium'); |
68 | 68 | } |
69 | 69 | } |
70 | -} else{ |
|
70 | +} else { |
|
71 | 71 | if (elgg_in_context('widgets')) { |
72 | 72 | echo elgg_view_entity_icon($subject, 'medium'); |
73 | -} else if(elgg_in_context('group_activity_tab')){ |
|
73 | +} else if (elgg_in_context('group_activity_tab')) { |
|
74 | 74 | |
75 | - }else { |
|
75 | + } else { |
|
76 | 76 | echo elgg_view_entity_icon($subject, 'medium'); |
77 | 77 | } |
78 | 78 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $commentordiscuss = true; |
30 | 30 | |
31 | 31 | //$subtype_test2 = $subtype_test->getContainerEntity(); |
32 | -}else{ |
|
32 | +} else{ |
|
33 | 33 | |
34 | 34 | $commentordiscuss = false; |
35 | 35 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | if($container || $commentordiscuss){ |
44 | 44 | echo elgg_view_entity_icon($container, 'medium'); |
45 | 45 | |
46 | - }else{ |
|
46 | + } else{ |
|
47 | 47 | echo elgg_view_entity_icon($subject, 'medium'); |
48 | 48 | } |
49 | 49 | |
@@ -60,10 +60,10 @@ discard block |
||
60 | 60 | echo elgg_view_entity_icon($object->getOwnerEntity(), 'medium'); |
61 | 61 | } |
62 | 62 | //echo $subtype_test; |
63 | - }else if($container && !elgg_in_context('group_activity_tab')){ |
|
63 | + } else if($container && !elgg_in_context('group_activity_tab')){ |
|
64 | 64 | //if user joins group show their photo, not group owner's image |
65 | 65 | echo elgg_view_entity_icon($subject, 'medium'); |
66 | - }else if(!elgg_in_context('group_activity_tab')){ // Nick - do not show additional avatars on group activity tab |
|
66 | + } else if(!elgg_in_context('group_activity_tab')){ // Nick - do not show additional avatars on group activity tab |
|
67 | 67 | echo elgg_view_entity_icon($subject, 'medium'); |
68 | 68 | } |
69 | 69 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | echo elgg_view_entity_icon($subject, 'medium'); |
73 | 73 | } else if(elgg_in_context('group_activity_tab')){ |
74 | 74 | |
75 | - }else { |
|
75 | + } else { |
|
76 | 76 | echo elgg_view_entity_icon($subject, 'medium'); |
77 | 77 | } |
78 | 78 | } |
@@ -10,11 +10,11 @@ discard block |
||
10 | 10 | |
11 | 11 | $page_mode = get_input('script', 'default'); |
12 | 12 | |
13 | -if ( $page_mode == 'bilingual_upgrade' ) { |
|
13 | +if ($page_mode == 'bilingual_upgrade') { |
|
14 | 14 | echo "<br /><h3>upgrade en/fr content storage</h3>"; |
15 | 15 | echo elgg_view("output/url", |
16 | 16 | array( |
17 | - 'href' => elgg_get_site_url().'admin/plugin_settings/wet4', |
|
17 | + 'href' => elgg_get_site_url() . 'admin/plugin_settings/wet4', |
|
18 | 18 | 'text' => '<< back to settings page', |
19 | 19 | ) |
20 | 20 | ); |
@@ -22,22 +22,22 @@ discard block |
||
22 | 22 | $access_status = access_get_show_hidden_status(); |
23 | 23 | access_show_hidden_entities(true); |
24 | 24 | |
25 | - $title2_id = elgg_get_metastring_id('title2', true); // get the metastring id, create the metastring if it does not exist |
|
25 | + $title2_id = elgg_get_metastring_id('title2', true); // get the metastring id, create the metastring if it does not exist |
|
26 | 26 | $title3_id = elgg_get_metastring_id('title3', true); |
27 | 27 | |
28 | - $name2_id = elgg_get_metastring_id('name2', true); // get the metastring id, create the metastring if it does not exist |
|
28 | + $name2_id = elgg_get_metastring_id('name2', true); // get the metastring id, create the metastring if it does not exist |
|
29 | 29 | $name3_id = elgg_get_metastring_id('name3', true); |
30 | 30 | |
31 | - $description2_id = elgg_get_metastring_id('description2', true); // get the metastring id, create the metastring if it does not exist |
|
31 | + $description2_id = elgg_get_metastring_id('description2', true); // get the metastring id, create the metastring if it does not exist |
|
32 | 32 | $description3_id = elgg_get_metastring_id('description3', true); |
33 | 33 | |
34 | - $briefdescription2_id = elgg_get_metastring_id('briefdescription2', true); // get the metastring id, create the metastring if it does not exist |
|
34 | + $briefdescription2_id = elgg_get_metastring_id('briefdescription2', true); // get the metastring id, create the metastring if it does not exist |
|
35 | 35 | $briefdescription3_id = elgg_get_metastring_id('briefdescription3', true); |
36 | 36 | |
37 | - $excerpt2_id = elgg_get_metastring_id('excerpt2', true); // get the metastring id, create the metastring if it does not exist |
|
37 | + $excerpt2_id = elgg_get_metastring_id('excerpt2', true); // get the metastring id, create the metastring if it does not exist |
|
38 | 38 | $excerpt3_id = elgg_get_metastring_id('excerpt3', true); |
39 | 39 | |
40 | - $poll_choice2_id = elgg_get_metastring_id('poll_choice2', true); // get the metastring id, create the metastring if it does not exist |
|
40 | + $poll_choice2_id = elgg_get_metastring_id('poll_choice2', true); // get the metastring id, create the metastring if it does not exist |
|
41 | 41 | $poll_choice3_id = elgg_get_metastring_id('poll_choice3', true); |
42 | 42 | |
43 | 43 | $db_prefix = elgg_get_config('dbprefix'); |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | } |
62 | 62 | echo "<div class='checkbox'>"; |
63 | 63 | echo elgg_echo('wet4:ExtTheme'); |
64 | - echo "<label>".elgg_view('input/checkbox',$options); |
|
65 | - echo elgg_echo('wet4:ExtThemeYes')."</label>"; |
|
64 | + echo "<label>" . elgg_view('input/checkbox', $options); |
|
65 | + echo elgg_echo('wet4:ExtThemeYes') . "</label>"; |
|
66 | 66 | echo "</div>"; |
67 | 67 | |
68 | 68 | echo "<div>"; |
@@ -83,6 +83,6 @@ discard block |
||
83 | 83 | if (elgg_get_plugin_setting('deptActivity', 'wet4')) { |
84 | 84 | $options['checked'] = 'checked'; |
85 | 85 | } |
86 | - echo "<label>".elgg_view('input/checkbox',$options)." Add Newsfeed-like page for user's department</label>"; |
|
86 | + echo "<label>" . elgg_view('input/checkbox', $options) . " Add Newsfeed-like page for user's department</label>"; |
|
87 | 87 | } |
88 | 88 | ?> |
@@ -50,8 +50,7 @@ |
||
50 | 50 | )); |
51 | 51 | |
52 | 52 | access_show_hidden_entities($access_status); |
53 | -} |
|
54 | -else { |
|
53 | +} else { |
|
55 | 54 | $options = array( |
56 | 55 | 'name' => 'params[ExtTheme]', |
57 | 56 | 'value' => 1 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $user_icon = elgg_view_entity_icon($user, 'small'); |
18 | 18 | $user_link = "<a href=\"{$user->getURL()}\">$user->name</a>"; |
19 | 19 | |
20 | -$title = gc_explode_translation($entity->getDisplayName(),$lang); |
|
20 | +$title = gc_explode_translation($entity->getDisplayName(), $lang); |
|
21 | 21 | if (!$title) { |
22 | 22 | if ($entity->description) { |
23 | 23 | $title = elgg_get_excerpt($entity->description, 30); |
@@ -29,9 +29,9 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | if (!isset($vars['title'])) { |
32 | - if($entity->title3){ |
|
32 | + if ($entity->title3) { |
|
33 | 33 | $title = gc_explode_translation($entity->title3, $lang); |
34 | - }else{ |
|
34 | + } else { |
|
35 | 35 | $title = $entity->getTitle(); |
36 | 36 | } |
37 | 37 | |
@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | } |
51 | 51 | $class = " $class center-block img-responsive"; |
52 | 52 | |
53 | -$time = time();// add time to fix cache problem with image rotation |
|
53 | +$time = time(); // add time to fix cache problem with image rotation |
|
54 | 54 | $img_src = $entity->getIconURL($vars['size']); |
55 | 55 | $img_src = elgg_format_url($img_src); |
56 | 56 | $img = elgg_view('output/img', array( |
57 | - 'src' => $img_src.''.$time, |
|
57 | + 'src' => $img_src . '' . $time, |
|
58 | 58 | 'class' => $class, |
59 | 59 | 'title' => $title, |
60 | 60 | 'alt' => $title, |
@@ -31,7 +31,7 @@ |
||
31 | 31 | if (!isset($vars['title'])) { |
32 | 32 | if($entity->title3){ |
33 | 33 | $title = gc_explode_translation($entity->title3, $lang); |
34 | - }else{ |
|
34 | + } else{ |
|
35 | 35 | $title = $entity->getTitle(); |
36 | 36 | } |
37 | 37 |