Completed
Push — gcconnex ( ee5ffc...718fe4 )
by Ilia
09:37 queued 04:29
created
mod/gccollab_theme/views/default/page/elements/site-brand.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 $user = elgg_get_logged_in_user_entity();
11 11
 //check lang of current user and change Canada graphic based on language
12 12
 if( _elgg_services()->session->get('language') == 'fr'){
13
-    $graphic_lang = 'fr';
13
+	$graphic_lang = 'fr';
14 14
 } else {
15
-    $graphic_lang = 'en';
15
+	$graphic_lang = 'en';
16 16
 }
17 17
 
18 18
 // cyu - strip off the "GCconnex" branding bar for the gsa
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@  discard block
 block discarded – undo
9 9
 $site_url = elgg_get_site_url();
10 10
 $user = elgg_get_logged_in_user_entity();
11 11
 //check lang of current user and change Canada graphic based on language
12
-if( _elgg_services()->session->get('language') == 'fr'){
12
+if (_elgg_services()->session->get('language') == 'fr') {
13 13
     $graphic_lang = 'fr';
14 14
 } else {
15 15
     $graphic_lang = 'en';
16 16
 }
17 17
 
18 18
 // cyu - strip off the "GCconnex" branding bar for the gsa
19
-if (elgg_is_active_plugin('gc_fedsearch_gsa') && ((!$gsa_usertest) && strcmp($gsa_agentstring,strtolower($_SERVER['HTTP_USER_AGENT'])) == 0) || strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'gsa-crawler') !== false ) {
19
+if (elgg_is_active_plugin('gc_fedsearch_gsa') && ((!$gsa_usertest) && strcmp($gsa_agentstring, strtolower($_SERVER['HTTP_USER_AGENT'])) == 0) || strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'gsa-crawler') !== false) {
20 20
 
21 21
 } else {
22 22
 ?>
@@ -26,28 +26,28 @@  discard block
 block discarded – undo
26 26
             <div class="row">
27 27
                 <div class="brand col-xs-8 col-sm-5 col-md-4 col-lg-4">
28 28
                    <object type="image/svg+xml" tabindex="-1" data="<?php echo $site_url ?>/mod/wet4_collab/graphics/sig-blk-<?php echo $graphic_lang; ?>.svg"></object>
29
-                    <span class="wb-inv"><?php echo elgg_echo('wet:gc');?></span>
29
+                    <span class="wb-inv"><?php echo elgg_echo('wet:gc'); ?></span>
30 30
                 </div>
31 31
                 <section class="hidden-xs col-sm-7 col-md-6 col-lg-6">
32
-                    <?php if( $user->user_type === 'federal' ): ?>
32
+                    <?php if ($user->user_type === 'federal'): ?>
33 33
                         <ul id="" class="pull-left list-unstyled mrgn-bttm-0">
34 34
                             <li class="pull-left tool-link">
35
-                            <a href="<?php echo elgg_echo('wet:gcpediaLink');?>">
36
-                                <span class="bold-gc">GC</span><?php echo elgg_echo('wet:barGCpedia');?>
35
+                            <a href="<?php echo elgg_echo('wet:gcpediaLink'); ?>">
36
+                                <span class="bold-gc">GC</span><?php echo elgg_echo('wet:barGCpedia'); ?>
37 37
                             </a>
38 38
                             </li>
39 39
                             <li class="pull-left tool-link">
40
-                            <a href="<?php echo elgg_echo('wet:gcintranetLink-toolsHead');?>">
40
+                            <a href="<?php echo elgg_echo('wet:gcintranetLink-toolsHead'); ?>">
41 41
                                <span class="bold-gc">GC</span>intranet
42 42
                             </a>
43 43
                             </li>
44 44
                             <li class="pull-left tool-link">
45
-                            <a href="<?php echo elgg_echo('wet:gcdirectoryLink');?>">
46
-                               <span class="bold-gc">GC</span><?php echo elgg_echo('wet:barDirectory');?>
45
+                            <a href="<?php echo elgg_echo('wet:gcdirectoryLink'); ?>">
46
+                               <span class="bold-gc">GC</span><?php echo elgg_echo('wet:barDirectory'); ?>
47 47
                             </a>
48 48
                             </li>
49 49
                             <li class="pull-left tool-link">
50
-                            <a href="<?php echo elgg_echo('wet:gcconnexLink');?>">
50
+                            <a href="<?php echo elgg_echo('wet:gcconnexLink'); ?>">
51 51
                                <span class="bold-gc">GC</span>connex
52 52
                             </a>
53 53
                             </li>
@@ -55,15 +55,15 @@  discard block
 block discarded – undo
55 55
                     <?php endif; ?>
56 56
                 </section>
57 57
                 <section class="wb-mb-links visible-xs col-xs-4 col-sm-3" id="wb-glb-mn">
58
-                    <h2><?php echo elgg_echo('wet:search');?></h2>
58
+                    <h2><?php echo elgg_echo('wet:search'); ?></h2>
59 59
                     <div class="container row purple-bg mbm">
60 60
                         <div class="col-xs-6 app-name">
61 61
                             <a href="<?php echo $site_url; ?>"><span><span class="bold-gc">GC</span>collab</span></a>
62 62
                         </div>
63 63
                         <div class="col-xs-6 icons text-right">
64
-                            <a href="#mb-pnl" title="<?php echo elgg_echo('wet:search');?>" aria-controls="mb-pnl" class="overlay-lnk" role="button">
65
-                                <span class="glyphicon glyphicon-search mrl"><span class="wb-inv"><?php echo elgg_echo('wet:search');?></span></span>
66
-                                <span class="glyphicon glyphicon-th-list"><span class="wb-inv"><?php echo elgg_echo('wet:menu');?></span></span>
64
+                            <a href="#mb-pnl" title="<?php echo elgg_echo('wet:search'); ?>" aria-controls="mb-pnl" class="overlay-lnk" role="button">
65
+                                <span class="glyphicon glyphicon-search mrl"><span class="wb-inv"><?php echo elgg_echo('wet:search'); ?></span></span>
66
+                                <span class="glyphicon glyphicon-th-list"><span class="wb-inv"><?php echo elgg_echo('wet:menu'); ?></span></span>
67 67
                             </a>
68 68
                         </div>
69 69
                     </div>
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                     <?php echo elgg_view('search/search_box', $vars); ?>
86 86
                 </div>
87 87
                 <div class="col-md-4 col-sm-5 col-xs-12">
88
-                    <?php echo elgg_view('page/elements/topbar_wrapper', $vars);?>
88
+                    <?php echo elgg_view('page/elements/topbar_wrapper', $vars); ?>
89 89
                 </div>
90 90
             </div>
91 91
         </div>
Please login to merge, or discard this patch.
mod/gccollab_theme/views/default/page/elements/footer.php 3 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -10,20 +10,20 @@  discard block
 block discarded – undo
10 10
 
11 11
 $stats = "{$site_url}stats";
12 12
 if ( strcmp(_elgg_services()->session->get('language'),'en') == 0 ) {
13
-    // english links (under about)
14
-    $about = "{$site_url}about";
15
-    $terms = "{$site_url}terms";
16
-    $priv = "{$site_url}privacy";
13
+	// english links (under about)
14
+	$about = "{$site_url}about";
15
+	$terms = "{$site_url}terms";
16
+	$priv = "{$site_url}privacy";
17 17
 
18
-    $faq = "{$site_url}faq";
18
+	$faq = "{$site_url}faq";
19 19
 
20 20
 } else {
21
-    // french links (under about)
22
-    $about = "{$site_url}a_propos";
23
-    $terms = "{$site_url}termes";
24
-    $priv = "{$site_url}confidentialite";
21
+	// french links (under about)
22
+	$about = "{$site_url}a_propos";
23
+	$terms = "{$site_url}termes";
24
+	$priv = "{$site_url}confidentialite";
25 25
 
26
-    $faq = "{$site_url}qfp";
26
+	$faq = "{$site_url}qfp";
27 27
 }
28 28
 
29 29
 $feedbackText= elgg_echo('wet:feedbackText');
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
         <h2>About this site</h2>
37 37
 
38 38
         <?php
39
-        //Test is the user is logged in and give them links to register in the footer
40
-        if (!elgg_is_logged_in())
41
-            echo elgg_view('page/elements/footer_register', $vars);
42
-        ?>
39
+		//Test is the user is logged in and give them links to register in the footer
40
+		if (!elgg_is_logged_in())
41
+			echo elgg_view('page/elements/footer_register', $vars);
42
+		?>
43 43
 
44 44
         <div class="row">
45 45
 
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 $user = elgg_get_logged_in_user_entity();
10 10
 
11 11
 $stats = "{$site_url}stats";
12
-if ( strcmp(_elgg_services()->session->get('language'),'en') == 0 ) {
12
+if (strcmp(_elgg_services()->session->get('language'), 'en') == 0) {
13 13
     // english links (under about)
14 14
     $about = "{$site_url}about";
15 15
     $terms = "{$site_url}terms";
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     $faq = "{$site_url}qfp";
27 27
 }
28 28
 
29
-$feedbackText= elgg_echo('wet:feedbackText');
29
+$feedbackText = elgg_echo('wet:feedbackText');
30 30
 
31 31
 ?>
32 32
 
@@ -45,23 +45,23 @@  discard block
 block discarded – undo
45 45
 
46 46
             <!-- About -->
47 47
             <section class="col-sm-3">
48
-                <h3><?php echo elgg_echo('wet:footTitleAbout');?></h3>
48
+                <h3><?php echo elgg_echo('wet:footTitleAbout'); ?></h3>
49 49
                 <ul class="list-unstyled">
50
-                    <li><a href="<?php echo $about;?>"><?php echo elgg_echo('wet:footAbout');?></a></li>
51
-                    <li><a href="<?php echo $priv;?>"><?php echo elgg_echo('wet:footPrivacy');?></a></li>
52
-                    <li><a href="<?php echo $terms;?>"><?php echo elgg_echo('wet:footTerms');?></a></li>
53
-                    <li><a href="<?php echo $stats;?>"><?php echo elgg_echo('wet:stats');?></a></li>
50
+                    <li><a href="<?php echo $about; ?>"><?php echo elgg_echo('wet:footAbout'); ?></a></li>
51
+                    <li><a href="<?php echo $priv; ?>"><?php echo elgg_echo('wet:footPrivacy'); ?></a></li>
52
+                    <li><a href="<?php echo $terms; ?>"><?php echo elgg_echo('wet:footTerms'); ?></a></li>
53
+                    <li><a href="<?php echo $stats; ?>"><?php echo elgg_echo('wet:stats'); ?></a></li>
54 54
                 </ul>
55 55
             </section>
56 56
 
57 57
             <!-- Help -->
58 58
             <section class="col-sm-3">
59
-                <h3><?php echo elgg_echo('help');?></h3>
59
+                <h3><?php echo elgg_echo('help'); ?></h3>
60 60
                 <ul class="list-unstyled">
61 61
                   <li>
62
-                    <a href="<?php echo $faq;?>"><?php echo elgg_echo('wet:footFAQ');?></a>
62
+                    <a href="<?php echo $faq; ?>"><?php echo elgg_echo('wet:footFAQ'); ?></a>
63 63
                   </li>
64
-                  <?php if(elgg_is_active_plugin('gc_onboard')){ echo '<li><a href="'.elgg_get_site_url().'tutorials">'.elgg_echo('onboard:footTutorials').'</a></li>'; }?>
64
+                  <?php if (elgg_is_active_plugin('gc_onboard')) { echo '<li><a href="' . elgg_get_site_url() . 'tutorials">' . elgg_echo('onboard:footTutorials') . '</a></li>'; }?>
65 65
                   <li><a href="<?php echo elgg_get_site_url() . 'help/knowledgebase/'; ?>"> <?php echo elgg_echo('contactform:help_menu_item'); ?> </a></li>
66 66
                    
67 67
                 </ul>
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
 
70 70
             <!-- Stay Connected -->
71 71
             <section class="col-sm-3">
72
-                <h3><?php echo elgg_echo('wet:footTitleSocial');?></h3>
72
+                <h3><?php echo elgg_echo('wet:footTitleSocial'); ?></h3>
73 73
                 <ul class="list-unstyled">
74
-                <?php if( get_current_language() == "fr" ): ?>
74
+                <?php if (get_current_language() == "fr"): ?>
75 75
                     <li><a href="https://twitter.com/SCT_Canada">Twitter</a></li>
76 76
                 <?php else: ?>
77 77
                     <li><a href="https://twitter.com/TBS_Canada">Twitter</a></li>
@@ -82,13 +82,13 @@  discard block
 block discarded – undo
82 82
             </section>
83 83
 
84 84
             <section class="col-sm-3">
85
-                <?php if( $user->user_type === 'federal' ): ?>
86
-                    <h3><?php echo elgg_echo('wet:footGCtools');?></h3>
85
+                <?php if ($user->user_type === 'federal'): ?>
86
+                    <h3><?php echo elgg_echo('wet:footGCtools'); ?></h3>
87 87
                     <ul class="list-unstyled">
88
-                        <li><a href="<?php echo elgg_echo('wet:gcpediaLink');?>">GC<?php echo elgg_echo('wet:barGCpedia');?></a></li>
89
-                        <li><a href="<?php echo elgg_echo('wet:gcintranetLink-toolsFoot');?>">GCintranet</a></li>
90
-                        <li><a href="<?php echo elgg_echo('wet:gcdirectoryLink');?>">GC<?php echo elgg_echo('wet:barDirectory');?></a></li>
91
-                        <li><a href="<?php echo elgg_echo('wet:gcconnexLink');?>">GCconnex</a></li>
88
+                        <li><a href="<?php echo elgg_echo('wet:gcpediaLink'); ?>">GC<?php echo elgg_echo('wet:barGCpedia'); ?></a></li>
89
+                        <li><a href="<?php echo elgg_echo('wet:gcintranetLink-toolsFoot'); ?>">GCintranet</a></li>
90
+                        <li><a href="<?php echo elgg_echo('wet:gcdirectoryLink'); ?>">GC<?php echo elgg_echo('wet:barDirectory'); ?></a></li>
91
+                        <li><a href="<?php echo elgg_echo('wet:gcconnexLink'); ?>">GCconnex</a></li>
92 92
                     </ul>
93 93
                 <?php endif; ?>
94 94
             </section>
Please login to merge, or discard this patch.
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,8 +37,9 @@  discard block
 block discarded – undo
37 37
 
38 38
         <?php
39 39
         //Test is the user is logged in and give them links to register in the footer
40
-        if (!elgg_is_logged_in())
41
-            echo elgg_view('page/elements/footer_register', $vars);
40
+        if (!elgg_is_logged_in()) {
41
+                    echo elgg_view('page/elements/footer_register', $vars);
42
+        }
42 43
         ?>
43 44
 
44 45
         <div class="row">
@@ -73,9 +74,12 @@  discard block
 block discarded – undo
73 74
                 <ul class="list-unstyled">
74 75
                 <?php if( get_current_language() == "fr" ): ?>
75 76
                     <li><a href="https://twitter.com/SCT_Canada">Twitter</a></li>
76
-                <?php else: ?>
77
+                <?php else {
78
+	: ?>
77 79
                     <li><a href="https://twitter.com/TBS_Canada">Twitter</a></li>
78
-                <?php endif; ?>
80
+                <?php endif;
81
+}
82
+?>
79 83
                     <!-- <li><a href="https://twitter.com/GCcollab">Twitter</a></li> -->
80 84
                     <li><a href="https://github.com/gctools-outilsgc/GCcollab">GitHub</a></li>
81 85
                 </ul>
Please login to merge, or discard this patch.
mod/gccollab_theme/views/default/page/elements/user_menu.php 2 patches
Indentation   +91 added lines, -91 removed lines patch added patch discarded remove patch
@@ -22,19 +22,19 @@  discard block
 block discarded – undo
22 22
 $email = elgg_get_logged_in_user_entity()->email;
23 23
 
24 24
 elgg_register_menu_item('user_menu', array(
25
-    'name' => 'Invite',
26
-    'text' => elgg_echo('invite'),
27
-    'title' => elgg_echo('invite'),
28
-    'item_class' => 'btn btn-primary mrs',
29
-    'class' => '',
30
-    'style' => "color: #fff;",
31
-    'priority' => '-1',
32
-    'href' => elgg_get_site_url() . "invite/" . $user,
25
+	'name' => 'Invite',
26
+	'text' => elgg_echo('invite'),
27
+	'title' => elgg_echo('invite'),
28
+	'item_class' => 'btn btn-primary mrs',
29
+	'class' => '',
30
+	'style' => "color: #fff;",
31
+	'priority' => '-1',
32
+	'href' => elgg_get_site_url() . "invite/" . $user,
33 33
 ));
34 34
 
35 35
 elgg_register_menu_item('user_menu_subMenu', array(
36
-    'name' => 'profile_card',
37
-    'text' => elgg_view('page/elements/profile_card'),
36
+	'name' => 'profile_card',
37
+	'text' => elgg_view('page/elements/profile_card'),
38 38
 ));
39 39
 
40 40
 $dropdown = elgg_view_menu('user_menu_subMenu', array('class' => 'dropdown-menu user-menu pull-right subMenu'));
@@ -48,15 +48,15 @@  discard block
 block discarded – undo
48 48
 //admin link
49 49
 //check to see if user is an admin
50 50
 if(elgg_is_admin_logged_in()) {
51
-    elgg_register_menu_item('user_menu', array(
52
-        'name' => 'Admin',
53
-        'href' => $site_url . 'admin',
54
-        'text' => '<i class="fa fa-wrench fa-lg mrgn-rght-sm"></i>',
55
-        'title' => 'Admin',
56
-        'item_class' => 'brdr-rght',
57
-        'class' => '',
58
-        'priority' => '0',
59
-    ));
51
+	elgg_register_menu_item('user_menu', array(
52
+		'name' => 'Admin',
53
+		'href' => $site_url . 'admin',
54
+		'text' => '<i class="fa fa-wrench fa-lg mrgn-rght-sm"></i>',
55
+		'title' => 'Admin',
56
+		'item_class' => 'brdr-rght',
57
+		'class' => '',
58
+		'priority' => '0',
59
+	));
60 60
 }
61 61
 
62 62
 
@@ -65,119 +65,119 @@  discard block
 block discarded – undo
65 65
 $breakup = explode('.', $email);
66 66
 $initials = substr($breakup[0], 0, 1) . substr($breakup[1], 0, 1);
67 67
 if ($user_avatar) { //show avatar if they have one
68
-    //EW - render to display badge instead
69
-    $dropdown_avatar = elgg_view_entity_icon(elgg_get_logged_in_user_entity(), 'small', array('use_hover' => false, 'use_link' => false, 'class' => 'userMenuAvatar'));
68
+	//EW - render to display badge instead
69
+	$dropdown_avatar = elgg_view_entity_icon(elgg_get_logged_in_user_entity(), 'small', array('use_hover' => false, 'use_link' => false, 'class' => 'userMenuAvatar'));
70 70
 } else { // show initials if the don't
71
-    $dropdown_avatar = '<span class="init-badge">' . strtoupper($initials) . '</span>';
71
+	$dropdown_avatar = '<span class="init-badge">' . strtoupper($initials) . '</span>';
72 72
 }
73 73
 
74 74
 //create user menu
75 75
 elgg_register_menu_item('user_menu', array(
76
-    'name' => 'Profile',
77
-    'text' => $dropdown_avatar . $dropdown,
78
-    'title' => elgg_echo('userMenu:usermenuTitle'),
79
-    'item_class' => 'brdr-lft dropdown',
80
-    'data-toggle' => 'dropdown',
81
-    'class' => 'dropdown-toggle  dropdownToggle dd-close',
82
-    'priority' => '3',
83
-    'aria-hidden' => 'true',
84
-    'tab-index'=>'0', //If the tab index is gone perhaps the screen reader will skip it? What about sighted people with out mouse, need to test, just an idea :3
85
-    //Google has some kind of tab loop when the the card is open, so when the user tabs they only tab through the options in the card
86
-    ));
76
+	'name' => 'Profile',
77
+	'text' => $dropdown_avatar . $dropdown,
78
+	'title' => elgg_echo('userMenu:usermenuTitle'),
79
+	'item_class' => 'brdr-lft dropdown',
80
+	'data-toggle' => 'dropdown',
81
+	'class' => 'dropdown-toggle  dropdownToggle dd-close',
82
+	'priority' => '3',
83
+	'aria-hidden' => 'true',
84
+	'tab-index'=>'0', //If the tab index is gone perhaps the screen reader will skip it? What about sighted people with out mouse, need to test, just an idea :3
85
+	//Google has some kind of tab loop when the the card is open, so when the user tabs they only tab through the options in the card
86
+	));
87 87
 
