Completed
Push — gcconnex ( ee5ffc...718fe4 )
by Ilia
09:37 queued 04:29
created
b_extended_profile_collab/views/default/b_extended_profile/education.php 3 patches
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (elgg_is_xhr()) {
4
-    $user_guid = $_GET["guid"];
4
+	$user_guid = $_GET["guid"];
5 5
 }else {
6
-    $user_guid = elgg_get_page_owner_guid();
6
+	$user_guid = elgg_get_page_owner_guid();
7 7
 }
8 8
 
9 9
 $user = get_user($user_guid);
@@ -12,48 +12,48 @@  discard block
 block discarded – undo
12 12
 echo '<div class="gcconnex-profile-education-display ">';
13 13
 
14 14
 if ($user->canEdit() && ($education_guid == NULL || empty($education_guid))) {
15
-    echo elgg_echo('gcconnex_profile:education:empty');
15
+	echo elgg_echo('gcconnex_profile:education:empty');
16 16
 
17 17
 }else {
18 18
 
19
-    if (!(is_array($education_guid))) {
20
-        $education_guid = array($education_guid);
21
-    }
22
-    usort($education_guid, "sortDate");
19
+	if (!(is_array($education_guid))) {
20
+		$education_guid = array($education_guid);
21
+	}
22
+	usort($education_guid, "sortDate");
23 23
 
24
-    foreach ($education_guid as $guid) {
24
+	foreach ($education_guid as $guid) {
25 25
 
26
-        if ($education = get_entity($guid)) {
26
+		if ($education = get_entity($guid)) {
27 27
 
28
-            echo '<div class="gcconnex-profile-education-display gcconnex-education-' . $education->guid . '">';
29
-            echo '<div class="gcconnex-profile-label education-school">' . htmlspecialchars_decode($education->school) . '</div>';
30
-            echo '<div class="gcconnex-profile-label education-degree">' . htmlspecialchars_decode($education->degree) . '<span aria-hidden="true"> - </span><span class="wb-invisible"> '.elgg_echo('profile:content:for').' </span>' . htmlspecialchars_decode($education->field) . '</div>';
28
+			echo '<div class="gcconnex-profile-education-display gcconnex-education-' . $education->guid . '">';
29
+			echo '<div class="gcconnex-profile-label education-school">' . htmlspecialchars_decode($education->school) . '</div>';
30
+			echo '<div class="gcconnex-profile-label education-degree">' . htmlspecialchars_decode($education->degree) . '<span aria-hidden="true"> - </span><span class="wb-invisible"> '.elgg_echo('profile:content:for').' </span>' . htmlspecialchars_decode($education->field) . '</div>';
31 31
             
32
-            $cal_month = array(
33
-                    1 => elgg_echo('gcconnex_profile:month:january'),
34
-                    2 => elgg_echo('gcconnex_profile:month:february'),
35
-                    3 => elgg_echo('gcconnex_profile:month:march'),
36
-                    4 => elgg_echo('gcconnex_profile:month:april'),
37
-                    5 => elgg_echo('gcconnex_profile:month:may'),
38
-                    6 => elgg_echo('gcconnex_profile:month:june'),
39
-                    7 => elgg_echo('gcconnex_profile:month:july'),
40
-                    8 => elgg_echo('gcconnex_profile:month:august'),
41
-                    9 => elgg_echo('gcconnex_profile:month:september'),
42
-                    10 => elgg_echo('gcconnex_profile:month:october'),
43
-                    11 => elgg_echo('gcconnex_profile:month:november'),
44
-                    12 => elgg_echo('gcconnex_profile:month:december')
45
-                );
46
-            echo '<div class="gcconnex-profile-label timeStamp">' . $cal_month[$education->startdate] . ', ' . $education->startyear . '<span aria-hidden="true"> - </span><span class="wb-invisible"> '.elgg_echo('profile:content:to').' </span>';
47
-
48
-            if ($education->ongoing == 'true') {
49
-                echo elgg_echo('gcconnex_profile:education:present');
50
-            } else {
51
-                echo $cal_month[$education->enddate] . ', ' . $education->endyear;
52
-            }
53
-            echo '</div>';
54
-            echo '</div>';
55
-        }
56
-    }
32
+			$cal_month = array(
33
+					1 => elgg_echo('gcconnex_profile:month:january'),
34
+					2 => elgg_echo('gcconnex_profile:month:february'),
35
+					3 => elgg_echo('gcconnex_profile:month:march'),
36
+					4 => elgg_echo('gcconnex_profile:month:april'),
37
+					5 => elgg_echo('gcconnex_profile:month:may'),
38
+					6 => elgg_echo('gcconnex_profile:month:june'),
39
+					7 => elgg_echo('gcconnex_profile:month:july'),
40
+					8 => elgg_echo('gcconnex_profile:month:august'),
41
+					9 => elgg_echo('gcconnex_profile:month:september'),
42
+					10 => elgg_echo('gcconnex_profile:month:october'),
43
+					11 => elgg_echo('gcconnex_profile:month:november'),
44
+					12 => elgg_echo('gcconnex_profile:month:december')
45
+				);
46
+			echo '<div class="gcconnex-profile-label timeStamp">' . $cal_month[$education->startdate] . ', ' . $education->startyear . '<span aria-hidden="true"> - </span><span class="wb-invisible"> '.elgg_echo('profile:content:to').' </span>';
47
+
48
+			if ($education->ongoing == 'true') {
49
+				echo elgg_echo('gcconnex_profile:education:present');
50
+			} else {
51
+				echo $cal_month[$education->enddate] . ', ' . $education->endyear;
52
+			}
53
+			echo '</div>';
54
+			echo '</div>';
55
+		}
56
+	}
57 57
 }
58 58
 
59 59
 echo '</div>'; // close div class="gcconnex-profile-education-display"
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 if (elgg_is_xhr()) {
4 4
     $user_guid = $_GET["guid"];
5
-}else {
5
+} else {
6 6
     $user_guid = elgg_get_page_owner_guid();
7 7
 }
