mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fix #4056: Images not rendered in markdown profile field
This commit is contained in:
parent
e8eaba6f64
commit
85b87b36e4
@ -13,44 +13,44 @@ $categories = $user->profile->getProfileFieldCategories();
|
||||
?>
|
||||
<div class="panel panel-default">
|
||||
<div
|
||||
class="panel-heading"><?= Yii::t('UserModule.profile', '<strong>About</strong> this user'); ?></div>
|
||||
class="panel-heading"><?= Yii::t('UserModule.profile', '<strong>About</strong> this user') ?></div>
|
||||
<div class="panel-body">
|
||||
<?php $firstClass = "active"; ?>
|
||||
<?php $firstClass = "active" ?>
|
||||
<ul id="tabs" class="nav nav-tabs" data-tabs="tabs">
|
||||
<?php foreach ($categories as $category): ?>
|
||||
<li class="<?= $firstClass; ?>">
|
||||
<a href="#profile-category-<?= $category->id; ?>" data-toggle="tab"><?= Html::encode(Yii::t($category->getTranslationCategory(), $category->title)); ?></a>
|
||||
<li class="<?= $firstClass ?>">
|
||||
<a href="#profile-category-<?= $category->id; ?>" data-toggle="tab"><?= Html::encode(Yii::t($category->getTranslationCategory(), $category->title)) ?></a>
|
||||
</li>
|
||||
<?php
|
||||
$firstClass = "";
|
||||
endforeach;
|
||||
?>
|
||||
</ul>
|
||||
<?php $firstClass = "active"; ?>
|
||||
<?php $firstClass = "active" ?>
|
||||
<div class="tab-content">
|
||||
<?php foreach ($categories as $category): ?>
|
||||
<div class="tab-pane <?php
|
||||
echo $firstClass;
|
||||
$firstClass = "";
|
||||
?>" id="profile-category-<?= $category->id; ?>">
|
||||
?>" id="profile-category-<?= $category->id ?>">
|
||||
<form class="form-horizontal" role="form">
|
||||
<?php foreach ($user->profile->getProfileFields($category) as $field) : ?>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">
|
||||
<?= Html::encode(Yii::t($field->getTranslationCategory(), $field->title)); ?>
|
||||
<?= Html::encode(Yii::t($field->getTranslationCategory(), $field->title)) ?>
|
||||
</label>
|
||||
<?php if (strtolower($field->title) == 'about'): ?>
|
||||
<div class="col-sm-9">
|
||||
<p class="form-control-static"><?= RichText::output($field->getUserValue($user, true)); ?></p>
|
||||
<p class="form-control-static"><?= RichText::output($field->getUserValue($user, true)) ?></p>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="col-sm-9">
|
||||
<?php if ($field->field_type_class == MarkdownEditor::class): ?>
|
||||
<p class="form-control-static" style="min-height: 0 !important;padding-top:0;">
|
||||
<?= RichText::output($field->getUserValue($user, false)); ?>
|
||||
<?= RichText::output($field->getUserValue($user, true)) ?>
|
||||
</p>
|
||||
<?php else: ?>
|
||||
<p class="form-control-static"><?= $field->getUserValue($user, false); ?></p>
|
||||
<p class="form-control-static"><?= $field->getUserValue($user, false) ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user