88 88
 
89 89
 //screen reader links
90 90
 elgg_register_menu_item('user_menu', array(
91
-    'name' => 'sr_profile',
92
-    'text' => elgg_echo('userMenu:profile'),
93
-    'href' => 'profile/'.elgg_get_logged_in_user_entity()->username,
94
-    'item_class' => 'wb-invisible sr_menu_item',
95
-    'tabindex' => '-1',
91
+	'name' => 'sr_profile',
92
+	'text' => elgg_echo('userMenu:profile'),
93
+	'href' => 'profile/'.elgg_get_logged_in_user_entity()->username,
94
+	'item_class' => 'wb-invisible sr_menu_item',
95
+	'tabindex' => '-1',
96 96
 ));
97 97
 
98 98
 elgg_register_menu_item('user_menu', array(
99
-    'name' => 'sr_account',
100
-    'text' => elgg_echo('userMenu:account'),
101
-    'href' => 'settings/user/'.elgg_get_logged_in_user_entity()->username,
102
-    'item_class' => 'wb-invisible sr_menu_item',
103
-    'tabindex' => '-1',
99
+	'name' => 'sr_account',
100
+	'text' => elgg_echo('userMenu:account'),
101
+	'href' => 'settings/user/'.elgg_get_logged_in_user_entity()->username,
102
+	'item_class' => 'wb-invisible sr_menu_item',
103
+	'tabindex' => '-1',
104 104
 ));