8 8
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 if ($user->canEdit() && ($education_guid == NULL || empty($education_guid))) {
15 15
     echo elgg_echo('gcconnex_profile:education:empty');
16 16
 
17
-}else {
17
+} else {
18 18
 
19 19
     if (!(is_array($education_guid))) {
20 20
         $education_guid = array($education_guid);
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
             echo '<div class="gcconnex-profile-education-display gcconnex-education-' . $education->guid . '">';
29 29
             echo '<div class="gcconnex-profile-label education-school">' . htmlspecialchars_decode($education->school) . '</div>';
30
-            echo '<div class="gcconnex-profile-label education-degree">' . htmlspecialchars_decode($education->degree) . '<span aria-hidden="true"> - </span><span class="wb-invisible"> '.elgg_echo('profile:content:for').' </span>' . htmlspecialchars_decode($education->field) . '</div>';
30
+            echo '<div class="gcconnex-profile-label education-degree">' . htmlspecialchars_decode($education->degree) . '<span aria-hidden="true"> - </span><span class="wb-invisible"> ' . elgg_echo('profile:content:for') . ' </span>' . htmlspecialchars_decode($education->field) . '</div>';
31 31
             
32 32
             $cal_month = array(
33 33
                     1 => elgg_echo('gcconnex_profile:month:january'),
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                     11 => elgg_echo('gcconnex_profile:month:november'),
44 44
                     12 => elgg_echo('gcconnex_profile:month:december')
45 45
                 );
46
-            echo '<div class="gcconnex-profile-label timeStamp">' . $cal_month[$education->startdate] . ', ' . $education->startyear . '<span aria-hidden="true"> - </span><span class="wb-invisible"> '.elgg_echo('profile:content:to').' </span>';
46
+            echo '<div class="gcconnex-profile-label timeStamp">' . $cal_month[$education->startdate] . ', ' . $education->startyear . '<span aria-hidden="true"> - </span><span class="wb-invisible"> ' . elgg_echo('profile:content:to') . ' </span>';
47 47
 
48 48
             if ($education->ongoing == 'true') {
49 49
                 echo elgg_echo('gcconnex_profile:education:present');
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 if (elgg_is_xhr()) {
4 4
     $user_guid = $_GET["guid"];
5
-}else {
5
+} else {
6 6
     $user_guid = elgg_get_page_owner_guid();
7 7
 }
8 8
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 if ($user->canEdit() && ($education_guid == NULL || empty($education_guid))) {
15 15
     echo elgg_echo('gcconnex_profile:education:empty');
16 16
 
17
-}else {
17
+} else {
18 18
 
19 19
     if (!(is_array($education_guid))) {
20 20
         $education_guid = array($education_guid);
Please login to merge, or discard this patch.
b_extended_profile_collab/views/default/b_extended_profile/edit_opt-in.php 3 patches
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
 	}*/
49 49
     
50 50
     
51
-                $opt_in_set = array($user->opt_in_missions, $user->opt_in_swap, $user->opt_in_mentored, $user->opt_in_mentoring, $user->opt_in_shadowed, $user->opt_in_shadowing, $user->opt_in_jobshare, $user->opt_in_pcSeek, $user->opt_in_pcCreate, $user->opt_in_ssSeek, $user->opt_in_ssCreate, $user->opt_in_rotation, $user->opt_in_assignSeek, $user->opt_in_assignCreate, $user->opt_in_deploySeek, $user->opt_in_deployCreate, $user->opt_in_missionCreate, $user->opt_in_casual_seek, $user->opt_in_casual_create, $user->opt_in_student_seek, $user->opt_in_student_create);
52
-    //Nick - Loop through array of selected things and change their value to match the meta data        
51
+				$opt_in_set = array($user->opt_in_missions, $user->opt_in_swap, $user->opt_in_mentored, $user->opt_in_mentoring, $user->opt_in_shadowed, $user->opt_in_shadowing, $user->opt_in_jobshare, $user->opt_in_pcSeek, $user->opt_in_pcCreate, $user->opt_in_ssSeek, $user->opt_in_ssCreate, $user->opt_in_rotation, $user->opt_in_assignSeek, $user->opt_in_assignCreate, $user->opt_in_deploySeek, $user->opt_in_deployCreate, $user->opt_in_missionCreate, $user->opt_in_casual_seek, $user->opt_in_casual_create, $user->opt_in_student_seek, $user->opt_in_student_create);
52
+	//Nick - Loop through array of selected things and change their value to match the meta data        
53 53
 foreach($opt_in_set as $k => $v){
54
-    if($v == 'gcconnex_profile:opt:yes'){
55
-        $opt_in_set[$k]  = true;
56
-    }else{
57
-        $opt_in_set[$k]  = false;   
58
-    }
54
+	if($v == 'gcconnex_profile:opt:yes'){
55
+		$opt_in_set[$k]  = true;
56
+	}else{
57
+		$opt_in_set[$k]  = false;   
58
+	}
59 59
 }
60 60
     
61 61
 	/*if($user->opt_in_peer_coached == 'gcconnex_profile:opt:yes') {
@@ -154,23 +154,23 @@  discard block
 block discarded – undo
154 154
                 <ul class="brdr-lft clearfix mrgn-lft-md list-unstyled">
155 155
                 	<li class="clearfix pull-left mrgn-lft-md">
156 156
 		                <?php
157
-		                	echo elgg_view("input/checkbox", array(
158
-						        'name' => 'casualseek_check',
159
-						        'checked' => $opt_in_set[17],
160
-						        'id' => 'gcconnex-opt-in-casualseek-check',
161
-			                    'label' => elgg_echo('gcconnex_profile:opt:seeking') 
162
-			               	));
163
-		                ?>
157
+							echo elgg_view("input/checkbox", array(
158
+								'name' => 'casualseek_check',
159
+								'checked' => $opt_in_set[17],
160
+								'id' => 'gcconnex-opt-in-casualseek-check',
161
+								'label' => elgg_echo('gcconnex_profile:opt:seeking') 
162
+						   	));
163
+						?>
164 164
                 	</li>
165 165
 	                <li class="clearfix pull-left mrgn-lft-md">
166 166
 		                <?php
167
-		                	echo elgg_view("input/checkbox", array(
168
-						        'name' => 'casualcreate_check',
169
-						        'checked' => $opt_in_set[18],
170
-						        'id' => 'gcconnex-opt-in-casualcreate-check',
171
-			                    'label' => elgg_echo('gcconnex_profile:opt:offering')
172
-			            	));
173
-		                ?>
167
+							echo elgg_view("input/checkbox", array(
168
+								'name' => 'casualcreate_check',
169
+								'checked' => $opt_in_set[18],
170
+								'id' => 'gcconnex-opt-in-casualcreate-check',
171
+								'label' => elgg_echo('gcconnex_profile:opt:offering')
172
+							));
173
+						?>
174 174
                 	</li>
175 175
                 </ul>
176 176
             </li>
@@ -179,23 +179,23 @@  discard block
 block discarded – undo
179 179
                 <ul class="brdr-lft clearfix mrgn-lft-md list-unstyled">
180 180
                 	<li class="clearfix pull-left mrgn-lft-md">
181 181
 		                <?php
182
-		                	echo elgg_view("input/checkbox", array(
183
-						        'name' => 'studentseek_check',
184
-						        'checked' => $opt_in_set[19],
185
-						        'id' => 'gcconnex-opt-in-studentseek-check',
186
-			                    'label' => elgg_echo('gcconnex_profile:opt:seeking') 
187
-			               	));
188
-		                ?>
182
+							echo elgg_view("input/checkbox", array(
183
+								'name' => 'studentseek_check',
184
+								'checked' => $opt_in_set[19],
185
+								'id' => 'gcconnex-opt-in-studentseek-check',
186
+								'label' => elgg_echo('gcconnex_profile:opt:seeking') 
187
+						   	));
188
+						?>
189 189
                 	</li>
190 190
 	                <li class="clearfix pull-left mrgn-lft-md">
191 191
 		                <?php
192
-		                	echo elgg_view("input/checkbox", array(
193
-						        'name' => 'studentcreate_check',
194
-						        'checked' => $opt_in_set[20],
195
-						        'id' => 'gcconnex-opt-in-studentcreate-check',
196
-			                    'label' => elgg_echo('gcconnex_profile:opt:offering')
197
-			            	));
198
-		                ?>
192
+							echo elgg_view("input/checkbox", array(
193
+								'name' => 'studentcreate_check',
194
+								'checked' => $opt_in_set[20],
195
+								'id' => 'gcconnex-opt-in-studentcreate-check',
196
+								'label' => elgg_echo('gcconnex_profile:opt:offering')
197
+							));
198
+						?>
199 199
                 	</li>
200 200
                 </ul>
201 201
             </li>
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
 								'id' => 'gcconnex-opt-in-mentored-check',
342 342
 								'label' => elgg_echo('gcconnex_profile:opt:mentored'),
343 343
 							));
344
-		                ?>
344
+						?>
345 345
 		            </li>
346 346
 
347 347
 		            <li class="clearfix pull-left mrgn-lft-md">
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 								'id' => 'gcconnex-opt-in-mentoring-check',
353 353
 								'label' => elgg_echo('gcconnex_profile:opt:mentoring'),
354 354
 							));
355
-		                ?>
355
+						?>
356 356
 		            </li>
357 357
                 </ul>
358 358
             </li>
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,18 +14,18 @@  discard block
 block discarded – undo
14 14
  * This view is inside a section wrapper as described in wrapper.php.
15 15
  */
16 16
 if (elgg_is_xhr) {
17
-	echo elgg_echo ( 'gcconnex_profile:opt:opt_in_access' );
17
+	echo elgg_echo('gcconnex_profile:opt:opt_in_access');
18 18
 	
19 19
 	$user_guid = elgg_get_logged_in_user_guid();
20
-	$user = get_user ( $user_guid );
20
+	$user = get_user($user_guid);
21 21
 	
22 22
 	$access_id = $user->optaccess;
23
-	$params = array (
23
+	$params = array(
24 24
 			'name' => "accesslevel['optaccess']",
25 25
 			'value' => $access_id,
26 26
 			'class' => 'gcconnex-opt-in-access' 
27 27
 	);
28
-	echo elgg_view ( 'input/access', $params );
28
+	echo elgg_view('input/access', $params);
29 29
 	
30 30
 	// Decides whether or not the checkbox should start checked.
31 31
 	/*if($user->opt_in_missions == 'gcconnex_profile:opt:yes') {
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
     
51 51
                 $opt_in_set = array($user->opt_in_missions, $user->opt_in_swap, $user->opt_in_mentored, $user->opt_in_mentoring, $user->opt_in_shadowed, $user->opt_in_shadowing, $user->opt_in_jobshare, $user->opt_in_pcSeek, $user->opt_in_pcCreate, $user->opt_in_ssSeek, $user->opt_in_ssCreate, $user->opt_in_rotation, $user->opt_in_assignSeek, $user->opt_in_assignCreate, $user->opt_in_deploySeek, $user->opt_in_deployCreate, $user->opt_in_missionCreate, $user->opt_in_casual_seek, $user->opt_in_casual_create, $user->opt_in_student_seek, $user->opt_in_student_create);
52 52
     //Nick - Loop through array of selected things and change their value to match the meta data        
53
-foreach($opt_in_set as $k => $v){
54
-    if($v == 'gcconnex_profile:opt:yes'){
53
+foreach ($opt_in_set as $k => $v) {
54
+    if ($v == 'gcconnex_profile:opt:yes') {
55 55
         $opt_in_set[$k]  = true;
56
-    }else{
56
+    } else {
57 57
         $opt_in_set[$k]  = false;   
58 58
     }
59 59
 }
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
         <ul class="list-unstyled">
331 331
             
332 332
             <li class="clearfix">
333
-                <?php echo elgg_echo('missions:mentoring');?>
333
+                <?php echo elgg_echo('missions:mentoring'); ?>
334 334
                 
335 335
                 <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled">
336 336
 	                <li class="clearfix pull-left mrgn-lft-md">
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 foreach($opt_in_set as $k => $v){
54 54
     if($v == 'gcconnex_profile:opt:yes'){
55 55
         $opt_in_set[$k]  = true;
56
-    }else{
56
+    } else{
57 57
         $opt_in_set[$k]  = false;   
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
mod/b_extended_profile_collab/views/default/b_extended_profile/opt-in.php 3 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@  discard block
 block discarded – undo
14 14
 	 */
15 15
 
16 16
 	if (elgg_is_xhr()) {
17
-    	$user_guid = $_GET["guid"];
17
+		$user_guid = $_GET["guid"];
18 18
 	}
19 19
 	else {
20
-    	$user_guid = elgg_get_logged_in_user_guid();
20
+		$user_guid = elgg_get_logged_in_user_guid();
21 21
 	}
22 22
 	
23 23
 	// Gets the opt_in_set from the user's profile.
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	}
33 33
 	else {
34 34
 		echo '<div class="gcconnex-profile-opt-in-display-table" style="margin: 10px;">';
35
-        echo '<div class="col-sm-6 "><h3 class="h4 mrgn-tp-0">'. elgg_echo('gcconnex_profile:opt:career').'</h3>';
35
+		echo '<div class="col-sm-6 "><h3 class="h4 mrgn-tp-0">'. elgg_echo('gcconnex_profile:opt:career').'</h3>';
36 36
 		echo '<ul class="list-unstyled">';
37 37
 				echo '<li class="left-col casual-tooltip" title="' . elgg_echo('gcconnex_profile:opt:casual_tooltip') . '">' . elgg_echo('gcconnex_profile:opt:casual_seek');
38 38
 				echo '<span class="mrgn-lft-md">' . elgg_echo($user->opt_in_casual_seek) . '</span></li>';
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
         
71 71
 				
72 72
         */       
73
-        echo '</ul></div>';
73
+		echo '</ul></div>';
74 74
         
75
-        echo '<div class="col-sm-6 "><h3 class="h4 mrgn-tp-0">'. elgg_echo('gcconnex_profile:opt:development').'</h3>';
76
-        echo '<ul class="list-unstyled">';
75
+		echo '<div class="col-sm-6 "><h3 class="h4 mrgn-tp-0">'. elgg_echo('gcconnex_profile:opt:development').'</h3>';
76
+		echo '<ul class="list-unstyled">';
77 77
                 
78 78
 				
79
-                echo '<li class="left-col">' . elgg_echo('gcconnex_profile:opt:mentored');
79
+				echo '<li class="left-col">' . elgg_echo('gcconnex_profile:opt:mentored');
80 80
 				echo '<span class="mrgn-lft-md">' . elgg_echo($user->opt_in_mentored) . '</span></li>';
81 81
 				echo '<li class="left-col">' . elgg_echo('gcconnex_profile:opt:mentoring');
82 82
 				echo '<span class="mrgn-lft-md">' . elgg_echo($user->opt_in_mentoring) . '</span></li>';
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 
104 104
         
105 105
                 
106
-                echo '</ul></div>';
106
+				echo '</ul></div>';
107 107
 			/*echo '</tr><tr>';
108 108
 				echo '<div class="left-col">' . elgg_echo('gcconnex_profile:opt:peer_coached') . '</div>';
109 109
 				echo '<div>' . elgg_echo($user->opt_in_peer_coached) . '</div>';
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
 	echo '<a class="opt-in-anchor"></a>';
28 28
 	echo '<div class="gcconnex-profile-opt-in-display" style="padding:20px 20px 10px 0px;">';
29 29
 		
30
-	if($user->canEdit() && false) {
30
+	if ($user->canEdit() && false) {
31 31
 		echo elgg_echo('gcconnex_profile:opt:set_empty');
32 32
 	}
33 33
 	else {
34 34
 		echo '<div class="gcconnex-profile-opt-in-display-table" style="margin: 10px;">';
35
-        echo '<div class="col-sm-6 "><h3 class="h4 mrgn-tp-0">'. elgg_echo('gcconnex_profile:opt:career').'</h3>';
35
+        echo '<div class="col-sm-6 "><h3 class="h4 mrgn-tp-0">' . elgg_echo('gcconnex_profile:opt:career') . '</h3>';
36 36
 		echo '<ul class="list-unstyled">';
37 37
 				echo '<li class="left-col casual-tooltip" title="' . elgg_echo('gcconnex_profile:opt:casual_tooltip') . '">' . elgg_echo('gcconnex_profile:opt:casual_seek');
38 38
 				echo '<span class="mrgn-lft-md">' . elgg_echo($user->opt_in_casual_seek) . '</span></li>';
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         */       
73 73
         echo '</ul></div>';
74 74
         
75
-        echo '<div class="col-sm-6 "><h3 class="h4 mrgn-tp-0">'. elgg_echo('gcconnex_profile:opt:development').'</h3>';
75
+        echo '<div class="col-sm-6 "><h3 class="h4 mrgn-tp-0">' . elgg_echo('gcconnex_profile:opt:development') . '</h3>';
76 76
         echo '<ul class="list-unstyled">';
77 77
                 
78 78
 				
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 	if (elgg_is_xhr()) {
17 17
     	$user_guid = $_GET["guid"];
18
-	}
19
-	else {
18
+	} else {
20 19
     	$user_guid = elgg_get_logged_in_user_guid();
21 20
 	}
22 21
 	
@@ -29,8 +28,7 @@  discard block
 block discarded – undo
29 28
 		
30 29
 	if($user->canEdit() && false) {
31 30
 		echo elgg_echo('gcconnex_profile:opt:set_empty');
32
-	}
33
-	else {
31
+	} else {
34 32
 		echo '<div class="gcconnex-profile-opt-in-display-table" style="margin: 10px;">';
35 33
         echo '<div class="col-sm-6 "><h3 class="h4 mrgn-tp-0">'. elgg_echo('gcconnex_profile:opt:career').'</h3>';
36 34
 		echo '<ul class="list-unstyled">';
Please login to merge, or discard this patch.
mod/freshdesk_help/languages/fr.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,4 +31,4 @@
 block discarded – undo
31 31
 
32 32
   'freshdesk:ticket:information' => "Avant de soumettre un billet, cherchez-le contenu d'aide pour trouver des informations sur les questions les plus courantes. Vous ne trouvez pas la réponse? Envoyez un billet en remplissant le formulaire ci-dessous. Veuillez décrire votre problème clairement et ajouter une capture d’écran, si possible. Un agent de du bureau d’aide répondra à votre demande dans les 2 prochains jours ouvrables.",
33 33
   'freshdesk:ticket:information:note' => "<b>Remarque:</b> Nous utilisons maintenant Freshdesk comme outil de tierce partie pour gérer les activités du bureau d’aide. Après avoir créé votre billet, vous devriez recevoir un courriel de confirmation avec un lien vers votre billet."
34
-    );
34
+	);
Please login to merge, or discard this patch.
mod/freshdesk_help/languages/en.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -1,44 +1,44 @@
 block discarded – undo
1 1
 <?php
2 2
 return array(
3 3
 
4
-      'freshdesk:page:title' => 'Help / Contact Us',
4
+	  'freshdesk:page:title' => 'Help / Contact Us',
5 5
 
6
-      //search knowledge base
7
-      'freshdesk:knowledge:title' => "Help Content",
8
-      'freshdesk:knowledge:search:title' => "How can we help you today?",
9
-      'freshdesk:knowledge:search:info' => 'Need help? Search our help content to find information and tutorials that will guide you!<br><br><b>Note:</b> The help content is hosted on Freshdesk, a third-party support tool that allows you to easily search articles, as well as submit and track help desk tickets. As you navigate through the help content below, you may be redirected to the Freshdesk website. ',
6
+	  //search knowledge base
7
+	  'freshdesk:knowledge:title' => "Help Content",
8
+	  'freshdesk:knowledge:search:title' => "How can we help you today?",
9
+	  'freshdesk:knowledge:search:info' => 'Need help? Search our help content to find information and tutorials that will guide you!<br><br><b>Note:</b> The help content is hosted on Freshdesk, a third-party support tool that allows you to easily search articles, as well as submit and track help desk tickets. As you navigate through the help content below, you may be redirected to the Freshdesk website. ',
10 10
 
11
-      'freshdesk:knowledge:explore:title' => 'Explore our help content',
11
+	  'freshdesk:knowledge:explore:title' => 'Explore our help content',
12 12
 
13
-      'freshdesk:knowledge:explore:return' => 'Back to knowledge base categories',
13
+	  'freshdesk:knowledge:explore:return' => 'Back to knowledge base categories',
14 14
 
15
-      //submit ticket form
16
-      'freshdesk:ticket:title' => "Submit a ticket",
17
-      'freshdesk:ticket:email' => "Email",
18
-      'freshdesk:ticket:subject' => "Subject",
19
-      'freshdesk:ticket:attachment' => "Attachment",
20
-      'freshdesk:ticket:description' => "Description",
21
-      'freshdesk:ticket:submit:confirmed' => "Your ticket has been submitted.",
22
-      'freshdesk:ticket:submit:denied' => "Something went wrong, please try again later.",
15
+	  //submit ticket form
16
+	  'freshdesk:ticket:title' => "Submit a ticket",
17
+	  'freshdesk:ticket:email' => "Email",
18
+	  'freshdesk:ticket:subject' => "Subject",
19
+	  'freshdesk:ticket:attachment' => "Attachment",
20
+	  'freshdesk:ticket:description' => "Description",
21
+	  'freshdesk:ticket:submit:confirmed' => "Your ticket has been submitted.",
22
+	  'freshdesk:ticket:submit:denied' => "Something went wrong, please try again later.",
23 23
 
24
-      'freshdesk:knowledge:search:info:embed' => 'Search our knowledge base to find the information you are looking for. For more information vist our <a href="https://gcpedia.gctools-outilsgc.ca/en/support/home">Support Home</a>.',
24
+	  'freshdesk:knowledge:search:info:embed' => 'Search our knowledge base to find the information you are looking for. For more information vist our <a href="https://gcpedia.gctools-outilsgc.ca/en/support/home">Support Home</a>.',
25 25
 
26
-      //elgg js doens't work the way it should in this version so loopholing through this thing
27
-      'freshdesk:knowledge:search:results:en' => 'Showing %s results.',
28
-      'freshdesk:knowledge:search:results:fr' => 'Indication du %s des résultats.',
26
+	  //elgg js doens't work the way it should in this version so loopholing through this thing
27
+	  'freshdesk:knowledge:search:results:en' => 'Showing %s results.',
28
+	  'freshdesk:knowledge:search:results:fr' => 'Indication du %s des résultats.',
29 29
 
30
-      'freshdesk:ticket:matching:en' => '%s matching articles',
31
-      'freshdesk:ticket:matching:fr' => '%s des articles correspondants',
30
+	  'freshdesk:ticket:matching:en' => '%s matching articles',
31
+	  'freshdesk:ticket:matching:fr' => '%s des articles correspondants',
32 32
 
33
-      //additional info
34
-      'freshdesk:additionalinfo' => 'Additional Information',
33
+	  //additional info
34
+	  'freshdesk:additionalinfo' => 'Additional Information',
35 35
 
36
-      'freshdesk:valid' => 'This field is required.',
37
-      'freshdesk:valid:filetypes' => "Invalid file format. Allowed file extensions: txt, gif, jpg, jpeg and png.",
36
+	  'freshdesk:valid' => 'This field is required.',
37
+	  'freshdesk:valid:filetypes' => "Invalid file format. Allowed file extensions: txt, gif, jpg, jpeg and png.",
38 38
 
39
-      'freshdesk:warning:header' => 'Configure knowledge Base',
40
-      'freshdesk:warning:body' => 'Knowledge base needs to be synced.',
39
+	  'freshdesk:warning:header' => 'Configure knowledge Base',
40
+	  'freshdesk:warning:body' => 'Knowledge base needs to be synced.',
41 41
 
42
-      'freshdesk:ticket:information' => "Before submitting a ticket, search the help content for information on the most common questions. Can't find an answer? Submit a ticket using the form below. Please be clear when describing your issue and provide a screenshot, if possible. A help desk agent will get back to you within 2 business days.",
43
-      'freshdesk:ticket:information:note' => "<b>Note:</b> We are now using Freshdesk as a third-party tool to manage help desk activities. After submitting a ticket, you should receive a confirmation email with a link to your ticket."
44
-    );
42
+	  'freshdesk:ticket:information' => "Before submitting a ticket, search the help content for information on the most common questions. Can't find an answer? Submit a ticket using the form below. Please be clear when describing your issue and provide a screenshot, if possible. A help desk agent will get back to you within 2 business days.",
43
+	  'freshdesk:ticket:information:note' => "<b>Note:</b> We are now using Freshdesk as a third-party tool to manage help desk activities. After submitting a ticket, you should receive a confirmation email with a link to your ticket."
44
+	);
Please login to merge, or discard this patch.
mod/freshdesk_help/views/default/js/freshdesk_help/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
 function get_details(){
34 34
   var details = [];
35 35
 
36
-  details['domain'] =  <?php echo '"'. elgg_get_plugin_setting("domain", "freshdesk_help").'"'; ?>;
37
-  details['api_key'] =  <?php echo '"'. elgg_get_plugin_setting("apikey", "freshdesk_help").'"'; ?>;
36
+  details['domain'] =  <?php echo '"' . elgg_get_plugin_setting("domain", "freshdesk_help") . '"'; ?>;
37
+  details['api_key'] =  <?php echo '"' . elgg_get_plugin_setting("apikey", "freshdesk_help") . '"'; ?>;
38 38
   details['product_id'] = <?php echo (int) elgg_get_plugin_setting("product_id", "freshdesk_help"); ?>;
39 39
   details['embed_product_id'] = <?php echo (int) elgg_get_plugin_setting("embed_product_id", "freshdesk_help"); ?>;
40 40
 
Please login to merge, or discard this patch.
mod/freshdesk_help/views/default/freshdesk/embed.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,27 +18,27 @@
 block discarded – undo
18 18
  //retrieve articles
19 19
   $str = file_get_contents(get_site_by_url().'mod/freshdesk_help/actions/articles/pedia-articles.json');
20 20
   if($str){
21
-    $articles = json_decode($str, true);
21
+	$articles = json_decode($str, true);
22 22
 
23
-    echo '<h2 class="mrgn-tp-sm h3"><label class="h3 mrgn-tp-sm" for="article-search">'.elgg_echo('freshdesk:knowledge:search:title', array(), $lang).'</label></h2>';
23
+	echo '<h2 class="mrgn-tp-sm h3"><label class="h3 mrgn-tp-sm" for="article-search">'.elgg_echo('freshdesk:knowledge:search:title', array(), $lang).'</label></h2>';
24 24
 
25
-    //create search panel
26
-    echo elgg_view('input/text', array(
27
-      'id' => 'article-search',
28
-      'name' => elgg_echo('freshdesk:knowledge:search:title', array(), $lang),
29
-      'onkeyup'  => 'searchArticles(this, "'.$lang.'")'
30
-    ));
25
+	//create search panel
26
+	echo elgg_view('input/text', array(
27
+	  'id' => 'article-search',
28
+	  'name' => elgg_echo('freshdesk:knowledge:search:title', array(), $lang),
29
+	  'onkeyup'  => 'searchArticles(this, "'.$lang.'")'
30
+	));
31 31
 
32
-    echo '<span class="search-info">'.elgg_echo('freshdesk:knowledge:search:info', array(), $lang).'</span>';
33
-    echo '<div aria-live="polite" id="filter-count"></div>';
32
+	echo '<span class="search-info">'.elgg_echo('freshdesk:knowledge:search:info', array(), $lang).'</span>';
33
+	echo '<div aria-live="polite" id="filter-count"></div>';
34 34
 
35
-    echo '<div id="searchResults"><div class="article-panel"><ul id="results-listing"></ul></div></div>';
35
+	echo '<div id="searchResults"><div class="article-panel"><ul id="results-listing"></ul></div></div>';
36 36
 
37 37
 
38
-    echo '<h2 id="explore-header" class="h3">'.elgg_echo('freshdesk:knowledge:explore:title', array(), $lang).'</h2>';
39
-    echo '<div id="results-en">'.$articles[$lang].'</div>';
38
+	echo '<h2 id="explore-header" class="h3">'.elgg_echo('freshdesk:knowledge:explore:title', array(), $lang).'</h2>';
39
+	echo '<div id="results-en">'.$articles[$lang].'</div>';
40 40
   } else {
41
-    echo '<div id="results"><section class="alert alert-info"><h2>'.elgg_echo('freshdesk:warning:header').'</h2><p>'.elgg_echo('freshdesk:warning:body').'</p></section></div>';
41
+	echo '<div id="results"><section class="alert alert-info"><h2>'.elgg_echo('freshdesk:warning:header').'</h2><p>'.elgg_echo('freshdesk:warning:body').'</p></section></div>';
42 42
   }
43 43
 
44 44
   echo '</div>';
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $lang = (string) get_input('lang');
3 3
 
4
-if(!$lang){
4
+if (!$lang) {
5 5
   $lang = "en";
6 6
 }
7 7
 
8 8
 ?>
9 9
 
10 10
 <ul class="nav nav-tabs nav-tabs-language">
11
-  <li class="active"><a data-toggle="tab" href="#article-search-tab"><?php echo elgg_echo('freshdesk:knowledge:title', array(), $lang);?></a></li>
11
+  <li class="active"><a data-toggle="tab" href="#article-search-tab"><?php echo elgg_echo('freshdesk:knowledge:title', array(), $lang); ?></a></li>
12 12
   <li><a data-toggle="tab" href="#ticket"><?php echo elgg_echo('freshdesk:ticket:title', array(), $lang); ?></a></li>
13 13
 </ul>
14 14
 
@@ -16,29 +16,29 @@  discard block
 block discarded – undo
16 16
  <?php
17 17
  echo '<div id="article-search-tab" class="tab-pane active">';
18 18
  //retrieve articles
19
-  $str = file_get_contents(get_site_by_url().'mod/freshdesk_help/actions/articles/pedia-articles.json');
20
-  if($str){
19
+  $str = file_get_contents(get_site_by_url() . 'mod/freshdesk_help/actions/articles/pedia-articles.json');
20
+  if ($str) {
21 21
     $articles = json_decode($str, true);
22 22
 
23
-    echo '<h2 class="mrgn-tp-sm h3"><label class="h3 mrgn-tp-sm" for="article-search">'.elgg_echo('freshdesk:knowledge:search:title', array(), $lang).'</label></h2>';
23
+    echo '<h2 class="mrgn-tp-sm h3"><label class="h3 mrgn-tp-sm" for="article-search">' . elgg_echo('freshdesk:knowledge:search:title', array(), $lang) . '</label></h2>';
24 24
 
25 25
     //create search panel
26 26
     echo elgg_view('input/text', array(
27 27
       'id' => 'article-search',
28 28
       'name' => elgg_echo('freshdesk:knowledge:search:title', array(), $lang),
29
-      'onkeyup'  => 'searchArticles(this, "'.$lang.'")'
29
+      'onkeyup'  => 'searchArticles(this, "' . $lang . '")'
30 30
     ));
31 31
 
32
-    echo '<span class="search-info">'.elgg_echo('freshdesk:knowledge:search:info', array(), $lang).'</span>';
32
+    echo '<span class="search-info">' . elgg_echo('freshdesk:knowledge:search:info', array(), $lang) . '</span>';
33 33
     echo '<div aria-live="polite" id="filter-count"></div>';
34 34
 
35 35
     echo '<div id="searchResults"><div class="article-panel"><ul id="results-listing"></ul></div></div>';
36 36
 
37 37
 
38
-    echo '<h2 id="explore-header" class="h3">'.elgg_echo('freshdesk:knowledge:explore:title', array(), $lang).'</h2>';
39
-    echo '<div id="results-en">'.$articles[$lang].'</div>';
38
+    echo '<h2 id="explore-header" class="h3">' . elgg_echo('freshdesk:knowledge:explore:title', array(), $lang) . '</h2>';
39
+    echo '<div id="results-en">' . $articles[$lang] . '</div>';
40 40
   } else {
41
-    echo '<div id="results"><section class="alert alert-info"><h2>'.elgg_echo('freshdesk:warning:header').'</h2><p>'.elgg_echo('freshdesk:warning:body').'</p></section></div>';
41
+    echo '<div id="results"><section class="alert alert-info"><h2>' . elgg_echo('freshdesk:warning:header') . '</h2><p>' . elgg_echo('freshdesk:warning:body') . '</p></section></div>';
42 42
   }
43 43
 
44 44
   echo '</div>';
Please login to merge, or discard this patch.
mod/freshdesk_help/views/default/freshdesk/knowledge.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -11,28 +11,28 @@
 block discarded – undo
11 11
  //retrieve articles
12 12
   $str = file_get_contents(get_site_by_url().'mod/freshdesk_help/actions/articles/articles.json');
13 13
   if($str){
14
-    $articles = json_decode($str, true);
14
+	$articles = json_decode($str, true);
15 15
 
16
-    echo '<h2 class="mrgn-tp-sm h3"><label class="mrgn-tp-sm" for="article-search">'.elgg_echo('freshdesk:knowledge:search:title').'</label></h2>';
16
+	echo '<h2 class="mrgn-tp-sm h3"><label class="mrgn-tp-sm" for="article-search">'.elgg_echo('freshdesk:knowledge:search:title').'</label></h2>';
17 17
 
18
-    //create search panel
19
-    echo elgg_view('input/text', array(
20
-      'id' => 'article-search',
21
-      'name' => elgg_echo('freshdesk:knowledge:search:title'),
22
-      'onkeyup'  => 'searchArticles(this, "'.get_current_language().'")',
23
-    ));
18
+	//create search panel
19
+	echo elgg_view('input/text', array(
20
+	  'id' => 'article-search',
21
+	  'name' => elgg_echo('freshdesk:knowledge:search:title'),
22
+	  'onkeyup'  => 'searchArticles(this, "'.get_current_language().'")',
23
+	));
24 24
 
25
-    echo '<span class="search-info">'.elgg_echo('freshdesk:knowledge:search:info').'</span>';
25
+	echo '<span class="search-info">'.elgg_echo('freshdesk:knowledge:search:info').'</span>';
26 26
 
27
-    echo '<div aria-live="polite" id="filter-count"></div>';
27
+	echo '<div aria-live="polite" id="filter-count"></div>';
28 28
 
29
-    echo '<div id="searchResults"><div class="article-panel"><ul id="results-listing"></ul></div></div>';
29
+	echo '<div id="searchResults"><div class="article-panel"><ul id="results-listing"></ul></div></div>';
30 30
 
31 31
 
32
-    echo '<h2 id="explore-header" class="h3">'.elgg_echo('freshdesk:knowledge:explore:title').'</h2>';
33
-    echo '<div id="results-en">'.$articles[get_current_language()].'</div>';
32
+	echo '<h2 id="explore-header" class="h3">'.elgg_echo('freshdesk:knowledge:explore:title').'</h2>';
33
+	echo '<div id="results-en">'.$articles[get_current_language()].'</div>';
34 34
   } else {
35
-    echo '<div id="results"><section class="alert alert-info"><h2>'.elgg_echo('freshdesk:warning:header').'</h2><p>'.elgg_echo('freshdesk:warning:body').'</p></section></div>';
35
+	echo '<div id="results"><section class="alert alert-info"><h2>'.elgg_echo('freshdesk:warning:header').'</h2><p>'.elgg_echo('freshdesk:warning:body').'</p></section></div>';
36 36
   }
37 37
 
38 38
   echo '</div>';
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php ?>
2 2
 
3 3
 <ul class="nav nav-tabs nav-tabs-language">
4
-  <li class="active"><a data-toggle="tab" href="#article-search-tab"><?php echo elgg_echo('freshdesk:knowledge:title');?></a></li>
4
+  <li class="active"><a data-toggle="tab" href="#article-search-tab"><?php echo elgg_echo('freshdesk:knowledge:title'); ?></a></li>
5 5
   <li><a data-toggle="tab" href="#ticket"><?php echo elgg_echo('freshdesk:ticket:title'); ?></a></li>
6 6
 </ul>
7 7
 
@@ -9,30 +9,30 @@  discard block
 block discarded – undo
9 9
  <?php
10 10
  echo '<div id="article-search-tab" class="tab-pane active">';
11 11
  //retrieve articles
12
-  $str = file_get_contents(get_site_by_url().'mod/freshdesk_help/actions/articles/articles.json');
13
-  if($str){
12
+  $str = file_get_contents(get_site_by_url() . 'mod/freshdesk_help/actions/articles/articles.json');
13
+  if ($str) {
14 14
     $articles = json_decode($str, true);
15 15
 
16
-    echo '<h2 class="mrgn-tp-sm h3"><label class="mrgn-tp-sm" for="article-search">'.elgg_echo('freshdesk:knowledge:search:title').'</label></h2>';
16
+    echo '<h2 class="mrgn-tp-sm h3"><label class="mrgn-tp-sm" for="article-search">' . elgg_echo('freshdesk:knowledge:search:title') . '</label></h2>';
17 17
 
18 18
     //create search panel
19 19
     echo elgg_view('input/text', array(
20 20
       'id' => 'article-search',
21 21
       'name' => elgg_echo('freshdesk:knowledge:search:title'),
22
-      'onkeyup'  => 'searchArticles(this, "'.get_current_language().'")',
22
+      'onkeyup'  => 'searchArticles(this, "' . get_current_language() . '")',
23 23
     ));
24 24
 
25
-    echo '<span class="search-info">'.elgg_echo('freshdesk:knowledge:search:info').'</span>';
25
+    echo '<span class="search-info">' . elgg_echo('freshdesk:knowledge:search:info') . '</span>';
26 26
 
27 27
     echo '<div aria-live="polite" id="filter-count"></div>';
28 28
 
29 29
     echo '<div id="searchResults"><div class="article-panel"><ul id="results-listing"></ul></div></div>';
30 30
 
31 31
 
32
-    echo '<h2 id="explore-header" class="h3">'.elgg_echo('freshdesk:knowledge:explore:title').'</h2>';
33
-    echo '<div id="results-en">'.$articles[get_current_language()].'</div>';
32
+    echo '<h2 id="explore-header" class="h3">' . elgg_echo('freshdesk:knowledge:explore:title') . '</h2>';
33
+    echo '<div id="results-en">' . $articles[get_current_language()] . '</div>';
34 34
   } else {
35
-    echo '<div id="results"><section class="alert alert-info"><h2>'.elgg_echo('freshdesk:warning:header').'</h2><p>'.elgg_echo('freshdesk:warning:body').'</p></section></div>';
35
+    echo '<div id="results"><section class="alert alert-info"><h2>' . elgg_echo('freshdesk:warning:header') . '</h2><p>' . elgg_echo('freshdesk:warning:body') . '</p></section></div>';
36 36
   }
37 37
 
38 38
   echo '</div>';
Please login to merge, or discard this patch.
mod/freshdesk_help/views/default/forms/ticket.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $lang = (string) get_input('lang');
3 3
 $source = 'embed';
4
-$product_id  = (int) elgg_get_plugin_setting("embed_product_id", "freshdesk_help");
4
+$product_id = (int) elgg_get_plugin_setting("embed_product_id", "freshdesk_help");
5 5
 
6
-if(!$lang){
6
+if (!$lang) {
7 7
   $lang = get_current_language();
8 8
   $source = 'base';
9
-  $product_id  = (int) elgg_get_plugin_setting("product_id", "freshdesk_help");
9
+  $product_id = (int) elgg_get_plugin_setting("product_id", "freshdesk_help");
10 10
 }
11 11
 //populate form with known information
12
-if(elgg_is_logged_in()){
12
+if (elgg_is_logged_in()) {
13 13
   $email = elgg_get_logged_in_user_entity()->email;
14 14
 }
15 15
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
   'id' => 'subject',
53 53
   'required' => 'required',
54 54
   'value' => $subject,
55
-  'onkeyup' => 'matchArticles(this, "'.$lang.'")'
55
+  'onkeyup' => 'matchArticles(this, "' . $lang . '")'
56 56
 ));
57 57
 ?>
58 58
 <span class="relatedArticles btn-primary"><a href="#searchResults"></a></span>
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 ?>
76 76
 </div>
77 77
 <?php echo elgg_view('input/hidden', array('name' => 'lang', 'value' => $lang)); ?>
78
-<?php echo elgg_view('input/submit', array('value' => elgg_echo('submit', array(), $lang), 'id' => 'sendTicket', 'class' => 'btn-primary btn-lg mrgn-tp-md'));?>
78
+<?php echo elgg_view('input/submit', array('value' => elgg_echo('submit', array(), $lang), 'id' => 'sendTicket', 'class' => 'btn-primary btn-lg mrgn-tp-md')); ?>
79 79
 </div>
80 80
 
81 81
 <script>
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
       //disable submit button to avoid clicking button twice
137 137
       form.find('button').prop('disabled', true);
138 138
       //submit ticket
139
-      submitTicket(form, "<?php echo $lang;?>", "<?php echo $source;?>", <?php echo $product_id; ?>);
139
+      submitTicket(form, "<?php echo $lang; ?>", "<?php echo $source; ?>", <?php echo $product_id; ?>);
140 140
     }
141 141
 
142 142
   });
Please login to merge, or discard this patch.