personal_area_php/frontend/views/layouts/content.php
2024-04-24 18:02:58 +03:00

42 lines
1.4 KiB
PHP

<?php
/* @var $content string */
use yii\bootstrap4\Breadcrumbs;
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">
<?php
if (!is_null($this->title)) {
echo \yii\helpers\Html::encode($this->title);
} else {
echo \yii\helpers\Inflector::camelize($this->context->id);
}
?>
</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<?php
echo Breadcrumbs::widget([
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
'options' => [
'class' => 'breadcrumb float-sm-right'
]
]);
?>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<section class="content">
<?= $content ?><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>