105 105
 
106 106
 elgg_register_menu_item('user_menu', array(
107
-    'name' => 'sr_logout',
108
-    'text' => elgg_echo('logout'),
109
-    'href' => 'action/logout',
110
-    'item_class' => 'wb-invisible sr_menu_item',
111
-    'tabindex' => '-1',
107
+	'name' => 'sr_logout',
108
+	'text' => elgg_echo('logout'),
109
+	'href' => 'action/logout',
110
+	'item_class' => 'wb-invisible sr_menu_item',
111
+	'tabindex' => '-1',
112 112
 ));
113 113
 
114 114
 
115 115
 //display new message badge on messages
116 116
 if (elgg_is_active_plugin('messages')) {
117
-    $unread = messages_count_unread_inbox();
117
+	$unread = messages_count_unread_inbox();
118 118
 
119
-    $title = ' - ' . $unread . ' ' . elgg_echo('messages:unreadmessages');
119
+	$title = ' - ' . $unread . ' ' . elgg_echo('messages:unreadmessages');
120 120
 
121
-    //display 9+ insted of huge numbers in notif badge
122
-    if ($unread >= 10) {
123
-        //$unread = '9+';
124
-    }
121
+	//display 9+ insted of huge numbers in notif badge
122
+	if ($unread >= 10) {
123
+		//$unread = '9+';
124
+	}
125 125
 
126
-    $msgbadge = "<span aria-hidden='true' class='notif-badge'>" . $unread . "</span>";
126
+	$msgbadge = "<span aria-hidden='true' class='notif-badge'>" . $unread . "</span>";
127 127
 
128
-    if ($unread == 0) {
129
-        $msgbadge = '';
130
-        $title = '';
131
-    }
128
+	if ($unread == 0) {
129
+		$msgbadge = '';
130
+		$title = '';
131
+	}
132 132
 }
