Completed
Push — gcconnex ( ee5ffc...718fe4 )
by Ilia
09:37 queued 04:29
created
mod/wet4/languages/fr.php 1 patch
Indentation   +128 added lines, -128 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-    $site_url = elgg_get_site_url();
2
+	$site_url = elgg_get_site_url();
3 3
 
4 4
 return array(
5 5
 
@@ -181,54 +181,54 @@  discard block
 block discarded – undo
181 181
   'dept:activity:groupsandcolleagues' => "Mes groupes et collègues",
182 182
 
183 183
 
184
-      'wet:more' => "Autres",
185
-    'breadcrum:home' => 'Accueil',
184
+	  'wet:more' => "Autres",
185
+	'breadcrum:home' => 'Accueil',
186 186
 
187
-        'wet:feedbackText' => "Rétroaction<span class='wb-inv'> sur ce site Web</span>",
188
-        'wet:footTerms' => 'Modalités',
189
-        'wet:footPrivacy'	 => 'Politique de confidentialité',
190
-        'wet:footTitleAbout' => 'Infos',
191
-        'wet:footTitleNews' =>  'Nouvelles',
192
-        'wet:footTitleSocial' => 'Restez branchés',
187
+		'wet:feedbackText' => "Rétroaction<span class='wb-inv'> sur ce site Web</span>",
188
+		'wet:footTerms' => 'Modalités',
189
+		'wet:footPrivacy'	 => 'Politique de confidentialité',
190
+		'wet:footTitleAbout' => 'Infos',
191
+		'wet:footTitleNews' =>  'Nouvelles',
192
+		'wet:footTitleSocial' => 'Restez branchés',
193 193
 /**
194
- * Profile Strength
195
- */
196
-     'ps:basicprofile' => "Profil de base",
197
-     'ps:access' => "Afficher : ",
198
-    'ps:details' => "Voir en détail",
199
-    'ps:education' => "Éducation",
200
-    'ps:work' => "Expérience de travail",
201
-    'ps:profilestrength' => "Profil",
202
-     'ps:all-star' => "Félicitations! Vous êtes une étoile.",
203
-     'ps:beginner' => "Débutant",
204
-     'ps:advanced' => "Avancé",
205
-     'ps:expert' => "Expert",
206
-     'ps:optingin' => "Avez-vous penser à adhérer aux micro-missions?",
207
-     'ps:optin' => "Adhérer",
208
-     'ps:psErr' => "Une erreur est survenue durant l'obtentions de vos informations de profil . Nous travaillons pour résoudre le problème .",
209
-
210
-         /**
211
-     * Department Verify
212
-     */
213
-
214
-    'dept:confirm' => 'Confirmez votre ministère',
215
-    'dept:intro' => 'Dans l’optique d’avoir de l’information à jour sur GCconnex et afin d’obtenir les meilleurs statistiques possibles, nous vous prions de confirmer votre ministère.',
216
-    'dept:not' => "N'est pas votre ministère présentement?",
217
-    'dept:select' => 'Veuillez choisir votre ministère présent',
218
-    'confirm' => 'Confirmer',
219
-    'dept:saved' => '%s saved as current department',
220
-
221
-    'dept:confirm' => 'Salut, bonjour!',
222
-    'dept:intro' => "Avez-vous changé de poste récemment? Avez-vous commencé une affectation? L’ASC vous a recruté pour devenir astronaute? Aidez-nous à garder GCconnex à jour en confirmant où vous travaillez.",
223
-    'dept:not' => "N'est pas votre ministère présentement?",
224
-    'dept:select' => 'Veuillez choisir votre ministère présent',
225
-    'confirm' => 'Confirmer',
226
-    'dept:saved' => '%s saved as current department',
227
-    'dept:notfound' => "Nous ne sommes pas capable de trouver votre ministère dans notre liste! Votre ministère a possiblement changé de nom récemment. Veuillez sélectionner le bon ministère dans la liste suivante",
228
-
229
-       /**
230
-    * Message Inbox
231
-    */
194
+		 * Profile Strength
195
+		 */
196
+	 'ps:basicprofile' => "Profil de base",
197
+	 'ps:access' => "Afficher : ",
198
+	'ps:details' => "Voir en détail",
199
+	'ps:education' => "Éducation",
200
+	'ps:work' => "Expérience de travail",
201
+	'ps:profilestrength' => "Profil",
202
+	 'ps:all-star' => "Félicitations! Vous êtes une étoile.",
203
+	 'ps:beginner' => "Débutant",
204
+	 'ps:advanced' => "Avancé",
205
+	 'ps:expert' => "Expert",
206
+	 'ps:optingin' => "Avez-vous penser à adhérer aux micro-missions?",
207
+	 'ps:optin' => "Adhérer",
208
+	 'ps:psErr' => "Une erreur est survenue durant l'obtentions de vos informations de profil . Nous travaillons pour résoudre le problème .",
209
+
210
+		 /**
211
+		  * Department Verify
212
+		  */
213
+
214
+	'dept:confirm' => 'Confirmez votre ministère',
215
+	'dept:intro' => 'Dans l’optique d’avoir de l’information à jour sur GCconnex et afin d’obtenir les meilleurs statistiques possibles, nous vous prions de confirmer votre ministère.',
216
+	'dept:not' => "N'est pas votre ministère présentement?",
217
+	'dept:select' => 'Veuillez choisir votre ministère présent',
218
+	'confirm' => 'Confirmer',
219
+	'dept:saved' => '%s saved as current department',
220
+
221
+	'dept:confirm' => 'Salut, bonjour!',
222
+	'dept:intro' => "Avez-vous changé de poste récemment? Avez-vous commencé une affectation? L’ASC vous a recruté pour devenir astronaute? Aidez-nous à garder GCconnex à jour en confirmant où vous travaillez.",
223
+	'dept:not' => "N'est pas votre ministère présentement?",
224
+	'dept:select' => 'Veuillez choisir votre ministère présent',
225
+	'confirm' => 'Confirmer',
226
+	'dept:saved' => '%s saved as current department',
227
+	'dept:notfound' => "Nous ne sommes pas capable de trouver votre ministère dans notre liste! Votre ministère a possiblement changé de nom récemment. Veuillez sélectionner le bon ministère dans la liste suivante",
228
+
229
+	   /**
230
+	    * Message Inbox
231
+	    */
232 232
 
233 233
    'msg:to' => 'À',
234 234
    'msg:from' => 'De',
@@ -237,31 +237,31 @@  discard block
 block discarded – undo
237 237
    'msg:sent' => 'Envoyés',
238 238
 
239 239
 
240
-     /*
240
+	 /*
241 241
        * Content Creation
242 242
        */
243 243
 
244
-            'page:create' => 'Créer la page',
245
-            'cp_notify:minor_edit_header' => 'Est-ce une modification mineure? <small>(En cliquant cette boîte, aucune notification sera envoyée)</small>',
246
-            'page:minor_edit_label' => 'Modification mineure',
247
-            /*
244
+			'page:create' => 'Créer la page',
245
+			'cp_notify:minor_edit_header' => 'Est-ce une modification mineure? <small>(En cliquant cette boîte, aucune notification sera envoyée)</small>',
246
+			'page:minor_edit_label' => 'Modification mineure',
247
+			/*
248 248
         * Misc
249 249
         * */
250 250
 
251
-       'bookmark' => 'signet',
251
+	   'bookmark' => 'signet',
252 252
 
253 253
 /*
254 254
        * Suggested Friends
255 255
        */
256 256
 
257
-      'sf:title' =>	"Vous connaissez quelqu’un ? Ajoutez-les comme collègue",
258
-      'sf:connect' => "Prendre contact",
259
-      'sf:alttext' => "L'avatar de",
260
-      'sf:suggcolleagues' => "Suggestion de collègue",
257
+	  'sf:title' =>	"Vous connaissez quelqu’un ? Ajoutez-les comme collègue",
258
+	  'sf:connect' => "Prendre contact",
259
+	  'sf:alttext' => "L'avatar de",
260
+	  'sf:suggcolleagues' => "Suggestion de collègue",
261 261
 
262 262
 
263
-      /*Friendly Time*/
264
-      	'friendlytime:weeks' => "il y a environ 2 semaines",
263
+	  /*Friendly Time*/
264
+	  	'friendlytime:weeks' => "il y a environ 2 semaines",
265 265
 	'friendlytime:weeks:singular' => "la semaine dernière",
266 266
 	'friendlytime:date' => "j F Y",
267 267
 
@@ -278,19 +278,19 @@  discard block
 block discarded – undo
278 278
 	'friendlytime:month:11' => 'Novembre',
279 279
 	'friendlytime:month:12' => 'Décembre',
280 280
 /**
281
- * The Wire
282
- */
283
-    'wire:post' => 'le message sur le fil',
284
-    'thewire:post' => "Créer un article sur le fil",
285
-    'thewire:share'	=> ' Partage',
286
-    'thewire:shares' => ' Partages',
287
-    'thewire:contentwarning' => 'Il est possible que les utilisateurs ne puissent pas tous voir ce contenu en raison des permissions d\'accès.',
288
-    'thewire:groupwarning' => 'Ce contenu peut être consulté par les membres de : ',
289
-    'thewire:userwarning' => 'Seuls les utilisateurs suivants peuvent consulter ce contenu : ',
290
-
291
-    /**
292
-   * Files
293
-   */
281
+	 * The Wire
282
+	 */
283
+	'wire:post' => 'le message sur le fil',
284
+	'thewire:post' => "Créer un article sur le fil",
285
+	'thewire:share'	=> ' Partage',
286
+	'thewire:shares' => ' Partages',
287
+	'thewire:contentwarning' => 'Il est possible que les utilisateurs ne puissent pas tous voir ce contenu en raison des permissions d\'accès.',
288
+	'thewire:groupwarning' => 'Ce contenu peut être consulté par les membres de : ',
289
+	'thewire:userwarning' => 'Seuls les utilisateurs suivants peuvent consulter ce contenu : ',
290
+
291
+	/**
292
+	 * Files
293
+	 */
294 294
 
295 295
   'file:folderstruct' => 'Structure de dossiers',
296 296
   'file:move:selected' => 'Déplacer la sélection',
@@ -299,72 +299,72 @@  discard block
 block discarded – undo
299 299
   'file:chose' => 'Vous devez choisir un fichier ou un dossier.',
300 300
 
301 301
 /**
302
-  * User Menu
302
+ * User Menu
303 303
  */
304 304
 
305
-    'userMenu:profile' => "Mon profil",
306
-    'userMenu:account' => "Paramètres",
307
-    'userMenu:messages' => "Mes messages",
308
-    'userMenu:colleagues' => "Mes collègues",
309
-    'userMenu:usermenuTitle' =>'User Card - Click here for links to your profile, account settings and logout(translate me)', /*NEW*/
310
-    'wet:usermenu:helpertext' => "Menu Utilisateur. Liens vers Notifications, Profil et Déconnexion",
311
-    'wet:dd:expand'=>"Open drop down of most recent messages(fr)",
305
+	'userMenu:profile' => "Mon profil",
306
+	'userMenu:account' => "Paramètres",
307
+	'userMenu:messages' => "Mes messages",
308
+	'userMenu:colleagues' => "Mes collègues",
309
+	'userMenu:usermenuTitle' =>'User Card - Click here for links to your profile, account settings and logout(translate me)', /*NEW*/
310
+	'wet:usermenu:helpertext' => "Menu Utilisateur. Liens vers Notifications, Profil et Déconnexion",
311
+	'wet:dd:expand'=>"Open drop down of most recent messages(fr)",
312 312
 
313 313
 
314 314
   /**
315
- * Group Profile
316
- */
317
-
318
-    'gprofile:about' => "Infos",
319
-    'gprofile:discussion' => "Discussion",
320
-    'gprofile:files' => "Fichiers",
321
-    'gprofile:blogs' => "Blogue",
322
-    'gprofile:events' => "Événement",
323
-    'gprofile:calendar' => "calendrier",
324
-    'gprofile:pages' => "Pages",
325
-    'gprofile:bookmarks' => "Signets",
326
-    'gprofile:polls' => "Sondages",
327
-    'gprofile:tasks' => "Tâches",
328
-    'gprofile:photos' => "Photos",
329
-    'gprofile:photoCatch' => "Images",
330
-    'gprofile:albums' => "Albums",
331
-    'gprofile:albumsCatch' => "Albums d'image",
332
-    'gprofile:ideas' => "Idées",
333
-    'gprofile:more' => "Plus",
334
-    'gprofile:settings' => 'Paramètres',
335
-    'gprofile:create' => 	"Créer un groupe",
336
-    'gprofile:edit:content' => "Options pour le contenu",
337
-    'gprofile:edit:admin' => "Option pour l'administrateur",
338
-    'groups:suggestedGroups' => 'Le groupe en cours de création existe déjà, consultez ces suggestions pour trouver ce que vous chercher.',
339
-    'groups:creatediscussion' => 	'Créer une discussion',
340
-    'profile:actions' => 	'Actions',
341
-    'profile:viewall:coll' => 	'Voir tous mes collègues',
342
-    'profile:viewall:groups' => 'Voir tous mes groupes',
343
-    'photos:none' => 'Aucun album d\'image',
344
-    'gcforums:enable_group_forums' => 'Activé les forums de groupe',
345
-    'gprofile:contentMenu' => "Menu de contenu du groupe",
346
-
347
-    'groups:stats'  => "Statistiques de groupe",
348
-
349
-        /**
350
-   * Group invite
315
+   * Group Profile
351 316
    */
352 317
 
353
-     'group:invite:cannot' => '<br><br> Les utilisateurs suivants ne sont pas membres du groupe principal et ne peuvent être invités/ajoutés.',
318
+	'gprofile:about' => "Infos",
319
+	'gprofile:discussion' => "Discussion",
320
+	'gprofile:files' => "Fichiers",
321
+	'gprofile:blogs' => "Blogue",
322
+	'gprofile:events' => "Événement",
323
+	'gprofile:calendar' => "calendrier",
324
+	'gprofile:pages' => "Pages",
325
+	'gprofile:bookmarks' => "Signets",
326
+	'gprofile:polls' => "Sondages",
327
+	'gprofile:tasks' => "Tâches",
328
+	'gprofile:photos' => "Photos",
329
+	'gprofile:photoCatch' => "Images",
330
+	'gprofile:albums' => "Albums",
331
+	'gprofile:albumsCatch' => "Albums d'image",
332
+	'gprofile:ideas' => "Idées",
333
+	'gprofile:more' => "Plus",
334
+	'gprofile:settings' => 'Paramètres',
335
+	'gprofile:create' => 	"Créer un groupe",
336
+	'gprofile:edit:content' => "Options pour le contenu",
337
+	'gprofile:edit:admin' => "Option pour l'administrateur",
338
+	'groups:suggestedGroups' => 'Le groupe en cours de création existe déjà, consultez ces suggestions pour trouver ce que vous chercher.',
339
+	'groups:creatediscussion' => 	'Créer une discussion',
340
+	'profile:actions' => 	'Actions',
341
+	'profile:viewall:coll' => 	'Voir tous mes collègues',
342
+	'profile:viewall:groups' => 'Voir tous mes groupes',
343
+	'photos:none' => 'Aucun album d\'image',
344
+	'gcforums:enable_group_forums' => 'Activé les forums de groupe',
345
+	'gprofile:contentMenu' => "Menu de contenu du groupe",
346
+
347
+	'groups:stats'  => "Statistiques de groupe",
348
+
349
+		/**
350
+		 * Group invite
351
+		 */
352
+
353
+	 'group:invite:cannot' => '<br><br> Les utilisateurs suivants ne sont pas membres du groupe principal et ne peuvent être invités/ajoutés.',
354 354
 
355 355
   'group:invite:clicktoadd' => "Cliquez pour ajouter",
356 356
   	'group:invite:email' => "Saisir une adresse de courriel valide et appuyer sur « Entrée » pour l'inscrire à la liste",
357 357
  	'groups:eng' => "Anglais",
358 358
   	'groups:fra' => "Français",
359 359
 
360
-      'group:replyitem' => 'réponse',
360
+	  'group:replyitem' => 'réponse',
361 361
 /**
362
-  * Sites
363
- */
362
+	   * Sites
363
+	   */
364 364
 	'landingPage' => 'Définir la page d\'accueil',
365 365
 	'career' =>	'Carrière',
366 366
 	'item:site' => 'Sites',
367
-    'notifications:subscriptions:changesettings' => "Notifications",
367
+	'notifications:subscriptions:changesettings' => "Notifications",
368 368
 
369 369
 /**
370 370
  * Sessions
@@ -546,8 +546,8 @@  discard block
 block discarded – undo
546 546
 'groups:own' => 'Groupes dont je suis propriétaire.',
547 547
 'groups:personal' => 'Personnel',
548 548
 'groups:feature' => 'En vedette',
549
-    'groups:popular' => 'Populaire',
550
-    'groups:suggested' => 'Suggestion',
549
+	'groups:popular' => 'Populaire',
550
+	'groups:suggested' => 'Suggestion',
551 551
 
552 552
 
553 553
 /**
@@ -656,8 +656,8 @@  discard block
 block discarded – undo
656 656
  */
657 657
 	'feed:rss' => 'S\'abonner au fil RSS de cette page',
658 658
 /**
659
- * Links
660
- */
659
+	 * Links
660
+	 */
661 661
 	'link:view' => 'Voir le lien',
662 662
 	'link:view:all' => 'Voir tout',
663 663
 
@@ -688,8 +688,8 @@  discard block
 block discarded – undo
688 688
 	'river:widgets:all' => 'Toute activité sur le site',
689 689
   'river:create:object:default' => '%s a téléchargé le fichier %s',
690 690
 /**
691
- * Notifications
692
- */
691
+   * Notifications
692
+   */
693 693
 'notifications:usersettings' => "Configuration des notifications",
694 694
 'notification:method:email' => 'Courriel',
695 695
 'notifications:usersettings:save:ok' => "La configuration des notifications a été sauvegardée avec succès.",
@@ -1538,7 +1538,7 @@  discard block
 block discarded – undo
1538 1538
   'flag_content:info' => 'Si vous croyez qu\'un contenu ou comportement contrevient aux conditions d’utilisation, veuillez svp nous fournir une description du comportement ou contenu inacceptable, le nom de la personne visée, et les hyperliens si possible. Le contenu ou comportement sera passé en revue.',
1539 1539
 
1540 1540
 
1541
-    /*
1541
+	/*
1542 1542
   * Contact Form Validation
1543 1543
    *Message - Ce champ est obligatoire.
1544 1544
   * */
Please login to merge, or discard this patch.
mod/wet4/languages/en.php 1 patch
Indentation   +310 added lines, -310 removed lines patch added patch discarded remove patch
@@ -3,217 +3,217 @@  discard block
 block discarded – undo
3 3
 
4 4
 return array(
5 5
 
6
-    'thewire:head:title' => 'Wire post',
6
+	'thewire:head:title' => 'Wire post',
7 7
 
8
-    /*
8
+	/*
9 9
     More context links - entity/river menus
10 10
     */
11 11
 
12
-    'entity:like:link:page_top' => 'Like the page "%s"',
13
-    'entity:unlike:link:page_top' => 'Remove like from the page "%s"',
14
-    'entity:edit:link:page_top' => 'Edit the page "%s"',
15
-    'entity:delete:link:page_top' => 'Delete the page "%s"',
16
-    'entity:share:link:page_top' => 'Share the page "%s" on The Wire',
17
-    'entity:subscribe:link:page_top' => 'Subscribe to the page "%s"',
18
-    'entity:unsubscribe:link:page_top' => 'Unsubscribe to the page "%s"',
19
-    'entity:history:link:page_top' => 'View history of the page "%s"',
20
-
21
-    'entity:like:link:page' => 'Like the page "%s"',
22
-    'entity:unlike:link:page' => 'Remove like from the page "%s"',
23
-    'entity:edit:link:page' => 'Edit the page "%s"',
24
-    'entity:delete:link:page' => 'Delete the page "%s"',
25
-    'entity:share:link:page' => 'Share the page "%s" on The Wire',
26
-    'entity:subscribe:link:page' => 'Subscribe to the page "%s"',
27
-    'entity:unsubscribe:link:page' => 'Unsubscribe to the page "%s"',
28
-    'entity:history:link:page' => 'View history of the page "%s"',
29
-
30
-    'entity:like:link:thewire' => 'Like the wire post by %s',
31
-    'entity:unlike:link:thewire' => 'Remove like from the wire post by %s',
32
-    'entity:delete:link:thewire' => 'Delete the wire post by %s',
33
-    'entity:share:link:thewire' => 'Share the wire post by %s on The Wire',
34
-    'entity:subscribe:link:thewire' => 'Subscribe to the wire post by %s',
35
-    'entity:unsubscribe:link:thewire' => 'Unsubscribe to the wire post by %s',
36
-    'entity:reply:link:thewire' => 'Reply to the wire post by %s',
37
-
38
-    'entity:like:link:blog' => 'Like the blog "%s"',
39
-    'entity:unlike:link:blog' => 'Remove like from the blog "%s"',
40
-    'entity:edit:link:blog' => 'Edit the blog "%s"',
41
-    'entity:delete:link:blog' => 'Delete the blog "%s"',
42
-    'entity:share:link:blog' => 'Share the blog "%s" on The Wire',
43
-    'entity:subscribe:link:blog' => 'Subscribe to the blog "%s"',
44
-    'entity:unsubscribe:link:blog' => 'Unsubscribe to the blog "%s"',
45
-    'entity:comment:link:blog' => 'Comment on the blog "%s"',
46
-
47
-    'entity:like:link:comment' => 'Like the comment by %s',
48
-    'entity:unlike:link:comment' => 'Remove like from the comment by %s',
49
-    'entity:edit:link:comment' => 'Edit the comment by %s',
50
-    'entity:delete:link:comment' => 'Delete the comment by %s',
51
-
52
-    'entity:like:link:groupforumtopic' => 'Like the discussion "%s"',
53
-    'entity:unlike:link:groupforumtopic' => 'Remove like from the discussion "%s"',
54
-    'entity:edit:link:groupforumtopic' => 'Edit the discussion "%s"',
55
-    'entity:delete:link:groupforumtopic' => 'Delete the discussion "%s"',
56
-    'entity:share:link:groupforumtopic' => 'Share the discussion "%s" on The Wire',
57
-    'entity:subscribe:link:groupforumtopic' => 'Subscribe to the discussion "%s"',
58
-    'entity:unsubscribe:link:groupforumtopic' => 'Unsubscribe to the discussion "%s"',
59
-    'entity:lock:link:groupforumtopic' => 'Close the discussion "%s"',
60
-    'entity:unlock:link:groupforumtopic' => 'Open the discussion "%s"',
61
-
62
-    'entity:like:link:discussion_reply' => 'Like the discussion reply by %s',
63
-    'entity:unlike:link:discussion_reply' => 'Remove like from the discussion reply by %s',
64
-    'entity:edit:link:discussion_reply' => 'Edit the discussion reply by %s',
65
-    'entity:delete:link:discussion_reply' => 'Delete the discussion reply by %s',
66
-
67
-    'entity:like:link:file' => 'Like the file "%s"',
68
-    'entity:unlike:link:file' => 'Remove like from the file "%s"',
69
-    'entity:edit:link:file' => 'Edit the file "%s"',
70
-    'entity:delete:link:file' => 'Delete the file "%s"',
71
-    'entity:share:link:file' => 'Share the file "%s" on The Wire',
72
-    'entity:subscribe:link:file' => 'Subscribe to the file "%s"',
73
-    'entity:unsubscribe:link:file' => 'Unsubscribe to the file "%s"',
74
-    'entity:download:link:file' => 'Download the file "%s"',
75
-
76
-    'entity:like:link:folder' => 'Like the folder "%s"',
77
-    'entity:unlike:link:folder' => 'Remove like from the folder "%s"',
78
-    'entity:edit:link:folder' => 'Edit the folder "%s"',
79
-    'entity:delete:link:folder' => 'Delete the folder "%s"',
80
-    'entity:share:link:folder' => 'Share the folder "%s" on The Wire',
81
-    'entity:subscribe:link:folder' => 'Subscribe to the folder "%s"',
82
-    'entity:unssubscribe:link:folder' => 'Unsubscribe to the folder "%s"',
83
-
84
-    'entity:like:link:event_calendar' => 'Like the event "%s"',
85
-    'entity:unlike:link:event_calendar' => 'Remove like from the event "%s"',
86
-    'entity:edit:link:event_calendar' => 'Edit the event "%s"',
87
-    'entity:delete:link:event_calendar' => 'Delete the event "%s"',
88
-    'entity:share:link:event_calendar' => 'Share the event "%s" on The Wire',
89
-    'entity:subscribe:link:event_calendar' => 'Subscribe to the event "%s"',
90
-    'entity:unsubscribe:link:event_calendar' => 'Unsubscribe to the event "%s"',
91
-
92
-    'entity:like:link:bookmarks' => 'Like the bookmark "%s"',
93
-    'entity:unlike:link:bookmarks' => 'Remove like from the bookmark "%s"',
94
-    'entity:edit:link:bookmarks' => 'Edit the bookmark "%s"',
95
-    'entity:delete:link:bookmarks' => 'Delete the bookmark "%s"',
96
-    'entity:share:link:bookmarks' => 'Share the bookmark "%s" on The Wire',
97
-    'entity:subscribe:link:bookmarks' => 'Subscribe to the bookmark "%s"',
98
-    'entity:unsubscribe:link:bookmarks' => 'Unsubscribe to the bookmark "%s"',
99
-
100
-    'entity:like:link:poll' => 'Like the poll "%s"',
101
-    'entity:unlike:link:poll' => 'Remove like from the poll "%s"',
102
-    'entity:edit:link:poll' => 'Edit the poll "%s"',
103
-    'entity:delete:link:poll' => 'Delete the poll "%s"',
104
-    'entity:share:link:poll' => 'Share the poll "%s" on The Wire',
105
-    'entity:subscribe:link:poll' => 'Subscribe to the poll "%s"',
106
-    'entity:unsubscribe:link:poll' => 'Unsubscribe to the poll "%s"',
107
-
108
-    'entity:like:link:album' => 'Like the image album "%s"',
109
-    'entity:unlike:link:album' => 'Remove like from the image album "%s"',
110
-    'entity:edit:link:album' => 'Edit the image album "%s"',
111
-    'entity:delete:link:album' => 'Delete the image album "%s"',
112
-    'entity:share:link:album' => 'Share the image album "%s" on The Wire',
113
-    'entity:subscribe:link:album' => 'Subscribe to the image album "%s"',
114
-    'entity:unsubscribe:link:album' => 'Unsubscribe to the image album "%s"',
115
-
116
-    'entity:like:link:image' => 'Like the image "%s"',
117
-    'entity:unlike:link:image' => 'Remove like from the image "%s"',
118
-    'entity:edit:link:image' => 'Edit the image "%s"',
119
-    'entity:delete:link:image' => 'Delete the image "%s"',
120
-    'entity:share:link:image' => 'Share the image "%s" on The Wire',
121
-    'entity:subscribe:link:image' => 'Subscribe the image "%s"',
122
-    'entity:unsubscribe:link:image' => 'Unsubscribe the image "%s"',
123
-
124
-    'entity:like:link:idea' => 'Like the idea "%s"',
125
-    'entity:unlike:link:idea' => 'Remove like from the idea "%s"',
126
-    'entity:edit:link:idea' => 'Edit the idea "%s"',
127
-    'entity:delete:link:idea' => 'Delete the idea "%s"',
128
-    'entity:share:link:idea' => 'Share the idea "%s" on The Wire',
129
-    'entity:subscribe:link:idea' => 'Subscribe to the idea "%s"',
130
-    'entity:unsubscribe:link:idea' => 'Unsubscribe to the idea "%s"',
131
-    'entity:upvote:link:idea' => 'Upvote the idea "%s"',
132
-    'entity:downvote:link:idea' => 'Downvote the idea "%s"',
133
-
134
-    'entity:like:link:group' => 'Like the group "%s"',
135
-    'entity:unlike:link:group' => 'Remove like from the group "%s"',
136
-    'entity:edit:link:group' => 'Edit the group "%s"',
137
-    'entity:delete:link:group' => 'Delete the group "%s"',
138
-    'entity:share:link:group' => 'Share the group "%s" on The Wire',
139
-    'entity:subscribe:link:group' => 'Subscribe to the group "%s"',
140
-    'entity:unsubscribe:link:group' => 'Unsubscribe to the group "%s"',
141
-
142
-    'group:share:link' => 'Share this group on the Wire',
143
-
144
-    'friend_request:approve' => 'Accept<span class="wb-inv"> %s\'s friend request</span>',
145
-    'friend_request:decline' => 'Decline <span class="wb-inv"> %s\'s friend request</span>',
146
-    'friend_request:revoke' => 'Revoke <span class="wb-inv">sent friend request to %s </span>',
147
-
148
-    'group:accept:invitation' => 'Accept<span class="wb-inv">group invite to "%s"</span>',
149
-    'group:decline:invitation' => 'Decline<span class="wb-inv">group invite to "%s"</span>',
150
-
151
-
152
-    'entity:like:link:question' => 'Like the question %s',
153
-    'entity:unlike:link:question' => 'Remove like from the question %s',
154
-    'entity:comment:link:question' => 'Comment on the question %s',
155
-    'entity:edit:link:question' => 'Edit the question %s',
156
-    'entity:delete:link:question' => 'Delete the question %s',
157
-    'entity:share:link:question' => 'Share the question %s on The Wire',
158
-    'entity:subscribe:link:question' => 'Subscribe to the question %s',
159
-    'entity:unsubscribe:link:question' => 'Unsubscribe to the question %s',
160
-
161
-    'entity:like:link:answer' => 'Like this answer by %s',
162
-    'entity:unlike:link:answer' => 'Remove like from the answer by %s',
163
-    'entity:comment:link:answer' => 'Comment on this answer by %s',
164
-    'entity:edit:link:answer' => 'Edit this answer by %s',
165
-    'entity:delete:link:answer' => 'Delete this answer by %s',
166
-    'entity:share:link:answer' => 'Share this answer by %s to The Wire',
167
-
168
-    //questions
169
-    'questions:answer:checkmark:brief' => "%s marked an answer by %s correct on %s",
170
-    'questions:friends' => "Friends' Questions",
171
-    'question:answered' => "<span class='wb-inv'>Answered</span>",
172
-    'question:suggestion' => '<b>Similar questions already asked.</b>',
173
-    'question:suggestion:answered' => 'Answered question.',
174
-
175
-    //form validation
176
-
177
-    'form:invalid:extensions' => "Invalid file format. Allowed file extensions: %s",
178
-
179
-
180
-    ////
181
-
182
-    'new:dept:activity:title' => "My department's news feed",
183
-    'dept:activity:show' => "Show colleague connections",
184
-    'dept:activity:hide' => "Hide colleague connections",
185
-    'dept:activity:do' => "Colleague connections will no longer display in your department’s news feed.",
186
-    'dept:activity:undo' => "Colleague connections will now display in your department’s news feed.",
187
-    'dept:activity:filter:title' => "News Feed settings",
188
-    'dept:activity:groupsandcolleagues' => "My groups and colleagues",
189
-
190
-    'wet:more'=>"More",
12
+	'entity:like:link:page_top' => 'Like the page "%s"',
13
+	'entity:unlike:link:page_top' => 'Remove like from the page "%s"',
14
+	'entity:edit:link:page_top' => 'Edit the page "%s"',
15
+	'entity:delete:link:page_top' => 'Delete the page "%s"',
16
+	'entity:share:link:page_top' => 'Share the page "%s" on The Wire',
17
+	'entity:subscribe:link:page_top' => 'Subscribe to the page "%s"',
18
+	'entity:unsubscribe:link:page_top' => 'Unsubscribe to the page "%s"',
19
+	'entity:history:link:page_top' => 'View history of the page "%s"',
20
+
21
+	'entity:like:link:page' => 'Like the page "%s"',
22
+	'entity:unlike:link:page' => 'Remove like from the page "%s"',
23
+	'entity:edit:link:page' => 'Edit the page "%s"',
24
+	'entity:delete:link:page' => 'Delete the page "%s"',
25
+	'entity:share:link:page' => 'Share the page "%s" on The Wire',
26
+	'entity:subscribe:link:page' => 'Subscribe to the page "%s"',
27
+	'entity:unsubscribe:link:page' => 'Unsubscribe to the page "%s"',
28
+	'entity:history:link:page' => 'View history of the page "%s"',
29
+
30
+	'entity:like:link:thewire' => 'Like the wire post by %s',
31
+	'entity:unlike:link:thewire' => 'Remove like from the wire post by %s',
32
+	'entity:delete:link:thewire' => 'Delete the wire post by %s',
33
+	'entity:share:link:thewire' => 'Share the wire post by %s on The Wire',
34
+	'entity:subscribe:link:thewire' => 'Subscribe to the wire post by %s',
35
+	'entity:unsubscribe:link:thewire' => 'Unsubscribe to the wire post by %s',
36
+	'entity:reply:link:thewire' => 'Reply to the wire post by %s',
37
+
38
+	'entity:like:link:blog' => 'Like the blog "%s"',
39
+	'entity:unlike:link:blog' => 'Remove like from the blog "%s"',
40
+	'entity:edit:link:blog' => 'Edit the blog "%s"',
41
+	'entity:delete:link:blog' => 'Delete the blog "%s"',
42
+	'entity:share:link:blog' => 'Share the blog "%s" on The Wire',
43
+	'entity:subscribe:link:blog' => 'Subscribe to the blog "%s"',
44
+	'entity:unsubscribe:link:blog' => 'Unsubscribe to the blog "%s"',
45
+	'entity:comment:link:blog' => 'Comment on the blog "%s"',
46
+
47
+	'entity:like:link:comment' => 'Like the comment by %s',
48
+	'entity:unlike:link:comment' => 'Remove like from the comment by %s',
49
+	'entity:edit:link:comment' => 'Edit the comment by %s',
50
+	'entity:delete:link:comment' => 'Delete the comment by %s',
51
+
52
+	'entity:like:link:groupforumtopic' => 'Like the discussion "%s"',
53
+	'entity:unlike:link:groupforumtopic' => 'Remove like from the discussion "%s"',
54
+	'entity:edit:link:groupforumtopic' => 'Edit the discussion "%s"',
55
+	'entity:delete:link:groupforumtopic' => 'Delete the discussion "%s"',
56
+	'entity:share:link:groupforumtopic' => 'Share the discussion "%s" on The Wire',
57
+	'entity:subscribe:link:groupforumtopic' => 'Subscribe to the discussion "%s"',
58
+	'entity:unsubscribe:link:groupforumtopic' => 'Unsubscribe to the discussion "%s"',
59
+	'entity:lock:link:groupforumtopic' => 'Close the discussion "%s"',
60
+	'entity:unlock:link:groupforumtopic' => 'Open the discussion "%s"',
61
+
62
+	'entity:like:link:discussion_reply' => 'Like the discussion reply by %s',
63
+	'entity:unlike:link:discussion_reply' => 'Remove like from the discussion reply by %s',
64
+	'entity:edit:link:discussion_reply' => 'Edit the discussion reply by %s',
65
+	'entity:delete:link:discussion_reply' => 'Delete the discussion reply by %s',
66
+
67
+	'entity:like:link:file' => 'Like the file "%s"',
68
+	'entity:unlike:link:file' => 'Remove like from the file "%s"',
69
+	'entity:edit:link:file' => 'Edit the file "%s"',
70
+	'entity:delete:link:file' => 'Delete the file "%s"',
71
+	'entity:share:link:file' => 'Share the file "%s" on The Wire',
72
+	'entity:subscribe:link:file' => 'Subscribe to the file "%s"',
73
+	'entity:unsubscribe:link:file' => 'Unsubscribe to the file "%s"',
74
+	'entity:download:link:file' => 'Download the file "%s"',
75
+
76
+	'entity:like:link:folder' => 'Like the folder "%s"',
77
+	'entity:unlike:link:folder' => 'Remove like from the folder "%s"',
78
+	'entity:edit:link:folder' => 'Edit the folder "%s"',
79
+	'entity:delete:link:folder' => 'Delete the folder "%s"',
80
+	'entity:share:link:folder' => 'Share the folder "%s" on The Wire',
81
+	'entity:subscribe:link:folder' => 'Subscribe to the folder "%s"',
82
+	'entity:unssubscribe:link:folder' => 'Unsubscribe to the folder "%s"',
83
+
84
+	'entity:like:link:event_calendar' => 'Like the event "%s"',
85
+	'entity:unlike:link:event_calendar' => 'Remove like from the event "%s"',
86
+	'entity:edit:link:event_calendar' => 'Edit the event "%s"',
87
+	'entity:delete:link:event_calendar' => 'Delete the event "%s"',
88
+	'entity:share:link:event_calendar' => 'Share the event "%s" on The Wire',
89
+	'entity:subscribe:link:event_calendar' => 'Subscribe to the event "%s"',
90
+	'entity:unsubscribe:link:event_calendar' => 'Unsubscribe to the event "%s"',
91
+
92
+	'entity:like:link:bookmarks' => 'Like the bookmark "%s"',
93
+	'entity:unlike:link:bookmarks' => 'Remove like from the bookmark "%s"',
94
+	'entity:edit:link:bookmarks' => 'Edit the bookmark "%s"',
95
+	'entity:delete:link:bookmarks' => 'Delete the bookmark "%s"',
96
+	'entity:share:link:bookmarks' => 'Share the bookmark "%s" on The Wire',
97
+	'entity:subscribe:link:bookmarks' => 'Subscribe to the bookmark "%s"',
98
+	'entity:unsubscribe:link:bookmarks' => 'Unsubscribe to the bookmark "%s"',
99
+
100
+	'entity:like:link:poll' => 'Like the poll "%s"',
101
+	'entity:unlike:link:poll' => 'Remove like from the poll "%s"',
102
+	'entity:edit:link:poll' => 'Edit the poll "%s"',
103
+	'entity:delete:link:poll' => 'Delete the poll "%s"',
104
+	'entity:share:link:poll' => 'Share the poll "%s" on The Wire',
105
+	'entity:subscribe:link:poll' => 'Subscribe to the poll "%s"',
106
+	'entity:unsubscribe:link:poll' => 'Unsubscribe to the poll "%s"',
107
+
108
+	'entity:like:link:album' => 'Like the image album "%s"',
109
+	'entity:unlike:link:album' => 'Remove like from the image album "%s"',
110
+	'entity:edit:link:album' => 'Edit the image album "%s"',
111
+	'entity:delete:link:album' => 'Delete the image album "%s"',
112
+	'entity:share:link:album' => 'Share the image album "%s" on The Wire',
113
+	'entity:subscribe:link:album' => 'Subscribe to the image album "%s"',
114
+	'entity:unsubscribe:link:album' => 'Unsubscribe to the image album "%s"',
115
+
116
+	'entity:like:link:image' => 'Like the image "%s"',
117
+	'entity:unlike:link:image' => 'Remove like from the image "%s"',
118
+	'entity:edit:link:image' => 'Edit the image "%s"',
119
+	'entity:delete:link:image' => 'Delete the image "%s"',
120
+	'entity:share:link:image' => 'Share the image "%s" on The Wire',
121
+	'entity:subscribe:link:image' => 'Subscribe the image "%s"',
122
+	'entity:unsubscribe:link:image' => 'Unsubscribe the image "%s"',
123
+
124
+	'entity:like:link:idea' => 'Like the idea "%s"',
125
+	'entity:unlike:link:idea' => 'Remove like from the idea "%s"',
126
+	'entity:edit:link:idea' => 'Edit the idea "%s"',
127
+	'entity:delete:link:idea' => 'Delete the idea "%s"',
128
+	'entity:share:link:idea' => 'Share the idea "%s" on The Wire',
129
+	'entity:subscribe:link:idea' => 'Subscribe to the idea "%s"',
130
+	'entity:unsubscribe:link:idea' => 'Unsubscribe to the idea "%s"',
131
+	'entity:upvote:link:idea' => 'Upvote the idea "%s"',
132
+	'entity:downvote:link:idea' => 'Downvote the idea "%s"',
133
+
134
+	'entity:like:link:group' => 'Like the group "%s"',
135
+	'entity:unlike:link:group' => 'Remove like from the group "%s"',
136
+	'entity:edit:link:group' => 'Edit the group "%s"',
137
+	'entity:delete:link:group' => 'Delete the group "%s"',
138
+	'entity:share:link:group' => 'Share the group "%s" on The Wire',
139
+	'entity:subscribe:link:group' => 'Subscribe to the group "%s"',
140
+	'entity:unsubscribe:link:group' => 'Unsubscribe to the group "%s"',
141
+
142
+	'group:share:link' => 'Share this group on the Wire',
143
+
144
+	'friend_request:approve' => 'Accept<span class="wb-inv"> %s\'s friend request</span>',
145
+	'friend_request:decline' => 'Decline <span class="wb-inv"> %s\'s friend request</span>',
146
+	'friend_request:revoke' => 'Revoke <span class="wb-inv">sent friend request to %s </span>',
147
+
148
+	'group:accept:invitation' => 'Accept<span class="wb-inv">group invite to "%s"</span>',
149
+	'group:decline:invitation' => 'Decline<span class="wb-inv">group invite to "%s"</span>',
150
+
151
+
152
+	'entity:like:link:question' => 'Like the question %s',
153
+	'entity:unlike:link:question' => 'Remove like from the question %s',
154
+	'entity:comment:link:question' => 'Comment on the question %s',
155
+	'entity:edit:link:question' => 'Edit the question %s',
156
+	'entity:delete:link:question' => 'Delete the question %s',
157
+	'entity:share:link:question' => 'Share the question %s on The Wire',
158
+	'entity:subscribe:link:question' => 'Subscribe to the question %s',
159
+	'entity:unsubscribe:link:question' => 'Unsubscribe to the question %s',
160
+
161
+	'entity:like:link:answer' => 'Like this answer by %s',
162
+	'entity:unlike:link:answer' => 'Remove like from the answer by %s',
163
+	'entity:comment:link:answer' => 'Comment on this answer by %s',
164
+	'entity:edit:link:answer' => 'Edit this answer by %s',
165
+	'entity:delete:link:answer' => 'Delete this answer by %s',
166
+	'entity:share:link:answer' => 'Share this answer by %s to The Wire',
167
+
168
+	//questions
169
+	'questions:answer:checkmark:brief' => "%s marked an answer by %s correct on %s",
170
+	'questions:friends' => "Friends' Questions",
171
+	'question:answered' => "<span class='wb-inv'>Answered</span>",
172
+	'question:suggestion' => '<b>Similar questions already asked.</b>',
173
+	'question:suggestion:answered' => 'Answered question.',
174
+
175
+	//form validation
176
+
177
+	'form:invalid:extensions' => "Invalid file format. Allowed file extensions: %s",
178
+
179
+
180
+	////
181
+
182
+	'new:dept:activity:title' => "My department's news feed",
183
+	'dept:activity:show' => "Show colleague connections",
184
+	'dept:activity:hide' => "Hide colleague connections",
185
+	'dept:activity:do' => "Colleague connections will no longer display in your department’s news feed.",
186
+	'dept:activity:undo' => "Colleague connections will now display in your department’s news feed.",
187
+	'dept:activity:filter:title' => "News Feed settings",
188
+	'dept:activity:groupsandcolleagues' => "My groups and colleagues",
189
+
190
+	'wet:more'=>"More",
191 191
   	'breadcrum:home' => 'Home',
192 192
 
193 193
 
194
-        'wet:feedbackText'=>"Feedback<span class='wb-inv'> about this web site</span>",
194
+		'wet:feedbackText'=>"Feedback<span class='wb-inv'> about this web site</span>",
195 195
 
196 196
 
197
-        'wet:footTerms' => 'Terms and Conditions of Use',
198
-        'wet:footPrivacy' => 'Privacy Policy',
199
-        'wet:footTitleAbout' => 'About',
200
-        'wet:footTitleNews' => 'News',
201
-        'wet:footTitleSocial' => 'Stay Connected',
202
-    /**
203
-    * Department Verify
204
-    */
197
+		'wet:footTerms' => 'Terms and Conditions of Use',
198
+		'wet:footPrivacy' => 'Privacy Policy',
199
+		'wet:footTitleAbout' => 'About',
200
+		'wet:footTitleNews' => 'News',
201
+		'wet:footTitleSocial' => 'Stay Connected',
202
+	/**
203
+	 * Department Verify
204
+	 */
205 205
 
206
-    'dept:confirm' => 'Just Checking In!',
207
-    'dept:intro' => 'Have you changed jobs recently? Started a temporary assignment? Been recruited by the CSA to become an astronaut? Help us keep GCconnex up to date by confirming where you work.',
208
-    'dept:not' => 'Not your current department?',
209
-    'dept:select' => 'Please select your current department',
210
-    'confirm' => 'Confirm',
211
-    'dept:saved' => '%s saved as current department',
212
-    'dept:notfound' => "We can’t seem find your current department in our list! Your department name may have changed lately. Please select the accurate department from the list below.",
206
+	'dept:confirm' => 'Just Checking In!',
207
+	'dept:intro' => 'Have you changed jobs recently? Started a temporary assignment? Been recruited by the CSA to become an astronaut? Help us keep GCconnex up to date by confirming where you work.',
208
+	'dept:not' => 'Not your current department?',
209
+	'dept:select' => 'Please select your current department',
210
+	'confirm' => 'Confirm',
211
+	'dept:saved' => '%s saved as current department',
212
+	'dept:notfound' => "We can’t seem find your current department in our list! Your department name may have changed lately. Please select the accurate department from the list below.",
213 213
 
214
-     /**
215
-   * Message Inbox
216
-   */
214
+	 /**
215
+	  * Message Inbox
216
+	  */
217 217
 
218 218
    'msg:to' => 'To',
219 219
    'msg:from' => 'From',
@@ -222,31 +222,31 @@  discard block
 block discarded – undo
222 222
    'msg:sent' => 'Sent',
223 223
 
224 224
 
225
-     /*
225
+	 /*
226 226
       * Content Creation
227 227
       */
228 228
 
229
-      'page:create' => 'Create Page',
230
-      'cp_notify:minor_edit_header' => 'Is this a Minor Edit? <small>(By clicking this box, a notification will not send)</small>',
231
-      'page:minor_edit_label' => 'Minor Edit',
229
+	  'page:create' => 'Create Page',
230
+	  'cp_notify:minor_edit_header' => 'Is this a Minor Edit? <small>(By clicking this box, a notification will not send)</small>',
231
+	  'page:minor_edit_label' => 'Minor Edit',
232 232
 
233
-      /*
233
+	  /*
234 234
        * Misc
235 235
        * */
236 236
 
237
-       'bookmark' => 'bookmark',
237
+	   'bookmark' => 'bookmark',
238 238
 
239
-     /*
239
+	 /*
240 240
       * Suggested Friends*/
241 241
 
242
-      'sf:title' => "See anyone you know? Connect with them.",
243
-      'sf:connect' => "Connect",
244
-      'sf:alttext' => "Avatar image of",
245
-      'sf:suggcolleagues'=> "Colleague suggestion",
242
+	  'sf:title' => "See anyone you know? Connect with them.",
243
+	  'sf:connect' => "Connect",
244
+	  'sf:alttext' => "Avatar image of",
245
+	  'sf:suggcolleagues'=> "Colleague suggestion",
246 246
 
247
-      /*Friendly Time*/
247
+	  /*Friendly Time*/
248 248
 
249
-      'friendlytime:weeks' => "about 2 weeks ago",
249
+	  'friendlytime:weeks' => "about 2 weeks ago",
250 250
 	'friendlytime:weeks:singular' => "last week",
251 251
 	'friendlytime:date' => "j F Y",
252 252
 
@@ -263,20 +263,20 @@  discard block
 block discarded – undo
263 263
 	'friendlytime:month:11' => 'November',
264 264
 	'friendlytime:month:12' => 'December',
265 265
 /**
266
- * The Wire
267
- */
268
-    'wire:post' => 'wire post',
269
-    'thewire:post' => "Create a Wire Post",
270
-    'thewire:share' => ' Share',
271
-    'thewire:shares' => ' Shares',
272
-    'thewire:contentwarning' => 'This content may not be viewable to all users due to access permissions.',
273
-    'thewire:groupwarning' => 'This content is only viewable to members of: ',
274
-    'thewire:userwarning' => 'This content is only viewable to: ',
266
+	 * The Wire
267
+	 */
268
+	'wire:post' => 'wire post',
269
+	'thewire:post' => "Create a Wire Post",
270
+	'thewire:share' => ' Share',
271
+	'thewire:shares' => ' Shares',
272
+	'thewire:contentwarning' => 'This content may not be viewable to all users due to access permissions.',
273
+	'thewire:groupwarning' => 'This content is only viewable to members of: ',
274
+	'thewire:userwarning' => 'This content is only viewable to: ',
275 275
 
276 276
 
277
-    /**
278
-  * Files
279
-  */
277
+	/**
278
+	 * Files
279
+	 */
280 280
 
281 281
   'file:folderstruct' => 'Folder structure',
282 282
   'file:move:selected' => 'Move selected',
@@ -288,60 +288,60 @@  discard block
 block discarded – undo
288 288
  * User Menu
289 289
  */
290 290
 
291
-    'userMenu:profile' => "My Profile",
292
-    'userMenu:account' => "Account Settings",
293
-    'userMenu:messages' => "My Messages",
294
-    'userMenu:colleagues' => "My Colleagues",
295
-    'userMenu:usermenuTitle' =>'User Card - Click here for links to your profile, account settings and logout',
296
-    'wet:usermenu:helpertext' => "User Menu. Contains Links to Notifications, Profile and Logout",
297
-    /*NEW*/
291
+	'userMenu:profile' => "My Profile",
292
+	'userMenu:account' => "Account Settings",
293
+	'userMenu:messages' => "My Messages",
294
+	'userMenu:colleagues' => "My Colleagues",
295
+	'userMenu:usermenuTitle' =>'User Card - Click here for links to your profile, account settings and logout',
296
+	'wet:usermenu:helpertext' => "User Menu. Contains Links to Notifications, Profile and Logout",
297
+	/*NEW*/
298 298
 		'wet:dd:expand'=>"Open drop down of most recent messages",
299 299
 
300 300
 
301 301
  /**
302
- * Group Profile
303
- */
304
-
305
-    'gprofile:about' => "About",
306
-    'gprofile:discussion' => "Discussion",
307
-    'gprofile:files' => "Files",
308
-    'gprofile:blogs' => "Blog",
309
-    'gprofile:events' => "Events",
310
-    'gprofile:calendar' => "calendar",
311
-    'gprofile:pages' => "Pages",
312
-    'gprofile:bookmarks' => "Bookmarks",
313
-    'gprofile:polls' => "Polls",
314
-    'gprofile:tasks' => "Tasks",
315
-    'gprofile:photos' => "Photos",
316
-    'gprofile:photoCatch' => "Images",
317
-    'gprofile:albums' => "Albums",
318
-    'gprofile:albumsCatch' => "Photo Albums",
319
-    'gprofile:ideas' => "Ideas",
320
-    'gprofile:more' => "More",
321
-    'gprofile:settings' => 'Settings',
322
-    'photos:none' => 'No image albums',
323
-
324
-    'gprofile:create' => "Create Group",
325
-
326
-    'gprofile:edit:content' => "Content options",
327
-    'gprofile:edit:admin' => "Admin options",
328
-
329
-    'groups:suggestedGroups' => 'The group you are creating may already exist, check out these suggestions to find what you are looking for.',
330
-
331
-    'groups:creatediscussion' => 'Create Discussion',
332
-
333
-    'profile:actions' => 'Actions',
334
-    'profile:viewall:coll' => 'View All Colleagues',
335
-    'profile:viewall:groups' => 'View All Groups',
336
-    'gcforums:enable_group_forums' => 'Enable group forums',
337
-    'gprofile:contentMenu' => "Group content menu",
338
-
339
-    'groups:stats'  => "Group statistics",
340
-
341
-    /**
342
-  * Group invite
302
+  * Group Profile
343 303
   */
344 304
 
305
+	'gprofile:about' => "About",
306
+	'gprofile:discussion' => "Discussion",
307
+	'gprofile:files' => "Files",
308
+	'gprofile:blogs' => "Blog",
309
+	'gprofile:events' => "Events",
310
+	'gprofile:calendar' => "calendar",
311
+	'gprofile:pages' => "Pages",
312
+	'gprofile:bookmarks' => "Bookmarks",
313
+	'gprofile:polls' => "Polls",
314
+	'gprofile:tasks' => "Tasks",
315
+	'gprofile:photos' => "Photos",
316
+	'gprofile:photoCatch' => "Images",
317
+	'gprofile:albums' => "Albums",
318
+	'gprofile:albumsCatch' => "Photo Albums",
319
+	'gprofile:ideas' => "Ideas",
320
+	'gprofile:more' => "More",
321
+	'gprofile:settings' => 'Settings',
322
+	'photos:none' => 'No image albums',
323
+
324
+	'gprofile:create' => "Create Group",
325
+
326
+	'gprofile:edit:content' => "Content options",
327
+	'gprofile:edit:admin' => "Admin options",
328
+
329
+	'groups:suggestedGroups' => 'The group you are creating may already exist, check out these suggestions to find what you are looking for.',
330
+
331
+	'groups:creatediscussion' => 'Create Discussion',
332
+
333
+	'profile:actions' => 'Actions',
334
+	'profile:viewall:coll' => 'View All Colleagues',
335
+	'profile:viewall:groups' => 'View All Groups',
336
+	'gcforums:enable_group_forums' => 'Enable group forums',
337
+	'gprofile:contentMenu' => "Group content menu",
338
+
339
+	'groups:stats'  => "Group statistics",
340
+
341
+	/**
342
+	 * Group invite
343
+	 */
344
+
345 345
   'group:invite:cannot' => '<br><br> The following users are not members of the parent group and cannot be invited/added.',
346 346
 
347 347
   'group:invite:clicktoadd' => "Click to add",
@@ -352,15 +352,15 @@  discard block
 block discarded – undo
352 352
 
353 353
   'group:replyitem' => 'reply',
354 354
 /**
355
- * Sites
356
- */
357
-    'landingPage' => 'Set Landing Page',
358
-    'career' => 'Career',
355
+   * Sites
356
+   */
357
+	'landingPage' => 'Set Landing Page',
358
+	'career' => 'Career',
359 359
 	'item:site' => 'Sites',
360
-    'notifications:subscriptions:changesettings' => 'Notifications',
360
+	'notifications:subscriptions:changesettings' => 'Notifications',
361 361
 /**
362
- * Sessions
363
- */
362
+	 * Sessions
363
+	 */
364 364
 
365 365
 	'login' => "Log in",
366 366
 
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
 
532 532
 	'widget:delete' => 'Remove %s',
533 533
 	'widget:edit' => 'Customize this widget: %s',
534
-    'widget:remove' => 'Remove widget',
534
+	'widget:remove' => 'Remove widget',
535 535
 	'widgets' => "Widgets",
536 536
 	'widget' => "Widget",
537 537
 	'item:object:widget' => "Widgets",
@@ -549,15 +549,15 @@  discard block
 block discarded – undo
549 549
 
550 550
 	'group' => "Group",
551 551
 	'item:group' => "Groups",
552
-    'group_tools:groups:sorting:alphabetical' => 'Alphabetical',
553
-    'groups:own' => 'Groups I own',
554
-    'groups:personal' => 'Personal',
555
-    'groups:feature' => 'Featured',
556
-    'groups:popular' => 'Popular',
557
-    'groups:suggested' => 'Suggested',
552
+	'group_tools:groups:sorting:alphabetical' => 'Alphabetical',
553
+	'groups:own' => 'Groups I own',
554
+	'groups:personal' => 'Personal',
555
+	'groups:feature' => 'Featured',
556
+	'groups:popular' => 'Popular',
557
+	'groups:suggested' => 'Suggested',
558 558
 /**
559
- * Users
560
- */
559
+	 * Users
560
+	 */
561 561
 
562 562
 	'user' => "User",
563 563
 	'item:user' => "Users",
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
  */
568 568
 
569 569
 	'friends' => "My Colleagues", //Friends
570
-    'friend:river' => "Colleague", //Friends
570
+	'friend:river' => "Colleague", //Friends
571 571
 	'friends:yours' => "Your friends",
572 572
 	'friends:owned' => "%s's friends",
573 573
 	'friend:add' => "Add friend",
@@ -672,8 +672,8 @@  discard block
 block discarded – undo
672 672
  */
673 673
 	'feed:rss' => 'RSS feed for this page',
674 674
 /**
675
- * Links
676
- */
675
+	 * Links
676
+	 */
677 677
 	'link:view' => 'view link',
678 678
 	'link:view:all' => 'View all',
679 679
 
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
 	'registration:emailnotvalid' => 'Sorry, the email address you entered is invalid on this system',
770 770
 	'registration:passwordnotvalid' => 'Sorry, the password you entered is invalid on this system',
771 771
 	'registration:usernamenotvalid' => 'Sorry, the username you entered is invalid on this system',
772
-    'registration:userexists' => 'That username already exists. <a href=forgotpassword>Retrieve your password</a>',
772
+	'registration:userexists' => 'That username already exists. <a href=forgotpassword>Retrieve your password</a>',
773 773
 	'adduser' => "Add User",
774 774
 	'adduser:ok' => "You have successfully added a new user.",
775 775
 	'adduser:bad' => "The new user could not be created.",
@@ -1586,7 +1586,7 @@  discard block
 block discarded – undo
1586 1586
 	'generic_comments:post' => "Post comment",
1587 1587
 	'generic_comments:text' => "Comment",
1588 1588
 	'generic_comments:latest' => "Latest comments",
1589
-    'generic_comments:latest:event' => "Latest Comments on Events",
1589
+	'generic_comments:latest:event' => "Latest Comments on Events",
1590 1590
 	'generic_comment:posted' => "Your comment was successfully posted.",
1591 1591
 	'generic_comment:updated' => "The comment was successfully updated.",
1592 1592
 	'generic_comment:deleted' => "The comment was successfully deleted.",
@@ -1620,23 +1620,23 @@  discard block
 block discarded – undo
1620 1620
 *Blogs
1621 1621
 */
1622 1622
 
1623
-    'blog:title:all_blogs' => 'Blogs',
1623
+	'blog:title:all_blogs' => 'Blogs',
1624 1624
 
1625
-    /**
1626
-    *Activity module
1627
-    */
1628
-    'activity:module:weekly_likes' => 'Most liked of last week',
1625
+	/**
1626
+	 *Activity module
1627
+	 */
1628
+	'activity:module:weekly_likes' => 'Most liked of last week',
1629 1629
 	'activity:module:weekly_likes:none' => 'No likes',
1630 1630
 
1631 1631
 /**
1632 1632
 *Contact page / FAQ
1633 1633
 */
1634
-    'contactform:help' => 'Help',
1635
-    'contactform:upload' => 'Upload your file',
1636
-    'contactform:faq' => "FAQ",
1637
-    'contactform:upload' => 'Upload your file',
1638
-    'contactform:title:form' => "Contact Us",
1639
-    'contactform:required' => 'required',
1634
+	'contactform:help' => 'Help',
1635
+	'contactform:upload' => 'Upload your file',
1636
+	'contactform:faq' => "FAQ",
1637
+	'contactform:upload' => 'Upload your file',
1638
+	'contactform:title:form' => "Contact Us",
1639
+	'contactform:required' => 'required',
1640 1640
 
1641 1641
 	'contactform:box:message' => 'Show the information box',
1642 1642
 	'conatactform:fr:name' => 'Name of the link in french',
@@ -1711,12 +1711,12 @@  discard block
 block discarded – undo
1711 1711
 	'event_calendar_contact' => "You are not the contact person?",
1712 1712
 	"event_calendar:email" => "E-mail address",
1713 1713
 	"event_calendar:phone" => "Phone number",
1714
-    'event_calendar:lang:french'=>"French",
1715
-    'event_calendar:lang:english'=>"English",
1716
-    'event_calendar:lang:bilingual'=>"Bilingual",
1717
-    'event_calendar:add_recurrence' => "Add recurrence",
1714
+	'event_calendar:lang:french'=>"French",
1715
+	'event_calendar:lang:english'=>"English",
1716
+	'event_calendar:lang:bilingual'=>"Bilingual",
1717
+	'event_calendar:add_recurrence' => "Add recurrence",
1718 1718
 
1719
-    /*new for tour*/
1719
+	/*new for tour*/
1720 1720
 'gcTour:next' => 'Next ',
1721 1721
 'gcTour:close' => 'Close',
1722 1722
 'gcTour:step1' => 'Your News Feed ',
Please login to merge, or discard this patch.
mod/wet4/actions/user/requestnewpassword.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,15 +38,15 @@
 block discarded – undo
38 38
 	//if (send_new_password_request($user->guid)) {
39 39
 	if ($result) {
40 40
 		system_message(elgg_echo('user:password:changereq:success'));
41
-        forward('/login');
41
+		forward('/login');
42 42
 	} else {
43 43
 		register_error(elgg_echo('user:password:changereq:fail'));
44
-        forward('/forgotpassword');
44
+		forward('/forgotpassword');
45 45
 	}
46 46
 
47 47
 } else {
48 48
 	register_error(elgg_echo('user:username:notfound', array($username)));
49
-    forward('/forgotpassword');
49
+	forward('/forgotpassword');
50 50
 }
51 51
 
52 52
 //forward(current_page_url());
Please login to merge, or discard this patch.
mod/wet4/actions/department/verify_department.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
 $departmentsFr = array_merge($departmentsFr,$provincesFr);
53 53
 
54 54
 if (get_current_language()=='en'){
55
-    $deptString = $departmentsEn[$department]." / ".$departmentsFr[$department];
55
+	$deptString = $departmentsEn[$department]." / ".$departmentsFr[$department];
56 56
 }else{
57
-    $deptString = $departmentsFr[$department]." / ".$departmentsEn[$department];
57
+	$deptString = $departmentsFr[$department]." / ".$departmentsEn[$department];
58 58
 }
59 59
 
60 60
 //save dept
@@ -63,4 +63,4 @@  discard block
 block discarded – undo
63 63
 elgg_get_logged_in_user_entity()->set('last_department_verify', time());
64 64
 
65 65
 system_message($deptString );
66
-    ?>
66
+	?>
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 $provinces['pov-que'] = 'Government of Quebec';
34 34
 $provinces['pov-sask'] = 'Government of Saskatchewan';
35 35
 $provinces['pov-yuk'] = 'Government of Yukon';
36
-$departmentsEn = array_merge($departmentsEn,$provinces);
36
+$departmentsEn = array_merge($departmentsEn, $provinces);
37 37
 
38 38
 $departmentsFr = json_decode($obj[0]->deptsFr, true);
39 39
 $provincesFr['pov-alb'] = "Gouvernement de l'Alberta";
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
 $provincesFr['pov-que'] = 'Gouvernement du Québec';
50 50
 $provincesFr['pov-sask'] = 'Gouvernement de Saskatchewan';
51 51
 $provincesFr['pov-yuk'] = 'Gouvernement du Yukon';
52
-$departmentsFr = array_merge($departmentsFr,$provincesFr);
52
+$departmentsFr = array_merge($departmentsFr, $provincesFr);
53 53
 
54
-if (get_current_language()=='en'){
55
-    $deptString = $departmentsEn[$department]." / ".$departmentsFr[$department];
56
-}else{
57
-    $deptString = $departmentsFr[$department]." / ".$departmentsEn[$department];
54
+if (get_current_language() == 'en') {
55
+    $deptString = $departmentsEn[$department] . " / " . $departmentsFr[$department];
56
+} else {
57
+    $deptString = $departmentsFr[$department] . " / " . $departmentsEn[$department];
58 58
 }
59 59
 
60 60
 //save dept
@@ -62,5 +62,5 @@  discard block
 block discarded – undo
62 62
 //save time
63 63
 elgg_get_logged_in_user_entity()->set('last_department_verify', time());
64 64
 
65
-system_message($deptString );
65
+system_message($deptString);
66 66
     ?>
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
 
54 54
 if (get_current_language()=='en'){
55 55
     $deptString = $departmentsEn[$department]." / ".$departmentsFr[$department];
56
-}else{
56
+} else{
57 57
     $deptString = $departmentsFr[$department]." / ".$departmentsEn[$department];
58 58
 }
59 59
 
Please login to merge, or discard this patch.
mod/wet4/actions/bilingual_content/update_to_json.php 2 patches
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -29,25 +29,25 @@  discard block
 block discarded – undo
29 29
 
30 30
 $db_prefix = elgg_get_config('dbprefix');
31 31
 
32
-$title2_id = elgg_get_metastring_id('title2', true);	// get the metastring id, create the metastring if it does not exist
32
+$title2_id = elgg_get_metastring_id('title2', true); // get the metastring id, create the metastring if it does not exist
33 33
 $title3_id = elgg_get_metastring_id('title3', true);
34 34
 
35
-$name2_id = elgg_get_metastring_id('name2', true);	// get the metastring id, create the metastring if it does not exist
35
+$name2_id = elgg_get_metastring_id('name2', true); // get the metastring id, create the metastring if it does not exist
36 36
 $name3_id = elgg_get_metastring_id('name3', true);
37 37
 
38
-$question2_id = elgg_get_metastring_id('question2', true);	// get the metastring id, create the metastring if it does not exist
38
+$question2_id = elgg_get_metastring_id('question2', true); // get the metastring id, create the metastring if it does not exist
39 39
 $question3_id = elgg_get_metastring_id('question3', true);
40 40
 
41
-$description2_id = elgg_get_metastring_id('description2', true);	// get the metastring id, create the metastring if it does not exist
41
+$description2_id = elgg_get_metastring_id('description2', true); // get the metastring id, create the metastring if it does not exist
42 42
 $description3_id = elgg_get_metastring_id('description3', true);
43 43
 
44
-$briefdescription2_id = elgg_get_metastring_id('briefdescription2', true);	// get the metastring id, create the metastring if it does not exist
44
+$briefdescription2_id = elgg_get_metastring_id('briefdescription2', true); // get the metastring id, create the metastring if it does not exist
45 45
 $briefdescription3_id = elgg_get_metastring_id('briefdescription3', true);
46 46
 
47
-$excerpt2_id = elgg_get_metastring_id('excerpt2', true);	// get the metastring id, create the metastring if it does not exist
47
+$excerpt2_id = elgg_get_metastring_id('excerpt2', true); // get the metastring id, create the metastring if it does not exist
48 48
 $excerpt3_id = elgg_get_metastring_id('excerpt3', true);
49 49
 
50
-$poll_choice2_id = elgg_get_metastring_id('text2', true);	// get the metastring id, create the metastring if it does not exist
50
+$poll_choice2_id = elgg_get_metastring_id('text2', true); // get the metastring id, create the metastring if it does not exist
51 51
 $poll_choice3_id = elgg_get_metastring_id('text3', true);
52 52
 
53 53
 $update_id = elgg_get_metastring_id('enfr_update_complete', true);
@@ -67,92 +67,92 @@  discard block
 block discarded – undo
67 67
 	}
68 68
 
69 69
 	// migrate all old storage style of bilingual content to json strings
70
-	foreach ( $object_guids as $object_guid ) {
70
+	foreach ($object_guids as $object_guid) {
71 71
 		$object = get_entity($object_guid->guid);
72 72
 
73 73
 		// check, migrate title
74
-		if ( isset($object->title2) ){
75
-			$new_title = gc_implode_translation( $object->title, $object->title2 );
74
+		if (isset($object->title2)) {
75
+			$new_title = gc_implode_translation($object->title, $object->title2);
76 76
 			$object->title = $new_title;
77 77
 			$object->enfr_update_complete = 1;
78 78
 			$object->save();
79 79
 		}
80
-		else if ( isset($object->title3 ) ){
81
-			$object->title = gc_implode_translation( old_gc_explode_translation($object->title3, 'en'), old_gc_explode_translation($object->title3, 'fr') );
80
+		else if (isset($object->title3)) {
81
+			$object->title = gc_implode_translation(old_gc_explode_translation($object->title3, 'en'), old_gc_explode_translation($object->title3, 'fr'));
82 82
 			$object->enfr_update_complete = 1;
83 83
 			$object->save();
84 84
 		}
85 85
 
86 86
 		// check, migrate group names
87
-		if ( isset($object->name2) ){
88
-			$new_name = gc_implode_translation( $object->name, $object->name2 );
87
+		if (isset($object->name2)) {
88
+			$new_name = gc_implode_translation($object->name, $object->name2);
89 89
 			$object->name = $new_name;
90 90
 			$object->enfr_update_complete = 1;
91 91
 			$object->save();
92 92
 		}
93
-		else if ( isset($object->name3 ) ){
94
-			$object->name = gc_implode_translation( old_gc_explode_translation($object->name3, 'en'), old_gc_explode_translation($object->name3, 'fr') );
93
+		else if (isset($object->name3)) {
94
+			$object->name = gc_implode_translation(old_gc_explode_translation($object->name3, 'en'), old_gc_explode_translation($object->name3, 'fr'));
95 95
 			$object->enfr_update_complete = 1;
96 96
 			$object->save();
97 97
 		}
98 98
 
99 99
 		// check, migrate poll questions, which are also titles...
100
-		if ( isset($object->question2) ){
101
-			$new_name = gc_implode_translation( $object->question, $object->question2 );
100
+		if (isset($object->question2)) {
101
+			$new_name = gc_implode_translation($object->question, $object->question2);
102 102
 			$object->question = $new_name;
103 103
 			$object->enfr_update_complete = 1;
104 104
 			$object->save();
105 105
 		}
106
-		else if ( isset($object->question3 ) ){
107
-			$object->question = gc_implode_translation( old_gc_explode_translation($object->question3, 'en'), old_gc_explode_translation($object->question3, 'fr') );
106
+		else if (isset($object->question3)) {
107
+			$object->question = gc_implode_translation(old_gc_explode_translation($object->question3, 'en'), old_gc_explode_translation($object->question3, 'fr'));
108 108
 			$object->enfr_update_complete = 1;
109 109
 			$object->save();
110 110
 		}
111 111
 
112 112
 		// check, migrate description
113
-		if ( isset($object->description2) ){
114
-			$object->description = gc_implode_translation( $object->description, $object->description2 );
113
+		if (isset($object->description2)) {
114
+			$object->description = gc_implode_translation($object->description, $object->description2);
115 115
 			$object->enfr_update_complete = 1;
116 116
 			$object->save();
117 117
 		}
118
-		else if ( isset($object->description3 ) ){
119
-			$object->description = gc_implode_translation( old_gc_explode_translation($object->description3, 'en'), old_gc_explode_translation($object->description3, 'fr') );
118
+		else if (isset($object->description3)) {
119
+			$object->description = gc_implode_translation(old_gc_explode_translation($object->description3, 'en'), old_gc_explode_translation($object->description3, 'fr'));
120 120
 			$object->enfr_update_complete = 1;
121 121
 			$object->save();
122 122
 		}
123 123
 
124 124
 		// check, migrate briefdescription
125
-		if ( isset($object->briefdescription2) ){
126
-			$object->briefdescription = gc_implode_translation( $object->briefdescription, $object->briefdescription2 );
125
+		if (isset($object->briefdescription2)) {
126
+			$object->briefdescription = gc_implode_translation($object->briefdescription, $object->briefdescription2);
127 127
 			$object->enfr_update_complete = 1;
128 128
 			$object->save();
129 129
 		}
130
-		else if ( isset($object->briefdescription3 ) ){
131
-			$object->briefdescription = gc_implode_translation( old_gc_explode_translation($object->briefdescription3, 'en'), old_gc_explode_translation($object->briefdescription3, 'fr') );
130
+		else if (isset($object->briefdescription3)) {
131
+			$object->briefdescription = gc_implode_translation(old_gc_explode_translation($object->briefdescription3, 'en'), old_gc_explode_translation($object->briefdescription3, 'fr'));
132 132
 			$object->enfr_update_complete = 1;
133 133
 			$object->save();
134 134
 		}
135 135
 
136 136
 		// check, migrate excerpt
137
-		if ( isset($object->excerpt2) ){
138
-			$object->excerpt = gc_implode_translation( $object->excerpt, $object->excerpt2 );
137
+		if (isset($object->excerpt2)) {
138
+			$object->excerpt = gc_implode_translation($object->excerpt, $object->excerpt2);
139 139
 			$object->enfr_update_complete = 1;
140 140
 			$object->save();
141 141
 		}
142
-		else if ( isset($object->excerpt3 ) ){
143
-			$object->excerpt = gc_implode_translation( old_gc_explode_translation($object->excerpt3, 'en'), old_gc_explode_translation($object->excerpt3, 'fr') );
142
+		else if (isset($object->excerpt3)) {
143
+			$object->excerpt = gc_implode_translation(old_gc_explode_translation($object->excerpt3, 'en'), old_gc_explode_translation($object->excerpt3, 'fr'));
144 144
 			$object->enfr_update_complete = 1;
145 145
 			$object->save();
146 146
 		}
147 147
 
148 148
 		// check, migrate poll_choice
149
-		if ( isset($object->text2) ){
150
-			$object->text = gc_implode_translation( $object->text, $object->text2 );
149
+		if (isset($object->text2)) {
150
+			$object->text = gc_implode_translation($object->text, $object->text2);
151 151
 			$object->enfr_update_complete = 1;
152 152
 			$object->save();
153 153
 		}
154
-		else if ( isset($object->text3) ){
155
-			$object->text = gc_implode_translation( old_gc_explode_translation($object->text3, 'en'), old_gc_explode_translation($object->text3, 'fr') );
154
+		else if (isset($object->text3)) {
155
+			$object->text = gc_implode_translation(old_gc_explode_translation($object->text3, 'en'), old_gc_explode_translation($object->text3, 'fr'));
156 156
 			$object->enfr_update_complete = 1;
157 157
 			$object->save();
158 158
 		}
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 		'processComplete' => true,
177 177
 	));
178 178
 }
179
-else{
179
+else {
180 180
 	// Give some feedback for the UI
181 181
 	echo json_encode(array(
182 182
 		'numSuccess' => $success_count,
Please login to merge, or discard this patch.
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -76,8 +76,7 @@  discard block
 block discarded – undo
76 76
 			$object->title = $new_title;
77 77
 			$object->enfr_update_complete = 1;
78 78
 			$object->save();
79
-		}
80
-		else if ( isset($object->title3 ) ){
79
+		} else if ( isset($object->title3 ) ){
81 80
 			$object->title = gc_implode_translation( old_gc_explode_translation($object->title3, 'en'), old_gc_explode_translation($object->title3, 'fr') );
82 81
 			$object->enfr_update_complete = 1;
83 82
 			$object->save();
@@ -89,8 +88,7 @@  discard block
 block discarded – undo
89 88
 			$object->name = $new_name;
90 89
 			$object->enfr_update_complete = 1;
91 90
 			$object->save();
92
-		}
93
-		else if ( isset($object->name3 ) ){
91
+		} else if ( isset($object->name3 ) ){
94 92
 			$object->name = gc_implode_translation( old_gc_explode_translation($object->name3, 'en'), old_gc_explode_translation($object->name3, 'fr') );
95 93
 			$object->enfr_update_complete = 1;
96 94
 			$object->save();
@@ -102,8 +100,7 @@  discard block
 block discarded – undo
102 100
 			$object->question = $new_name;
103 101
 			$object->enfr_update_complete = 1;
104 102
 			$object->save();
105
-		}
106
-		else if ( isset($object->question3 ) ){
103
+		} else if ( isset($object->question3 ) ){
107 104
 			$object->question = gc_implode_translation( old_gc_explode_translation($object->question3, 'en'), old_gc_explode_translation($object->question3, 'fr') );
108 105
 			$object->enfr_update_complete = 1;
109 106
 			$object->save();
@@ -114,8 +111,7 @@  discard block
 block discarded – undo
114 111
 			$object->description = gc_implode_translation( $object->description, $object->description2 );
115 112
 			$object->enfr_update_complete = 1;
116 113
 			$object->save();
117
-		}
118
-		else if ( isset($object->description3 ) ){
114
+		} else if ( isset($object->description3 ) ){
119 115
 			$object->description = gc_implode_translation( old_gc_explode_translation($object->description3, 'en'), old_gc_explode_translation($object->description3, 'fr') );
120 116
 			$object->enfr_update_complete = 1;
121 117
 			$object->save();
@@ -126,8 +122,7 @@  discard block
 block discarded – undo
126 122
 			$object->briefdescription = gc_implode_translation( $object->briefdescription, $object->briefdescription2 );
127 123
 			$object->enfr_update_complete = 1;
128 124
 			$object->save();
129
-		}
130
-		else if ( isset($object->briefdescription3 ) ){
125
+		} else if ( isset($object->briefdescription3 ) ){
131 126
 			$object->briefdescription = gc_implode_translation( old_gc_explode_translation($object->briefdescription3, 'en'), old_gc_explode_translation($object->briefdescription3, 'fr') );
132 127
 			$object->enfr_update_complete = 1;
133 128
 			$object->save();
@@ -138,8 +133,7 @@  discard block
 block discarded – undo
138 133
 			$object->excerpt = gc_implode_translation( $object->excerpt, $object->excerpt2 );
139 134
 			$object->enfr_update_complete = 1;
140 135
 			$object->save();
141
-		}
142
-		else if ( isset($object->excerpt3 ) ){
136
+		} else if ( isset($object->excerpt3 ) ){
143 137
 			$object->excerpt = gc_implode_translation( old_gc_explode_translation($object->excerpt3, 'en'), old_gc_explode_translation($object->excerpt3, 'fr') );
144 138
 			$object->enfr_update_complete = 1;
145 139
 			$object->save();
@@ -150,8 +144,7 @@  discard block
 block discarded – undo
150 144
 			$object->text = gc_implode_translation( $object->text, $object->text2 );
151 145
 			$object->enfr_update_complete = 1;
152 146
 			$object->save();
153
-		}
154
-		else if ( isset($object->text3) ){
147
+		} else if ( isset($object->text3) ){
155 148
 			$object->text = gc_implode_translation( old_gc_explode_translation($object->text3, 'en'), old_gc_explode_translation($object->text3, 'fr') );
156 149
 			$object->enfr_update_complete = 1;
157 150
 			$object->save();
@@ -175,8 +168,7 @@  discard block
 block discarded – undo
175 168
 		'numErrors' => $error_count,
176 169
 		'processComplete' => true,
177 170
 	));
178
-}
179
-else{
171
+} else{
180 172
 	// Give some feedback for the UI
181 173
 	echo json_encode(array(
182 174
 		'numSuccess' => $success_count,
Please login to merge, or discard this patch.
mod/wet4/actions/login.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,9 +81,9 @@
 block discarded – undo
81 81
 	$forward_url = elgg_trigger_plugin_hook('login:forward', 'user', $params, $forward_url);
82 82
 }else{
83 83
 	$obj = elgg_get_entities(array(
84
-     			'type' => 'object',
85
-     			'subtype' => 'gcpedia_account',
86
-     			'owner_guid' => elgg_get_logged_in_user_guid()
84
+	 			'type' => 'object',
85
+	 			'subtype' => 'gcpedia_account',
86
+	 			'owner_guid' => elgg_get_logged_in_user_guid()
87 87
 			 ));
88 88
 			 $gcpuser = $obj[0]->title;
89 89
 			 $gcpemail =$obj[0]->description;
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 // @todo we need to use the config object to store this so that the current language
63 63
 // can be changed. Refs #4171
64 64
 $display_name = $user->name;
65
-setcookie('connex_lang', $user->language, time()+(1000 * 60 * 60 * 24), '/');
65
+setcookie('connex_lang', $user->language, time() + (1000 * 60 * 60 * 24), '/');
66 66
 if ($user->language) {
67 67
 //give user a custom welcome message
68 68
 	$message = elgg_echo('wet:loginok', array($display_name));
@@ -77,36 +77,36 @@  discard block
 block discarded – undo
77 77
 
78 78
 
79 79
 
80
-if (strpos($_SERVER['HTTP_REFERER'], elgg_get_site_url()."saml/idp_login")=== false){
80
+if (strpos($_SERVER['HTTP_REFERER'], elgg_get_site_url() . "saml/idp_login") === false) {
81 81
 	$forward_url = elgg_trigger_plugin_hook('login:forward', 'user', $params, $forward_url);
82
-}else{
82
+} else {
83 83
 	$obj = elgg_get_entities(array(
84 84
      			'type' => 'object',
85 85
      			'subtype' => 'gcpedia_account',
86 86
      			'owner_guid' => elgg_get_logged_in_user_guid()
87 87
 			 ));
88 88
 			 $gcpuser = $obj[0]->title;
89
-			 $gcpemail =$obj[0]->description;
89
+			 $gcpemail = $obj[0]->description;
90 90
 			 //if (elgg_get_context()=="saml"){
91
-			 if ($gcpuser == NULL || $gcpuser == ""){
91
+			 if ($gcpuser == NULL || $gcpuser == "") {
92 92
 			 	forward("saml_link/link");
93
-			 }else{
94
-			 	$refererQuery = parse_url($_SERVER['HTTP_REFERER'],PHP_URL_QUERY);
93
+			 } else {
94
+			 	$refererQuery = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_QUERY);
95 95
 			 	$refererQueries = explode('%26', urldecode($refererQuery));
96
-			 	$relayState = explode('%3D',$refererQueries[count($refererQueries)-1]);
96
+			 	$relayState = explode('%3D', $refererQueries[count($refererQueries) - 1]);
97 97
 			 	$relayAddress = rawurldecode($relayState[1]);
98 98
 			 	//error_log('relay: -> '.$relayAddress);
99 99
 			 	$host = parse_url(rawurldecode($relayAddress));
100 100
 			 	//error_log('host -> '.json_encode($host));
101
-			 	$spentityid = $host['scheme'].'://'.$host['host'];
102
-			 	if($host['host'] == 'gcdirectory-gcannuaire.itsso.gc.ca' || $host['host'] == 'geds20admin-sage20admin.itsso.gc.ca'){
101
+			 	$spentityid = $host['scheme'] . '://' . $host['host'];
102
+			 	if ($host['host'] == 'gcdirectory-gcannuaire.itsso.gc.ca' || $host['host'] == 'geds20admin-sage20admin.itsso.gc.ca') {
103 103
 			 		$service = 'default-sp';
104
-			 	}else{
104
+			 	} else {
105 105
 			 		$service = 'elgg-idp';
106 106
 			 	}
107 107
 			 	//error_log('here: -> '.explode('&', parse_url($_SERVER['HTTP_REFERER'],PHP_URL_QUERY)));
108 108
 			 	//$forward_url = "http://".$_SERVER[HTTP_HOST]."/simplesaml/saml2/idp/SSOService.php?spentityid=".elgg_get_plugin_setting('gcpedia_url','saml_link')."simplesaml/module.php/saml/sp/metadata.php/elgg-idp&RelayState=".urldecode($relayState[1]);
109
-		 		$forward_url = "http://".$_SERVER[HTTP_HOST]."/simplesaml/saml2/idp/SSOService.php?spentityid=".$spentityid."/simplesaml/module.php/saml/sp/metadata.php/".$service."&RelayState=".urldecode($relayState[1]);
109
+		 		$forward_url = "http://" . $_SERVER[HTTP_HOST] . "/simplesaml/saml2/idp/SSOService.php?spentityid=" . $spentityid . "/simplesaml/module.php/saml/sp/metadata.php/" . $service . "&RelayState=" . urldecode($relayState[1]);
110 110
 		 	
111 111
 			 }
112 112
 	
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
 if (strpos($_SERVER['HTTP_REFERER'], elgg_get_site_url()."saml/idp_login")=== false){
81 81
 	$forward_url = elgg_trigger_plugin_hook('login:forward', 'user', $params, $forward_url);
82
-}else{
82
+} else{
83 83
 	$obj = elgg_get_entities(array(
84 84
      			'type' => 'object',
85 85
      			'subtype' => 'gcpedia_account',
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 			 //if (elgg_get_context()=="saml"){
91 91
 			 if ($gcpuser == NULL || $gcpuser == ""){
92 92
 			 	forward("saml_link/link");
93
-			 }else{
93
+			 } else{
94 94
 			 	$refererQuery = parse_url($_SERVER['HTTP_REFERER'],PHP_URL_QUERY);
95 95
 			 	$refererQueries = explode('%26', urldecode($refererQuery));
96 96
 			 	$relayState = explode('%3D',$refererQueries[count($refererQueries)-1]);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 			 	$spentityid = $host['scheme'].'://'.$host['host'];
102 102
 			 	if($host['host'] == 'gcdirectory-gcannuaire.itsso.gc.ca' || $host['host'] == 'geds20admin-sage20admin.itsso.gc.ca'){
103 103
 			 		$service = 'default-sp';
104
-			 	}else{
104
+			 	} else{
105 105
 			 		$service = 'elgg-idp';
106 106
 			 	}
107 107
 			 	//error_log('here: -> '.explode('&', parse_url($_SERVER['HTTP_REFERER'],PHP_URL_QUERY)));
Please login to merge, or discard this patch.
mod/wet4/pages/questions/view.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 $page_owner = $question->getContainerEntity();
16 16
 
17 17
 // set breadcrumb
18
-$crumbs_title = gc_explode_translation($page_owner->name,$lang);
18
+$crumbs_title = gc_explode_translation($page_owner->name, $lang);
19 19
 
20 20
 
21 21
 if ($page_owner instanceof ElggGroup) {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 // build page elements
34 34
 $title_icon = '';
35 35
 
36
-$content = elgg_view_entity($question,['full_view' => true]);
36
+$content = elgg_view_entity($question, ['full_view' => true]);
37 37
 
38 38
 $answers = '';
39 39
 
Please login to merge, or discard this patch.
mod/wet4/start.php 3 patches
Indentation   +675 added lines, -675 removed lines patch added patch discarded remove patch
@@ -24,41 +24,41 @@  discard block
 block discarded – undo
24 24
 	elgg_extend_view('object/widget/elements/content','page/elements/gsa_view_start',1);
25 25
 	elgg_extend_view('object/widget/elements/content','page/elements/gsa_view_end',1000);
26 26
 
27
-    // cyu - are we overriding the settings page handler? (note: the one in this plugin does nothing)
28
-    elgg_unregister_page_handler('settings');
29
-    elgg_register_page_handler('settings', '_elgg_wet_user_settings_page_handler');
30
-
31
-
32
-    //reload groups library to have our sidebar changes
33
-
34
-    elgg_register_library('GCconnex_logging', elgg_get_plugins_path() . 'wet4/lib/logging.php');
35
-    elgg_register_library('GCconnex_display_in_language', elgg_get_plugins_path() . 'wet4/lib/translate_display.php');
36
-    //elgg_register_library('elgg:user_settings', elgg_get_plugins_path(). 'wet4/lib/user_settings.php');
37
-    elgg_register_library('wet:custom_core', elgg_get_plugins_path() . 'wet4/lib/custom_core.php');
38
-
39
-    //elgg_load_library('user_settings');
40
-    elgg_load_library('GCconnex_logging');
41
-    elgg_load_library('GCconnex_display_in_language');
42
-    elgg_load_library('wet:custom_core');
43
-    //get rid of reply icon on river menu
44
-    elgg_unregister_plugin_hook_handler('register', 'menu:river', 'discussion_add_to_river_menu');
45
-
46
-    //change icons for blog entity
47
-    elgg_unregister_plugin_hook_handler("register", "menu:entity", array("\ColdTrick\BlogTools\EntityMenu", "register"));
48
-    elgg_register_plugin_hook_handler("register", "menu:entity", 'wet4_blog_entity_menu');
49
-    //Friendly Time - Nick
50
-    elgg_register_plugin_hook_handler('format', 'friendly:time', 'enhanced_friendly_time_hook');
27
+	// cyu - are we overriding the settings page handler? (note: the one in this plugin does nothing)
28
+	elgg_unregister_page_handler('settings');
29
+	elgg_register_page_handler('settings', '_elgg_wet_user_settings_page_handler');
30
+
31
+
32
+	//reload groups library to have our sidebar changes
33
+
34
+	elgg_register_library('GCconnex_logging', elgg_get_plugins_path() . 'wet4/lib/logging.php');
35
+	elgg_register_library('GCconnex_display_in_language', elgg_get_plugins_path() . 'wet4/lib/translate_display.php');
36
+	//elgg_register_library('elgg:user_settings', elgg_get_plugins_path(). 'wet4/lib/user_settings.php');
37
+	elgg_register_library('wet:custom_core', elgg_get_plugins_path() . 'wet4/lib/custom_core.php');
38
+
39
+	//elgg_load_library('user_settings');
40
+	elgg_load_library('GCconnex_logging');
41
+	elgg_load_library('GCconnex_display_in_language');
42
+	elgg_load_library('wet:custom_core');
43
+	//get rid of reply icon on river menu
44
+	elgg_unregister_plugin_hook_handler('register', 'menu:river', 'discussion_add_to_river_menu');
45
+
46
+	//change icons for blog entity
47
+	elgg_unregister_plugin_hook_handler("register", "menu:entity", array("\ColdTrick\BlogTools\EntityMenu", "register"));
48
+	elgg_register_plugin_hook_handler("register", "menu:entity", 'wet4_blog_entity_menu');
49
+	//Friendly Time - Nick
50
+	elgg_register_plugin_hook_handler('format', 'friendly:time', 'enhanced_friendly_time_hook');
51 51
 	elgg_register_event_handler('pagesetup', 'system', 'wet4_theme_pagesetup', 1000);
52
-    elgg_register_event_handler('pagesetup', 'system', 'wet4_riverItem_remove');
53
-    elgg_register_event_handler('pagesetup', 'system', 'messages_notifier');
52
+	elgg_register_event_handler('pagesetup', 'system', 'wet4_riverItem_remove');
53
+	elgg_register_event_handler('pagesetup', 'system', 'messages_notifier');
54 54
 
55
-    elgg_register_plugin_hook_handler('register', 'menu:entity', 'wet4_elgg_entity_menu_setup');
56
-    elgg_register_plugin_hook_handler('register', 'menu:widget', 'wet4_widget_menu_setup');
57
-    elgg_register_plugin_hook_handler('register', 'menu:page', 'wet4_elgg_page_menu_setup');
58
-    elgg_register_plugin_hook_handler('register', 'menu:river', 'wet4_elgg_river_menu_setup');
55
+	elgg_register_plugin_hook_handler('register', 'menu:entity', 'wet4_elgg_entity_menu_setup');
56
+	elgg_register_plugin_hook_handler('register', 'menu:widget', 'wet4_widget_menu_setup');
57
+	elgg_register_plugin_hook_handler('register', 'menu:page', 'wet4_elgg_page_menu_setup');
58
+	elgg_register_plugin_hook_handler('register', 'menu:river', 'wet4_elgg_river_menu_setup');
59 59
 
60
-    elgg_register_plugin_hook_handler('register', 'menu:entity', 'wet4_likes_entity_menu_setup', 400);
61
-    //elgg_register_plugin_hook_handler('register', 'menu:entity', 'wet4_delete_entity_menu', 400);
60
+	elgg_register_plugin_hook_handler('register', 'menu:entity', 'wet4_likes_entity_menu_setup', 400);
61
+	//elgg_register_plugin_hook_handler('register', 'menu:entity', 'wet4_delete_entity_menu', 400);
62 62
 
63 63
 		//questions modifications
64 64
 		elgg_register_action('object/question/save', elgg_get_plugins_path()."wet4/actions/object/question/save.php"); //add english/french toggle
@@ -70,30 +70,30 @@  discard block
 block discarded – undo
70 70
 	elgg_extend_view('css/elgg', 'wet4_theme/css');
71 71
 	elgg_extend_view('css/elgg', 'wet4_theme/custom_css');
72 72
 
73
-    //remove_group_tool_option('activity');
73
+	//remove_group_tool_option('activity');
74 74
 
75
-    //extending views to pass metadata to head.php
76
-    elgg_extend_view("object/elements/full", "wet4_theme/track_page_entity", 451);
77
-    elgg_extend_view('profile/wrapper', 'wet4_theme/pass');
75
+	//extending views to pass metadata to head.php
76
+	elgg_extend_view("object/elements/full", "wet4_theme/track_page_entity", 451);
77
+	elgg_extend_view('profile/wrapper', 'wet4_theme/pass');
78 78
 
79
-    elgg_extend_view('forms/notificationsettings/save', 'forms/notificationsettings/groupsave');
79
+	elgg_extend_view('forms/notificationsettings/save', 'forms/notificationsettings/groupsave');
80 80
 
81
-    //register a page handler for friends
82
-    elgg_unregister_page_handler('friends'); //unregister core page handler
83
-    elgg_unregister_page_handler('dashboard'); //unregister dashboard handler to make our own
84
-    elgg_register_page_handler('dashboard', 'wet4_dashboard_page_handler');
85
-    elgg_register_page_handler('friends', '_wet4_friends_page_handler'); //register new page handler for data tables
81
+	//register a page handler for friends
82
+	elgg_unregister_page_handler('friends'); //unregister core page handler
83
+	elgg_unregister_page_handler('dashboard'); //unregister dashboard handler to make our own
84
+	elgg_register_page_handler('dashboard', 'wet4_dashboard_page_handler');
85
+	elgg_register_page_handler('friends', '_wet4_friends_page_handler'); //register new page handler for data tables
86 86
 	elgg_register_page_handler('friendsof', '_wet4_friends_page_handler');
87
-    elgg_register_page_handler('activity', 'activity_page_handler');
88
-    elgg_unregister_page_handler('messages', 'messages_page_handler');
89
-    elgg_register_page_handler('messages', 'wet4_messages_page_handler');
87
+	elgg_register_page_handler('activity', 'activity_page_handler');
88
+	elgg_unregister_page_handler('messages', 'messages_page_handler');
89
+	elgg_register_page_handler('messages', 'wet4_messages_page_handler');
90 90
 
91
-    elgg_register_page_handler('collections', 'wet4_collections_page_handler');
91
+	elgg_register_page_handler('collections', 'wet4_collections_page_handler');
92 92
 
93 93
 		//register login as menu item into user menu
94 94
 		elgg_register_event_handler('pagesetup', 'system', 'login_as_add_user_menu_link');
95 95
 
96
-    //datatables css file
96
+	//datatables css file
97 97
 	elgg_extend_view('css/elgg', '//cdn.datatables.net/1.10.10/css/jquery.dataTables.css');
98 98
 
99 99
 	elgg_register_simplecache_view('wet4/validate.js');
@@ -102,29 +102,29 @@  discard block
 block discarded – undo
102 102
 	//elgg_unextend_view('page/elements/header', 'search/header');
103 103
 	//elgg_extend_view('page/elements/sidebar', 'search/header', 0);
104 104
 
105
-    //load datatables
106
-    elgg_require_js("wet4/test");
105
+	//load datatables
106
+	elgg_require_js("wet4/test");
107 107
 
108
-    //the wire reply and thread
109
-    elgg_register_ajax_view("thewire_tools/reply");
108
+	//the wire reply and thread
109
+	elgg_register_ajax_view("thewire_tools/reply");
110 110
 	  elgg_register_ajax_view("thewire_tools/thread");
111 111
 		//viewing phot on newsfeed
112
-    elgg_register_ajax_view("ajax/photo");
112
+	elgg_register_ajax_view("ajax/photo");
113 113
 		//edit colleague circle
114
-    elgg_register_ajax_view("friend_circle/edit");
114
+	elgg_register_ajax_view("friend_circle/edit");
115 115
 		//verfiy department pop up
116
-    elgg_register_ajax_view("verify_department/verify_department");
116
+	elgg_register_ajax_view("verify_department/verify_department");
117 117
 
118
-    //file tools
118
+	//file tools
119 119
 		elgg_register_ajax_view("file_tools/move");
120 120
 		//message preview
121
-    elgg_register_ajax_view("messages/message_preview");
121
+	elgg_register_ajax_view("messages/message_preview");
122 122
 
123
-    //Group AJAX loading view
123
+	//Group AJAX loading view
124 124
 		/*REMOVE_GROUP
125 125
     elgg_register_ajax_view('ajax/grp_ajax_content');
126 126
 	elgg_extend_view("js/elgg", "js/wet4/group_ajax");*/
127
-    elgg_extend_view("js/elgg", "js/wet4/discussion_quick_start");
127
+	elgg_extend_view("js/elgg", "js/wet4/discussion_quick_start");
128 128
 
129 129
 
130 130
 
@@ -136,92 +136,92 @@  discard block
 block discarded – undo
136 136
 
137 137
 	elgg_register_plugin_hook_handler('head', 'page', 'wet4_theme_setup_head');
138 138
 	elgg_register_plugin_hook_handler('register', 'menu:owner_block', 'my_owner_block_handler');
139
-    elgg_register_plugin_hook_handler('register', 'menu:title', 'my_title_menu_handler');
140
-    elgg_register_plugin_hook_handler('register', 'menu:filter', 'my_filter_menu_handler');
141
-    elgg_register_plugin_hook_handler('register', 'menu:site', 'my_site_menu_handler');
139
+	elgg_register_plugin_hook_handler('register', 'menu:title', 'my_title_menu_handler');
140
+	elgg_register_plugin_hook_handler('register', 'menu:filter', 'my_filter_menu_handler');
141
+	elgg_register_plugin_hook_handler('register', 'menu:site', 'my_site_menu_handler');
142 142
 	elgg_register_plugin_hook_handler('register', 'menu:river', 'river_handler');
143 143
 
144
-    elgg_register_simplecache_view('wet4/test.js');
144
+	elgg_register_simplecache_view('wet4/test.js');
145 145
 
146
-    //added since goups didnt have this action but called it
147
-    elgg_register_action("discussion_reply/delete", elgg_get_plugins_path() . "/wet4/actions/discussion/reply/delete.php");
146
+	//added since goups didnt have this action but called it
147
+	elgg_register_action("discussion_reply/delete", elgg_get_plugins_path() . "/wet4/actions/discussion/reply/delete.php");
148 148
 
149
-    if(elgg_is_active_plugin('au_subgroups')){
150
-        elgg_register_action("groups/invite", elgg_get_plugins_path() . "/wet4/actions/groups/invite.php");
151
-    }
149
+	if(elgg_is_active_plugin('au_subgroups')){
150
+		elgg_register_action("groups/invite", elgg_get_plugins_path() . "/wet4/actions/groups/invite.php");
151
+	}
152 152
  elgg_register_action("comment/join", elgg_get_plugins_path() . "groups/actions/groups/membership/join.php");
153 153
 
154 154
 		elgg_register_action("file/move_folder", elgg_get_plugins_path() . "/wet4/actions/file/move.php");
155
-    elgg_register_action("friends/collections/edit", elgg_get_plugins_path() . "/wet4/actions/friends/collections/edit.php");
156
-    elgg_register_action("login", elgg_get_plugins_path() . "/wet4/actions/login.php", "public");
157
-    elgg_register_action("widgets/delete", elgg_get_plugins_path() . "/wet4/actions/widgets/delete.php");
158
-    elgg_register_action("user/requestnewpassword", elgg_get_plugins_path() . "/wet4/actions/user/requestnewpassword.php", "public");
155
+	elgg_register_action("friends/collections/edit", elgg_get_plugins_path() . "/wet4/actions/friends/collections/edit.php");
156
+	elgg_register_action("login", elgg_get_plugins_path() . "/wet4/actions/login.php", "public");
157
+	elgg_register_action("widgets/delete", elgg_get_plugins_path() . "/wet4/actions/widgets/delete.php");
158
+	elgg_register_action("user/requestnewpassword", elgg_get_plugins_path() . "/wet4/actions/user/requestnewpassword.php", "public");
159 159
 		elgg_register_action('logout_as', elgg_get_plugins_path() . '/wet4/actions/logout_as.php'); //login as out
160 160
 		elgg_register_action("question/autocomplete", elgg_get_plugins_path() . "/wet4/actions/object/question/autocomplete.php");
161 161
 		elgg_register_action("deptactivity/filter", elgg_get_plugins_path() . "/wet4/actions/deptactivity/filter.php");
162 162
 
163
-    //Verify the department action
164
-    elgg_register_action("department/verify_department", elgg_get_plugins_path() . "/wet4/actions/department/verify_department.php");
163
+	//Verify the department action
164
+	elgg_register_action("department/verify_department", elgg_get_plugins_path() . "/wet4/actions/department/verify_department.php");
165 165
 
166
-    // bilingual content upgrade script
167
-    elgg_register_action("wet4/update_to_json", elgg_get_plugins_path() . "/wet4/actions/bilingual_content/update_to_json.php");
166
+	// bilingual content upgrade script
167
+	elgg_register_action("wet4/update_to_json", elgg_get_plugins_path() . "/wet4/actions/bilingual_content/update_to_json.php");
168 168
 
169 169
 	// non-members do not get visible links to RSS feeds
170 170
 	if (!elgg_is_logged_in()) {
171 171
 		elgg_unregister_plugin_hook_handler('output:before', 'layout', 'elgg_views_add_rss_link');
172 172
 	}
173 173
 
174
-    // new widgets
175
-    //registering wet 4 activity widget
174
+	// new widgets
175
+	//registering wet 4 activity widget
176 176
 
177
-    elgg_register_widget_type('suggested_friends', elgg_echo('sf:suggcolleagues'), elgg_echo('sf:suggcolleagues'), array('custom_index_widgets'),false);
178
-    elgg_register_widget_type('feature_tour', 'feature_tour', 'feature_tour', array('custom_index_widgets'),false);
177
+	elgg_register_widget_type('suggested_friends', elgg_echo('sf:suggcolleagues'), elgg_echo('sf:suggcolleagues'), array('custom_index_widgets'),false);
178
+	elgg_register_widget_type('feature_tour', 'feature_tour', 'feature_tour', array('custom_index_widgets'),false);
179 179
 
180
-    //WET my groups widget
181
-    elgg_register_widget_type('wet_mygroups_index', $mygroups_title, 'My Groups Index', array('custom_index_widgets'),true);
182
-    elgg_register_widget_type('most_liked', elgg_echo('activity:module:weekly_likes'), elgg_echo('activity:module:weekly_likes'), array('dashboard','custom_index_widgets'),true);
180
+	//WET my groups widget
181
+	elgg_register_widget_type('wet_mygroups_index', $mygroups_title, 'My Groups Index', array('custom_index_widgets'),true);
182
+	elgg_register_widget_type('most_liked', elgg_echo('activity:module:weekly_likes'), elgg_echo('activity:module:weekly_likes'), array('dashboard','custom_index_widgets'),true);
183 183
 
184 184
 
185
-    //Temp fix for river widget
186
-    elgg_unregister_widget_type("group_river_widget");
185
+	//Temp fix for river widget
186
+	elgg_unregister_widget_type("group_river_widget");
187 187
 
188
-    //extend views of plugin files to remove unwanted menu items
189
-    $active_plugins = elgg_get_plugins();
190
-    foreach ($active_plugins as $plugin) {
188
+	//extend views of plugin files to remove unwanted menu items
189
+	$active_plugins = elgg_get_plugins();
190
+	foreach ($active_plugins as $plugin) {
191 191
 		$plugin_id = $plugin->getID();
192 192
 		if (elgg_view_exists("usersettings/$plugin_id/edit") || elgg_view_exists("plugins/$plugin_id/usersettings")) {
193 193
 
194
-            elgg_extend_view("usersettings/$plugin_id/edit", "forms/usersettings/menus");
195
-            elgg_extend_view("plugins/$plugin_id/usersettings", "forms/usersettings/menus");
194
+			elgg_extend_view("usersettings/$plugin_id/edit", "forms/usersettings/menus");
195
+			elgg_extend_view("plugins/$plugin_id/usersettings", "forms/usersettings/menus");
196 196
 
197 197
 		}
198 198
 	}
199
-    elgg_extend_view("core/settings/statistics", "forms/usersettings/menus");
200
-    elgg_extend_view('forms/account/settings', 'core/settings/account/landing_page');
199
+	elgg_extend_view("core/settings/statistics", "forms/usersettings/menus");
200
+	elgg_extend_view('forms/account/settings', 'core/settings/account/landing_page');
201 201
 
202 202
 
203
-    //set up metadata for user's landing page preference
204
-    if(elgg_is_logged_in()){
205
-        $user = elgg_get_logged_in_user_entity();
206
-        if(!isset($user->landingpage)){
207
-            $user->landingpage = 'news';
208
-        }
209
-    }
203
+	//set up metadata for user's landing page preference
204
+	if(elgg_is_logged_in()){
205
+		$user = elgg_get_logged_in_user_entity();
206
+		if(!isset($user->landingpage)){
207
+			$user->landingpage = 'news';
208
+		}
209
+	}
210 210
 
211
-    //save new user settings on landing page
212
-    elgg_register_plugin_hook_handler('usersettings:save', 'user', '_elgg_set_landing_page');
211
+	//save new user settings on landing page
212
+	elgg_register_plugin_hook_handler('usersettings:save', 'user', '_elgg_set_landing_page');
213 213
 
214 214
 
215
-    elgg_register_page_handler('groups_autocomplete', 'groups_autocomplete');
215
+	elgg_register_page_handler('groups_autocomplete', 'groups_autocomplete');
216 216
 
217 217
 
218
-    //jobs.gc.ca menu link
219
-    elgg_register_menu_item('subSite', array(
220
-        'name' => 'jobs',
221
-        'text' => elgg_echo('wet:jobs:link'),
222
-        'href' => elgg_echo('wet:jobs:href'),
223
-        'target' => '_blank',
224
-    ));
218
+	//jobs.gc.ca menu link
219
+	elgg_register_menu_item('subSite', array(
220
+		'name' => 'jobs',
221
+		'text' => elgg_echo('wet:jobs:link'),
222
+		'href' => elgg_echo('wet:jobs:href'),
223
+		'target' => '_blank',
224
+	));
225 225
 
226 226
 		//newsfeed-like department pages
227 227
 		if(elgg_is_logged_in() && elgg_get_plugin_setting('deptActivity', 'wet4')){
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
 			if(elgg_is_active_plugin('gc_newsfeed')){
235 235
 				elgg_extend_view('widgets/stream_newsfeed_index/content', 'dept_activity/tabs', 451);
236
-		    elgg_extend_view('widgets/newsfeed/content', 'dept_activity/tabs', 451);
236
+			elgg_extend_view('widgets/newsfeed/content', 'dept_activity/tabs', 451);
237 237
 			}
238 238
 		}
239 239
 
@@ -242,15 +242,15 @@  discard block
 block discarded – undo
242 242
 
243 243
 global $CONFIG;
244 244
 $dbprefix = elgg_get_config('dbprefix');
245
-    // user default access if enabled
246
-    if ($CONFIG->remove_logged_in) {
247
-    $query = "UPDATE {$dbprefix}entities SET access_id = 2 WHERE access_id = 1";//change access logged in to public
248
-    update_data($query);
245
+	// user default access if enabled
246
+	if ($CONFIG->remove_logged_in) {
247
+	$query = "UPDATE {$dbprefix}entities SET access_id = 2 WHERE access_id = 1";//change access logged in to public
248
+	update_data($query);
249 249
 }
250 250
 
251 251
 function department_page_handler() {
252
-    require_once elgg_get_plugins_path() . 'wet4/pages/department/activity.php';
253
-    return true;
252
+	require_once elgg_get_plugins_path() . 'wet4/pages/department/activity.php';
253
+	return true;
254 254
 }
255 255
 
256 256
  /*
@@ -258,56 +258,56 @@  discard block
 block discarded – undo
258 258
   * loads library for groups autocomplete in group creation form
259 259
   */
260 260
 function groups_autocomplete() {
261
-    require_once elgg_get_plugins_path() . 'wet4/lib/groups_autocomplete.php';
262
-    return true;
261
+	require_once elgg_get_plugins_path() . 'wet4/lib/groups_autocomplete.php';
262
+	return true;
263 263
 }
264 264
 
265 265
 
266 266
 
267 267
 
268 268
 function _elgg_wet_user_settings_page_handler($page) {
269
-    global $CONFIG;
270
-
271
-    if (!isset($page[0])) {
272
-        $page[0] = 'user';
273
-    }
274
-
275
-    if (isset($page[1])) {
276
-        $user = get_user_by_username($page[1]);
277
-        elgg_set_page_owner_guid($user->guid);
278
-    } else {
279
-        $user = elgg_get_logged_in_user_entity();
280
-        elgg_set_page_owner_guid($user->guid);
281
-    }
282
-
283
-    elgg_push_breadcrumb(elgg_echo('settings'), "settings/user/$user->username");
284
-
285
-    switch ($page[0]) {
286
-        case 'notifications':
287
-            elgg_push_breadcrumb(elgg_echo('cp_notifications:name'));
288
-            $path = elgg_get_plugins_path() . "/cp_notifications/" . "pages/cp_notifications/notification_setting.php";
289
-            break;
290
-        case 'statistics':
291
-            elgg_push_breadcrumb(elgg_echo('usersettings:statistics:opt:linktext'));
292
-            $path = $CONFIG->path . "pages/settings/statistics.php";
293
-            break;
294
-        /*case 'plugins':
269
+	global $CONFIG;
270
+
271
+	if (!isset($page[0])) {
272
+		$page[0] = 'user';
273
+	}
274
+
275
+	if (isset($page[1])) {
276
+		$user = get_user_by_username($page[1]);
277
+		elgg_set_page_owner_guid($user->guid);
278
+	} else {
279
+		$user = elgg_get_logged_in_user_entity();
280
+		elgg_set_page_owner_guid($user->guid);
281
+	}
282
+
283
+	elgg_push_breadcrumb(elgg_echo('settings'), "settings/user/$user->username");
284
+
285
+	switch ($page[0]) {
286
+		case 'notifications':
287
+			elgg_push_breadcrumb(elgg_echo('cp_notifications:name'));
288
+			$path = elgg_get_plugins_path() . "/cp_notifications/" . "pages/cp_notifications/notification_setting.php";
289
+			break;
290
+		case 'statistics':
291
+			elgg_push_breadcrumb(elgg_echo('usersettings:statistics:opt:linktext'));
292
+			$path = $CONFIG->path . "pages/settings/statistics.php";
293
+			break;
294
+		/*case 'plugins':
295 295
             if (isset($page[2])) {
296 296
                 set_input("plugin_id", $page[2]);
297 297
                 elgg_push_breadcrumb(elgg_echo('usersettings:plugins:opt:linktext'));
298 298
                 $path = $CONFIG->path . "pages/settings/tools.php";
299 299
             }
300 300
             break;*/
301
-        case 'user':
302
-            $path = $CONFIG->path . "pages/settings/account.php";
303
-            break;
304
-    }
305
-
306
-    if (isset($path)) {
307
-        require $path;
308
-        return true;
309
-    }
310
-    return false;
301
+		case 'user':
302
+			$path = $CONFIG->path . "pages/settings/account.php";
303
+			break;
304
+	}
305
+
306
+	if (isset($path)) {
307
+		require $path;
308
+		return true;
309
+	}
310
+	return false;
311 311
 }
312 312
 
313 313
 
@@ -318,23 +318,23 @@  discard block
 block discarded – undo
318 318
  * Override activity page handler
319 319
  */
320 320
 function activity_page_handler($page){
321
-    elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
322
-
323
-    // make a URL segment available in page handler script
324
-    $page_type = elgg_extract(0, $page, 'all');
325
-    $page_type = preg_replace('[\W]', '', $page_type);
326
-    if ($page_type == 'owner') {
327
-        elgg_gatekeeper();
328
-        $page_username = elgg_extract(1, $page, '');
329
-        if ($page_username == elgg_get_logged_in_user_entity()->username) {
330
-            $page_type = 'mine';
331
-        } else {
332
-            set_input('subject_username', $page_username);
333
-        }
334
-    }
335
-    set_input('page_type', $page_type);
336
-    @include (dirname ( __FILE__ ) . "/pages/river.php");
337
-    return true;
321
+	elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
322
+
323
+	// make a URL segment available in page handler script
324
+	$page_type = elgg_extract(0, $page, 'all');
325
+	$page_type = preg_replace('[\W]', '', $page_type);
326
+	if ($page_type == 'owner') {
327
+		elgg_gatekeeper();
328
+		$page_username = elgg_extract(1, $page, '');
329
+		if ($page_username == elgg_get_logged_in_user_entity()->username) {
330
+			$page_type = 'mine';
331
+		} else {
332
+			set_input('subject_username', $page_username);
333
+		}
334
+	}
335
+	set_input('page_type', $page_type);
336
+	@include (dirname ( __FILE__ ) . "/pages/river.php");
337
+	return true;
338 338
 }
339 339
 
340 340
 
@@ -440,51 +440,51 @@  discard block
 block discarded – undo
440 440
 		}
441 441
 
442 442
 
443
-        //style colleague requests tab
444
-        $context = elgg_get_context();
445
-        $page_owner = elgg_get_page_owner_entity();
446
-
447
-        if(elgg_is_logged_in()){
448
-            $user = elgg_get_logged_in_user_guid();
449
-        }
450
-
451
-        if ($page_owner instanceof ElggUser && $page_owner->guid == $user) {
452
-            // Show menu link in the correct context
453
-            if (in_array($context, array("friends", "friendsof", "collections"))) {
454
-                $options = array(
455
-                    "type" => "user",
456
-                    "count" => true,
457
-                    "relationship" => "friendrequest",
458
-                    "relationship_guid" => $page_owner->getGUID(),
459
-                    "inverse_relationship" => true
460
-                );
461
-
462
-                $count = elgg_get_entities_from_relationship($options);
463
-                $extra = "";
464
-                if (!empty($count)) {
465
-                    if($count >= 10){
466
-                        //$count = '9+';
467
-                    }
468
-                    $extra = '<span aria-hidden="true" class="notif-badge">' . $count . '</span>';
469
-                }
470
-
471
-                // add menu item
472
-                $menu_item = array(
473
-                    "name" => "friend_request",
474
-                    "text" => elgg_echo("friend_request:menu") . $extra,
475
-                    "href" => "friend_request/" . $page_owner->username,
476
-                    "contexts" => array("friends", "friendsof", "collections")
477
-                );
478
-
479
-                elgg_register_menu_item("page", $menu_item);
443
+		//style colleague requests tab
444
+		$context = elgg_get_context();
445
+		$page_owner = elgg_get_page_owner_entity();
480 446
 
447
+		if(elgg_is_logged_in()){
448
+			$user = elgg_get_logged_in_user_guid();
449
+		}
481 450
 
482
-            }
483
-        }
451
+		if ($page_owner instanceof ElggUser && $page_owner->guid == $user) {
452
+			// Show menu link in the correct context
453
+			if (in_array($context, array("friends", "friendsof", "collections"))) {
454
+				$options = array(
455
+					"type" => "user",
456
+					"count" => true,
457
+					"relationship" => "friendrequest",
458
+					"relationship_guid" => $page_owner->getGUID(),
459
+					"inverse_relationship" => true
460
+				);
461
+
462
+				$count = elgg_get_entities_from_relationship($options);
463
+				$extra = "";
464
+				if (!empty($count)) {
465
+					if($count >= 10){
466
+						//$count = '9+';
467
+					}
468
+					$extra = '<span aria-hidden="true" class="notif-badge">' . $count . '</span>';
469
+				}
484 470
 
485
-        if(elgg_in_context('messages')){
486
-                elgg_unregister_menu_item("page", "friend_request");
487
-            }
471
+				// add menu item
472
+				$menu_item = array(
473
+					"name" => "friend_request",
474
+					"text" => elgg_echo("friend_request:menu") . $extra,
475
+					"href" => "friend_request/" . $page_owner->username,
476
+					"contexts" => array("friends", "friendsof", "collections")
477
+				);
478
+
479
+				elgg_register_menu_item("page", $menu_item);
480
+
481
+
482
+			}
483
+		}
484
+
485
+		if(elgg_in_context('messages')){
486
+				elgg_unregister_menu_item("page", "friend_request");
487
+			}
488 488
 
489 489
 	}
490 490
 
@@ -494,43 +494,43 @@  discard block
 block discarded – undo
494 494
 *    taken from friend_request module
495 495
 *    edited to place badge on colleagues instead of creating new icon
496 496
 */
497
-    $user = elgg_get_logged_in_user_entity();
497
+	$user = elgg_get_logged_in_user_entity();
498 498
 
499
-    $params = array(
499
+	$params = array(
500 500
 				"name" => "Colleagues",
501 501
 				"href" => "friends/" . $user->username,
502 502
 				"text" => '<i class="fa fa-users mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden-xs">' . elgg_echo("userMenu:colleagues") . '</span>',
503 503
 				"title" => elgg_echo('userMenu:colleagues'),
504
-        "class" => '',
505
-        'item_class' => '',
504
+		"class" => '',
505
+		'item_class' => '',
506 506
 				'priority' => '1'
507 507
 			);
508 508
 
509 509
 			elgg_register_menu_item("user_menu", $params);
510 510
 
511 511
 
512
-    $context = elgg_get_context();
512
+	$context = elgg_get_context();
513 513
 	$page_owner = elgg_get_page_owner_entity();
514 514
 
515 515
 	// Remove link to friendsof
516 516
 	elgg_unregister_menu_item("page", "friends:of");
517 517
 
518
-    // Settings notifications tab in the User's setting page
519
-    // cyu - allow site administrators to view user notification settings page
518
+	// Settings notifications tab in the User's setting page
519
+	// cyu - allow site administrators to view user notification settings page
520 520
 	elgg_unregister_menu_item('page', '2_a_user_notify');
521
-    if ($page_owner instanceof ElggUser) {
522
-        $params = array(
523
-            "name" => "2_a_user_notify",
524
-            "href" => "/settings/notifications/{$page_owner->username}",
525
-            "text" =>  elgg_echo('notifications:subscriptions:changesettings'),
526
-            'section' => 'configure',
527
-            'priority' => '100',
528
-            'context' => 'settings',
529
-        );
530
-    }
521
+	if ($page_owner instanceof ElggUser) {
522
+		$params = array(
523
+			"name" => "2_a_user_notify",
524
+			"href" => "/settings/notifications/{$page_owner->username}",
525
+			"text" =>  elgg_echo('notifications:subscriptions:changesettings'),
526
+			'section' => 'configure',
527
+			'priority' => '100',
528
+			'context' => 'settings',
529
+		);
530
+	}
531 531
 
532 532
 
533
-    elgg_register_menu_item("page", $params);
533
+	elgg_register_menu_item("page", $params);
534 534
 
535 535
 	if (!empty($user)) {
536 536
 		$options = array(
@@ -544,22 +544,22 @@  discard block
 block discarded – undo
544 544
 		$count = elgg_get_entities_from_relationship($options);
545 545
 		if (!empty($count)) {
546 546
 
547
-            //user menu
547
+			//user menu
548 548
 
549
-            $countTitle = $count;
549
+			$countTitle = $count;
550 550
 
551
-            //display 9+ instead of huge numbers in notif badge
552
-            if($count >= 10){
553
-                $count = '9+';
554
-            }
551
+			//display 9+ instead of huge numbers in notif badge
552
+			if($count >= 10){
553
+				$count = '9+';
554
+			}
555 555
 
556 556
 			$params = array(
557 557
 				"name" => "Colleagues",
558 558
 				"href" => "friends/" . $user->username,
559 559
 				"text" => '<i class="fa fa-users mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden-xs">'. elgg_echo("friends") . "</span><span class='notif-badge'>" . $count . "</span>",
560 560
 				"title" => elgg_echo('userMenu:colleagues') . ' - ' . $countTitle . ' ' . elgg_echo('friend_request') .'(s)',
561
-        "class" => '',
562
-        'item_class' => '',
561
+		"class" => '',
562
+		'item_class' => '',
563 563
 				'priority' => '1'
564 564
 			);
565 565
 
@@ -567,14 +567,14 @@  discard block
 block discarded – undo
567 567
 
568 568
 
569 569
 
570
-            //topbar
570
+			//topbar
571 571
 
572
-      $params = array(
572
+	  $params = array(
573 573
 				"name" => "friends",
574 574
 				"href" => "friends/" . $user->username,
575 575
 				"text" => elgg_echo("friends") . "<span class='badge'>" . $count . "</span>",
576 576
 				"title" => elgg_echo('friends') . ' - Requests(' . $count .')',
577
-        "class" => 'friend-icon',
577
+		"class" => 'friend-icon',
578 578
 			);
579 579
 
580 580
 			elgg_register_menu_item("topbar", $params);
@@ -584,47 +584,47 @@  discard block
 block discarded – undo
584 584
 
585 585
 
586 586
 
587
-    //likes and stuff yo
588
-    $item = elgg_get_menu_item('entity', 'likes');
587
+	//likes and stuff yo
588
+	$item = elgg_get_menu_item('entity', 'likes');
589 589
 		if ($item) {
590 590
 			$item->setText('likes');
591
-      $item->setItemClass('msg-icon');
591
+	  $item->setItemClass('msg-icon');
592 592
 		}
593 593
 
594
-    $item = elgg_get_menu_item('entity', 'delete');
594
+	$item = elgg_get_menu_item('entity', 'delete');
595 595
 		if ($item){
596
-    	echo '<div> What that mean?</div>';
597
-    }
596
+		echo '<div> What that mean?</div>';
597
+	}
598 598
 
599
-    if (elgg_is_logged_in() && elgg_get_config('allow_registration')) {
599
+	if (elgg_is_logged_in() && elgg_get_config('allow_registration')) {
600 600
 			$params = array(
601 601
 				'name' => 'invite',
602 602
 				'text' => elgg_echo('friends:invite'),
603 603
 				'href' => "invite/". $user->username,
604 604
 				'contexts' => array('friends'),
605
-        'priority' => 300,
605
+		'priority' => 300,
606 606
 			);
607 607
 			elgg_register_menu_item('page', $params);
608 608
 		}
609 609
 
610 610
 
611
-    //new folder button for files
611
+	//new folder button for files
612 612
 
613
-    if(elgg_is_logged_in()){
614
-        $user = elgg_get_logged_in_user_entity();
615
-        if($user->canEdit()){
616
-            $params = array(
617
-                'name' => 'new_folder',
618
-                'text' => elgg_echo("file_tools:new:title"),
619
-                'href' => "#",
620
-                "id" => "file_tools_list_new_folder_toggle",
621
-                'item_class' => 'mrgn-lft-sm',
622
-                'context' => 'file',
623
-            );
624
-            elgg_register_menu_item('title2', $params);
613
+	if(elgg_is_logged_in()){
614
+		$user = elgg_get_logged_in_user_entity();
615
+		if($user->canEdit()){
616
+			$params = array(
617
+				'name' => 'new_folder',
618
+				'text' => elgg_echo("file_tools:new:title"),
619
+				'href' => "#",
620
+				"id" => "file_tools_list_new_folder_toggle",
621
+				'item_class' => 'mrgn-lft-sm',
622
+				'context' => 'file',
623
+			);
624
+			elgg_register_menu_item('title2', $params);
625 625
 
626
-        }
627
-    }
626
+		}
627
+	}
628 628
 
629 629
 }
630 630
 
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
  */
659 659
 function wet4_likes_entity_menu_setup($hook, $type, $return, $params) {
660 660
 	// make the widget view produce the same entity menu as the other objects
661
-    if (elgg_in_context('widgets')) {
661
+	if (elgg_in_context('widgets')) {
662 662
 		//return $return;
663 663
 	}
664 664
 
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
 			'text' => $count,
734 734
 			'href' => false,
735 735
 			'priority' => 999,
736
-      'item_class' => 'entity-menu-bubble',
736
+	  'item_class' => 'entity-menu-bubble',
737 737
 		);
738 738
 		$return[] = ElggMenuItem::factory($options);
739 739
 	}
@@ -748,45 +748,45 @@  discard block
 block discarded – undo
748 748
  */
749 749
 function wet4_elgg_page_menu_setup($hook, $type, $return, $params) {
750 750
 
751
-    if(elgg_in_context('settings')){
751
+	if(elgg_in_context('settings')){
752 752
 
753
-        $user = elgg_get_page_owner_entity();
753
+		$user = elgg_get_page_owner_entity();
754 754
 
755
-        $dropdown = '<ul class="dropdown-menu pull-right subMenu">';
755
+		$dropdown = '<ul class="dropdown-menu pull-right subMenu">';
756 756
 
757
-        $active_plugins = elgg_get_plugins();
757
+		$active_plugins = elgg_get_plugins();
758 758
 
759
-        foreach ($active_plugins as $plugin) {
760
-            $plugin_id = $plugin->getID();
761
-            if (elgg_view_exists("usersettings/$plugin_id/edit") || elgg_view_exists("plugins/$plugin_id/usersettings")) {
762
-                $params = array(
763
-                    'name' => $plugin_id,
764
-                    'text' => $plugin->getFriendlyName(),
765
-                    'href' => "settings/plugins/{$user->username}/$plugin_id",
766
-                );
759
+		foreach ($active_plugins as $plugin) {
760
+			$plugin_id = $plugin->getID();
761
+			if (elgg_view_exists("usersettings/$plugin_id/edit") || elgg_view_exists("plugins/$plugin_id/usersettings")) {
762
+				$params = array(
763
+					'name' => $plugin_id,
764
+					'text' => $plugin->getFriendlyName(),
765
+					'href' => "settings/plugins/{$user->username}/$plugin_id",
766
+				);
767 767
 
768
-                $dropdown .= '<li><a href="' . elgg_get_site_url() . 'settings/plugins/' . $user->username . '/' . $plugin_id . '">' . $plugin->getFriendlyName() . '</a></li>';
769
-            }
770
-        }
768
+				$dropdown .= '<li><a href="' . elgg_get_site_url() . 'settings/plugins/' . $user->username . '/' . $plugin_id . '">' . $plugin->getFriendlyName() . '</a></li>';
769
+			}
770
+		}
771 771
 
772
-        $dropdown .= '</ul>';
772
+		$dropdown .= '</ul>';
773 773
 
774
-        $options = array(
775
-                   'name' => 'plugin_tools',
776
-                   'text' => elgg_echo('usersettings:plugins:opt:linktext') . '<b class="caret"></b>' . $dropdown,
777
-                   'priority' => 150,
778
-                   'section' => 'configure',
779
-                   'item_class' => 'dropdown',
780
-                   'data-toggle' => 'dropdown',
781
-                   'aria-expanded' => 'false',
782
-                   'class' => 'dropdown-toggle  dropdownToggle',
783
-               );
784
-        $return[] = \ElggMenuItem::factory($options);
774
+		$options = array(
775
+				   'name' => 'plugin_tools',
776
+				   'text' => elgg_echo('usersettings:plugins:opt:linktext') . '<b class="caret"></b>' . $dropdown,
777
+				   'priority' => 150,
778
+				   'section' => 'configure',
779
+				   'item_class' => 'dropdown',
780
+				   'data-toggle' => 'dropdown',
781
+				   'aria-expanded' => 'false',
782
+				   'class' => 'dropdown-toggle  dropdownToggle',
783
+			   );
784
+		$return[] = \ElggMenuItem::factory($options);
785 785
 
786 786
 
787
-        return $return;
787
+		return $return;
788 788
 
789
-    }
789
+	}
790 790
 
791 791
 }
792 792
 
@@ -795,14 +795,14 @@  discard block
 block discarded – undo
795 795
  * Override blog entity menu to include font awesome icons and add accessability
796 796
  */
797 797
 function wet4_blog_entity_menu($hook, $entity_type, $returnvalue, $params) {
798
-    if (empty($params) || !is_array($params)) {
799
-        return $returnvalue;
800
-    }
798
+	if (empty($params) || !is_array($params)) {
799
+		return $returnvalue;
800
+	}
801 801
 
802
-    $entity = elgg_extract("entity", $params);
803
-    if (empty($entity) || !elgg_instanceof($entity, "object", "blog")) {
804
-        return $returnvalue;
805
-    }
802
+	$entity = elgg_extract("entity", $params);
803
+	if (empty($entity) || !elgg_instanceof($entity, "object", "blog")) {
804
+		return $returnvalue;
805
+	}
806 806
 
807 807
 		if($entity->title3){
808 808
 				$entName = gc_explode_translation($entity->title3, $lang);
@@ -810,41 +810,41 @@  discard block
 block discarded – undo
810 810
 				$entName = $entity->title;
811 811
 		}
812 812
 
813
-    // only published blogs
814
-    if ($entity->status == "draft") {
815
-        return $returnvalue;
816
-    }
817
-
818
-    if (!elgg_in_context("widgets") && elgg_is_admin_logged_in()) {
819
-        $returnvalue[] = \ElggMenuItem::factory(array(
820
-            "name" => "blog-feature",
821
-            "text" => elgg_echo("blog_tools:toggle:feature"),
822
-            "href" => "action/blog_tools/toggle_metadata?guid=" . $entity->getGUID() . "&metadata=featured",
823
-            "item_class" => empty($entity->featured) ? "" : "hidden",
824
-            "is_action" => true,
825
-            "priority" => 175
826
-        ));
827
-        $returnvalue[] = \ElggMenuItem::factory(array(
828
-            "name" => "blog-unfeature",
829
-            "text" => elgg_echo("blog_tools:toggle:unfeature"),
830
-            "href" => "action/blog_tools/toggle_metadata?guid=" . $entity->getGUID() . "&metadata=featured",
831
-            "item_class" => empty($entity->featured) ? "hidden" : "",
832
-            "is_action" => true,
833
-            "priority" => 176
834
-        ));
835
-    }
836
-
837
-    if ($entity->canComment()) {
838
-        $returnvalue[] = \ElggMenuItem::factory(array(
839
-            "name" => "comments",
840
-            "text" => '<i class="fa fa-lg fa-comment icon-unsel"><span class="wb-inv">' . elgg_echo("entity:comment:link:blog", array($entName)) . '</span></i>',
841
-            "title" => elgg_echo("comment:this"),
842
-            "href" => $entity->getURL() . "#comments"
843
-        ));
844
-
845
-    }
846
-
847
-    return $returnvalue;
813
+	// only published blogs
814
+	if ($entity->status == "draft") {
815
+		return $returnvalue;
816
+	}
817
+
818
+	if (!elgg_in_context("widgets") && elgg_is_admin_logged_in()) {
819
+		$returnvalue[] = \ElggMenuItem::factory(array(
820
+			"name" => "blog-feature",
821
+			"text" => elgg_echo("blog_tools:toggle:feature"),
822
+			"href" => "action/blog_tools/toggle_metadata?guid=" . $entity->getGUID() . "&metadata=featured",
823
+			"item_class" => empty($entity->featured) ? "" : "hidden",
824
+			"is_action" => true,
825
+			"priority" => 175
826
+		));
827
+		$returnvalue[] = \ElggMenuItem::factory(array(
828
+			"name" => "blog-unfeature",
829
+			"text" => elgg_echo("blog_tools:toggle:unfeature"),
830
+			"href" => "action/blog_tools/toggle_metadata?guid=" . $entity->getGUID() . "&metadata=featured",
831
+			"item_class" => empty($entity->featured) ? "hidden" : "",
832
+			"is_action" => true,
833
+			"priority" => 176
834
+		));
835
+	}
836
+
837
+	if ($entity->canComment()) {
838
+		$returnvalue[] = \ElggMenuItem::factory(array(
839
+			"name" => "comments",
840
+			"text" => '<i class="fa fa-lg fa-comment icon-unsel"><span class="wb-inv">' . elgg_echo("entity:comment:link:blog", array($entName)) . '</span></i>',
841
+			"title" => elgg_echo("comment:this"),
842
+			"href" => $entity->getURL() . "#comments"
843
+		));
844
+
845
+	}
846
+
847
+	return $returnvalue;
848 848
 }
849 849
 
850 850
 /*
@@ -853,7 +853,7 @@  discard block
 block discarded – undo
853 853
  */
854 854
 function wet4_elgg_entity_menu_setup($hook, $type, $return, $params) {
855 855
 	//Have widgets show the same entity menu
856
-    if (elgg_in_context('widgets')) {
856
+	if (elgg_in_context('widgets')) {
857 857
 		//return $return;
858 858
 	}
859 859
 
@@ -862,23 +862,23 @@  discard block
 block discarded – undo
862 862
 	/* @var \ElggEntity $entity */
863 863
 	$handler = elgg_extract('handler', $params, false);
864 864
 
865
-    //Nick -Remove empty comment and reply links from river menu
866
-        foreach ($return as $key => $item){
865
+	//Nick -Remove empty comment and reply links from river menu
866
+		foreach ($return as $key => $item){
867 867
 
868
-            switch ($item->getName()) {
869
-                case 'access':
870
-                    //$item->setItemClass('removeMe');
871
-                    unset($return[$key]);
872
-                    break;
868
+			switch ($item->getName()) {
869
+				case 'access':
870
+					//$item->setItemClass('removeMe');
871
+					unset($return[$key]);
872
+					break;
873 873
 
874
-            }
874
+			}
875 875
 
876
-    }
876
+	}
877 877
 
878 878
 
879 879
 
880 880
 
881
-    $entContext = $entity->getType();
881
+	$entContext = $entity->getType();
882 882
 
883 883
 		//check if entity is an object or group
884 884
 		if($entContext == 'object'){
@@ -918,14 +918,14 @@  discard block
 block discarded – undo
918 918
 		$hiddenText = generate_hidden_text($contentType, $entName);
919 919
 
920 920
 
921
-        $blocked_subtypes = array('comment', 'discussion_reply');
922
-        if(in_array($entity->getSubtype(), $blocked_subtypes) || elgg_instanceof($entity, 'user')){
921
+		$blocked_subtypes = array('comment', 'discussion_reply');
922
+		if(in_array($entity->getSubtype(), $blocked_subtypes) || elgg_instanceof($entity, 'user')){
923 923
 
924
-            //do not let comments or discussion replies to be reshared on the wire
924
+			//do not let comments or discussion replies to be reshared on the wire
925 925
 
926
-        } else {
926
+		} else {
927 927
 
928
-        // check is this item was shared on thewire
928
+		// check is this item was shared on thewire
929 929
 			$count = $entity->getEntitiesFromRelationship(array(
930 930
 				'type' => 'object',
931 931
 				'subtype' => 'thewire',
@@ -936,11 +936,11 @@  discard block
 block discarded – undo
936 936
 
937 937
 			if ($count) {
938 938
 
939
-                if($count >=2){
940
-                    $share = elgg_echo('thewire:shares');
941
-                } else {
942
-                    $share = elgg_echo('thewire:share');
943
-                }
939
+				if($count >=2){
940
+					$share = elgg_echo('thewire:shares');
941
+				} else {
942
+					$share = elgg_echo('thewire:share');
943
+				}
944 944
 
945 945
 				// show counter
946 946
 				$return[] = \ElggMenuItem::factory(array(
@@ -949,7 +949,7 @@  discard block
 block discarded – undo
949 949
 					'title' => elgg_echo('thewire_tools:reshare:count'),
950 950
 					'href' => 'ajax/view/thewire_tools/reshare_list?entity_guid=' . $entity->getGUID(),
951 951
 					'link_class' => 'elgg-lightbox',
952
-                    'item_class' => ' entity-menu-bubble',
952
+					'item_class' => ' entity-menu-bubble',
953 953
 					'is_trusted' => true,
954 954
 					'priority' => 501,
955 955
 					'data-colorbox-opts' => json_encode(array(
@@ -959,117 +959,117 @@  discard block
 block discarded – undo
959 959
 			}
960 960
 
961 961
 
962
-            if(elgg_is_logged_in()){
962
+			if(elgg_is_logged_in()){
963 963
 
964
-                //reshare on the wire
965
-                $options = array(
966
-                    'name' => 'thewire_tools_reshare',
967
-                    'text' => '<i class="fa fa-share-alt fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['share'].'</span></i>',
968
-                    'title' => elgg_echo('thewire_tools:reshare'),
969
-                    'href' => 'ajax/view/thewire_tools/reshare?reshare_guid=' . $entity->getGUID(),
970
-                    'link_class' => 'elgg-lightbox',
971
-                    'item_class' => '',
972
-                    'is_trusted' => true,
973
-                    'priority' => 500
974
-                );
975
-                $return[] = \ElggMenuItem::factory($options);
964
+				//reshare on the wire
965
+				$options = array(
966
+					'name' => 'thewire_tools_reshare',
967
+					'text' => '<i class="fa fa-share-alt fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['share'].'</span></i>',
968
+					'title' => elgg_echo('thewire_tools:reshare'),
969
+					'href' => 'ajax/view/thewire_tools/reshare?reshare_guid=' . $entity->getGUID(),
970
+					'link_class' => 'elgg-lightbox',
971
+					'item_class' => '',
972
+					'is_trusted' => true,
973
+					'priority' => 500
974
+				);
975
+				$return[] = \ElggMenuItem::factory($options);
976 976
 
977 977
 
978 978
 
979
-            } else {
980
-                $options = array(
981
-                    'name' => 'thewire_tools_reshare',
982
-                    'text' => '',
983
-                    'item_class' => 'removeMe',
984
-                );
985
-                $return[] = \ElggMenuItem::factory($options);
979
+			} else {
980
+				$options = array(
981
+					'name' => 'thewire_tools_reshare',
982
+					'text' => '',
983
+					'item_class' => 'removeMe',
984
+				);
985
+				$return[] = \ElggMenuItem::factory($options);
986
+
987
+				//elgg_unregister_menu_item('entity', 'thewire_tools_reshare');
988
+			}
989
+		}
986 990
 
987
-                //elgg_unregister_menu_item('entity', 'thewire_tools_reshare');
988
-            }
989
-        }
990
-
991
-        //only show reply on the wire with logged in user
992
-        if($entity->getSubtype() == 'thewire' && elgg_is_logged_in()){
993
-            $options = array(
994
-                'name' => 'reply',
995
-                'text' => '<i class="fa fa-reply fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['reply'].'</span></i>',
996
-                'title' => elgg_echo('reply'),
997
-                'href' => 'ajax/view/thewire_tools/reply?guid=' . $entity->getGUID(),
998
-                'link_class' => 'elgg-lightbox',
999
-                'is_trusted' => true,
1000
-                'priority' => 100
1001
-            );
1002
-            $return[] = \ElggMenuItem::factory($options);
1003
-        }
991
+		//only show reply on the wire with logged in user
992
+		if($entity->getSubtype() == 'thewire' && elgg_is_logged_in()){
993
+			$options = array(
994
+				'name' => 'reply',
995
+				'text' => '<i class="fa fa-reply fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['reply'].'</span></i>',
996
+				'title' => elgg_echo('reply'),
997
+				'href' => 'ajax/view/thewire_tools/reply?guid=' . $entity->getGUID(),
998
+				'link_class' => 'elgg-lightbox',
999
+				'is_trusted' => true,
1000
+				'priority' => 100
1001
+			);
1002
+			$return[] = \ElggMenuItem::factory($options);
1003
+		}
1004 1004
 
1005 1005
 	if (($entity->countEntitiesFromRelationship("parent") || $entity->countEntitiesFromRelationship("parent", true))) {
1006
-                $options = array(
1007
-                    'name' => 'thread',
1008
-                    'text' => elgg_echo('thewire:thread'),
1009
-                    'href' => 'ajax/view/thewire_tools/thread?thread_id=' . $entity->wire_thread,
1010
-                    'link_class' => 'elgg-lightbox',
1011
-                    'is_trusted' => true,
1012
-                    'priority' => 170,
1013
-                );
1014
-                $return[] = ElggMenuItem::factory($options);
1015
-            }
1006
+				$options = array(
1007
+					'name' => 'thread',
1008
+					'text' => elgg_echo('thewire:thread'),
1009
+					'href' => 'ajax/view/thewire_tools/thread?thread_id=' . $entity->wire_thread,
1010
+					'link_class' => 'elgg-lightbox',
1011
+					'is_trusted' => true,
1012
+					'priority' => 170,
1013
+				);
1014
+				$return[] = ElggMenuItem::factory($options);
1015
+			}
1016 1016
 	if ($entity->canEdit() && $handler) {
1017 1017
 		// edit link
1018 1018
 
1019
-        //checks so the edit icon is not placed on incorrect entities
1020
-        if($handler != 'group_operators'){
1021
-            if($entity->getSubtype() != 'thewire'){
1022
-                $options = array(
1023
-                    'name' => 'edit',
1024
-                    'text' => '<i class="fa fa-edit fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['edit'].'</span></i>',
1025
-                    'title' => elgg_echo('edit:this') . ' ' . $entContext,
1026
-                    'href' => "$handler/edit/{$entity->getGUID()}",
1027
-                    'priority' => 299,
1028
-                );
1029
-                $return[] = \ElggMenuItem::factory($options);
1030
-            }
1019
+		//checks so the edit icon is not placed on incorrect entities
1020
+		if($handler != 'group_operators'){
1021
+			if($entity->getSubtype() != 'thewire'){
1022
+				$options = array(
1023
+					'name' => 'edit',
1024
+					'text' => '<i class="fa fa-edit fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['edit'].'</span></i>',
1025
+					'title' => elgg_echo('edit:this') . ' ' . $entContext,
1026
+					'href' => "$handler/edit/{$entity->getGUID()}",
1027
+					'priority' => 299,
1028
+				);
1029
+				$return[] = \ElggMenuItem::factory($options);
1030
+			}
1031 1031
 		// delete link
1032 1032
 
1033
-            if (elgg_is_logged_in()){
1034
-        		$options = array(
1035
-        			'name' => 'delete',
1036
-        			'text' => '<i class="fa fa-trash-o fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['delete'].'</span></i>',
1037
-        			'title' => elgg_echo('delete:this') . ' ' . $entContext,
1038
-        			'href' => "action/$handler/delete?guid={$entity->getGUID()}",
1039
-        			'confirm' => elgg_echo('deleteconfirm'),
1040
-        			'priority' => 300,
1041
-        		);
1042
-        		$return[] = \ElggMenuItem::factory($options);
1043
-            }
1044
-        }
1033
+			if (elgg_is_logged_in()){
1034
+				$options = array(
1035
+					'name' => 'delete',
1036
+					'text' => '<i class="fa fa-trash-o fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['delete'].'</span></i>',
1037
+					'title' => elgg_echo('delete:this') . ' ' . $entContext,
1038
+					'href' => "action/$handler/delete?guid={$entity->getGUID()}",
1039
+					'confirm' => elgg_echo('deleteconfirm'),
1040
+					'priority' => 300,
1041
+				);
1042
+				$return[] = \ElggMenuItem::factory($options);
1043
+			}
1044
+		}
1045 1045
 	}
1046 1046
 
1047 1047
 
1048
-    if($entity->getSubType() == 'file'){
1049
-        // download link
1048
+	if($entity->getSubType() == 'file'){
1049
+		// download link
1050 1050
 		$options = array(
1051 1051
 			'name' => 'download',
1052 1052
 			'text' => '<i class="fa fa-download fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['download'].'</span></i>',
1053 1053
 			'title' => 'Download File',
1054 1054
 			'href' => "file/download/{$entity->getGUID()}",
1055 1055
 			'priority' => 300,
1056
-            //'context' => array('file_tools_selector', 'file'),
1056
+			//'context' => array('file_tools_selector', 'file'),
1057 1057
 		);
1058 1058
 		$return[] = \ElggMenuItem::factory($options);
1059
-    }
1059
+	}
1060 1060
 
1061 1061
 
1062
-    if($entity->getSubType() == 'page_top'){
1063
-                //history icon
1064
-            $options = array(
1065
-                'name' => 'history',
1066
-                'text' => '<i class="fa fa-history fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['history'] . '</span></i>',
1067
-                'title'=> elgg_echo('pages:history'),
1068
-                'href' => "pages/history/$entity->guid",
1069
-                'priority' => 150,
1070
-            );
1071
-            $return[] = \ElggMenuItem::factory($options);
1072
-        }
1062
+	if($entity->getSubType() == 'page_top'){
1063
+				//history icon
1064
+			$options = array(
1065
+				'name' => 'history',
1066
+				'text' => '<i class="fa fa-history fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['history'] . '</span></i>',
1067
+				'title'=> elgg_echo('pages:history'),
1068
+				'href' => "pages/history/$entity->guid",
1069
+				'priority' => 150,
1070
+			);
1071
+			$return[] = \ElggMenuItem::factory($options);
1072
+		}
1073 1073
 
1074 1074
 //opening and close dicussions
1075 1075
 if (elgg_instanceof($entity, "object", "groupforumtopic") && $entity->canEdit() && elgg_is_active_plugin('group_tools')) {
@@ -1079,7 +1079,7 @@  discard block
 block discarded – undo
1079 1079
 					"confirm" => elgg_echo("group_tools:discussion:confirm:open"),
1080 1080
 					"href" => "action/discussion/toggle_status?guid=" . $entity->getGUID(),
1081 1081
 					"is_trusted" => true,
1082
-	                 "title" => "Open the topic",
1082
+					 "title" => "Open the topic",
1083 1083
 					"priority" => 200,
1084 1084
 					"item_class" => ($entity->status == "closed") ? "" : "hidden"
1085 1085
 				));
@@ -1089,7 +1089,7 @@  discard block
 block discarded – undo
1089 1089
 					"confirm" => elgg_echo("group_tools:discussion:confirm:close"),
1090 1090
 					"href" => "action/discussion/toggle_status?guid=" . $entity->getGUID(),
1091 1091
 					"is_trusted" => true,
1092
-	                "title" => "Close the topic",
1092
+					"title" => "Close the topic",
1093 1093
 					"priority" => 201,
1094 1094
 					"item_class" => ($entity->status == "closed") ? "hidden" : ""
1095 1095
 				));
@@ -1118,7 +1118,7 @@  discard block
 block discarded – undo
1118 1118
  * Override friends page handler to use wet4 pages
1119 1119
  */
1120 1120
 function _wet4_friends_page_handler($page, $handler) {
1121
-    //change the page handler for friends to user our own pages. This increases the limit of friends for data table parsing and such :)
1121
+	//change the page handler for friends to user our own pages. This increases the limit of friends for data table parsing and such :)
1122 1122
 	elgg_set_context('friends');
1123 1123
 
1124 1124
 	if (isset($page[0]) && $user = get_user_by_username($page[0])) {
@@ -1128,11 +1128,11 @@  discard block
 block discarded – undo
1128 1128
 	if (!elgg_get_page_owner_guid()) {
1129 1129
 		return false;
1130 1130
 	}
1131
-    $plugin_path = elgg_get_plugins_path();
1132
-    //echo $plugin_path;
1131
+	$plugin_path = elgg_get_plugins_path();
1132
+	//echo $plugin_path;
1133 1133
 	switch ($handler) {
1134 1134
 		case 'friends':
1135
-            //use the pages in our theme instead of the core pages
1135
+			//use the pages in our theme instead of the core pages
1136 1136
 			require($plugin_path ."wet4/pages/friends/index.php");
1137 1137
 			break;
1138 1138
 		case 'friendsof':
@@ -1150,8 +1150,8 @@  discard block
 block discarded – undo
1150 1150
  * Remove unwanted river items
1151 1151
  */
1152 1152
 function wet4_riverItem_remove(){
1153
-    elgg_unregister_menu_item('river', 'comment');
1154
-    elgg_unregister_menu_item('river', 'reply');
1153
+	elgg_unregister_menu_item('river', 'comment');
1154
+	elgg_unregister_menu_item('river', 'reply');
1155 1155
 }
1156 1156
 /*
1157 1157
  * wet4_elgg_river_menu_setup
@@ -1170,21 +1170,21 @@  discard block
 block discarded – undo
1170 1170
 	if (!$object || !$object->canAnnotate(0, 'likes')) {
1171 1171
 		return;
1172 1172
 	}
1173
-        //Nick -Remove empty comment and reply links from river menu
1174
-        foreach ($return as $key => $item){
1175
-
1176
-            switch ($item->getName()) {
1177
-                case 'comment':
1178
-                    //$item->setItemClass('removeMe');
1179
-                    unset($return[$key]);
1180
-                    break;
1181
-                case 'reply':
1182
-                    //$item->setItemClass('removeMe');
1183
-                    unset($return[$key]);
1184
-                    break;
1185
-            }
1173
+		//Nick -Remove empty comment and reply links from river menu
1174
+		foreach ($return as $key => $item){
1175
+
1176
+			switch ($item->getName()) {
1177
+				case 'comment':
1178
+					//$item->setItemClass('removeMe');
1179
+					unset($return[$key]);
1180
+					break;
1181
+				case 'reply':
1182
+					//$item->setItemClass('removeMe');
1183
+					unset($return[$key]);
1184
+					break;
1185
+			}
1186 1186
 
1187
-    }
1187
+	}
1188 1188
 
1189 1189
 		$entContext = $object->getType();
1190 1190
 		//check if entity is an object or group
@@ -1258,23 +1258,23 @@  discard block
 block discarded – undo
1258 1258
 		}
1259 1259
 	}
1260 1260
 
1261
-           $blocked_subtypes = array('comment', 'discussion_reply');
1262
-           if(in_array($object->getSubtype(), $blocked_subtypes) || elgg_instanceof($object, 'user')){
1261
+		   $blocked_subtypes = array('comment', 'discussion_reply');
1262
+		   if(in_array($object->getSubtype(), $blocked_subtypes) || elgg_instanceof($object, 'user')){
1263 1263
 
1264
-               //do not let comments or discussion replies to be reshared on the wire
1264
+			   //do not let comments or discussion replies to be reshared on the wire
1265 1265
 
1266
-           } else {
1267
-               $return[]= ElggMenuItem::factory(array(
1268
-                   'name' => 'thewire_tools_reshare',
1269
-                   'text' => '<i class="fa fa-share-alt fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['share'].'</span></i>',
1270
-                   'title' => elgg_echo('thewire_tools:reshare'),
1271
-                   'href' => 'ajax/view/thewire_tools/reshare?reshare_guid=' . $object->getGUID(),
1272
-                   'link_class' => 'elgg-lightbox',
1273
-                   'item_class' => '',
1274
-                   'is_trusted' => true,
1275
-                   'priority' => 500
1276
-                   ));
1277
-           }
1266
+		   } else {
1267
+			   $return[]= ElggMenuItem::factory(array(
1268
+				   'name' => 'thewire_tools_reshare',
1269
+				   'text' => '<i class="fa fa-share-alt fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['share'].'</span></i>',
1270
+				   'title' => elgg_echo('thewire_tools:reshare'),
1271
+				   'href' => 'ajax/view/thewire_tools/reshare?reshare_guid=' . $object->getGUID(),
1272
+				   'link_class' => 'elgg-lightbox',
1273
+				   'item_class' => '',
1274
+				   'is_trusted' => true,
1275
+				   'priority' => 500
1276
+				   ));
1277
+		   }
1278 1278
 
1279 1279
 		if (elgg_is_admin_logged_in()) {
1280 1280
 			$options = array(
@@ -1300,30 +1300,30 @@  discard block
 block discarded – undo
1300 1300
  * Rearrange filter menu for The Wire
1301 1301
  */
1302 1302
 function my_filter_menu_handler($hook, $type, $menu, $params){
1303
-    foreach ($menu as $key => $item){
1304
-        if(elgg_in_context('thewire')){
1305
-        switch ($item->getName()) {
1303
+	foreach ($menu as $key => $item){
1304
+		if(elgg_in_context('thewire')){
1305
+		switch ($item->getName()) {
1306 1306
 
1307
-                case 'all':
1308
-                    $item->setPriority('1');
1307
+				case 'all':
1308
+					$item->setPriority('1');
1309 1309
 
1310
-                    break;
1311
-                case 'friend':
1312
-                    $item->setPriority('2');
1310
+					break;
1311
+				case 'friend':
1312
+					$item->setPriority('2');
1313 1313
 
1314
-                    break;
1315
-                case 'mention':
1316
-                    $item->setText(elgg_echo('search'));
1317
-                    $item->setPriority('4');
1314
+					break;
1315
+				case 'mention':
1316
+					$item->setText(elgg_echo('search'));
1317
+					$item->setPriority('4');
1318 1318
 
1319
-                    break;
1320
-                case 'mine':
1321
-                    $item->setPriority('3');
1319
+					break;
1320
+				case 'mine':
1321
+					$item->setPriority('3');
1322 1322
 
1323
-                    break;
1324
-            }
1325
-        }
1326
-    }
1323
+					break;
1324
+			}
1325
+		}
1326
+	}
1327 1327
 }
1328 1328
 
1329 1329
 /*
@@ -1332,13 +1332,13 @@  discard block
 block discarded – undo
1332 1332
  */
1333 1333
 function my_site_menu_handler($hook, $type, $menu, $params){
1334 1334
 
1335
-    if (!is_array($menu))
1336
-        return;
1335
+	if (!is_array($menu))
1336
+		return;
1337 1337
 
1338
-    foreach ($menu as $key => $item) {
1339
-        if ($item->getName() === 'groups')
1340
-            (elgg_is_logged_in()) ? $item->setHref(elgg_get_site_url().'groups/all?filter=yours') : $item->setHref( elgg_get_site_url().'groups/all?filter=popular');
1341
-    }
1338
+	foreach ($menu as $key => $item) {
1339
+		if ($item->getName() === 'groups')
1340
+			(elgg_is_logged_in()) ? $item->setHref(elgg_get_site_url().'groups/all?filter=yours') : $item->setHref( elgg_get_site_url().'groups/all?filter=popular');
1341
+	}
1342 1342
 }
1343 1343
 
1344 1344
 /*
@@ -1347,17 +1347,17 @@  discard block
 block discarded – undo
1347 1347
  */
1348 1348
 function my_title_menu_handler($hook, $type, $menu, $params){
1349 1349
 
1350
-    if (!is_array($menu))
1351
-        return;
1350
+	if (!is_array($menu))
1351
+		return;
1352 1352
 
1353
-    foreach ($menu as $key => $item) {
1353
+	foreach ($menu as $key => $item) {
1354 1354
 
1355
-        if ($item->getName() === 'slideshow')
1356
-            $item->setText(elgg_echo('album:slideshow'));
1357
-        elseif ($item->getName() === 'addphotos')
1358
-            $item->setItemClass('mrgn-rght-sm');
1355
+		if ($item->getName() === 'slideshow')
1356
+			$item->setText(elgg_echo('album:slideshow'));
1357
+		elseif ($item->getName() === 'addphotos')
1358
+			$item->setItemClass('mrgn-rght-sm');
1359 1359
 
1360
-    }
1360
+	}
1361 1361
 
1362 1362
 }
1363 1363
 
@@ -1367,7 +1367,7 @@  discard block
 block discarded – undo
1367 1367
  */
1368 1368
 function my_owner_block_handler($hook, $type, $menu, $params){
1369 1369
 
1370
-    /*
1370
+	/*
1371 1371
      *
1372 1372
      * If new tool has been added to group tools
1373 1373
      * Make sure the priority is less then 100
@@ -1375,100 +1375,100 @@  discard block
 block discarded – undo
1375 1375
      */
1376 1376
 
1377 1377
 
1378
-        //rearrange menu items
1379
-    if(elgg_get_context() == 'profile'){
1380
-
1381
-        elgg_unregister_menu_item('owner_block', 'activity');
1382
-
1383
-        //turn owner_block  menu into tabs
1384
-        foreach ($menu as $key => $item){
1385
-
1386
-            switch ($item->getName()) {
1387
-                case 'discussion':
1388
-                    $item->setText(elgg_echo('gprofile:discussion'));
1389
-
1390
-                    $item->setPriority('1');
1391
-                    break;
1392
-                case 'file':
1393
-                    $item->setText(elgg_echo('gprofile:files'));
1394
-                    $item->setHref('#file');
1395
-                    $item->setPriority('2');
1396
-                    break;
1397
-                case 'blog':
1398
-                    $item->setText(elgg_echo('gprofile:blogs'));
1399
-                    $item->setHref('#blog');
1400
-                    $item->setPriority('3');
1401
-                    break;
1402
-                case 'event_calendar':
1403
-                    $item->setText(elgg_echo('gprofile:events'));
1404
-                    $item->setHref('#events');
1405
-                    $item->setPriority('6');
1406
-                    break;
1407
-                case 'pages':
1408
-                    $item->setText(elgg_echo('gprofile:pages'));
1409
-                    $item->setHref('#page_top');
1410
-                    $item->setPriority('7');
1411
-                    break;
1412
-                case 'bookmarks':
1413
-                    $item->setText(elgg_echo('gprofile:bookmarks'));
1414
-                    $item->setHref('#bookmarks');
1415
-                    $item->setPriority('8');
1416
-                    break;
1417
-                case 'polls':
1418
-                    $item->setText(elgg_echo('gprofile:polls'));
1419
-                    $item->setHref('#poll');
1420
-                    $item->setPriority('9');
1421
-                    break;
1422
-                case 'tasks':
1423
-                    $item->setText(elgg_echo('gprofile:tasks'));
1424
-                    $item->setHref('#task_top');
1425
-                    $item->setPriority('10');
1426
-                    break;
1427
-                case 'photos':
1428
-                    $item->setText(elgg_echo('gprofile:photos'));
1429
-                    $item->addItemClass('removeMe');
1430
-                    $item->setPriority('11');
1431
-                    break;
1432
-                case 'photo_albums':
1433
-                    $item->setText(elgg_echo('gprofile:albumsCatch'));
1434
-                    $item->setHref('#album');
1435
-                    $item->setPriority('12');
1436
-                    break;
1437
-                case 'ideas':
1438
-                    $item->setText(elgg_echo('gprofile:ideas'));
1439
-                    $item->addItemClass('removeMe');
1440
-                    $item->setPriority('12');
1441
-                    break;
1442
-
1443
-                case 'orgs':
1444
-                    $item->setPriority('13');
1445
-                    break;
1446
-                case 'thewire':
1447
-                    //$item->setText(elgg_echo('The Wire'));
1448
-                    $item->setHref('#thewire');
1449
-                    $item->setPriority('5');
1450
-                    break;
1451
-                case 'activity':
1452
-                    $item->setText('Activity');
1453
-
1454
-                    $item->setPriority('13');
1455
-                    $item->addItemClass('removeMe');
1456
-                    break;
1457
-                case 'user_invite_from_profile':
1458
-                    $item->setPriority('13');
1459
-                    break;
1378
+		//rearrange menu items
1379
+	if(elgg_get_context() == 'profile'){
1380
+
1381
+		elgg_unregister_menu_item('owner_block', 'activity');
1382
+
1383
+		//turn owner_block  menu into tabs
1384
+		foreach ($menu as $key => $item){
1385
+
1386
+			switch ($item->getName()) {
1387
+				case 'discussion':
1388
+					$item->setText(elgg_echo('gprofile:discussion'));
1389
+
1390
+					$item->setPriority('1');
1391
+					break;
1392
+				case 'file':
1393
+					$item->setText(elgg_echo('gprofile:files'));
1394
+					$item->setHref('#file');
1395
+					$item->setPriority('2');
1396
+					break;
1397
+				case 'blog':
1398
+					$item->setText(elgg_echo('gprofile:blogs'));
1399
+					$item->setHref('#blog');
1400
+					$item->setPriority('3');
1401
+					break;
1402
+				case 'event_calendar':
1403
+					$item->setText(elgg_echo('gprofile:events'));
1404
+					$item->setHref('#events');
1405
+					$item->setPriority('6');
1406
+					break;
1407
+				case 'pages':
1408
+					$item->setText(elgg_echo('gprofile:pages'));
1409
+					$item->setHref('#page_top');
1410
+					$item->setPriority('7');
1411
+					break;
1412
+				case 'bookmarks':
1413
+					$item->setText(elgg_echo('gprofile:bookmarks'));
1414
+					$item->setHref('#bookmarks');
1415
+					$item->setPriority('8');
1416
+					break;
1417
+				case 'polls':
1418
+					$item->setText(elgg_echo('gprofile:polls'));
1419
+					$item->setHref('#poll');
1420
+					$item->setPriority('9');
1421
+					break;
1422
+				case 'tasks':
1423
+					$item->setText(elgg_echo('gprofile:tasks'));
1424
+					$item->setHref('#task_top');
1425
+					$item->setPriority('10');
1426
+					break;
1427
+				case 'photos':
1428
+					$item->setText(elgg_echo('gprofile:photos'));
1429
+					$item->addItemClass('removeMe');
1430
+					$item->setPriority('11');
1431
+					break;
1432
+				case 'photo_albums':
1433
+					$item->setText(elgg_echo('gprofile:albumsCatch'));
1434
+					$item->setHref('#album');
1435
+					$item->setPriority('12');
1436
+					break;
1437
+				case 'ideas':
1438
+					$item->setText(elgg_echo('gprofile:ideas'));
1439
+					$item->addItemClass('removeMe');
1440
+					$item->setPriority('12');
1441
+					break;
1442
+
1443
+				case 'orgs':
1444
+					$item->setPriority('13');
1445
+					break;
1446
+				case 'thewire':
1447
+					//$item->setText(elgg_echo('The Wire'));
1448
+					$item->setHref('#thewire');
1449
+					$item->setPriority('5');
1450
+					break;
1451
+				case 'activity':
1452
+					$item->setText('Activity');
1453
+
1454
+					$item->setPriority('13');
1455
+					$item->addItemClass('removeMe');
1456
+					break;
1457
+				case 'user_invite_from_profile':
1458
+					$item->setPriority('13');
1459
+					break;
1460 1460
 								case 'questions':
1461
-			              $item->setText(elgg_echo('widget:questions:title'));
1462
-			              $item->setHref('#question');
1463
-			              $item->setPriority('8');
1464
-		                break;
1465
-            }
1461
+						  $item->setText(elgg_echo('widget:questions:title'));
1462
+						  $item->setHref('#question');
1463
+						  $item->setPriority('8');
1464
+						break;
1465
+			}
1466 1466
 
1467
-        }
1467
+		}
1468 1468
 
1469 1469
 
1470 1470
 
1471
-    }
1471
+	}
1472 1472
 
1473 1473
 }
1474 1474
 
@@ -1501,7 +1501,7 @@  discard block
 block discarded – undo
1501 1501
 		'num_columns' => 2,
1502 1502
 		'show_access' => false,
1503 1503
 	);
1504
-    //use our own layouts for dashboard and stuff
1504
+	//use our own layouts for dashboard and stuff
1505 1505
 	$widgets = elgg_view_layout('db_widgets', $params);
1506 1506
 
1507 1507
 	$body = elgg_view_layout('dashboard', array(
@@ -1523,17 +1523,17 @@  discard block
 block discarded – undo
1523 1523
 	/* @var \ElggWidget $widget */
1524 1524
 	$show_edit = elgg_extract('show_edit', $params, true);
1525 1525
 
1526
-    $options = array(
1526
+	$options = array(
1527 1527
 		'name' => 'collapse',
1528 1528
 		'text' => '<i class="fa fa-lg icon-unsel"><span class="wb-inv">'. elgg_echo('wet:collapseWidget', array($widget->getTitle())).'</span></i> ',
1529
-        'title' => elgg_echo('wet:collapseWidget', array($widget->getTitle())),
1529
+		'title' => elgg_echo('wet:collapseWidget', array($widget->getTitle())),
1530 1530
 		'href' => "#elgg-widget-content-$widget->guid",
1531 1531
 		'link_class' => 'elgg-widget-collapse-button ',
1532 1532
 		'rel' => 'toggle',
1533 1533
 		'priority' => 1,
1534 1534
 	);
1535 1535
 
1536
-    $return[] = \ElggMenuItem::factory($options);
1536
+	$return[] = \ElggMenuItem::factory($options);
1537 1537
 	if ($widget->canEdit()) {
1538 1538
 		$options = array(
1539 1539
 			'name' => 'delete',
@@ -1547,7 +1547,7 @@  discard block
 block discarded – undo
1547 1547
 			'priority' => 900,
1548 1548
 		);
1549 1549
 		$return[] = \ElggMenuItem::factory($options);
1550
-        // This is to maybe have a move button on widgets to move them with the keyboard.
1550
+		// This is to maybe have a move button on widgets to move them with the keyboard.
1551 1551
 
1552 1552
 		if ($show_edit) {
1553 1553
 			$options = array(
@@ -1578,7 +1578,7 @@  discard block
 block discarded – undo
1578 1578
 		elgg_get_session()->set('last_forward_from', current_page_url());
1579 1579
 		forward('');
1580 1580
 	}
1581
-    elgg_set_context('friends');
1581
+	elgg_set_context('friends');
1582 1582
 	//elgg_push_breadcrumb(elgg_echo('messages'), 'messages/inbox/' . $current_user->username);
1583 1583
 
1584 1584
 
@@ -1641,10 +1641,10 @@  discard block
 block discarded – undo
1641 1641
 			set_input('username', $page[1]);
1642 1642
 			include("$base_dir/inbox.php");
1643 1643
 			break;
1644
-        case 'notifications':
1645
-            set_input('username', $page[1]);
1646
-            include("$base_dir/notifications.php");
1647
-            break;
1644
+		case 'notifications':
1645
+			set_input('username', $page[1]);
1646
+			include("$base_dir/notifications.php");
1647
+			break;
1648 1648
 		case 'sent':
1649 1649
 			set_input('username', $page[1]);
1650 1650
 			include("$base_dir/sent.php");
@@ -1745,81 +1745,81 @@  discard block
 block discarded – undo
1745 1745
  */
1746 1746
 function proper_subtypes($type){
1747 1747
 
1748
-    switch ($type) {
1749
-        case 'page_top':
1750
-            $subtype = elgg_echo('page');
1751
-            break;
1748
+	switch ($type) {
1749
+		case 'page_top':
1750
+			$subtype = elgg_echo('page');
1751
+			break;
1752 1752
 
1753 1753
 				case 'page':
1754
-		        $subtype = elgg_echo('page');
1755
-		        break;
1754
+				$subtype = elgg_echo('page');
1755
+				break;
1756 1756
 
1757
-        case 'thewire':
1758
-            $subtype = elgg_echo('wire:post');
1759
-            break;
1757
+		case 'thewire':
1758
+			$subtype = elgg_echo('wire:post');
1759
+			break;
1760 1760
 
1761
-        case 'blog':
1762
-            $subtype = elgg_echo('blog:blog');
1763
-            break;
1761
+		case 'blog':
1762
+			$subtype = elgg_echo('blog:blog');
1763
+			break;
1764 1764
 
1765
-        case 'comment':
1766
-            $subtype = elgg_echo('comment');
1767
-            break;
1765
+		case 'comment':
1766
+			$subtype = elgg_echo('comment');
1767
+			break;
1768 1768
 
1769
-        case 'groupforumtopic':
1770
-            $subtype = elgg_echo('discussion');
1771
-            break;
1769
+		case 'groupforumtopic':
1770
+			$subtype = elgg_echo('discussion');
1771
+			break;
1772 1772
 
1773
-        case 'discussion_reply':
1774
-            $subtype = elgg_echo('group:replyitem');
1775
-            break;
1773
+		case 'discussion_reply':
1774
+			$subtype = elgg_echo('group:replyitem');
1775
+			break;
1776 1776
 
1777
-        case 'file':
1778
-            $subtype = elgg_echo('file:file');
1779
-            break;
1777
+		case 'file':
1778
+			$subtype = elgg_echo('file:file');
1779
+			break;
1780 1780
 
1781
-        case 'folder':
1782
-            $subtype = elgg_echo('item:object:folder');
1783
-            break;
1781
+		case 'folder':
1782
+			$subtype = elgg_echo('item:object:folder');
1783
+			break;
1784 1784
 
1785
-        case 'event_calendar':
1786
-            $subtype = elgg_echo('event_calendar:agenda:column:session');
1787
-            break;
1785
+		case 'event_calendar':
1786
+			$subtype = elgg_echo('event_calendar:agenda:column:session');
1787
+			break;
1788 1788
 
1789
-        case 'bookmarks':
1790
-            $subtype = elgg_echo('bookmark');
1791
-            break;
1789
+		case 'bookmarks':
1790
+			$subtype = elgg_echo('bookmark');
1791
+			break;
1792 1792
 
1793
-        case 'poll':
1794
-            $subtype = elgg_echo('poll');
1795
-            break;
1793
+		case 'poll':
1794
+			$subtype = elgg_echo('poll');
1795
+			break;
1796 1796
 
1797
-        case 'album':
1798
-            $subtype = elgg_echo('album');
1799
-            break;
1797
+		case 'album':
1798
+			$subtype = elgg_echo('album');
1799
+			break;
1800 1800
 
1801
-        case 'image':
1802
-            $subtype = elgg_echo('image');
1803
-            break;
1801
+		case 'image':
1802
+			$subtype = elgg_echo('image');
1803
+			break;
1804 1804
 
1805
-        case 'idea':
1806
-            $subtype = elgg_echo('item:object:idea');
1807
-            break;
1805
+		case 'idea':
1806
+			$subtype = elgg_echo('item:object:idea');
1807
+			break;
1808 1808
 
1809
-        case 'groups':
1810
-            $subtype = elgg_echo('group:group');
1811
-            break;
1809
+		case 'groups':
1810
+			$subtype = elgg_echo('group:group');
1811
+			break;
1812 1812
 
1813 1813
 				case 'question':
1814 1814
 						$subtype = elgg_echo('questions:edit:question:title');
1815 1815
 						break;
1816 1816
 
1817 1817
 				case 'answer':
1818
-				    $subtype = elgg_echo('questions:search:answer:title');
1819
-				    break;
1820
-    }
1818
+					$subtype = elgg_echo('questions:search:answer:title');
1819
+					break;
1820
+	}
1821 1821
 
1822
-    return $subtype;
1822
+	return $subtype;
1823 1823
 }
1824 1824
 
1825 1825
 /*
@@ -1924,21 +1924,21 @@  discard block
 block discarded – undo
1924 1924
  */
1925 1925
 function embed_discussion_river($desc){
1926 1926
 
1927
-    $patterns = array('#(((https://)?)|(^./))(((www.)?)|(^./))youtube\.com/watch[?]v=([^\[\]()<.,\s\n\t\r]+)#i'
1927
+	$patterns = array('#(((https://)?)|(^./))(((www.)?)|(^./))youtube\.com/watch[?]v=([^\[\]()<.,\s\n\t\r]+)#i'
1928 1928
 						,'#(((https://)?)|(^./))(((www.)?)|(^./))youtu\.be/([^\[\]()<.,\s\n\t\r]+)#i'
1929 1929
 						,'/(https:\/\/)?(www\.)?(vimeo\.com\/groups)(.*)(\/videos\/)([0-9]*)(\/)?/'
1930 1930
 						,'/(https:\/\/)(www\.)?(metacafe\.com\/watch\/)([0-9a-zA-Z_-]*)(\/[0-9a-zA-Z_-]*)(\/)/'
1931 1931
 						 ,'/(https:\/\/)?(www\.)?(vimeo.com\/)([^a-zA-Z][0-9]*)(\/)?/','/(https:\/\/)?(www\.)?(dailymotion.com\/video)([^a-zA-Z][0-9]*)(\/)?/');
1932 1932
 
1933
-    //Replace video providers with embebed content
1934
-    foreach($patterns as $pattern){
1935
-	    if(preg_match_all($pattern, $desc, $matches)){
1933
+	//Replace video providers with embebed content
1934
+	foreach($patterns as $pattern){
1935
+		if(preg_match_all($pattern, $desc, $matches)){
1936 1936
 
1937
-            $strAndPara = $matches[0];
1937
+			$strAndPara = $matches[0];
1938 1938
 
1939
-	    }
1940
-    }
1941
-    return $strAndPara;
1939
+		}
1940
+	}
1941
+	return $strAndPara;
1942 1942
 
1943 1943
 }
1944 1944
 
Please login to merge, or discard this patch.
Spacing   +132 added lines, -132 removed lines patch added patch discarded remove patch
@@ -5,24 +5,24 @@  discard block
 block discarded – undo
5 5
  * @package wet4Theme
6 6
  */
7 7
 
8
-elgg_register_event_handler('init','system','wet4_theme_init');
8
+elgg_register_event_handler('init', 'system', 'wet4_theme_init');
9 9
 
10 10
 function wet4_theme_init() {
11 11
 
12 12
 	/* cyu - global change to sidebars, display when it is not the crawler
13 13
 	 * the following batch of elgg_extend_view overwrites the elements in the page
14 14
 	 */
15
-	elgg_extend_view('page/elements/sidebar','page/elements/gsa_view_start',1);
16
-	elgg_extend_view('page/elements/sidebar','page/elements/gsa_view_end',1000);
15
+	elgg_extend_view('page/elements/sidebar', 'page/elements/gsa_view_start', 1);
16
+	elgg_extend_view('page/elements/sidebar', 'page/elements/gsa_view_end', 1000);
17 17
 
18
-	elgg_extend_view('page/elements/footer','page/elements/gsa_view_start',1);
19
-	elgg_extend_view('page/elements/footer','page/elements/gsa_view_end',1000);
18
+	elgg_extend_view('page/elements/footer', 'page/elements/gsa_view_start', 1);
19
+	elgg_extend_view('page/elements/footer', 'page/elements/gsa_view_end', 1000);
20 20
 
21
-	elgg_extend_view('navigation/breadcrumbs','page/elements/gsa_view_start',1);
22
-	elgg_extend_view('navigation/breadcrumbs','page/elements/gsa_view_end',1000);
21
+	elgg_extend_view('navigation/breadcrumbs', 'page/elements/gsa_view_start', 1);
22
+	elgg_extend_view('navigation/breadcrumbs', 'page/elements/gsa_view_end', 1000);
23 23
 
24
-	elgg_extend_view('object/widget/elements/content','page/elements/gsa_view_start',1);
25
-	elgg_extend_view('object/widget/elements/content','page/elements/gsa_view_end',1000);
24
+	elgg_extend_view('object/widget/elements/content', 'page/elements/gsa_view_start', 1);
25
+	elgg_extend_view('object/widget/elements/content', 'page/elements/gsa_view_end', 1000);
26 26
 
27 27
     // cyu - are we overriding the settings page handler? (note: the one in this plugin does nothing)
28 28
     elgg_unregister_page_handler('settings');
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     //elgg_register_plugin_hook_handler('register', 'menu:entity', 'wet4_delete_entity_menu', 400);
62 62
 
63 63
 		//questions modifications
64
-		elgg_register_action('object/question/save', elgg_get_plugins_path()."wet4/actions/object/question/save.php"); //add english/french toggle
64
+		elgg_register_action('object/question/save', elgg_get_plugins_path() . "wet4/actions/object/question/save.php"); //add english/french toggle
65 65
 		elgg_register_page_handler('questions', 'wet_questions_page_handler');
66 66
 		elgg_unregister_plugin_hook_handler('register', 'menu:filter', 'questions_filter_menu_handler');
67 67
 		elgg_register_plugin_hook_handler('register', 'menu:filter', 'wet_questions_filter_menu_handler');
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
 
129 129
 
130 130
 
131
-   elgg_extend_view("js/elgg","js/wet4/language_ajax");
132
-   elgg_extend_view("js/elgg","js/wet4/rotate_ajax");
131
+   elgg_extend_view("js/elgg", "js/wet4/language_ajax");
132
+   elgg_extend_view("js/elgg", "js/wet4/rotate_ajax");
133 133
 
134 134
 		//Notification / Messages dropdown view
135 135
 		elgg_register_ajax_view('ajax/notif_dd');
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     //added since goups didnt have this action but called it
147 147
     elgg_register_action("discussion_reply/delete", elgg_get_plugins_path() . "/wet4/actions/discussion/reply/delete.php");
148 148
 
149
-    if(elgg_is_active_plugin('au_subgroups')){
149
+    if (elgg_is_active_plugin('au_subgroups')) {
150 150
         elgg_register_action("groups/invite", elgg_get_plugins_path() . "/wet4/actions/groups/invite.php");
151 151
     }
152 152
  elgg_register_action("comment/join", elgg_get_plugins_path() . "groups/actions/groups/membership/join.php");
@@ -174,12 +174,12 @@  discard block
 block discarded – undo
174 174
     // new widgets
175 175
     //registering wet 4 activity widget
176 176
 
177
-    elgg_register_widget_type('suggested_friends', elgg_echo('sf:suggcolleagues'), elgg_echo('sf:suggcolleagues'), array('custom_index_widgets'),false);
178
-    elgg_register_widget_type('feature_tour', 'feature_tour', 'feature_tour', array('custom_index_widgets'),false);
177
+    elgg_register_widget_type('suggested_friends', elgg_echo('sf:suggcolleagues'), elgg_echo('sf:suggcolleagues'), array('custom_index_widgets'), false);
178
+    elgg_register_widget_type('feature_tour', 'feature_tour', 'feature_tour', array('custom_index_widgets'), false);
179 179
 
180 180
     //WET my groups widget
181
-    elgg_register_widget_type('wet_mygroups_index', $mygroups_title, 'My Groups Index', array('custom_index_widgets'),true);
182
-    elgg_register_widget_type('most_liked', elgg_echo('activity:module:weekly_likes'), elgg_echo('activity:module:weekly_likes'), array('dashboard','custom_index_widgets'),true);
181
+    elgg_register_widget_type('wet_mygroups_index', $mygroups_title, 'My Groups Index', array('custom_index_widgets'), true);
182
+    elgg_register_widget_type('most_liked', elgg_echo('activity:module:weekly_likes'), elgg_echo('activity:module:weekly_likes'), array('dashboard', 'custom_index_widgets'), true);
183 183
 
184 184
 
185 185
     //Temp fix for river widget
@@ -201,9 +201,9 @@  discard block
 block discarded – undo
201 201
 
202 202
 
203 203
     //set up metadata for user's landing page preference
204
-    if(elgg_is_logged_in()){
204
+    if (elgg_is_logged_in()) {
205 205
         $user = elgg_get_logged_in_user_entity();
206
-        if(!isset($user->landingpage)){
206
+        if (!isset($user->landingpage)) {
207 207
             $user->landingpage = 'news';
208 208
         }
209 209
     }
@@ -224,14 +224,14 @@  discard block
 block discarded – undo
224 224
     ));
225 225
 
226 226
 		//newsfeed-like department pages
227
-		if(elgg_is_logged_in() && elgg_get_plugin_setting('deptActivity', 'wet4')){
227
+		if (elgg_is_logged_in() && elgg_get_plugin_setting('deptActivity', 'wet4')) {
228 228
 
229 229
 			elgg_register_ajax_view('ajax/deptactivity_check');
230 230
 			elgg_register_ajax_view('ajax/deptactivity_items');
231 231
 
232 232
 			elgg_register_page_handler('department', 'department_page_handler');
233 233
 
234
-			if(elgg_is_active_plugin('gc_newsfeed')){
234
+			if (elgg_is_active_plugin('gc_newsfeed')) {
235 235
 				elgg_extend_view('widgets/stream_newsfeed_index/content', 'dept_activity/tabs', 451);
236 236
 		    elgg_extend_view('widgets/newsfeed/content', 'dept_activity/tabs', 451);
237 237
 			}
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 $dbprefix = elgg_get_config('dbprefix');
245 245
     // user default access if enabled
246 246
     if ($CONFIG->remove_logged_in) {
247
-    $query = "UPDATE {$dbprefix}entities SET access_id = 2 WHERE access_id = 1";//change access logged in to public
247
+    $query = "UPDATE {$dbprefix}entities SET access_id = 2 WHERE access_id = 1"; //change access logged in to public
248 248
     update_data($query);
249 249
 }
250 250
 
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
  * activity_page_handler
318 318
  * Override activity page handler
319 319
  */
320
-function activity_page_handler($page){
320
+function activity_page_handler($page) {
321 321
     elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
322 322
 
323 323
     // make a URL segment available in page handler script
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
         }
334 334
     }
335 335
     set_input('page_type', $page_type);
336
-    @include (dirname ( __FILE__ ) . "/pages/river.php");
336
+    @include (dirname(__FILE__) . "/pages/river.php");
337 337
     return true;
338 338
 }
339 339
 
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
         $context = elgg_get_context();
445 445
         $page_owner = elgg_get_page_owner_entity();
446 446
 
447
-        if(elgg_is_logged_in()){
447
+        if (elgg_is_logged_in()) {
448 448
             $user = elgg_get_logged_in_user_guid();
449 449
         }
450 450
 
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
                 $count = elgg_get_entities_from_relationship($options);
463 463
                 $extra = "";
464 464
                 if (!empty($count)) {
465
-                    if($count >= 10){
465
+                    if ($count >= 10) {
466 466
                         //$count = '9+';
467 467
                     }
468 468
                     $extra = '<span aria-hidden="true" class="notif-badge">' . $count . '</span>';
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
             }
483 483
         }
484 484
 
485
-        if(elgg_in_context('messages')){
485
+        if (elgg_in_context('messages')) {
486 486
                 elgg_unregister_menu_item("page", "friend_request");
487 487
             }
488 488
 
@@ -549,15 +549,15 @@  discard block
 block discarded – undo
549 549
             $countTitle = $count;
550 550
 
551 551
             //display 9+ instead of huge numbers in notif badge
552
-            if($count >= 10){
552
+            if ($count >= 10) {
553 553
                 $count = '9+';
554 554
             }
555 555
 
556 556
 			$params = array(
557 557
 				"name" => "Colleagues",
558 558
 				"href" => "friends/" . $user->username,
559
-				"text" => '<i class="fa fa-users mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden-xs">'. elgg_echo("friends") . "</span><span class='notif-badge'>" . $count . "</span>",
560
-				"title" => elgg_echo('userMenu:colleagues') . ' - ' . $countTitle . ' ' . elgg_echo('friend_request') .'(s)',
559
+				"text" => '<i class="fa fa-users mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden-xs">' . elgg_echo("friends") . "</span><span class='notif-badge'>" . $count . "</span>",
560
+				"title" => elgg_echo('userMenu:colleagues') . ' - ' . $countTitle . ' ' . elgg_echo('friend_request') . '(s)',
561 561
         "class" => '',
562 562
         'item_class' => '',
563 563
 				'priority' => '1'
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
 				"name" => "friends",
574 574
 				"href" => "friends/" . $user->username,
575 575
 				"text" => elgg_echo("friends") . "<span class='badge'>" . $count . "</span>",
576
-				"title" => elgg_echo('friends') . ' - Requests(' . $count .')',
576
+				"title" => elgg_echo('friends') . ' - Requests(' . $count . ')',
577 577
         "class" => 'friend-icon',
578 578
 			);
579 579
 
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 		}
593 593
 
594 594
     $item = elgg_get_menu_item('entity', 'delete');
595
-		if ($item){
595
+		if ($item) {
596 596
     	echo '<div> What that mean?</div>';
597 597
     }
598 598
 
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
 			$params = array(
601 601
 				'name' => 'invite',
602 602
 				'text' => elgg_echo('friends:invite'),
603
-				'href' => "invite/". $user->username,
603
+				'href' => "invite/" . $user->username,
604 604
 				'contexts' => array('friends'),
605 605
         'priority' => 300,
606 606
 			);
@@ -610,9 +610,9 @@  discard block
 block discarded – undo
610 610
 
611 611
     //new folder button for files
612 612
 
613
-    if(elgg_is_logged_in()){
613
+    if (elgg_is_logged_in()) {
614 614
         $user = elgg_get_logged_in_user_entity();
615
-        if($user->canEdit()){
615
+        if ($user->canEdit()) {
616 616
             $params = array(
617 617
                 'name' => 'new_folder',
618 618
                 'text' => elgg_echo("file_tools:new:title"),
@@ -667,20 +667,20 @@  discard block
 block discarded – undo
667 667
 	$entContext = $entity->getType();
668 668
 
669 669
 	//check if entity is an object or group
670
-	if($entContext == 'object'){
670
+	if ($entContext == 'object') {
671 671
 
672 672
 		//find subtype
673 673
 		$contentType = $entity->getSubtype();
674 674
 		//convert subtype into plain language
675
-		$entContext =  proper_subtypes($contentType);//$entity->getSubtype();
675
+		$entContext = proper_subtypes($contentType); //$entity->getSubtype();
676 676
 
677 677
 		//check to see if entity is one f the entities with a title
678
-		if(!in_array($entity->getSubtype(), array('comment', 'discussion_reply', 'thewire'))){
678
+		if (!in_array($entity->getSubtype(), array('comment', 'discussion_reply', 'thewire'))) {
679 679
 
680 680
 
681
-			if($entity->title3){
681
+			if ($entity->title3) {
682 682
 					$entName = gc_explode_translation($entity->title3, $lang);
683
-			}else{
683
+			} else {
684 684
 					$entName = $entity->title;
685 685
 			}
686 686
 
@@ -689,12 +689,12 @@  discard block
 block discarded – undo
689 689
 			$entName = $entity->getOwnerEntity()->name;
690 690
 		}
691 691
 
692
-	} else if($entContext == 'group'){
692
+	} else if ($entContext == 'group') {
693 693
 			$contentType = 'group';
694 694
 			$entContext = elgg_echo('group');
695
-			if($entity->title3){
695
+			if ($entity->title3) {
696 696
 					$entName = gc_explode_translation($entity->title3, $lang);
697
-			}else{
697
+			} else {
698 698
 					$entName = $entity->name;
699 699
 			}
700 700
 
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
 		$return[] = ElggMenuItem::factory(array(
711 711
 			'name' => 'likes',
712 712
 			'href' => elgg_add_action_tokens_to_url("/action/likes/add?guid={$entity->guid}"),
713
-			'text' => '<i class="fa fa-thumbs-up fa-lg icon-unsel"></i><span class="wb-inv">'.$hiddenText['like'].'</span>',
713
+			'text' => '<i class="fa fa-thumbs-up fa-lg icon-unsel"></i><span class="wb-inv">' . $hiddenText['like'] . '</span>',
714 714
 			'title' => elgg_echo('likes:likethis') . ' ' . $entContext,
715 715
 			'item_class' => $hasLiked ? 'hidden' : '',
716 716
 			'priority' => 998,
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
 		$return[] = ElggMenuItem::factory(array(
719 719
 			'name' => 'unlike',
720 720
 			'href' => elgg_add_action_tokens_to_url("/action/likes/delete?guid={$entity->guid}"),
721
-			'text' => '<i class="fa fa-thumbs-up fa-lg icon-sel"></i><span class="wb-inv">'.$hiddenText['unlike'].'</span>',
721
+			'text' => '<i class="fa fa-thumbs-up fa-lg icon-sel"></i><span class="wb-inv">' . $hiddenText['unlike'] . '</span>',
722 722
 			'title' => elgg_echo('likes:remove') . ' ' . $entContext,
723 723
 			'item_class' => $hasLiked ? 'pad-rght-xs' : 'hidden',
724 724
 			'priority' => 998,
@@ -748,7 +748,7 @@  discard block
 block discarded – undo
748 748
  */
749 749
 function wet4_elgg_page_menu_setup($hook, $type, $return, $params) {
750 750
 
751
-    if(elgg_in_context('settings')){
751
+    if (elgg_in_context('settings')) {
752 752
 
753 753
         $user = elgg_get_page_owner_entity();
754 754
 
@@ -804,9 +804,9 @@  discard block
 block discarded – undo
804 804
         return $returnvalue;
805 805
     }
806 806
 
807
-		if($entity->title3){
807
+		if ($entity->title3) {
808 808
 				$entName = gc_explode_translation($entity->title3, $lang);
809
-		}else{
809
+		} else {
810 810
 				$entName = $entity->title;
811 811
 		}
812 812
 
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
 	$handler = elgg_extract('handler', $params, false);
864 864
 
865 865
     //Nick -Remove empty comment and reply links from river menu
866
-        foreach ($return as $key => $item){
866
+        foreach ($return as $key => $item) {
867 867
 
868 868
             switch ($item->getName()) {
869 869
                 case 'access':
@@ -881,20 +881,20 @@  discard block
 block discarded – undo
881 881
     $entContext = $entity->getType();
882 882
 
883 883
 		//check if entity is an object or group
884
-		if($entContext == 'object'){
884
+		if ($entContext == 'object') {
885 885
 
886 886
 			//find subtype
887 887
 			$contentType = $entity->getSubtype();
888 888
 			//convert subtype into plain language
889
-			$entContext =  proper_subtypes($contentType);//$entity->getSubtype();
889
+			$entContext = proper_subtypes($contentType); //$entity->getSubtype();
890 890
 
891 891
 			//check to see if entity is one f the entities with a title
892
-			if(!in_array($entity->getSubtype(), array('comment', 'discussion_reply', 'thewire', 'answer'))){
892
+			if (!in_array($entity->getSubtype(), array('comment', 'discussion_reply', 'thewire', 'answer'))) {
893 893
 
894 894
 
895
-				if($entity->title3){
895
+				if ($entity->title3) {
896 896
 						$entName = gc_explode_translation($entity->title3, $lang);
897
-				}else{
897
+				} else {
898 898
 						$entName = $entity->title;
899 899
 				}
900 900
 
@@ -903,12 +903,12 @@  discard block
 block discarded – undo
903 903
 				$entName = $entity->getOwnerEntity()->name;
904 904
 			}
905 905
 
906
-		} else if($entContext == 'group'){
906
+		} else if ($entContext == 'group') {
907 907
 				$contentType = 'group';
908 908
 				$entContext = elgg_echo('group');
909
-				if($entity->title3){
909
+				if ($entity->title3) {
910 910
 						$entName = gc_explode_translation($entity->title3, $lang);
911
-				}else{
911
+				} else {
912 912
 						$entName = $entity->name;
913 913
 				}
914 914
 
@@ -919,7 +919,7 @@  discard block
 block discarded – undo
919 919
 
920 920
 
921 921
         $blocked_subtypes = array('comment', 'discussion_reply');
922
-        if(in_array($entity->getSubtype(), $blocked_subtypes) || elgg_instanceof($entity, 'user')){
922
+        if (in_array($entity->getSubtype(), $blocked_subtypes) || elgg_instanceof($entity, 'user')) {
923 923
 
924 924
             //do not let comments or discussion replies to be reshared on the wire
925 925
 
@@ -936,7 +936,7 @@  discard block
 block discarded – undo
936 936
 
937 937
 			if ($count) {
938 938
 
939
-                if($count >=2){
939
+                if ($count >= 2) {
940 940
                     $share = elgg_echo('thewire:shares');
941 941
                 } else {
942 942
                     $share = elgg_echo('thewire:share');
@@ -959,12 +959,12 @@  discard block
 block discarded – undo
959 959
 			}
960 960
 
961 961
 
962
-            if(elgg_is_logged_in()){
962
+            if (elgg_is_logged_in()) {
963 963
 
964 964
                 //reshare on the wire
965 965
                 $options = array(
966 966
                     'name' => 'thewire_tools_reshare',
967
-                    'text' => '<i class="fa fa-share-alt fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['share'].'</span></i>',
967
+                    'text' => '<i class="fa fa-share-alt fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['share'] . '</span></i>',
968 968
                     'title' => elgg_echo('thewire_tools:reshare'),
969 969
                     'href' => 'ajax/view/thewire_tools/reshare?reshare_guid=' . $entity->getGUID(),
970 970
                     'link_class' => 'elgg-lightbox',
@@ -989,10 +989,10 @@  discard block
 block discarded – undo
989 989
         }
990 990
 
991 991
         //only show reply on the wire with logged in user
992
-        if($entity->getSubtype() == 'thewire' && elgg_is_logged_in()){
992
+        if ($entity->getSubtype() == 'thewire' && elgg_is_logged_in()) {
993 993
             $options = array(
994 994
                 'name' => 'reply',
995
-                'text' => '<i class="fa fa-reply fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['reply'].'</span></i>',
995
+                'text' => '<i class="fa fa-reply fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['reply'] . '</span></i>',
996 996
                 'title' => elgg_echo('reply'),
997 997
                 'href' => 'ajax/view/thewire_tools/reply?guid=' . $entity->getGUID(),
998 998
                 'link_class' => 'elgg-lightbox',
@@ -1017,11 +1017,11 @@  discard block
 block discarded – undo
1017 1017
 		// edit link
1018 1018
 
1019 1019
         //checks so the edit icon is not placed on incorrect entities
1020
-        if($handler != 'group_operators'){
1021
-            if($entity->getSubtype() != 'thewire'){
1020
+        if ($handler != 'group_operators') {
1021
+            if ($entity->getSubtype() != 'thewire') {
1022 1022
                 $options = array(
1023 1023
                     'name' => 'edit',
1024
-                    'text' => '<i class="fa fa-edit fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['edit'].'</span></i>',
1024
+                    'text' => '<i class="fa fa-edit fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['edit'] . '</span></i>',
1025 1025
                     'title' => elgg_echo('edit:this') . ' ' . $entContext,
1026 1026
                     'href' => "$handler/edit/{$entity->getGUID()}",
1027 1027
                     'priority' => 299,
@@ -1030,10 +1030,10 @@  discard block
 block discarded – undo
1030 1030
             }
1031 1031
 		// delete link
1032 1032
 
1033
-            if (elgg_is_logged_in()){
1033
+            if (elgg_is_logged_in()) {
1034 1034
         		$options = array(
1035 1035
         			'name' => 'delete',
1036
-        			'text' => '<i class="fa fa-trash-o fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['delete'].'</span></i>',
1036
+        			'text' => '<i class="fa fa-trash-o fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['delete'] . '</span></i>',
1037 1037
         			'title' => elgg_echo('delete:this') . ' ' . $entContext,
1038 1038
         			'href' => "action/$handler/delete?guid={$entity->getGUID()}",
1039 1039
         			'confirm' => elgg_echo('deleteconfirm'),
@@ -1045,11 +1045,11 @@  discard block
 block discarded – undo
1045 1045
 	}
1046 1046
 
1047 1047
 
1048
-    if($entity->getSubType() == 'file'){
1048
+    if ($entity->getSubType() == 'file') {
1049 1049
         // download link
1050 1050
 		$options = array(
1051 1051
 			'name' => 'download',
1052
-			'text' => '<i class="fa fa-download fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['download'].'</span></i>',
1052
+			'text' => '<i class="fa fa-download fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['download'] . '</span></i>',
1053 1053
 			'title' => 'Download File',
1054 1054
 			'href' => "file/download/{$entity->getGUID()}",
1055 1055
 			'priority' => 300,
@@ -1059,7 +1059,7 @@  discard block
 block discarded – undo
1059 1059
     }
1060 1060
 
1061 1061
 
1062
-    if($entity->getSubType() == 'page_top'){
1062
+    if ($entity->getSubType() == 'page_top') {
1063 1063
                 //history icon
1064 1064
             $options = array(
1065 1065
                 'name' => 'history',
@@ -1075,7 +1075,7 @@  discard block
 block discarded – undo
1075 1075
 if (elgg_instanceof($entity, "object", "groupforumtopic") && $entity->canEdit() && elgg_is_active_plugin('group_tools')) {
1076 1076
 				$return[] = ElggMenuItem::factory(array(
1077 1077
 					"name" => "status_change_open",
1078
-					"text" => '<i class="fa fa-lock fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['unlock'].'</span></i>', //elgg_echo("open");,
1078
+					"text" => '<i class="fa fa-lock fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['unlock'] . '</span></i>', //elgg_echo("open");,
1079 1079
 					"confirm" => elgg_echo("group_tools:discussion:confirm:open"),
1080 1080
 					"href" => "action/discussion/toggle_status?guid=" . $entity->getGUID(),
1081 1081
 					"is_trusted" => true,
@@ -1085,7 +1085,7 @@  discard block
 block discarded – undo
1085 1085
 				));
1086 1086
 				$return[] = ElggMenuItem::factory(array(
1087 1087
 					"name" => "status_change_close",
1088
-					"text" => '<i class="fa fa-unlock fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['lock'].'</span></i>', //elgg_echo("close");,
1088
+					"text" => '<i class="fa fa-unlock fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['lock'] . '</span></i>', //elgg_echo("close");,
1089 1089
 					"confirm" => elgg_echo("group_tools:discussion:confirm:close"),
1090 1090
 					"href" => "action/discussion/toggle_status?guid=" . $entity->getGUID(),
1091 1091
 					"is_trusted" => true,
@@ -1101,7 +1101,7 @@  discard block
 block discarded – undo
1101 1101
 				if (elgg_extract('full_view', $params, false) || ($entity instanceof ElggAnswer)) {
1102 1102
 					$options = array(
1103 1103
 						'name' => 'comments',
1104
-						"text" => '<span class="fa fa-lg fa-comment icon-unsel"><span class="wb-inv">' . elgg_echo("entity:comment:link:".$entity->getSubtype(), array($entName)) . '</span></span>',
1104
+						"text" => '<span class="fa fa-lg fa-comment icon-unsel"><span class="wb-inv">' . elgg_echo("entity:comment:link:" . $entity->getSubtype(), array($entName)) . '</span></span>',
1105 1105
 						"title" => elgg_echo("comment:this") . ' ' . $entContext,
1106 1106
 						'href' => "#comments-add-{$entity->getGUID()}",
1107 1107
 						'priority' => 288,
@@ -1133,11 +1133,11 @@  discard block
 block discarded – undo
1133 1133
 	switch ($handler) {
1134 1134
 		case 'friends':
1135 1135
             //use the pages in our theme instead of the core pages
1136
-			require($plugin_path ."wet4/pages/friends/index.php");
1136
+			require($plugin_path . "wet4/pages/friends/index.php");
1137 1137
 			break;
1138 1138
 		case 'friendsof':
1139 1139
 
1140
-			require($plugin_path ."wet4/pages/friends/of.php");
1140
+			require($plugin_path . "wet4/pages/friends/of.php");
1141 1141
 			break;
1142 1142
 		default:
1143 1143
 			return false;
@@ -1149,7 +1149,7 @@  discard block
 block discarded – undo
1149 1149
  * wet4_riverItem_remove
1150 1150
  * Remove unwanted river items
1151 1151
  */
1152
-function wet4_riverItem_remove(){
1152
+function wet4_riverItem_remove() {
1153 1153
     elgg_unregister_menu_item('river', 'comment');
1154 1154
     elgg_unregister_menu_item('river', 'reply');
1155 1155
 }
@@ -1157,7 +1157,7 @@  discard block
 block discarded – undo
1157 1157
  * wet4_elgg_river_menu_setup
1158 1158
  * Override river menu to use font awesome icons + add accessability
1159 1159
  */
1160
-function wet4_elgg_river_menu_setup($hook, $type, $return, $params){
1160
+function wet4_elgg_river_menu_setup($hook, $type, $return, $params) {
1161 1161
    // $entity = $params['entity'];
1162 1162
 
1163 1163
 	if (elgg_is_logged_in()) {
@@ -1171,7 +1171,7 @@  discard block
 block discarded – undo
1171 1171
 		return;
1172 1172
 	}
1173 1173
         //Nick -Remove empty comment and reply links from river menu
1174
-        foreach ($return as $key => $item){
1174
+        foreach ($return as $key => $item) {
1175 1175
 
1176 1176
             switch ($item->getName()) {
1177 1177
                 case 'comment':
@@ -1188,20 +1188,20 @@  discard block
 block discarded – undo
1188 1188
 
1189 1189
 		$entContext = $object->getType();
1190 1190
 		//check if entity is an object or group
1191
-		if($entContext == 'object'){
1191
+		if ($entContext == 'object') {
1192 1192
 
1193 1193
 			//find subtype
1194 1194
 			$contentType = $object->getSubtype();
1195 1195
 			//convert subtype into plain language
1196
-			$entContext =  proper_subtypes($contentType);
1196
+			$entContext = proper_subtypes($contentType);
1197 1197
 
1198 1198
 			//check to see if entity is one f the entities with a title
1199
-			if(!in_array($object->getSubtype(), array('comment', 'discussion_reply', 'thewire', 'answer'))){
1199
+			if (!in_array($object->getSubtype(), array('comment', 'discussion_reply', 'thewire', 'answer'))) {
1200 1200
 
1201 1201
 
1202
-				if($object->title3){
1202
+				if ($object->title3) {
1203 1203
 						$entName = gc_explode_translation($object->title3, $lang);
1204
-				}else{
1204
+				} else {
1205 1205
 						$entName = $object->title;
1206 1206
 				}
1207 1207
 
@@ -1210,12 +1210,12 @@  discard block
 block discarded – undo
1210 1210
 				$entName = $object->getOwnerEntity()->name;
1211 1211
 			}
1212 1212
 
1213
-		} else if($entContext == 'group'){
1213
+		} else if ($entContext == 'group') {
1214 1214
 				$contentType = 'group';
1215 1215
 				$entContext = elgg_echo('group');
1216
-				if($object->title3){
1216
+				if ($object->title3) {
1217 1217
 						$entName = gc_explode_translation($object->title3, $lang);
1218
-				}else{
1218
+				} else {
1219 1219
 						$entName = $object->name;
1220 1220
 				}
1221 1221
 
@@ -1224,7 +1224,7 @@  discard block
 block discarded – undo
1224 1224
 		//pass type and entiey/owner name to function to return array of text
1225 1225
 		$hiddenText = generate_hidden_text($contentType, $entName);
1226 1226
 
1227
-	if($entContext != 'user'){
1227
+	if ($entContext != 'user') {
1228 1228
 
1229 1229
 		$hasLiked = \Elgg\Likes\DataService::instance()->currentUserLikesEntity($object->guid);
1230 1230
 
@@ -1232,7 +1232,7 @@  discard block
 block discarded – undo
1232 1232
 		$return[] = ElggMenuItem::factory(array(
1233 1233
 			'name' => 'likes',
1234 1234
 			'href' => elgg_add_action_tokens_to_url("/action/likes/add?guid={$object->guid}"),
1235
-			'text' => '<i class="fa fa-thumbs-up fa-lg icon-unsel"></i><span class="wb-inv">'.$hiddenText['like'].'</span>',
1235
+			'text' => '<i class="fa fa-thumbs-up fa-lg icon-unsel"></i><span class="wb-inv">' . $hiddenText['like'] . '</span>',
1236 1236
 			'title' => elgg_echo('likes:likethis') . ' ' . $entContext,
1237 1237
 			'item_class' => $hasLiked ? 'hidden' : '',
1238 1238
 			'priority' => 100,
@@ -1240,7 +1240,7 @@  discard block
 block discarded – undo
1240 1240
 		$return[] = ElggMenuItem::factory(array(
1241 1241
 			'name' => 'unlike',
1242 1242
 			'href' => elgg_add_action_tokens_to_url("/action/likes/delete?guid={$object->guid}"),
1243
-			'text' => '<i class="fa fa-thumbs-up fa-lg icon-sel"></i><span class="wb-inv">'.$hiddenText['unlike'].'</span>',
1243
+			'text' => '<i class="fa fa-thumbs-up fa-lg icon-sel"></i><span class="wb-inv">' . $hiddenText['unlike'] . '</span>',
1244 1244
 			'title' => elgg_echo('likes:remove') . ' ' . $entContext,
1245 1245
 			'item_class' => $hasLiked ? '' : 'hidden',
1246 1246
 			'priority' => 100,
@@ -1259,14 +1259,14 @@  discard block
 block discarded – undo
1259 1259
 	}
1260 1260
 
1261 1261
            $blocked_subtypes = array('comment', 'discussion_reply');
1262
-           if(in_array($object->getSubtype(), $blocked_subtypes) || elgg_instanceof($object, 'user')){
1262
+           if (in_array($object->getSubtype(), $blocked_subtypes) || elgg_instanceof($object, 'user')) {
1263 1263
 
1264 1264
                //do not let comments or discussion replies to be reshared on the wire
1265 1265
 
1266 1266
            } else {
1267
-               $return[]= ElggMenuItem::factory(array(
1267
+               $return[] = ElggMenuItem::factory(array(
1268 1268
                    'name' => 'thewire_tools_reshare',
1269
-                   'text' => '<i class="fa fa-share-alt fa-lg icon-unsel"><span class="wb-inv">'.$hiddenText['share'].'</span></i>',
1269
+                   'text' => '<i class="fa fa-share-alt fa-lg icon-unsel"><span class="wb-inv">' . $hiddenText['share'] . '</span></i>',
1270 1270
                    'title' => elgg_echo('thewire_tools:reshare'),
1271 1271
                    'href' => 'ajax/view/thewire_tools/reshare?reshare_guid=' . $object->getGUID(),
1272 1272
                    'link_class' => 'elgg-lightbox',
@@ -1299,9 +1299,9 @@  discard block
 block discarded – undo
1299 1299
  * my_filter_menu_handler
1300 1300
  * Rearrange filter menu for The Wire
1301 1301
  */
1302
-function my_filter_menu_handler($hook, $type, $menu, $params){
1303
-    foreach ($menu as $key => $item){
1304
-        if(elgg_in_context('thewire')){
1302
+function my_filter_menu_handler($hook, $type, $menu, $params) {
1303
+    foreach ($menu as $key => $item) {
1304
+        if (elgg_in_context('thewire')) {
1305 1305
         switch ($item->getName()) {
1306 1306
 
1307 1307
                 case 'all':
@@ -1330,14 +1330,14 @@  discard block
 block discarded – undo
1330 1330
  * my_site_menu_handler
1331 1331
  * Set href of groups link depending if a logged in user is using site
1332 1332
  */
1333
-function my_site_menu_handler($hook, $type, $menu, $params){
1333
+function my_site_menu_handler($hook, $type, $menu, $params) {
1334 1334
 
1335 1335
     if (!is_array($menu))
1336 1336
         return;
1337 1337
 
1338 1338
     foreach ($menu as $key => $item) {
1339 1339
         if ($item->getName() === 'groups')
1340
-            (elgg_is_logged_in()) ? $item->setHref(elgg_get_site_url().'groups/all?filter=yours') : $item->setHref( elgg_get_site_url().'groups/all?filter=popular');
1340
+            (elgg_is_logged_in()) ? $item->setHref(elgg_get_site_url() . 'groups/all?filter=yours') : $item->setHref(elgg_get_site_url() . 'groups/all?filter=popular');
1341 1341
     }
1342 1342
 }
1343 1343
 
@@ -1345,7 +1345,7 @@  discard block
 block discarded – undo
1345 1345
  * my_title_menu_handler
1346 1346
  * Add styles to phot album title menu
1347 1347
  */
1348
-function my_title_menu_handler($hook, $type, $menu, $params){
1348
+function my_title_menu_handler($hook, $type, $menu, $params) {
1349 1349
 
1350 1350
     if (!is_array($menu))
1351 1351
         return;
@@ -1365,7 +1365,7 @@  discard block
 block discarded – undo
1365 1365
  * my_owner_block_handler
1366 1366
  * Override owner_block menu to become tabs in profile
1367 1367
  */
1368
-function my_owner_block_handler($hook, $type, $menu, $params){
1368
+function my_owner_block_handler($hook, $type, $menu, $params) {
1369 1369
 
1370 1370
     /*
1371 1371
      *
@@ -1376,12 +1376,12 @@  discard block
 block discarded – undo
1376 1376
 
1377 1377
 
1378 1378
         //rearrange menu items
1379
-    if(elgg_get_context() == 'profile'){
1379
+    if (elgg_get_context() == 'profile') {
1380 1380
 
1381 1381
         elgg_unregister_menu_item('owner_block', 'activity');
1382 1382
 
1383 1383
         //turn owner_block  menu into tabs
1384
-        foreach ($menu as $key => $item){
1384
+        foreach ($menu as $key => $item) {
1385 1385
 
1386 1386
             switch ($item->getName()) {
1387 1387
                 case 'discussion':
@@ -1476,7 +1476,7 @@  discard block
 block discarded – undo
1476 1476
  * river_handler
1477 1477
  * Remove comment menu item
1478 1478
  */
1479
-function river_handler($hook, $type, $menu, $params){
1479
+function river_handler($hook, $type, $menu, $params) {
1480 1480
 
1481 1481
 }
1482 1482
 
@@ -1525,7 +1525,7 @@  discard block
 block discarded – undo
1525 1525
 
1526 1526
     $options = array(
1527 1527
 		'name' => 'collapse',
1528
-		'text' => '<i class="fa fa-lg icon-unsel"><span class="wb-inv">'. elgg_echo('wet:collapseWidget', array($widget->getTitle())).'</span></i> ',
1528
+		'text' => '<i class="fa fa-lg icon-unsel"><span class="wb-inv">' . elgg_echo('wet:collapseWidget', array($widget->getTitle())) . '</span></i> ',
1529 1529
         'title' => elgg_echo('wet:collapseWidget', array($widget->getTitle())),
1530 1530
 		'href' => "#elgg-widget-content-$widget->guid",
1531 1531
 		'link_class' => 'elgg-widget-collapse-button ',
@@ -1537,7 +1537,7 @@  discard block
 block discarded – undo
1537 1537
 	if ($widget->canEdit()) {
1538 1538
 		$options = array(
1539 1539
 			'name' => 'delete',
1540
-			'text' => '<i class="fa fa-trash-o fa-lg icon-unsel"><span class="wb-inv">'.elgg_echo('widget:delete', array($widget->getTitle())).'</span></i>',
1540
+			'text' => '<i class="fa fa-trash-o fa-lg icon-unsel"><span class="wb-inv">' . elgg_echo('widget:delete', array($widget->getTitle())) . '</span></i>',
1541 1541
 			'title' => elgg_echo('widget:delete', array($widget->getTitle())),
1542 1542
 			'href' => "action/widgets/delete?widget_guid=$widget->guid&context=" . $widget->getContainerGUID(),
1543 1543
 			'is_action' => true,
@@ -1552,7 +1552,7 @@  discard block
 block discarded – undo
1552 1552
 		if ($show_edit) {
1553 1553
 			$options = array(
1554 1554
 				'name' => 'settings',
1555
-				'text' => '<i class="fa fa-cog fa-lg icon-unsel"><span class="wb-inv">'.elgg_echo('widget:edit', array($widget->getTitle())).'</span></i>',
1555
+				'text' => '<i class="fa fa-cog fa-lg icon-unsel"><span class="wb-inv">' . elgg_echo('widget:edit', array($widget->getTitle())) . '</span></i>',
1556 1556
 				'title' => elgg_echo('widget:edit', array($widget->getTitle())),
1557 1557
 				'href' => "#widget-edit-$widget->guid",
1558 1558
 				'link_class' => "elgg-widget-edit-button",
@@ -1710,13 +1710,13 @@  discard block
 block discarded – undo
1710 1710
 		//PHPlord let check for day, days, weeks and finally output date if too far away...
1711 1711
 		if ($diff == 1) {
1712 1712
 			$friendly_time = elgg_echo("friendlytime:days:singular", array($diff));
1713
-		} else if(6 >= $diff){
1713
+		} else if (6 >= $diff) {
1714 1714
 			$friendly_time = elgg_echo("friendlytime:days", array($diff));
1715
-		} else if(13 >= $diff){
1715
+		} else if (13 >= $diff) {
1716 1716
 			$friendly_time = elgg_echo("friendlytime:weeks:singular", array($diff));
1717
-		} else if($diff == 14){
1717
+		} else if ($diff == 14) {
1718 1718
 			$friendly_time = elgg_echo("friendlytime:weeks", array($diff));
1719
-		} else{
1719
+		} else {
1720 1720
 			$date_day = date('d', $params['time']);
1721 1721
 			$date_month = date('m', $params['time']);
1722 1722
 			$date_year = date('Y', $params['time']);
@@ -1743,7 +1743,7 @@  discard block
 block discarded – undo
1743 1743
  * @param [string] [type] [<Entity subtype.>]
1744 1744
  * @return [string] [<Subtype>]
1745 1745
  */
1746
-function proper_subtypes($type){
1746
+function proper_subtypes($type) {
1747 1747
 
1748 1748
     switch ($type) {
1749 1749
         case 'page_top':
@@ -1831,20 +1831,20 @@  discard block
 block discarded – undo
1831 1831
  * @param [string] [type] [<Entity subtype.>]
1832 1832
  * @return [array] [<Contains different text for each menu item>]
1833 1833
  */
1834
-function generate_hidden_text($type, $name){
1834
+function generate_hidden_text($type, $name) {
1835 1835
 
1836 1836
 	//create all unique menu items
1837 1837
 	switch ($type) {
1838 1838
 			case 'page_top':
1839
-						$hiddenText['history'] = elgg_echo('entity:history:link:'.$type, array($name));
1839
+						$hiddenText['history'] = elgg_echo('entity:history:link:' . $type, array($name));
1840 1840
 					break;
1841 1841
 
1842 1842
 			case 'page':
1843
-						$hiddenText['history'] = elgg_echo('entity:history:link:'.$type, array($name));
1843
+						$hiddenText['history'] = elgg_echo('entity:history:link:' . $type, array($name));
1844 1844
 					break;
1845 1845
 
1846 1846
 			case 'thewire':
1847
-						$hiddenText['reply'] = elgg_echo('entity:reply:link:'.$type, array($name));
1847
+						$hiddenText['reply'] = elgg_echo('entity:reply:link:' . $type, array($name));
1848 1848
 					break;
1849 1849
 
1850 1850
 			case 'blog':
@@ -1852,12 +1852,12 @@  discard block
 block discarded – undo
1852 1852
 					break;
1853 1853
 
1854 1854
 			case 'comment':
1855
-						$hiddenText['comment'] = elgg_echo('entity:comment:link:'.$type, array($name));
1855
+						$hiddenText['comment'] = elgg_echo('entity:comment:link:' . $type, array($name));
1856 1856
 					break;
1857 1857
 
1858 1858
 			case 'groupforumtopic':
1859
-						$hiddenText['lock'] = elgg_echo('entity:lock:link:'.$type, array($name));
1860
-						$hiddenText['unlock'] = elgg_echo('entity:unlock:link:'.$type, array($name));
1859
+						$hiddenText['lock'] = elgg_echo('entity:lock:link:' . $type, array($name));
1860
+						$hiddenText['unlock'] = elgg_echo('entity:unlock:link:' . $type, array($name));
1861 1861
 					break;
1862 1862
 
1863 1863
 			case 'discussion_reply':
@@ -1865,7 +1865,7 @@  discard block
 block discarded – undo
1865 1865
 					break;
1866 1866
 
1867 1867
 			case 'file':
1868
-						$hiddenText['download'] = elgg_echo('entity:download:link:'.$type, array($name));
1868
+						$hiddenText['download'] = elgg_echo('entity:download:link:' . $type, array($name));
1869 1869
 					break;
1870 1870
 
1871 1871
 			case 'folder':
@@ -1893,8 +1893,8 @@  discard block
 block discarded – undo
1893 1893
 					break;
1894 1894
 
1895 1895
 			case 'idea':
1896
-						$hiddenText['upvote'] = elgg_echo('entity:upvote:link:'.$type, array($name));
1897
-						$hiddenText['downvote'] = elgg_echo('entity:downvote:link:'.$type, array($name));
1896
+						$hiddenText['upvote'] = elgg_echo('entity:upvote:link:' . $type, array($name));
1897
+						$hiddenText['downvote'] = elgg_echo('entity:downvote:link:' . $type, array($name));
1898 1898
 					break;
1899 1899
 
1900 1900
 			case 'groups':
@@ -1903,12 +1903,12 @@  discard block
 block discarded – undo
1903 1903
 	}
1904 1904
 
1905 1905
 	//default menus that ever item has
1906
-	$hiddenText['like'] = elgg_echo('entity:like:link:'.$type, array($name));
1907
-	$hiddenText['unlike'] = elgg_echo('entity:unlike:link:'.$type, array($name));
1908
-	$hiddenText['edit'] = elgg_echo('entity:edit:link:'.$type, array($name));
1909
-	$hiddenText['delete'] = elgg_echo('entity:delete:link:'.$type, array($name));
1910
-	$hiddenText['share'] = elgg_echo('entity:share:link:'.$type, array($name));
1911
-  $hiddenText['subscribe'] = elgg_echo('entity:subscribe:link:'.$type, array($name));
1906
+	$hiddenText['like'] = elgg_echo('entity:like:link:' . $type, array($name));
1907
+	$hiddenText['unlike'] = elgg_echo('entity:unlike:link:' . $type, array($name));
1908
+	$hiddenText['edit'] = elgg_echo('entity:edit:link:' . $type, array($name));
1909
+	$hiddenText['delete'] = elgg_echo('entity:delete:link:' . $type, array($name));
1910
+	$hiddenText['share'] = elgg_echo('entity:share:link:' . $type, array($name));
1911
+  $hiddenText['subscribe'] = elgg_echo('entity:subscribe:link:' . $type, array($name));
1912 1912
 
1913 1913
 	return $hiddenText;
1914 1914
 }
@@ -1922,17 +1922,17 @@  discard block
 block discarded – undo
1922 1922
  * @param [string] [desc] [<Preview text from the discussion.>]
1923 1923
  * @return [string] [<HTML to create embeded video>]
1924 1924
  */
1925
-function embed_discussion_river($desc){
1925
+function embed_discussion_river($desc) {
1926 1926
 
1927 1927
     $patterns = array('#(((https://)?)|(^./))(((www.)?)|(^./))youtube\.com/watch[?]v=([^\[\]()<.,\s\n\t\r]+)#i'
1928 1928
 						,'#(((https://)?)|(^./))(((www.)?)|(^./))youtu\.be/([^\[\]()<.,\s\n\t\r]+)#i'
1929 1929
 						,'/(https:\/\/)?(www\.)?(vimeo\.com\/groups)(.*)(\/videos\/)([0-9]*)(\/)?/'
1930 1930
 						,'/(https:\/\/)(www\.)?(metacafe\.com\/watch\/)([0-9a-zA-Z_-]*)(\/[0-9a-zA-Z_-]*)(\/)/'
1931
-						 ,'/(https:\/\/)?(www\.)?(vimeo.com\/)([^a-zA-Z][0-9]*)(\/)?/','/(https:\/\/)?(www\.)?(dailymotion.com\/video)([^a-zA-Z][0-9]*)(\/)?/');
1931
+						 ,'/(https:\/\/)?(www\.)?(vimeo.com\/)([^a-zA-Z][0-9]*)(\/)?/', '/(https:\/\/)?(www\.)?(dailymotion.com\/video)([^a-zA-Z][0-9]*)(\/)?/');
1932 1932
 
1933 1933
     //Replace video providers with embebed content
1934
-    foreach($patterns as $pattern){
1935
-	    if(preg_match_all($pattern, $desc, $matches)){
1934
+    foreach ($patterns as $pattern) {
1935
+	    if (preg_match_all($pattern, $desc, $matches)) {
1936 1936
 
1937 1937
             $strAndPara = $matches[0];
1938 1938
 
@@ -1949,7 +1949,7 @@  discard block
 block discarded – undo
1949 1949
 function login_as_add_user_menu_link() {
1950 1950
 	$item = elgg_get_menu_item('topbar', 'login_as_return');
1951 1951
 
1952
-	if(isset($item)){
1952
+	if (isset($item)) {
1953 1953
 			$item->addLinkClass('no-style-link');
1954 1954
 			$item->addItemClass('login-as-out');
1955 1955
 		elgg_register_menu_item('user_menu', $item);
Please login to merge, or discard this patch.
Braces   +21 added lines, -17 removed lines patch added patch discarded remove patch
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
 
681 681
 			if($entity->title3){
682 682
 					$entName = gc_explode_translation($entity->title3, $lang);
683
-			}else{
683
+			} else{
684 684
 					$entName = $entity->title;
685 685
 			}
686 686
 
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
 			$entContext = elgg_echo('group');
695 695
 			if($entity->title3){
696 696
 					$entName = gc_explode_translation($entity->title3, $lang);
697
-			}else{
697
+			} else{
698 698
 					$entName = $entity->name;
699 699
 			}
700 700
 
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
 
807 807
 		if($entity->title3){
808 808
 				$entName = gc_explode_translation($entity->title3, $lang);
809
-		}else{
809
+		} else{
810 810
 				$entName = $entity->title;
811 811
 		}
812 812
 
@@ -894,7 +894,7 @@  discard block
 block discarded – undo
894 894
 
895 895
 				if($entity->title3){
896 896
 						$entName = gc_explode_translation($entity->title3, $lang);
897
-				}else{
897
+				} else{
898 898
 						$entName = $entity->title;
899 899
 				}
900 900
 
@@ -908,7 +908,7 @@  discard block
 block discarded – undo
908 908
 				$entContext = elgg_echo('group');
909 909
 				if($entity->title3){
910 910
 						$entName = gc_explode_translation($entity->title3, $lang);
911
-				}else{
911
+				} else{
912 912
 						$entName = $entity->name;
913 913
 				}
914 914
 
@@ -1201,7 +1201,7 @@  discard block
 block discarded – undo
1201 1201
 
1202 1202
 				if($object->title3){
1203 1203
 						$entName = gc_explode_translation($object->title3, $lang);
1204
-				}else{
1204
+				} else{
1205 1205
 						$entName = $object->title;
1206 1206
 				}
1207 1207
 
@@ -1215,7 +1215,7 @@  discard block
 block discarded – undo
1215 1215
 				$entContext = elgg_echo('group');
1216 1216
 				if($object->title3){
1217 1217
 						$entName = gc_explode_translation($object->title3, $lang);
1218
-				}else{
1218
+				} else{
1219 1219
 						$entName = $object->name;
1220 1220
 				}
1221 1221
 
@@ -1332,12 +1332,14 @@  discard block
 block discarded – undo
1332 1332
  */
1333 1333
 function my_site_menu_handler($hook, $type, $menu, $params){
1334 1334
 
1335
-    if (!is_array($menu))
1336
-        return;
1335
+    if (!is_array($menu)) {
1336
+            return;
1337
+    }
1337 1338
 
1338 1339
     foreach ($menu as $key => $item) {
1339
-        if ($item->getName() === 'groups')
1340
-            (elgg_is_logged_in()) ? $item->setHref(elgg_get_site_url().'groups/all?filter=yours') : $item->setHref( elgg_get_site_url().'groups/all?filter=popular');
1340
+        if ($item->getName() === 'groups') {
1341
+                    (elgg_is_logged_in()) ? $item->setHref(elgg_get_site_url().'groups/all?filter=yours') : $item->setHref( elgg_get_site_url().'groups/all?filter=popular');
1342
+        }
1341 1343
     }
1342 1344
 }
1343 1345
 
@@ -1347,15 +1349,17 @@  discard block
 block discarded – undo
1347 1349
  */
1348 1350
 function my_title_menu_handler($hook, $type, $menu, $params){
1349 1351
 
1350
-    if (!is_array($menu))
1351
-        return;
1352
+    if (!is_array($menu)) {
1353
+            return;
1354
+    }
1352 1355
 
1353 1356
     foreach ($menu as $key => $item) {
1354 1357
 
1355
-        if ($item->getName() === 'slideshow')
1356
-            $item->setText(elgg_echo('album:slideshow'));
1357
-        elseif ($item->getName() === 'addphotos')
1358
-            $item->setItemClass('mrgn-rght-sm');
1358
+        if ($item->getName() === 'slideshow') {
1359
+                    $item->setText(elgg_echo('album:slideshow'));
1360
+        } elseif ($item->getName() === 'addphotos') {
1361
+                    $item->setItemClass('mrgn-rght-sm');
1362
+        }
1359 1363
 
1360 1364
     }
1361 1365
 
Please login to merge, or discard this patch.
mod/wet4/views/default/au_subgroups/sidebar/subgroups.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
 		);
34 34
 	}
35 35
 
36
-    //count total number of subgroups and add it to view all link
37
-    $subgroupsTotalCount = get_subgroups($vars['entity']);
38
-    $sgCount = '(' . count($subgroupsTotalCount) . ')';
36
+	//count total number of subgroups and add it to view all link
37
+	$subgroupsTotalCount = get_subgroups($vars['entity']);
38
+	$sgCount = '(' . count($subgroupsTotalCount) . ')';
39 39
 }
40 40
 
41 41
 $title = elgg_echo('au_subgroups:subgroups');
@@ -50,5 +50,5 @@  discard block
 block discarded – undo
50 50
 
51 51
 //only show subgroups widget if the group has subgroups
52 52
 if($sgCount){
53
-    echo elgg_view_module('aside', $title, $body, array('footer' => $footer,));
53
+	echo elgg_view_module('aside', $title, $body, array('footer' => $footer,));
54 54
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	foreach ($subgroups as $subgroup) {
23 23
 
24 24
 		
25
-			$subgroup_name = gc_explode_translation( $subgroup->title, $lang);
25
+			$subgroup_name = gc_explode_translation($subgroup->title, $lang);
26 26
 
27 27
 
28 28
 		$body .= elgg_view_image_block(
@@ -49,6 +49,6 @@  discard block
 block discarded – undo
49 49
 $footer = "<div class='text-right'>$all_link</div>";
50 50
 
51 51
 //only show subgroups widget if the group has subgroups
52
-if($sgCount){
52
+if ($sgCount) {
53 53
     echo elgg_view_module('aside', $title, $body, array('footer' => $footer,));
54 54
 }
Please login to merge, or discard this patch.