File tree Expand file tree Collapse file tree 6 files changed +48
-5
lines changed
libraries/kunena/src/User
template/aurelia/layouts/user/item Expand file tree Collapse file tree 6 files changed +48
-5
lines changed Original file line number Diff line number Diff line change @@ -2142,4 +2142,16 @@ public function checkUserAllowedLinksImages()
2142
2142
2143
2143
return true ;
2144
2144
}
2145
+
2146
+ /**
2147
+ * Get user socials info for the userprofile
2148
+ *
2149
+ * @throws Exception
2150
+ * @since Kunena 6.4.0
2151
+ */
2152
+ public function getSocialInfoUserProfile () {
2153
+ $ socials = KunenaUserSocials::getInstance ();
2154
+
2155
+ return $ socials ;
2156
+ }
2145
2157
}
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ class UserItemDisplay extends KunenaControllerDisplay
89
89
public $ avatar ;
90
90
91
91
public $ banInfo ;
92
+
93
+ public $ socials ;
92
94
93
95
/**
94
96
* Load user profile.
@@ -128,6 +130,7 @@ protected function before()
128
130
$ this ->points = $ activityIntegration ->getUserPoints ($ this ->profile ->userid );
129
131
$ this ->medals = $ activityIntegration ->getUserMedals ($ this ->profile ->userid );
130
132
$ this ->private = KunenaFactory::getPrivateMessaging ();
133
+ $ this ->socials = $ this ->profile ->getSocialInfoUserProfile ();
131
134
132
135
$ this ->avatar = $ this ->profile ->getAvatarImage (KunenaFactory::getTemplate ()->params ->get ('avatarType ' ), 'post ' );
133
136
$ this ->banInfo = $ this ->config ->showBannedReason
Original file line number Diff line number Diff line change 20
20
/**
21
21
* KunenaLayoutUserItem
22
22
*
23
- * @since Kunena 6.1
23
+ * @since Kunena 6.4
24
24
*/
25
- class UserItemSocial extends KunenaLayout
25
+ class UserItemSocials extends KunenaLayout
26
26
{
27
- public $ profile ;
28
-
29
27
public $ socials ;
30
28
}
Original file line number Diff line number Diff line change 55
55
->set ('points ' , $ this ->points )
56
56
->set ('medals ' , $ this ->medals )
57
57
->set ('avatar ' , $ this ->avatar )
58
- ->set ('banInfo ' , $ this ->banInfo );
58
+ ->set ('banInfo ' , $ this ->banInfo )
59
+ ->set ('socials ' , $ this ->socials );
59
60
?>
60
61
61
62
<?php echo $ this ->subLayout ('Widget/Module ' )->set ('position ' , 'kunena_summary ' ); ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * Kunena Component
5
+ *
6
+ * @package Kunena.Template.Aurelia
7
+ * @subpackage Layout.User
8
+ *
9
+ * @copyright Copyright (C) 2008 - @currentyear@ Kunena Team. All rights reserved.
10
+ * @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
11
+ * @link https://www.kunena.org
12
+ **/
13
+
14
+ namespace Kunena \Forum \Site ;
15
+
16
+ \defined ('_JEXEC ' ) or die ();
17
+
18
+ $ showAll = isset ($ this ->showAll ) ? $ this ->showAll : false ;
19
+ ?>
20
+ <div class="inline float-end">
21
+ <?php /*foreach ($this->socials as $key => $social) {
22
+
23
+ }*/
24
+ ?>
25
+ </div>
Original file line number Diff line number Diff line change 209
209
<?php endif ; ?>
210
210
</div>
211
211
</div>
212
+
213
+ <div class="col-md-9">
214
+ <?php echo $ this ->subLayout ('User/Item/Socials ' )->set ('socials ' , $ this ->socials ); ?>
215
+ </div>
212
216
</div>
213
217
214
218
<br/>
You can’t perform that action at this time.
0 commit comments