133 133
 
134 134
 // messages inbox menu item
135 135
 //Nick - Removed the href and created my own in the text to hold hidden messages dropdown
136 136
 elgg_register_menu_item('user_menu', array(
137
-    'name' => 'messages',
138
-    'text' => '<i class="fa fa-envelope mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden" aria-hidden="true">' . elgg_echo('messages') . '</span>' . $msgbadge .'<span class="wb-inv">'.elgg_echo('userMenu:messages') . $title.' </span>'.$focus_dd .$ajax_dd_messages,
139
-    'title' => elgg_echo('userMenu:messages') . $title,
140
-    'item_class' => 'brdr-lft messagesLabel close-msg-dd',
141
-    'data-toggle' => '',
142
-    'id'=>'messagesLabel',
143
-    'class' => '',
144
-    'data-dd-type'=>'msg_dd',
145
-    'priority' => '2',
146
-    'href' => elgg_get_site_url().'messages/inbox/' . $user,
137
+	'name' => 'messages',
138
+	'text' => '<i class="fa fa-envelope mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden" aria-hidden="true">' . elgg_echo('messages') . '</span>' . $msgbadge .'<span class="wb-inv">'.elgg_echo('userMenu:messages') . $title.' </span>'.$focus_dd .$ajax_dd_messages,
139
+	'title' => elgg_echo('userMenu:messages') . $title,
140
+	'item_class' => 'brdr-lft messagesLabel close-msg-dd',
141
+	'data-toggle' => '',
142
+	'id'=>'messagesLabel',
143
+	'class' => '',
144
+	'data-dd-type'=>'msg_dd',
145
+	'priority' => '2',
146
+	'href' => elgg_get_site_url().'messages/inbox/' . $user,
147 147
 
148
-    ));
148
+	));
149 149
 
150 150
 
151 151
 //display new message badge on messages
152 152
 if (elgg_is_active_plugin('messages')) {
153
-    $unread = messages_count_unread_notifications();
153
+	$unread = messages_count_unread_notifications();
154 154
 
155
-    $title = ' - ' . $unread . ' ' . elgg_echo('messages:unreadmessages');
155
+	$title = ' - ' . $unread . ' ' . elgg_echo('messages:unreadmessages');
156 156
 
157
-    //display 9+ insted of huge numbers in notif badge
158
-    if ($unread >= 10) {
159
-        //$unread = '9+';
160
-    }
157
+	//display 9+ insted of huge numbers in notif badge
158
+	if ($unread >= 10) {
159
+		//$unread = '9+';
160
+	}
161 161
 
162
-    $msgbadge = "<span aria-hidden='true' class='notif-badge'>" . $unread . "</span>";
162
+	$msgbadge = "<span aria-hidden='true' class='notif-badge'>" . $unread . "</span>";
163 163
 
164
-    if ($unread == 0) {
165
-        $msgbadge = '';
166
-        $title = '';
167
-    }
164
+	if ($unread == 0) {
165
+		$msgbadge = '';
166
+		$title = '';
167
+	}
168 168
 }
169 169
 
170 170
 // notifications inbox menu item
