Initial import of space_profiles module
This commit is contained in:
45
views/profile/templates/rescue-center.php
Normal file
45
views/profile/templates/rescue-center.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
/* @var \humhub\modules\space\models\Space $space */
|
||||
/* @var \humhub\modules\space_profiles\models\SpaceProfile $profile */
|
||||
/* @var string $searchBlockWidget */
|
||||
?>
|
||||
|
||||
<div class="media" style="margin-bottom:20px;">
|
||||
<div class="media-left" style="padding-right:15px;">
|
||||
<?php if (!empty($profile->icon_path)): ?>
|
||||
<?= Html::img($profile->icon_path, ['style' => 'width:96px;height:96px;object-fit:cover;border-radius:10px;']) ?>
|
||||
<?php else: ?>
|
||||
<div style="width:96px;height:96px;border-radius:10px;background:#f3f5f7;display:flex;align-items:center;justify-content:center;">
|
||||
<i class="fa fa-paw fa-2x text-muted"></i>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h2 style="margin-top:0;margin-bottom:8px;"><?= Html::encode($space->name) ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($profile->header_html)): ?>
|
||||
<section style="margin-bottom:20px;"><?= $profile->header_html ?></section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($profile->body_html)): ?>
|
||||
<section style="margin-bottom:20px;"><?= $profile->body_html ?></section>
|
||||
<?php endif; ?>
|
||||
|
||||
<section style="margin-bottom:20px;">
|
||||
<?php if (class_exists($searchBlockWidget)): ?>
|
||||
<?= $searchBlockWidget::widget(['contentContainer' => $space]) ?>
|
||||
<?php else: ?>
|
||||
<div class="well well-sm" style="margin-bottom:0;">
|
||||
<?= Yii::t('SpaceProfilesModule.base', 'Animal Management plugin integration point is ready. The block will appear here when that plugin is installed.') ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
|
||||
<?php if (!empty($profile->footer_html)): ?>
|
||||
<section><?= $profile->footer_html ?></section>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user