@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | $params = $params + $vars; |
46 | 46 | $summary = elgg_view('object/elements/summary', $params); |
47 | 47 | |
48 | -$description = gc_explode_translation( $album->description, $lang ); |
|
48 | +$description = gc_explode_translation($album->description, $lang); |
|
49 | 49 | |
50 | 50 | $body = ''; |
51 | -if ( $album->description ) { |
|
51 | +if ($album->description) { |
|
52 | 52 | $body = elgg_view('output/longtext', array( |
53 | 53 | 'value' => $description, |
54 | 54 | 'class' => 'mbm mrgn-bttm-lg', |
@@ -62,18 +62,18 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | $description_json = json_decode($album->description); |
65 | -if( $description_json->en && $description_json->fr ){ |
|
65 | +if ($description_json->en && $description_json->fr) { |
|
66 | 66 | echo'<div id="change_language" class="change_language">'; |
67 | - if (get_current_language() == 'fr'){ |
|
67 | + if (get_current_language() == 'fr') { |
|
68 | 68 | |
69 | 69 | ?> |
70 | - <span id="indicator_language_en" onclick="change_en('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
|
70 | + <span id="indicator_language_en" onclick="change_en('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en; ?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr; ?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
|
71 | 71 | |
72 | 72 | <?php |
73 | - }else{ |
|
73 | + } else { |
|
74 | 74 | ?> |
75 | 75 | |
76 | - <span id="indicator_language_fr" onclick="change_fr('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
|
76 | + <span id="indicator_language_fr" onclick="change_fr('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en; ?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr; ?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
|
77 | 77 | <?php |
78 | 78 | } |
79 | 79 | echo'</div>'; |
@@ -107,7 +107,7 @@ |
||
107 | 107 | <span id="indicator_language_en" onclick="change_en('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
108 | 108 | |
109 | 109 | <?php |
110 | - }else{ |
|
110 | + } else{ |
|
111 | 111 | ?> |
112 | 112 | |
113 | 113 | <span id="indicator_language_fr" onclick="change_fr('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | $img = elgg_view_entity_icon($image, 'large', array( |
39 | 39 | //'href' => $image->getIconURL('master'), |
40 | - 'href' => 'ajax/view/ajax/photo?guid=' . $image->guid, |
|
40 | + 'href' => 'ajax/view/ajax/photo?guid=' . $image->guid, |
|
41 | 41 | 'img_class' => 'tidypics-photo', |
42 | 42 | 'link_class' => 'elgg-lightbox', |
43 | 43 | 'id' => 'img', |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | echo '<div class=" center">'; |
80 | 80 | if ($album->getSize() > 1) { |
81 | - echo elgg_view('object/image/navigation', $vars); |
|
81 | + echo elgg_view('object/image/navigation', $vars); |
|
82 | 82 | } |
83 | 83 | echo elgg_view('photos/tagging/help', $vars); |
84 | 84 | echo elgg_view('photos/tagging/select', $vars); |
@@ -16,19 +16,19 @@ |
||
16 | 16 | $album = $image->getContainerEntity(); |
17 | 17 | |
18 | 18 | $description_json = json_decode($photo->description); |
19 | -if( $description_json->en && $description_json->fr ){ |
|
19 | +if ($description_json->en && $description_json->fr) { |
|
20 | 20 | echo'<div id="change_language" class="change_language">'; |
21 | - if (get_current_language() == 'fr'){ |
|
21 | + if (get_current_language() == 'fr') { |
|
22 | 22 | |
23 | 23 | ?> |
24 | - <span id="indicator_language_en" onclick="change_en('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
|
24 | + <span id="indicator_language_en" onclick="change_en('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en; ?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr; ?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
|
25 | 25 | </span></span> |
26 | 26 | <?php |
27 | 27 | |
28 | - }else{ |
|
28 | + } else { |
|
29 | 29 | |
30 | 30 | ?> |
31 | - <span id="indicator_language_fr" onclick="change_fr('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
|
31 | + <span id="indicator_language_fr" onclick="change_fr('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en; ?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr; ?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
|
32 | 32 | <?php |
33 | 33 | } |
34 | 34 | echo'</div>'; |
@@ -25,7 +25,7 @@ |
||
25 | 25 | </span></span> |
26 | 26 | <?php |
27 | 27 | |
28 | - }else{ |
|
28 | + } else{ |
|
29 | 29 | |
30 | 30 | ?> |
31 | 31 | <span id="indicator_language_fr" onclick="change_fr('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | if ($description_json->en != $description_json->fr) { |
76 | 76 | echo '<div class="change_language" id="change_language">'; |
77 | - if ($can_vote){//put content in different div if can ou can't vote |
|
77 | + if ($can_vote){//put content in different div if can ou can't vote |
|
78 | 78 | if (get_current_language() == 'fr'){ |
79 | 79 | |
80 | 80 | ?> |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | } |
104 | 104 | echo '</div>'; |
105 | - break; |
|
105 | + break; |
|
106 | 106 | } |
107 | 107 | } |
108 | 108 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | |
130 | 130 | |
131 | 131 | |
132 | - echo elgg_view('wet4_theme/track_page_entity', array('entity' => $poll)); |
|
132 | + echo elgg_view('wet4_theme/track_page_entity', array('entity' => $poll)); |
|
133 | 133 | |
134 | 134 | } else { |
135 | 135 | // brief view |
@@ -64,37 +64,37 @@ discard block |
||
64 | 64 | if ($full) { |
65 | 65 | $lang = get_current_language(); |
66 | 66 | |
67 | - $title = gc_explode_translation($poll->title,$lang); |
|
67 | + $title = gc_explode_translation($poll->title, $lang); |
|
68 | 68 | |
69 | 69 | $can_vote = !polls_check_for_previous_vote($poll, $user_guid); |
70 | 70 | |
71 | 71 | //Identify available content |
72 | - foreach (polls_get_choice_array($poll) as $key ) { |
|
72 | + foreach (polls_get_choice_array($poll) as $key) { |
|
73 | 73 | $description_json = json_decode($key); |
74 | 74 | |
75 | 75 | if ($description_json->en != $description_json->fr) { |
76 | 76 | echo '<div class="change_language" id="change_language">'; |
77 | - if ($can_vote){//put content in different div if can ou can't vote |
|
78 | - if (get_current_language() == 'fr'){ |
|
77 | + if ($can_vote) {//put content in different div if can ou can't vote |
|
78 | + if (get_current_language() == 'fr') { |
|
79 | 79 | |
80 | 80 | ?> |
81 | 81 | <span id="indicator_language_en"><?php echo elgg_echo('box:indicator:en') ?><a href="#" onclick="change_language_polls('en','poll-vote-form-container-<?php echo $poll->guid; ?>');" id="activities"><?php echo elgg_echo('indicator:click:en') ?></a></span> |
82 | 82 | <?php |
83 | 83 | |
84 | - }else{ |
|
84 | + } else { |
|
85 | 85 | |
86 | 86 | ?> |
87 | 87 | <span id="indicator_language_fr" ><?php echo elgg_echo('box:indicator:fr') ?><a href="#" onclick="change_language_polls('fr','poll-vote-form-container-<?php echo $poll->guid; ?>');" id="activities"><?php echo elgg_echo('indicator:click:fr') ?></a></span> |
88 | 88 | <?php |
89 | 89 | } |
90 | - }else{ |
|
91 | - if (get_current_language() == 'fr'){ |
|
90 | + } else { |
|
91 | + if (get_current_language() == 'fr') { |
|
92 | 92 | |
93 | 93 | ?> |
94 | 94 | <span id="indicator_language_en"><?php echo elgg_echo('box:indicator:en') ?><a href="#" onclick="change_language_polls('en','poll-container-<?php echo $poll->guid; ?>');" id="activities"><?php echo elgg_echo('indicator:click:en') ?></a></span> |
95 | 95 | <?php |
96 | 96 | |
97 | - }else{ |
|
97 | + } else { |
|
98 | 98 | |
99 | 99 | ?> |
100 | 100 | <span id="indicator_language_fr" ><?php echo elgg_echo('box:indicator:fr') ?><a href="#" onclick="change_language_polls('fr','poll-container-<?php echo $poll->guid; ?>');" id="activities"><?php echo elgg_echo('indicator:click:fr') ?></a></span> |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | )); |
126 | 126 | |
127 | 127 | |
128 | - echo elgg_view('polls/body',$vars); |
|
128 | + echo elgg_view('polls/body', $vars); |
|
129 | 129 | |
130 | 130 | |
131 | 131 |
@@ -81,20 +81,20 @@ |
||
81 | 81 | <span id="indicator_language_en"><?php echo elgg_echo('box:indicator:en') ?><a href="#" onclick="change_language_polls('en','poll-vote-form-container-<?php echo $poll->guid; ?>');" id="activities"><?php echo elgg_echo('indicator:click:en') ?></a></span> |
82 | 82 | <?php |
83 | 83 | |
84 | - }else{ |
|
84 | + } else{ |
|
85 | 85 | |
86 | 86 | ?> |
87 | 87 | <span id="indicator_language_fr" ><?php echo elgg_echo('box:indicator:fr') ?><a href="#" onclick="change_language_polls('fr','poll-vote-form-container-<?php echo $poll->guid; ?>');" id="activities"><?php echo elgg_echo('indicator:click:fr') ?></a></span> |
88 | 88 | <?php |
89 | 89 | } |
90 | - }else{ |
|
90 | + } else{ |
|
91 | 91 | if (get_current_language() == 'fr'){ |
92 | 92 | |
93 | 93 | ?> |
94 | 94 | <span id="indicator_language_en"><?php echo elgg_echo('box:indicator:en') ?><a href="#" onclick="change_language_polls('en','poll-container-<?php echo $poll->guid; ?>');" id="activities"><?php echo elgg_echo('indicator:click:en') ?></a></span> |
95 | 95 | <?php |
96 | 96 | |
97 | - }else{ |
|
97 | + } else{ |
|
98 | 98 | |
99 | 99 | ?> |
100 | 100 | <span id="indicator_language_fr" ><?php echo elgg_echo('box:indicator:fr') ?><a href="#" onclick="change_language_polls('fr','poll-container-<?php echo $poll->guid; ?>');" id="activities"><?php echo elgg_echo('indicator:click:fr') ?></a></span> |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $container = $question->getContainerEntity(); |
28 | 28 | if (($container instanceof ElggGroup) && (elgg_get_page_owner_guid() !== $container->getGUID())) { |
29 | 29 | $group_link = elgg_view('output/url', [ |
30 | - 'text' => gc_explode_translation($container->name,$lang), |
|
30 | + 'text' => gc_explode_translation($container->name, $lang), |
|
31 | 31 | 'href' => "questions/group/{$container->getGUID()}/all", |
32 | 32 | 'is_trusted' => true |
33 | 33 | ]); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | "order_by" => "time_created" |
136 | 136 | ]; |
137 | 137 | |
138 | - if(elgg_instanceof(elgg_get_page_owner_entity(), "group")){ |
|
138 | + if (elgg_instanceof(elgg_get_page_owner_entity(), "group")) { |
|
139 | 139 | $header = 'h3'; |
140 | 140 | } else { |
141 | 141 | $header = 'h2'; |
@@ -168,19 +168,19 @@ discard block |
||
168 | 168 | |
169 | 169 | // identify available content |
170 | 170 | $description_json = json_decode($question->description); |
171 | -if( $description_json->en && $description_json->fr ){ |
|
171 | +if ($description_json->en && $description_json->fr) { |
|
172 | 172 | echo'<div id="change_language" class="change_language">'; |
173 | - if (get_current_language() == 'fr'){ |
|
173 | + if (get_current_language() == 'fr') { |
|
174 | 174 | |
175 | 175 | ?> |
176 | 176 | |
177 | - <span id="indicator_language_en" onclick="change_en('.question_details');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
|
177 | + <span id="indicator_language_en" onclick="change_en('.question_details');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en; ?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr; ?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
|
178 | 178 | |
179 | 179 | <?php |
180 | - }else{ |
|
180 | + } else { |
|
181 | 181 | ?> |
182 | 182 | |
183 | - <span id="indicator_language_fr" onclick="change_fr('.question_details');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
|
183 | + <span id="indicator_language_fr" onclick="change_fr('.question_details');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en; ?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr; ?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
|
184 | 184 | <?php |
185 | 185 | } |
186 | 186 | echo'</div>'; |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | |
189 | 189 | |
190 | 190 | echo elgg_view_image_block($poster_icon, $list_body); |
191 | - echo elgg_format_element('div', ['class' => ['mrgn-tp-md']], $body.$comments); |
|
191 | + echo elgg_format_element('div', ['class' => ['mrgn-tp-md']], $body . $comments); |
|
192 | 192 | |
193 | 193 | } else { |
194 | 194 |
@@ -177,7 +177,7 @@ |
||
177 | 177 | <span id="indicator_language_en" onclick="change_en('.question_details');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
178 | 178 | |
179 | 179 | <?php |
180 | - }else{ |
|
180 | + } else{ |
|
181 | 181 | ?> |
182 | 182 | |
183 | 183 | <span id="indicator_language_fr" onclick="change_fr('.question_details');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | if ($full_view && !elgg_in_context("gallery")) { |
82 | 82 | // normal full view |
83 | 83 | |
84 | - //remove new folder button when looking at single file |
|
84 | + //remove new folder button when looking at single file |
|
85 | 85 | elgg_unregister_menu_item('title', 'new_folder'); |
86 | 86 | |
87 | 87 | // add folder structure to the breadcrumbs |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | "summary" => $summary, |
168 | 168 | "body" => $body |
169 | 169 | )); |
170 | - elgg_unregister_menu_item('title', 'new_folder'); |
|
170 | + elgg_unregister_menu_item('title', 'new_folder'); |
|
171 | 171 | |
172 | 172 | } elseif (elgg_in_context("gallery")) { |
173 | 173 | // gallery view of the file |
@@ -194,9 +194,9 @@ discard block |
||
194 | 194 | $excerpt = elgg_get_excerpt(gc_explode_translation($file->description,$lang)); |
195 | 195 | } |
196 | 196 | |
197 | - if(elgg_in_context('group_profile') || elgg_in_context('profile')){ |
|
197 | + if(elgg_in_context('group_profile') || elgg_in_context('profile')){ |
|
198 | 198 | |
199 | - $entity_menu = elgg_view_menu("entity", array( |
|
199 | + $entity_menu = elgg_view_menu("entity", array( |
|
200 | 200 | "entity" => $file, |
201 | 201 | "handler" => "file", |
202 | 202 | "sort_by" => "priority", |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | "item_class" => "mrgn-rght-sm" |
205 | 205 | )); |
206 | 206 | |
207 | - } |
|
207 | + } |
|
208 | 208 | |
209 | 209 | $params = array( |
210 | 210 | "entity" => $file, |
@@ -216,10 +216,10 @@ discard block |
||
216 | 216 | $params = $params + $vars; |
217 | 217 | $list_body = elgg_view("object/elements/summary", $params); |
218 | 218 | |
219 | - $subtype = $file->getSubtype(); |
|
220 | - $guid = $file->getGUID(); |
|
219 | + $subtype = $file->getSubtype(); |
|
220 | + $guid = $file->getGUID(); |
|
221 | 221 | |
222 | - // identify available content |
|
222 | + // identify available content |
|
223 | 223 | /* if(($file->description2) && ($file->description)){ |
224 | 224 | |
225 | 225 | echo'<span class="col-md-1 col-md-offset-11"><i class="fa fa-language fa-lg mrgn-rght-sm"></i>' . '<span class="wb-inv">Content available in both language</span></span>'; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $title = gc_explode_translation($file->title, $lang); |
29 | 29 | |
30 | 30 | $mime = $file->mimetype; |
31 | -$base_type = substr($mime, 0, strpos($mime,'/')); |
|
31 | +$base_type = substr($mime, 0, strpos($mime, '/')); |
|
32 | 32 | |
33 | 33 | $owner_link = elgg_view("output/url", array("text" => $owner->name, "href" => $owner->getURL(), "is_trusted" => true)); |
34 | 34 | $author_text = elgg_echo("byline", array($owner_link)); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | while ($p = array_pop($folders)) { |
110 | 110 | |
111 | 111 | |
112 | - $folder_title = gc_explode_translation($p->title,$lang); |
|
112 | + $folder_title = gc_explode_translation($p->title, $lang); |
|
113 | 113 | |
114 | 114 | |
115 | 115 | elgg_push_breadcrumb($folder_title, $p->getURL()); |
@@ -139,22 +139,22 @@ discard block |
||
139 | 139 | |
140 | 140 | |
141 | 141 | |
142 | - $text = elgg_view("output/longtext", array("value" => $file_descr )); |
|
142 | + $text = elgg_view("output/longtext", array("value" => $file_descr)); |
|
143 | 143 | $body = "$text $extra"; |
144 | 144 | |
145 | 145 | // identify available content |
146 | 146 | $description_json = json_decode($file->description); |
147 | -if( $description_json->en && $description_json->fr ){ |
|
147 | +if ($description_json->en && $description_json->fr) { |
|
148 | 148 | echo'<div id="change_language" class="change_language">'; |
149 | - if (get_current_language() == 'fr'){ |
|
149 | + if (get_current_language() == 'fr') { |
|
150 | 150 | ?> |
151 | - <span id="indicator_language_en" onclick="change_en('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
|
151 | + <span id="indicator_language_en" onclick="change_en('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en; ?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr; ?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
|
152 | 152 | |
153 | 153 | <?php |
154 | - }else{ |
|
154 | + } else { |
|
155 | 155 | ?> |
156 | 156 | |
157 | - <span id="indicator_language_fr" onclick="change_fr('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
|
157 | + <span id="indicator_language_fr" onclick="change_fr('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en; ?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr; ?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
|
158 | 158 | <?php |
159 | 159 | } |
160 | 160 | echo'</div>'; |
@@ -191,10 +191,10 @@ discard block |
||
191 | 191 | $tags = ""; |
192 | 192 | } else { |
193 | 193 | $file_icon = elgg_view_entity_icon($file, "small"); |
194 | - $excerpt = elgg_get_excerpt(gc_explode_translation($file->description,$lang)); |
|
194 | + $excerpt = elgg_get_excerpt(gc_explode_translation($file->description, $lang)); |
|
195 | 195 | } |
196 | 196 | |
197 | - if(elgg_in_context('group_profile') || elgg_in_context('profile')){ |
|
197 | + if (elgg_in_context('group_profile') || elgg_in_context('profile')) { |
|
198 | 198 | |
199 | 199 | $entity_menu = elgg_view_menu("entity", array( |
200 | 200 | "entity" => $file, |
@@ -107,7 +107,7 @@ |
||
107 | 107 | <span id="indicator_language_en" onclick="change_en('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:en') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:en') ?></span></span> |
108 | 108 | |
109 | 109 | <?php |
110 | - }else{ |
|
110 | + } else{ |
|
111 | 111 | ?> |
112 | 112 | |
113 | 113 | <span id="indicator_language_fr" onclick="change_fr('.elgg-output');"><span id="en_content" class="testClass hidden" ><?php echo $description_json->en;?></span><span id="fr_content" class="testClass hidden" ><?php echo $description_json->fr;?></span><?php echo elgg_echo('box:indicator:fr') ?><span class="fake-link" id="fake-link-1"><?php echo elgg_echo('indicator:click:fr') ?></span></span> |
@@ -61,7 +61,7 @@ |
||
61 | 61 | echo "<div class=\"elgg-content mrgn-tp-sm mrgn-lft-sm\">$content</div>"; |
62 | 62 | } |
63 | 63 | |
64 | - if ( $metadata && !(elgg_in_context('widgets')) ) { |
|
64 | + if ($metadata && !(elgg_in_context('widgets'))) { |
|
65 | 65 | echo $metadata; |
66 | 66 | } |
67 | 67 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | if ($title_link) { |
51 | - echo "<h3 class=\"mrgn-bttm-0 panel-title\">$title_link</h3>"; |
|
51 | + echo "<h3 class=\"mrgn-bttm-0 panel-title\">$title_link</h3>"; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | if ($metadata) { |
@@ -56,9 +56,9 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | //This tests to see if you are looking at a group list and does't outpout the subtitle variable here, It's called at the end of this file |
59 | -if($entity->getType() == 'group'){ |
|
59 | +if ($entity->getType() == 'group') { |
|
60 | 60 | echo ''; |
61 | -}else{ |
|
61 | +} else { |
|
62 | 62 | echo "<div class=\" mrgn-bttm-md timeStamp clearfix\">$subtitle</div>"; |
63 | 63 | } |
64 | 64 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | echo "<div class=\"elgg-content mrgn-tp-sm clearfix\">$content</div>"; |
74 | 74 | } |
75 | 75 | |
76 | -if($entity->getType() == 'group'){ |
|
76 | +if ($entity->getType() == 'group') { |
|
77 | 77 | echo "<div class=\" mrgn-bttm-sm mrgn-tp-md timeStamp clearfix\">$subtitle</div>"; |
78 | 78 | |
79 | 79 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | //This tests to see if you are looking at a group list and does't outpout the subtitle variable here, It's called at the end of this file |
59 | 59 | if($entity->getType() == 'group'){ |
60 | 60 | echo ''; |
61 | -}else{ |
|
61 | +} else{ |
|
62 | 62 | echo "<div class=\" mrgn-bttm-md timeStamp clearfix\">$subtitle</div>"; |
63 | 63 | } |
64 | 64 |
@@ -66,22 +66,22 @@ discard block |
||
66 | 66 | |
67 | 67 | if ($title_link) { |
68 | 68 | |
69 | - //Nick - putting these titles in headings to make it quicker to navigate for screen readers |
|
70 | - //Nick - each context of the summary view will have a different heading based on it's parent |
|
71 | - if(elgg_in_context('widgets')){ |
|
72 | - echo "<h4 class=\"mrgn-bttm-0 summary-title\">$title_link</h4>"; |
|
73 | - }else if(elgg_in_context('profile') || elgg_in_context('group_profile') || elgg_instanceof(elgg_get_page_owner_entity(), "group")){ |
|
74 | - if($entity instanceof ElggEntity && $entity->getSubtype() != 'answer'){//if answer in group question |
|
75 | - echo "<h3 class=\"mrgn-bttm-0 summary-title\">$title_link</h3>"; |
|
76 | - } |
|
77 | - }else{ |
|
78 | - echo "<h2 class=\"mrgn-bttm-0 summary-title\">$title_link</h2>"; |
|
79 | - } |
|
69 | + //Nick - putting these titles in headings to make it quicker to navigate for screen readers |
|
70 | + //Nick - each context of the summary view will have a different heading based on it's parent |
|
71 | + if(elgg_in_context('widgets')){ |
|
72 | + echo "<h4 class=\"mrgn-bttm-0 summary-title\">$title_link</h4>"; |
|
73 | + }else if(elgg_in_context('profile') || elgg_in_context('group_profile') || elgg_instanceof(elgg_get_page_owner_entity(), "group")){ |
|
74 | + if($entity instanceof ElggEntity && $entity->getSubtype() != 'answer'){//if answer in group question |
|
75 | + echo "<h3 class=\"mrgn-bttm-0 summary-title\">$title_link</h3>"; |
|
76 | + } |
|
77 | + }else{ |
|
78 | + echo "<h2 class=\"mrgn-bttm-0 summary-title\">$title_link</h2>"; |
|
79 | + } |
|
80 | 80 | |
81 | 81 | // identify available content |
82 | 82 | $description_json = json_decode($entity->description); |
83 | - if (($description_json->en) && ($description_json->fr)) { |
|
84 | - echo " <span class='indicator_summary' title='".elgg_echo('indicator:summary:title')."'>".elgg_echo('indicator:summary')."</span>"; //indicator translation |
|
83 | + if (($description_json->en) && ($description_json->fr)) { |
|
84 | + echo " <span class='indicator_summary' title='".elgg_echo('indicator:summary:title')."'>".elgg_echo('indicator:summary')."</span>"; //indicator translation |
|
85 | 85 | }elseif (elgg_get_context() == 'polls'){ |
86 | 86 | //if poll, check if the choice is the same in both language, if not, show (en/fr) one time |
87 | 87 | |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | |
91 | 91 | if ($description_json->en != $description_json->fr) { |
92 | 92 | |
93 | - echo " <span class='indicator_summary' title='".elgg_echo('indicator:summary:title')."'>".elgg_echo('indicator:summary')."</span>"; //indicator translation for polls |
|
94 | - break; |
|
93 | + echo " <span class='indicator_summary' title='".elgg_echo('indicator:summary:title')."'>".elgg_echo('indicator:summary')."</span>"; //indicator translation for polls |
|
94 | + break; |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 | |
@@ -117,8 +117,8 @@ discard block |
||
117 | 117 | $description_json = json_decode($key); |
118 | 118 | if ($description_json->en != $description_json->fr) { |
119 | 119 | |
120 | - echo " <span class='indicator_summary' title='".elgg_echo('indicator:summary:title')."'>".elgg_echo('indicator:summary')."</span>"; //indicator translation for polls |
|
121 | - break; |
|
120 | + echo " <span class='indicator_summary' title='".elgg_echo('indicator:summary:title')."'>".elgg_echo('indicator:summary')."</span>"; //indicator translation for polls |
|
121 | + break; |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 | } |
@@ -145,36 +145,36 @@ discard block |
||
145 | 145 | |
146 | 146 | if($entity instanceof ElggEntity && $entity->getType() == 'group' ){ |
147 | 147 | |
148 | - if ($metadata) { |
|
148 | + if ($metadata) { |
|
149 | 149 | echo '<div class="mrgn-tp-sm"><div class="">' .$metadata . '</div></div>'; |
150 | 150 | } |
151 | 151 | |
152 | 152 | echo "<div class=\" mrgn-bttm-sm mrgn-tp-sm timeStamp clearfix\">$subtitle</div>"; |
153 | 153 | |
154 | 154 | }else if($checkPage == 'friends' || $checkPage == 'groups_members' || $checkPage == 'members'){ |
155 | - echo '<div class=""><div class="">' .$metadata . '</div></div>'; |
|
155 | + echo '<div class=""><div class="">' .$metadata . '</div></div>'; |
|
156 | 156 | }else{ |
157 | 157 | |
158 | 158 | if ($entity instanceof ElggEntity && ($entity->getSubtype() == 'event_calendar') && (elgg_get_context() == 'widgets')){ |
159 | 159 | |
160 | - echo '<div class="row mrgn-tp-md">'; |
|
160 | + echo '<div class="row mrgn-tp-md">'; |
|
161 | 161 | |
162 | - //echo "<div class=\"tags col-sm-12 col-xs-12\">$tags</div>"; |
|
162 | + //echo "<div class=\"tags col-sm-12 col-xs-12\">$tags</div>"; |
|
163 | 163 | |
164 | 164 | |
165 | - if ($metadata) { |
|
166 | - if ($checkPage != 'widgets_calendar'){ |
|
167 | - echo '<div class="col-sm-12 col-xs-12"><div class="mrgn-lft-sm">' .$metadata . '</div></div>'; |
|
168 | - } |
|
169 | - } |
|
165 | + if ($metadata) { |
|
166 | + if ($checkPage != 'widgets_calendar'){ |
|
167 | + echo '<div class="col-sm-12 col-xs-12"><div class="mrgn-lft-sm">' .$metadata . '</div></div>'; |
|
168 | + } |
|
169 | + } |
|
170 | 170 | |
171 | 171 | }else{ |
172 | 172 | |
173 | 173 | echo '<div class="row mrgn-tp-sm">'; |
174 | 174 | if ($metadata) { |
175 | - if ($checkPage != 'widgets_calendar'){ |
|
176 | - echo '<div class="col-xs-12 mrgn-lft-md ">' .$metadata . '</div>'; |
|
177 | - } |
|
175 | + if ($checkPage != 'widgets_calendar'){ |
|
176 | + echo '<div class="col-xs-12 mrgn-lft-md ">' .$metadata . '</div>'; |
|
177 | + } |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | echo '</div>'; |
@@ -31,12 +31,12 @@ discard block |
||
31 | 31 | $lang = get_current_language(); |
32 | 32 | $title_link = elgg_extract('title', $vars, ''); |
33 | 33 | if ($title_link === '') {//add translation |
34 | - if ( isset($entity->title) || isset($entity->name) ) { |
|
35 | - if( $entity->title ){ |
|
36 | - $text = gc_explode_translation( $entity->title, $lang ); |
|
37 | - }elseif($entity->name){ |
|
34 | + if (isset($entity->title) || isset($entity->name)) { |
|
35 | + if ($entity->title) { |
|
36 | + $text = gc_explode_translation($entity->title, $lang); |
|
37 | + }elseif ($entity->name) { |
|
38 | 38 | $text = $entity->name; |
39 | - }elseif($entity->name2){ |
|
39 | + }elseif ($entity->name2) { |
|
40 | 40 | $text = $entity->name2; |
41 | 41 | } |
42 | 42 | |
@@ -68,34 +68,34 @@ discard block |
||
68 | 68 | |
69 | 69 | //Nick - putting these titles in headings to make it quicker to navigate for screen readers |
70 | 70 | //Nick - each context of the summary view will have a different heading based on it's parent |
71 | - if(elgg_in_context('widgets')){ |
|
71 | + if (elgg_in_context('widgets')) { |
|
72 | 72 | echo "<h4 class=\"mrgn-bttm-0 summary-title\">$title_link</h4>"; |
73 | - }else if(elgg_in_context('profile') || elgg_in_context('group_profile') || elgg_instanceof(elgg_get_page_owner_entity(), "group")){ |
|
74 | - if($entity instanceof ElggEntity && $entity->getSubtype() != 'answer'){//if answer in group question |
|
73 | + } else if (elgg_in_context('profile') || elgg_in_context('group_profile') || elgg_instanceof(elgg_get_page_owner_entity(), "group")) { |
|
74 | + if ($entity instanceof ElggEntity && $entity->getSubtype() != 'answer') {//if answer in group question |
|
75 | 75 | echo "<h3 class=\"mrgn-bttm-0 summary-title\">$title_link</h3>"; |
76 | 76 | } |
77 | - }else{ |
|
77 | + } else { |
|
78 | 78 | echo "<h2 class=\"mrgn-bttm-0 summary-title\">$title_link</h2>"; |
79 | 79 | } |
80 | 80 | |
81 | 81 | // identify available content |
82 | 82 | $description_json = json_decode($entity->description); |
83 | 83 | if (($description_json->en) && ($description_json->fr)) { |
84 | - echo " <span class='indicator_summary' title='".elgg_echo('indicator:summary:title')."'>".elgg_echo('indicator:summary')."</span>"; //indicator translation |
|
85 | - }elseif (elgg_get_context() == 'polls'){ |
|
84 | + echo " <span class='indicator_summary' title='" . elgg_echo('indicator:summary:title') . "'>" . elgg_echo('indicator:summary') . "</span>"; //indicator translation |
|
85 | + }elseif (elgg_get_context() == 'polls') { |
|
86 | 86 | //if poll, check if the choice is the same in both language, if not, show (en/fr) one time |
87 | 87 | |
88 | - foreach (polls_get_choice_array($entity) as $key ) { |
|
88 | + foreach (polls_get_choice_array($entity) as $key) { |
|
89 | 89 | $description_json = json_decode($key); |
90 | 90 | |
91 | 91 | if ($description_json->en != $description_json->fr) { |
92 | 92 | |
93 | - echo " <span class='indicator_summary' title='".elgg_echo('indicator:summary:title')."'>".elgg_echo('indicator:summary')."</span>"; //indicator translation for polls |
|
93 | + echo " <span class='indicator_summary' title='" . elgg_echo('indicator:summary:title') . "'>" . elgg_echo('indicator:summary') . "</span>"; //indicator translation for polls |
|
94 | 94 | break; |
95 | 95 | } |
96 | 96 | } |
97 | 97 | |
98 | - } elseif ($entity instanceof ElggEntity && $entity->getSubtype() == 'poll'){ |
|
98 | + } elseif ($entity instanceof ElggEntity && $entity->getSubtype() == 'poll') { |
|
99 | 99 | //if poll, check if the choice is the same in both language, if not, show (en/fr) one time |
100 | 100 | $responses = array(); |
101 | 101 | |
@@ -103,21 +103,21 @@ discard block |
||
103 | 103 | 'relationship' => 'poll_choice', |
104 | 104 | 'relationship_guid' => $entity->guid, |
105 | 105 | 'inverse_relationship' => TRUE, |
106 | - 'order_by_metadata' => array('name'=>'display_order','direction'=>'ASC'), |
|
106 | + 'order_by_metadata' => array('name'=>'display_order', 'direction'=>'ASC'), |
|
107 | 107 | 'limit' => 50, |
108 | 108 | ); |
109 | 109 | $choices = elgg_get_entities_from_relationship($options); |
110 | 110 | |
111 | 111 | if ($choices) { |
112 | - foreach($choices as $choice) { |
|
112 | + foreach ($choices as $choice) { |
|
113 | 113 | $responses[$choice->text] = $choice->text; |
114 | 114 | } |
115 | 115 | } |
116 | - foreach ($responses as $key ) { |
|
116 | + foreach ($responses as $key) { |
|
117 | 117 | $description_json = json_decode($key); |
118 | 118 | if ($description_json->en != $description_json->fr) { |
119 | 119 | |
120 | - echo " <span class='indicator_summary' title='".elgg_echo('indicator:summary:title')."'>".elgg_echo('indicator:summary')."</span>"; //indicator translation for polls |
|
120 | + echo " <span class='indicator_summary' title='" . elgg_echo('indicator:summary:title') . "'>" . elgg_echo('indicator:summary') . "</span>"; //indicator translation for polls |
|
121 | 121 | break; |
122 | 122 | } |
123 | 123 | } |
@@ -127,9 +127,9 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | //This tests to see if you are looking at a group list and does't outpout the subtitle variable here, It's called at the end of this file |
130 | -if($entity instanceof ElggEntity && $entity->getType() == 'group'){ |
|
130 | +if ($entity instanceof ElggEntity && $entity->getType() == 'group') { |
|
131 | 131 | echo ''; |
132 | -}else{ |
|
132 | +} else { |
|
133 | 133 | echo "<div class=\" mrgn-bttm-sm mrgn-tp-sm timeStamp clearfix\">$subtitle</div>"; |
134 | 134 | |
135 | 135 | } |
@@ -143,19 +143,19 @@ discard block |
||
143 | 143 | echo "<div class=\"elgg-content mrgn-tp-sm mrgn-lft-sm\">$content</div>"; |
144 | 144 | } |
145 | 145 | |
146 | -if($entity instanceof ElggEntity && $entity->getType() == 'group' ){ |
|
146 | +if ($entity instanceof ElggEntity && $entity->getType() == 'group') { |
|
147 | 147 | |
148 | 148 | if ($metadata) { |
149 | - echo '<div class="mrgn-tp-sm"><div class="">' .$metadata . '</div></div>'; |
|
149 | + echo '<div class="mrgn-tp-sm"><div class="">' . $metadata . '</div></div>'; |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | echo "<div class=\" mrgn-bttm-sm mrgn-tp-sm timeStamp clearfix\">$subtitle</div>"; |
153 | 153 | |
154 | -}else if($checkPage == 'friends' || $checkPage == 'groups_members' || $checkPage == 'members'){ |
|
155 | - echo '<div class=""><div class="">' .$metadata . '</div></div>'; |
|
156 | -}else{ |
|
154 | +} else if ($checkPage == 'friends' || $checkPage == 'groups_members' || $checkPage == 'members') { |
|
155 | + echo '<div class=""><div class="">' . $metadata . '</div></div>'; |
|
156 | +} else { |
|
157 | 157 | |
158 | - if ($entity instanceof ElggEntity && ($entity->getSubtype() == 'event_calendar') && (elgg_get_context() == 'widgets')){ |
|
158 | + if ($entity instanceof ElggEntity && ($entity->getSubtype() == 'event_calendar') && (elgg_get_context() == 'widgets')) { |
|
159 | 159 | |
160 | 160 | echo '<div class="row mrgn-tp-md">'; |
161 | 161 | |
@@ -163,17 +163,17 @@ discard block |
||
163 | 163 | |
164 | 164 | |
165 | 165 | if ($metadata) { |
166 | - if ($checkPage != 'widgets_calendar'){ |
|
167 | - echo '<div class="col-sm-12 col-xs-12"><div class="mrgn-lft-sm">' .$metadata . '</div></div>'; |
|
166 | + if ($checkPage != 'widgets_calendar') { |
|
167 | + echo '<div class="col-sm-12 col-xs-12"><div class="mrgn-lft-sm">' . $metadata . '</div></div>'; |
|
168 | 168 | } |
169 | 169 | } |
170 | 170 | |
171 | - }else{ |
|
171 | + } else { |
|
172 | 172 | |
173 | 173 | echo '<div class="row mrgn-tp-sm">'; |
174 | 174 | if ($metadata) { |
175 | - if ($checkPage != 'widgets_calendar'){ |
|
176 | - echo '<div class="col-xs-12 mrgn-lft-md ">' .$metadata . '</div>'; |
|
175 | + if ($checkPage != 'widgets_calendar') { |
|
176 | + echo '<div class="col-xs-12 mrgn-lft-md ">' . $metadata . '</div>'; |
|
177 | 177 | } |
178 | 178 | } |
179 | 179 |
@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | if ( isset($entity->title) || isset($entity->name) ) { |
35 | 35 | if( $entity->title ){ |
36 | 36 | $text = gc_explode_translation( $entity->title, $lang ); |
37 | - }elseif($entity->name){ |
|
37 | + } elseif($entity->name){ |
|
38 | 38 | $text = $entity->name; |
39 | - }elseif($entity->name2){ |
|
39 | + } elseif($entity->name2){ |
|
40 | 40 | $text = $entity->name2; |
41 | 41 | } |
42 | 42 | |
@@ -70,11 +70,11 @@ discard block |
||
70 | 70 | //Nick - each context of the summary view will have a different heading based on it's parent |
71 | 71 | if(elgg_in_context('widgets')){ |
72 | 72 | echo "<h4 class=\"mrgn-bttm-0 summary-title\">$title_link</h4>"; |
73 | - }else if(elgg_in_context('profile') || elgg_in_context('group_profile') || elgg_instanceof(elgg_get_page_owner_entity(), "group")){ |
|
73 | + } else if(elgg_in_context('profile') || elgg_in_context('group_profile') || elgg_instanceof(elgg_get_page_owner_entity(), "group")){ |
|
74 | 74 | if($entity instanceof ElggEntity && $entity->getSubtype() != 'answer'){//if answer in group question |
75 | 75 | echo "<h3 class=\"mrgn-bttm-0 summary-title\">$title_link</h3>"; |
76 | 76 | } |
77 | - }else{ |
|
77 | + } else{ |
|
78 | 78 | echo "<h2 class=\"mrgn-bttm-0 summary-title\">$title_link</h2>"; |
79 | 79 | } |
80 | 80 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $description_json = json_decode($entity->description); |
83 | 83 | if (($description_json->en) && ($description_json->fr)) { |
84 | 84 | echo " <span class='indicator_summary' title='".elgg_echo('indicator:summary:title')."'>".elgg_echo('indicator:summary')."</span>"; //indicator translation |
85 | - }elseif (elgg_get_context() == 'polls'){ |
|
85 | + } elseif (elgg_get_context() == 'polls'){ |
|
86 | 86 | //if poll, check if the choice is the same in both language, if not, show (en/fr) one time |
87 | 87 | |
88 | 88 | foreach (polls_get_choice_array($entity) as $key ) { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | //This tests to see if you are looking at a group list and does't outpout the subtitle variable here, It's called at the end of this file |
130 | 130 | if($entity instanceof ElggEntity && $entity->getType() == 'group'){ |
131 | 131 | echo ''; |
132 | -}else{ |
|
132 | +} else{ |
|
133 | 133 | echo "<div class=\" mrgn-bttm-sm mrgn-tp-sm timeStamp clearfix\">$subtitle</div>"; |
134 | 134 | |
135 | 135 | } |
@@ -151,9 +151,9 @@ discard block |
||
151 | 151 | |
152 | 152 | echo "<div class=\" mrgn-bttm-sm mrgn-tp-sm timeStamp clearfix\">$subtitle</div>"; |
153 | 153 | |
154 | -}else if($checkPage == 'friends' || $checkPage == 'groups_members' || $checkPage == 'members'){ |
|
154 | +} else if($checkPage == 'friends' || $checkPage == 'groups_members' || $checkPage == 'members'){ |
|
155 | 155 | echo '<div class=""><div class="">' .$metadata . '</div></div>'; |
156 | -}else{ |
|
156 | +} else{ |
|
157 | 157 | |
158 | 158 | if ($entity instanceof ElggEntity && ($entity->getSubtype() == 'event_calendar') && (elgg_get_context() == 'widgets')){ |
159 | 159 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | } |
169 | 169 | } |
170 | 170 | |
171 | - }else{ |
|
171 | + } else{ |
|
172 | 172 | |
173 | 173 | echo '<div class="row mrgn-tp-sm">'; |
174 | 174 | if ($metadata) { |
@@ -8,17 +8,17 @@ |
||
8 | 8 | * @author GCTools Team |
9 | 9 | */ |
10 | 10 | |
11 | - $guid = (int) get_input("guid"); |
|
11 | + $guid = (int) get_input("guid"); |
|
12 | 12 | |
13 | - $img = get_entity($guid); |
|
14 | - $path = $img->getFilenameOnFilestore(); |
|
13 | + $img = get_entity($guid); |
|
14 | + $path = $img->getFilenameOnFilestore(); |
|
15 | 15 | |
16 | 16 | list($width, $height, $type, $attr) = getimagesize($path); |
17 | 17 | |
18 | 18 | |
19 | - $image = elgg_view_entity_icon($img, 'master', array( |
|
20 | - 'img_class' => '', |
|
21 | - 'href' => '', |
|
22 | - )); |
|
19 | + $image = elgg_view_entity_icon($img, 'master', array( |
|
20 | + 'img_class' => '', |
|
21 | + 'href' => '', |
|
22 | + )); |
|
23 | 23 | |
24 | 24 | echo '<div style="min-width:'.$width.'px;min-height:'.$height.'px;">' . $image . '</div>'; |
@@ -21,4 +21,4 @@ |
||
21 | 21 | 'href' => '', |
22 | 22 | )); |
23 | 23 | |
24 | - echo '<div style="min-width:'.$width.'px;min-height:'.$height.'px;">' . $image . '</div>'; |
|
24 | + echo '<div style="min-width:' . $width . 'px;min-height:' . $height . 'px;">' . $image . '</div>'; |