171 171
 elgg_register_menu_item('user_menu', array(
172
-    'name' => 'notifications',
173
-    'text' =>'<i class="fa fa-bell mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden" aria-hidden="true">' . elgg_echo('notifications:subscriptions:changesettings') . '</span>' . $msgbadge .'<span class="wb-inv">'.elgg_echo('userMenu:notifications') . $title.' </span>'.$focus_dd.'<div>'.$ajax_dd_notification.'</div>',
174
-    'title' => elgg_echo('userMenu:notifications') . $title,
175
-    'item_class' => 'brdr-lft messagesLabel close-notif-dd',
176
-    'class' => '',
177
-    'priority' => '2',
178
-    'data-dd-type'=>'notif_dd',
179
-    'href' => elgg_get_site_url()."messages/notifications/" . $user,
180
-    ));
172
+	'name' => 'notifications',
173
+	'text' =>'<i class="fa fa-bell mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden" aria-hidden="true">' . elgg_echo('notifications:subscriptions:changesettings') . '</span>' . $msgbadge .'<span class="wb-inv">'.elgg_echo('userMenu:notifications') . $title.' </span>'.$focus_dd.'<div>'.$ajax_dd_notification.'</div>',
174
+	'title' => elgg_echo('userMenu:notifications') . $title,
175
+	'item_class' => 'brdr-lft messagesLabel close-notif-dd',
176
+	'class' => '',
177
+	'priority' => '2',
178
+	'data-dd-type'=>'notif_dd',
179
+	'href' => elgg_get_site_url()."messages/notifications/" . $user,
180
+	));
181 181
 
182 182
 
183 183
 /*
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 // cyu - remove the user menu when the gsa hits the page
190 190
 if (elgg_is_active_plugin('gc_fedsearch_gsa') && ((!$gsa_usertest) && strcmp($gsa_agentstring,strtolower($_SERVER['HTTP_USER_AGENT'])) == 0) || strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'gsa-crawler') !== false )
191 191
 {
192
-    // do nothing
192
+	// do nothing
193 193
 } else {
194 194
 	echo elgg_view_menu('user_menu', array('sort_by' => 'priority', 'id' => 'userMenu', 'class' => 'list-inline visited-link'));
195 195
 }
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -39,15 +39,15 @@  discard block
 block discarded – undo
39 39
 
40 40
 $dropdown = elgg_view_menu('user_menu_subMenu', array('class' => 'dropdown-menu user-menu pull-right subMenu'));
41 41
 
42
-$ajax_dd_messages = '<div aria-hidden="true" id="msg_dd" class="dropdown-menu user-menu-message-dd message-dd-position subMenu">'. elgg_view('page/elements/messages_dd') . '</div>';
42
+$ajax_dd_messages = '<div aria-hidden="true" id="msg_dd" class="dropdown-menu user-menu-message-dd message-dd-position subMenu">' . elgg_view('page/elements/messages_dd') . '</div>';
43 43
 
44
-$ajax_dd_notification = '<div aria-hidden="true" id="notif_dd"  class="dropdown-menu user-menu-message-dd notif-dd-position subMenu">'. elgg_view('page/elements/notifications_dd') . '</div>';
44
+$ajax_dd_notification = '<div aria-hidden="true" id="notif_dd"  class="dropdown-menu user-menu-message-dd notif-dd-position subMenu">' . elgg_view('page/elements/notifications_dd') . '</div>';
45 45
 
46
-$focus_dd = '<a href="#" class="focus_dd_link" style="display:none;"><i class="fa fa-caret-down" aria-hidden="true"></i><span class="wb-inv">'.elgg_echo('wet:dd:expand').'</span></a>';
46
+$focus_dd = '<a href="#" class="focus_dd_link" style="display:none;"><i class="fa fa-caret-down" aria-hidden="true"></i><span class="wb-inv">' . elgg_echo('wet:dd:expand') . '</span></a>';
47 47
 
48 48
 //admin link
49 49
 //check to see if user is an admin
50
-if(elgg_is_admin_logged_in()) {
50
+if (elgg_is_admin_logged_in()) {
51 51
     elgg_register_menu_item('user_menu', array(
52 52
         'name' => 'Admin',
53 53
         'href' => $site_url . 'admin',
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 elgg_register_menu_item('user_menu', array(
91 91
     'name' => 'sr_profile',
92 92
     'text' => elgg_echo('userMenu:profile'),
93
-    'href' => 'profile/'.elgg_get_logged_in_user_entity()->username,
93
+    'href' => 'profile/' . elgg_get_logged_in_user_entity()->username,
94 94
     'item_class' => 'wb-invisible sr_menu_item',
95 95
     'tabindex' => '-1',
96 96
 ));
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 elgg_register_menu_item('user_menu', array(
99 99
     'name' => 'sr_account',
100 100
     'text' => elgg_echo('userMenu:account'),
101
-    'href' => 'settings/user/'.elgg_get_logged_in_user_entity()->username,
101
+    'href' => 'settings/user/' . elgg_get_logged_in_user_entity()->username,
102 102
     'item_class' => 'wb-invisible sr_menu_item',
103 103
     'tabindex' => '-1',
104 104
 ));
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 //Nick - Removed the href and created my own in the text to hold hidden messages dropdown
136 136
 elgg_register_menu_item('user_menu', array(
137 137
     'name' => 'messages',
138
-    'text' => '<i class="fa fa-envelope mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden" aria-hidden="true">' . elgg_echo('messages') . '</span>' . $msgbadge .'<span class="wb-inv">'.elgg_echo('userMenu:messages') . $title.' </span>'.$focus_dd .$ajax_dd_messages,
138
+    'text' => '<i class="fa fa-envelope mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden" aria-hidden="true">' . elgg_echo('messages') . '</span>' . $msgbadge . '<span class="wb-inv">' . elgg_echo('userMenu:messages') . $title . ' </span>' . $focus_dd . $ajax_dd_messages,
139 139
     'title' => elgg_echo('userMenu:messages') . $title,
140 140
     'item_class' => 'brdr-lft messagesLabel close-msg-dd',
141 141
     'data-toggle' => '',
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     'class' => '',
144 144
     'data-dd-type'=>'msg_dd',
145 145
     'priority' => '2',
146
-    'href' => elgg_get_site_url().'messages/inbox/' . $user,
146
+    'href' => elgg_get_site_url() . 'messages/inbox/' . $user,
147 147
 
148 148
     ));
149 149
 
@@ -170,13 +170,13 @@  discard block
 block discarded – undo
170 170
 // notifications inbox menu item
171 171
 elgg_register_menu_item('user_menu', array(
172 172
     'name' => 'notifications',
173
-    'text' =>'<i class="fa fa-bell mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden" aria-hidden="true">' . elgg_echo('notifications:subscriptions:changesettings') . '</span>' . $msgbadge .'<span class="wb-inv">'.elgg_echo('userMenu:notifications') . $title.' </span>'.$focus_dd.'<div>'.$ajax_dd_notification.'</div>',
173
+    'text' =>'<i class="fa fa-bell mrgn-rght-sm mrgn-tp-sm fa-lg"></i><span class="hidden" aria-hidden="true">' . elgg_echo('notifications:subscriptions:changesettings') . '</span>' . $msgbadge . '<span class="wb-inv">' . elgg_echo('userMenu:notifications') . $title . ' </span>' . $focus_dd . '<div>' . $ajax_dd_notification . '</div>',
174 174
     'title' => elgg_echo('userMenu:notifications') . $title,
175 175
     'item_class' => 'brdr-lft messagesLabel close-notif-dd',
176 176
     'class' => '',
177 177
     'priority' => '2',
178 178
     'data-dd-type'=>'notif_dd',
179
-    'href' => elgg_get_site_url()."messages/notifications/" . $user,
179
+    'href' => elgg_get_site_url() . "messages/notifications/" . $user,
180 180
     ));
181 181
 
182 182
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 */
188 188
 
