Skip to content

Commit d2e0f0f

Browse files
committed
moved logos to AppAsset
1 parent 4cbc312 commit d2e0f0f

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/views/layouts/main.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="wrap">
2828
<?php
2929
NavBar::begin([
30-
'brandLabel' => Yii::$app->params['logo-text'],
30+
'brandLabel' => Yii::$app->name,
3131
'brandUrl' => Yii::$app->homeUrl,
3232
'options' => [
3333
'class' => 'navbar-inverse navbar-fixed-top',

src/views/site/index.php

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
<?php
22

3+
use hiqdev\assetpackagist\assets\AppAsset;
4+
35
/* @var $this yii\web\View */
46

5-
$this->title = Yii::$app->params['logo-text'];
7+
$logoUrl = AppAsset::register($this)->baseUrl . '/logo';
8+
9+
$this->title = Yii::$app->name;
610
?>
711
<div class="site-index">
812
<div style="text-align:center;margin:30px 0px 20px">
913
<div>
10-
<img src="/logo/composer.png" height="140px">
11-
<img src="/logo/bower.svg" height="100px" style="margin:10px">
12-
<img src="/logo/npm.svg" height="80px" style="margin:10px">
14+
<img src="<?= $logoUrl ?>/composer.png" height="140px">
15+
<img src="<?= $logoUrl ?>/bower.svg" height="100px" style="margin:10px">
16+
<img src="<?= $logoUrl ?>/npm.svg" height="80px" style="margin:10px">
1317
<h3>Composer + Bower + NPM = friends forever!</h3>
1418
</div>
1519
</div>

0 commit comments

Comments
 (0)