You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
914 B

  1. <?PHP
  2. use yii\widgets\Breadcrumbs;
  3. ?>
  4. <div class="container-fluid">
  5. <div class="row mb-2">
  6. <div class="col-sm-6">
  7. <?php if (!empty($this->title)): ?>
  8. <h1><?= $this->title ?><?php if (isset($this->params['subtitle'])): ?>
  9. <small><?= $this->params['subtitle'] ?></small><?php endif ?></h1>
  10. <?php endif ?>
  11. </div>
  12. <div class="col-sm-6">
  13. <?php
  14. echo Breadcrumbs::widget([
  15. 'tag' => 'ol',
  16. 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
  17. 'itemTemplate' => "<li class='breadcrumb-item'>{link}</li>\n",
  18. 'activeItemTemplate' => "<li class=\"breadcrumb-item active\">{link}</li>\n",
  19. 'options' => ['class' => 'breadcrumb float-sm-right']
  20. ]);
  21. ?>
  22. </div>
  23. </div>