189 189
 // cyu - remove the user menu when the gsa hits the page
190
-if (elgg_is_active_plugin('gc_fedsearch_gsa') && ((!$gsa_usertest) && strcmp($gsa_agentstring,strtolower($_SERVER['HTTP_USER_AGENT'])) == 0) || strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'gsa-crawler') !== false )
190
+if (elgg_is_active_plugin('gc_fedsearch_gsa') && ((!$gsa_usertest) && strcmp($gsa_agentstring, strtolower($_SERVER['HTTP_USER_AGENT'])) == 0) || strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'gsa-crawler') !== false)
191 191
 {
192 192
     // do nothing
193 193
 } else {
Please login to merge, or discard this patch.
mod/gccollab_theme/views/default/contactform/form.php 3 patches
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -24,27 +24,27 @@  discard block
 block discarded – undo
24 24
     
25 25
 
26 26
 <?php 
27
-    $disable_feedback = elgg_get_plugin_setting('disable_feedback','contactform');
28
-    $english_notice = elgg_get_plugin_setting('disable_feedback_message_en','contactform');
29
-    $french_notice = elgg_get_plugin_setting('disable_feedback_message_fr','contactform');
30
-    if (strcmp($disable_feedback,'yes') == 0) {
31
-
32
-        if (strcmp($_COOKIE['connex_lang'], 'fr') == 0 )
33
-            echo "<div align='center' style='padding:5px 5px 5px 5px;'> {$french_notice} </div>";
34
-        else
35
-            echo "<div align='center' style='padding:5px 5px 5px 5px;'> {$english_notice} </div>";
27
+	$disable_feedback = elgg_get_plugin_setting('disable_feedback','contactform');
28
+	$english_notice = elgg_get_plugin_setting('disable_feedback_message_en','contactform');
29
+	$french_notice = elgg_get_plugin_setting('disable_feedback_message_fr','contactform');
30
+	if (strcmp($disable_feedback,'yes') == 0) {
31
+
32
+		if (strcmp($_COOKIE['connex_lang'], 'fr') == 0 )
33
+			echo "<div align='center' style='padding:5px 5px 5px 5px;'> {$french_notice} </div>";
34
+		else
35
+			echo "<div align='center' style='padding:5px 5px 5px 5px;'> {$english_notice} </div>";
36 36
     
37
-    } else {
37
+	} else {
38 38
 ?>
39 39
     <div class="panel-body mrgn-lft-md">
40 40
         <?php echo elgg_echo('contactform:content:form'); ?>
41 41
         
42 42
         <?php 
43
-            $site = elgg_get_site_entity();
44
-            // security, all forms need tokens when action is called
45
-            $__elgg_ts = time();
46
-            $__elgg_token = generate_action_token($__elgg_ts);
47
-        ?>
43
+			$site = elgg_get_site_entity();
44
+			// security, all forms need tokens when action is called
45
+			$__elgg_ts = time();
46
+			$__elgg_token = generate_action_token($__elgg_ts);
47
+		?>
48 48
         <form action="<?php echo "{$site->url}action/contactform/send_feedback"; ?>">        
49 49
             <input type="hidden" name="__elgg_ts" value="<?php echo $__elgg_ts; ?>" />
50 50
             <input type="hidden" name="__elgg_token" value="<?php echo $__elgg_token; ?>" />
@@ -54,26 +54,26 @@  discard block
 block discarded – undo
54 54
             <div class='form-group'>
55 55
                 <label for='name' class="required"><span class="field-name"><?php echo elgg_echo('contactform:fullname'); ?></span></label>
56 56
             <?php
57
-                echo elgg_view('input/text', array(
58
-                    'name' => 'name',
59
-                    'id' => 'name',
60
-                    'value' => $user_fullname,
61
-                    'required' => true 
62
-                ));
63
-            ?>
57
+				echo elgg_view('input/text', array(
58
+					'name' => 'name',
59
+					'id' => 'name',
60
+					'value' => $user_fullname,
61
+					'required' => true 
62
+				));
63
+			?>
64 64
              </div>
65 65
 
66 66
             <!-- email address -->
67 67
             <div class='form-group'>
68 68
                 <label for='email' class="required"><span class="field-name"><?php echo elgg_echo('contactform:email'); ?></span></label>
69 69
             <?php
70
-                echo elgg_view('input/text', array(
71
-                    'name' => 'email',
72
-                    'id' => 'email',
73
-                    'value' => $user_email,
74
-                    'required' => true
75
-                ));
76
-            ?>
70
+				echo elgg_view('input/text', array(
71
+					'name' => 'email',
72
+					'id' => 'email',
73
+					'value' => $user_email,
74
+					'required' => true
75
+				));
76
+			?>
77 77
             </div>
78 78
 
79 79
             <!-- category -->
@@ -81,40 +81,40 @@  discard block
 block discarded – undo
81 81
                 <label for='reason' class="required"><span class="field-name"><?php echo elgg_echo('contactform:select'); ?></span></label>
82 82
             <?php
83 83
 
84
-                // get the selected language
85
-                if (strcmp($SESSION['language'], 'fr') == 0 )
86
-                    $language_selected = 'francais';
87
-                else
88
-                    $language_selected = 'english';
84
+				// get the selected language
85
+				if (strcmp($SESSION['language'], 'fr') == 0 )
86
+					$language_selected = 'francais';
87
+				else
88
+					$language_selected = 'english';
89 89
 
90
-                // run a query to get all the categories for the feedback type
91
-                $query = "SELECT id, {$language_selected} FROM contact_list";
92
-                $feedback_types = get_data($query);
90
+				// run a query to get all the categories for the feedback type
91
+				$query = "SELECT id, {$language_selected} FROM contact_list";
92
+				$feedback_types = get_data($query);
93 93
 
94
-                // create the options
95
-                $options['na'] = elgg_echo('contactform:reason');
96
-                foreach ($feedback_types as $feedback_type)
97
-                    $options[$feedback_type->$language_selected] = $feedback_type->$language_selected;
94
+				// create the options
95
+				$options['na'] = elgg_echo('contactform:reason');
96
+				foreach ($feedback_types as $feedback_type)
97
+					$options[$feedback_type->$language_selected] = $feedback_type->$language_selected;
98 98
    
99
-                echo elgg_view('input/select', array(
100
-                    'name' => 'reason',
101
-                    'id' => 'reason',
102
-                    'options' => $options,
103
-                    'required' => true
104
-                ));
105
-            ?>
99
+				echo elgg_view('input/select', array(
100
+					'name' => 'reason',
101
+					'id' => 'reason',
102
+					'options' => $options,
103
+					'required' => true
104
+				));
105
+			?>
106 106
             </div>
107 107
 
108 108
             <!-- message -->
109 109
             <div class='form-group'>
110 110
                 <label for='message' class="required"><span class="field-name"><?php echo elgg_echo('contactform:message');?></span></label>
111 111
            <?php
112
-                echo elgg_view('input/longtext', array(
113
-                    'name' => 'message',
114
-                    'id' => 'message',
115
-                    'required' => true
116
-                ));
117
-            ?>
112
+				echo elgg_view('input/longtext', array(
113
+					'name' => 'message',
114
+					'id' => 'message',
115
+					'required' => true
116
+				));
117
+			?>
118 118
             </div>
119 119
 
120 120
             <div class='container pull-right'>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 $user_email = $current_user->email;
12 12
 $user_department = $current_user->department;
13 13
 
14
-$email = elgg_get_plugin_setting('email','contactform');
14
+$email = elgg_get_plugin_setting('email', 'contactform');
15 15
 
16 16
 ?>
17 17
 
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
     
25 25
 
26 26
 <?php 
27
-    $disable_feedback = elgg_get_plugin_setting('disable_feedback','contactform');
28
-    $english_notice = elgg_get_plugin_setting('disable_feedback_message_en','contactform');
29
-    $french_notice = elgg_get_plugin_setting('disable_feedback_message_fr','contactform');
30
-    if (strcmp($disable_feedback,'yes') == 0) {
27
+    $disable_feedback = elgg_get_plugin_setting('disable_feedback', 'contactform');
28
+    $english_notice = elgg_get_plugin_setting('disable_feedback_message_en', 'contactform');
29
+    $french_notice = elgg_get_plugin_setting('disable_feedback_message_fr', 'contactform');
30
+    if (strcmp($disable_feedback, 'yes') == 0) {
31 31
 
32
-        if (strcmp($_COOKIE['connex_lang'], 'fr') == 0 )
32
+        if (strcmp($_COOKIE['connex_lang'], 'fr') == 0)
33 33
             echo "<div align='center' style='padding:5px 5px 5px 5px;'> {$french_notice} </div>";
34 34
         else
35 35
             echo "<div align='center' style='padding:5px 5px 5px 5px;'> {$english_notice} </div>";
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             <?php
83 83
 
84 84
                 // get the selected language
85
-                if (strcmp($SESSION['language'], 'fr') == 0 )
85
+                if (strcmp($SESSION['language'], 'fr') == 0)
86 86
                     $language_selected = 'francais';
87 87
                 else
88 88
                     $language_selected = 'english';
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
             <!-- message -->
109 109
             <div class='form-group'>
110
-                <label for='message' class="required"><span class="field-name"><?php echo elgg_echo('contactform:message');?></span></label>
110
+                <label for='message' class="required"><span class="field-name"><?php echo elgg_echo('contactform:message'); ?></span></label>
111 111
            <?php
112 112
                 echo elgg_view('input/longtext', array(
113 113
                     'name' => 'message',
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             </div>
119 119
 
120 120
             <div class='container pull-right'>
121
-                <input type='submit' class="btn btn-primary pull-right" name='Submit' value='<?php echo elgg_echo('send');?>' />
121
+                <input type='submit' class="btn btn-primary pull-right" name='Submit' value='<?php echo elgg_echo('send'); ?>' />
122 122
             </div>
123 123
         </form>
124 124
     </div>
Please login to merge, or discard this patch.
Braces   +13 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,10 +29,11 @@  discard block
 block discarded – undo
29 29
     $french_notice = elgg_get_plugin_setting('disable_feedback_message_fr','contactform');
30 30
     if (strcmp($disable_feedback,'yes') == 0) {
31 31
 
32
-        if (strcmp($_COOKIE['connex_lang'], 'fr') == 0 )
33
-            echo "<div align='center' style='padding:5px 5px 5px 5px;'> {$french_notice} </div>";
34
-        else
35
-            echo "<div align='center' style='padding:5px 5px 5px 5px;'> {$english_notice} </div>";
32
+        if (strcmp($_COOKIE['connex_lang'], 'fr') == 0 ) {
33
+                    echo "<div align='center' style='padding:5px 5px 5px 5px;'> {$french_notice} </div>";
34
+        } else {
35
+                    echo "<div align='center' style='padding:5px 5px 5px 5px;'> {$english_notice} </div>";
36
+        }
36 37
     
37 38
     } else {
38 39
 ?>
@@ -82,10 +83,11 @@  discard block
 block discarded – undo
82 83
             <?php
83 84
 
84 85
                 // get the selected language
85
-                if (strcmp($SESSION['language'], 'fr') == 0 )
86
-                    $language_selected = 'francais';
87
-                else
88
-                    $language_selected = 'english';
86
+                if (strcmp($SESSION['language'], 'fr') == 0 ) {
87
+                                    $language_selected = 'francais';
88
+                } else {
89
+                                    $language_selected = 'english';
90
+                }
89 91
 
90 92
                 // run a query to get all the categories for the feedback type
91 93
                 $query = "SELECT id, {$language_selected} FROM contact_list";
@@ -93,8 +95,9 @@  discard block
 block discarded – undo
93 95
 
94 96
                 // create the options
95 97
                 $options['na'] = elgg_echo('contactform:reason');
96
-                foreach ($feedback_types as $feedback_type)
97
-                    $options[$feedback_type->$language_selected] = $feedback_type->$language_selected;
98
+                foreach ($feedback_types as $feedback_type) {
99
+                                    $options[$feedback_type->$language_selected] = $feedback_type->$language_selected;
100
+                }
98 101
    
99 102
                 echo elgg_view('input/select', array(
100 103
                     'name' => 'reason',
Please login to merge, or discard this patch.
mod/ideas/actions/ideas/editidea.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
 	forward(REFERER);
15 15
 } else {
16 16
 	$idea = get_entity($guid);
17
-    $container_guid = (int)get_input('container_guid', elgg_get_page_owner_guid());
17
+	$container_guid = (int)get_input('container_guid', elgg_get_page_owner_guid());
18 18
 
19
-    $owner = get_entity($container_guid);
19
+	$owner = get_entity($container_guid);
20 20
 }
21 21
 
22 22
 $title = strip_tags(get_input('title'));
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,12 +9,12 @@  discard block
 block discarded – undo
9 9
 
10 10
 elgg_make_sticky_form('idea');
11 11
 
12
-if (is_null( $guid = get_input('guid') )) {
12
+if (is_null($guid = get_input('guid'))) {
13 13
 	system_message(elgg_echo('ideas:idea:save:failed'));
14 14
 	forward(REFERER);
15 15
 } else {
16 16
 	$idea = get_entity($guid);
17
-    $container_guid = (int)get_input('container_guid', elgg_get_page_owner_guid());
17
+    $container_guid = (int) get_input('container_guid', elgg_get_page_owner_guid());
18 18
 
19 19
     $owner = get_entity($container_guid);
20 20
 }
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
 	forward(REFERER);
37 37
 }
38 38
 
39
-if($description && $description2){
40
-	$description = $description .'->'. $description2;
41
-}else if (!$description && $description2){
39
+if ($description && $description2) {
40
+	$description = $description . '->' . $description2;
41
+} else if (!$description && $description2) {
42 42
 	$description = $description2;
43 43
 }
44 44
 
45 45
 $idea->title = $title;
46 46
 $idea->description = gc_implode_translation($description1, $description2);
47
-$idea->access_id =$owner->access_id;
47
+$idea->access_id = $owner->access_id;
48 48
 $idea->tags = string_to_tag_array($tags);
49 49
 
50 50
 if ($idea->save()) {
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,8 +22,12 @@  discard block
 block discarded – undo
22 22
 $title = strip_tags(get_input('title'));
23 23
 $title2 = strip_tags(get_input('title2'));
24 24
 
25
-if (!$title) $title = $idea->title;
26
-if (!$title2) $title2 = $idea->title2;
25
+if (!$title) {
26
+	$title = $idea->title;
27
+}
28
+if (!$title2) {
29
+	$title2 = $idea->title2;
30
+}
27 31
 
28 32
 $description = $description1 = get_input('description');
29 33
 $description2 = get_input('description2');
@@ -38,7 +42,7 @@  discard block
 block discarded – undo
38 42
 
39 43
 if($description && $description2){
40 44
 	$description = $description .'->'. $description2;
41
-}else if (!$description && $description2){
45
+} else if (!$description && $description2){
42 46
 	$description = $description2;
43 47
 }
44 48
 
Please login to merge, or discard this patch.
mod/ideas/actions/ideas/saveidea.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 $description = $description1 = get_input('description');
19 19
 $description2 = get_input('description2');
20 20
 $tags = get_input('tags');
21
-$guid = (int)get_input('guid');
22
-$container_guid = (int)get_input('container_guid', elgg_get_page_owner_guid());
21
+$guid = (int) get_input('guid');
22
+$container_guid = (int) get_input('container_guid', elgg_get_page_owner_guid());
23 23
 
24 24
 $owner = get_entity($container_guid);
25 25
 
@@ -53,15 +53,15 @@  discard block
 block discarded – undo
53 53
 }
54 54
 
55 55
 	
56
-if($title && $title2){
57
-	$title = $title .'->'. $title2;
58
-}else if (!$title && $title2){
56
+if ($title && $title2) {
57
+	$title = $title . '->' . $title2;
58
+} else if (!$title && $title2) {
59 59
 	$title = $title2;
60 60
 }
61 61
 
62
-if($description && $description2){
63
-	$description = $description .'->'. $description2;
64
-}else if (!$description && $description2){
62
+if ($description && $description2) {
63
+	$description = $description . '->' . $description2;
64
+} else if (!$description && $description2) {
65 65
 	$description = $description2;
66 66
 }
67 67
 
@@ -84,16 +84,16 @@  discard block
 block discarded – undo
84 84
 	system_message(elgg_echo('ideas:idea:save:success'));
85 85
 
86 86
 	// if this is a New idea, automatically "like" by current user and add to river
87
-	if ($new ) {
87
+	if ($new) {
88 88
 				
89 89
 		$annotation = new ElggObject($idea->getGUID());
90
-		if ( create_annotation($annotation->getGUID(), 'point', 1, 'integer', $user_guid, $annotation->getAccessID()) ) {
90
+		if (create_annotation($annotation->getGUID(), 'point', 1, 'integer', $user_guid, $annotation->getAccessID())) {
91 91
 		} else {
92 92
 			register_error(elgg_echo('ideas:idea:rate:error'));
93 93
 		}
94 94
         
95 95
 		// what is the river?
96
-		add_to_river('river/object/ideas/create','create', $user_guid, $idea->getGUID());
96
+		add_to_river('river/object/ideas/create', 'create', $user_guid, $idea->getGUID());
97 97
 	}
98 98
 
99 99
 	forward($idea->getURL());
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@
 block discarded – undo
55 55
 	
56 56
 if($title && $title2){
57 57
 	$title = $title .'->'. $title2;
58
-}else if (!$title && $title2){
58
+} else if (!$title && $title2){
59 59
 	$title = $title2;
60 60
 }
61 61
 
62 62
 if($description && $description2){
63 63
 	$description = $description .'->'. $description2;
64
-}else if (!$description && $description2){
64
+} else if (!$description && $description2){
65 65
 	$description = $description2;
66 66
 }
67 67
 
Please login to merge, or discard this patch.
mod/ideas/pages/ideas/editidea.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 }
15 15
 
16 16
 
17
-	elgg_push_breadcrumb(gc_explode_translation($idea->title,$lang), $idea->getURL());
17
+	elgg_push_breadcrumb(gc_explode_translation($idea->title, $lang), $idea->getURL());
18 18
 
19 19
 elgg_push_breadcrumb(elgg_echo('ideas:edit'));
20 20
 
Please login to merge, or discard this patch.
mod/ideas/pages/ideas/new.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 	$title_breadcrumbs = gc_explode_translation($page_owner->title, $lang);
12 12
 
13 13
 
14
-elgg_push_breadcrumb($title_breadcrumbs);;
14
+elgg_push_breadcrumb($title_breadcrumbs); ;
15 15
 elgg_push_breadcrumb(elgg_echo('ideas:filter:new'));
16 16
 
17 17
 if ($page_owner->canEdit() || elgg_is_admin_logged_in()) {
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	));
24 24
 }
25 25
 
26
-$offset = (int)get_input('offset', 0);
26
+$offset = (int) get_input('offset', 0);
27 27
 $order_by = get_input('order', 'desc');
28 28
 
29 29
 $content = elgg_list_entities(array(
Please login to merge, or discard this patch.
mod/ideas/pages/ideas/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 $page_owner = elgg_get_page_owner_entity();
11 11
 
12 12
 
13
-	$crumbs_title = gc_explode_translation($page_owner->title,$lang);
13
+	$crumbs_title = gc_explode_translation($page_owner->title, $lang);
14 14
 
15 15
 
16 16
 if (elgg_instanceof($page_owner, 'group')) {
Please login to merge, or discard this patch.