|
9 | 9 | * @license License GNU General Public License version 2 or later
|
10 | 10 | */
|
11 | 11 | defined ( '_JEXEC' ) or die ( 'Restricted access' );
|
12 |
| -$itemid = CJFunctions::get_active_menu_id(); |
13 |
| -$page_heading = $this->params->get('page_heading'); |
14 |
| -$active_id = 2; |
15 |
| -$api = new CjLibApi(); |
16 |
| -$avatarApp = $this->params->get('avatar_component', 'cjblog'); |
17 |
| -$profileApp = $this->params->get('profile_component', 'cjblog'); |
18 |
| -$layout = $this->params->get('layout', 'default'); |
19 |
| -$editor = $this->params->get('default_editor', 'wysiwygbb'); |
20 |
| -$bbcode = $editor == 'wysiwygbb' ? true : false; |
| 12 | +$itemid = CJFunctions::get_active_menu_id(); |
| 13 | +$page_heading = $this->params->get('page_heading'); |
| 14 | +$active_id = 2; |
| 15 | +$api = new CjLibApi(); |
| 16 | +$avatarApp = $this->params->get('avatar_component', 'cjblog'); |
| 17 | +$profileApp = $this->params->get('profile_component', 'cjblog'); |
| 18 | +$layout = $this->params->get('layout', 'default'); |
| 19 | +$editor = $this->params->get('default_editor', 'wysiwygbb'); |
| 20 | +$bbcode = $editor == 'wysiwygbb' ? true : false; |
21 | 21 | ?>
|
22 | 22 |
|
23 | 23 | <div id="cj-wrapper">
|
|
46 | 46 | $showProfile = JFactory::getUser($user['id'])->authorise('core.showprofile', 'com_cjblog');
|
47 | 47 | if ($showProfile)
|
48 | 48 | {
|
49 |
| - $profileUrl = $api->getUserProfileUrl($profileApp, $user['id']); |
| 49 | + $profileUrl = $api->getUserProfileUrl($profileApp, $user['id']); |
| 50 | + $aboutText = strip_tags(JHtml::_('string.truncate', CJFunctions::parse_html($user['about'], false, $bbcode), 250)); |
50 | 51 | }
|
51 | 52 | else
|
52 | 53 | {
|
53 | 54 | $profileUrl = "#";
|
| 55 | + $aboutText = ""; |
54 | 56 | }
|
55 | 57 |
|
56 | 58 | ?>
|
|
77 | 79 | <span class="margin-right-10"><?php echo JText::_('LBL_BADGES').': '.$user['num_badges'];?></span>
|
78 | 80 | </div>
|
79 | 81 | <div class="muted padbottom-5">
|
80 |
| - <?php echo strip_tags(JHtml::_('string.truncate', CJFunctions::parse_html($user['about'], false, $bbcode), 250));?> |
| 82 | + <?php echo $aboutText;?> |
81 | 83 | </div>
|
82 | 84 | </div>
|
83 | 85 | </div>
|
|
0 commit comments