Skip to content

Commit

Permalink
no cdn bi m
Browse files Browse the repository at this point in the history
  • Loading branch information
funson86 committed Jun 7, 2022
1 parent a189bf6 commit 5348f6a
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 52 deletions.
17 changes: 0 additions & 17 deletions common/widgets/adminlte/BootstrapIconsAsset.php

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/assets/BbsAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class BbsAsset extends AssetBundle
'yii\web\YiiAsset',
'common\widgets\adminlte\Bootstrap4Asset',
'common\widgets\adminlte\Bootstrap4PluginAsset',
'common\widgets\adminlte\BootstrapIconsAsset',
'common\widgets\adminlte\FlagIconAsset',
'common\widgets\funboot\assets\FunbootBootstrapFixAsset',
'common\components\assets\CookieBarAsset',
'common\components\assets\FontAwesomeAsset',
// 'yii\bootstrap\BootstrapAsset',
];
}
2 changes: 1 addition & 1 deletion frontend/assets/MallPlatformAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class MallPlatformAsset extends AssetBundle
'yii\web\YiiAsset',
'common\widgets\adminlte\Bootstrap4Asset',
'common\widgets\adminlte\Bootstrap4PluginAsset',
'common\widgets\adminlte\BootstrapIconsAsset',
'common\widgets\adminlte\FlagIconAsset',
'common\widgets\funboot\assets\FunbootBootstrapFixAsset',
'common\components\assets\CookieBarAsset',
'common\components\assets\FontAwesomeAsset',
// 'yii\bootstrap\BootstrapAsset',
];
}
2 changes: 1 addition & 1 deletion frontend/widgets/views/bbs-sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<?php if ($type == 'topic') { ?>
<div class="card">
<div class="card-body text-center">
<?= Html::a(Html::tag('i', '', ['class' => 'bi-pencil']) . ' ' . Yii::t('app', 'Publish'), ['/bbs/topic/edit', 'type' => $type, 'node_id' => $nodeId], ['class' => 'btn btn-block btn-primary']) ?>
<?= Html::a(Html::tag('i', '', ['class' => 'fa fa-pencil']) . ' ' . Yii::t('app', 'Publish'), ['/bbs/topic/edit', 'type' => $type, 'node_id' => $nodeId], ['class' => 'btn btn-block btn-primary']) ?>
</div>
</div>
<?php } ?>
Expand Down
8 changes: 4 additions & 4 deletions web/resources/bbs/default/views/comment/index_.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
<div class="float-right">
<?php if ($model->isOwner()) {
echo Html::a(
Html::tag('i', '', ['class' => 'bi-hand-thumbs-up']) . ' ' . Html::tag('span', $model->like) . ' 个赞 ',
Html::tag('i', '', ['class' => 'fa fa-thumbs-o-up']) . ' ' . Html::tag('span', $model->like) . ' 个赞 ',
'javascript:;'
);

echo Html::a('',
['/bbs/comment/update', 'id' => $model->id],
['title' => '修改回帖', 'class' => 'bi-pencil']
['title' => '修改回帖', 'class' => 'fa fa-pencil']
) . ' ';
echo Html::a('',
['/bbs/comment/delete', 'id' => $model->id],
[
'title' => '删除回复',
'class' => 'bi-trash',
'class' => 'fa fa-trash',
'data' => [
'confirm' => "您确认要删除回复吗?",
'method' => 'post',
Expand All @@ -40,7 +40,7 @@
);
} else {
echo Html::a(
Html::tag('i', '', ['class' => 'bi-hand-thumbs-up']) . ' ' . Html::tag('span', $model->like_count) . ' 个赞',
Html::tag('i', '', ['class' => 'fa fa-thumbs-o-up']) . ' ' . Html::tag('span', $model->like_count) . ' 个赞',
'#',
[
'data-do' => 'like',
Expand Down
2 changes: 1 addition & 1 deletion web/resources/bbs/default/views/default/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</li>
<?php } ?>
<li class="nav-item ml-auto mr-2">
<a class="nav-link btn-primary" href="<?= Url::to(['/bbs/topic/edit', 'node_id' => Yii::$app->request->get('id')]) ?>" tabindex="-1" aria-disabled="true"><?= Html::tag('i', '', ['class' => 'bi-pencil']) . ' ' . Yii::t('app', 'Publish') ?></a>
<a class="nav-link btn-primary" href="<?= Url::to(['/bbs/topic/edit', 'node_id' => Yii::$app->request->get('id')]) ?>" tabindex="-1" aria-disabled="true"><?= Html::tag('i', '', ['class' => 'fa fa-pencil']) . ' ' . Yii::t('app', 'Publish') ?></a>
</li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/resources/bbs/default/views/default/index_.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="media-body small lh-125 border-gray">
<div class="media-heading topic-title"><?= $model->grade == ActiveModel::GRADE_EXCELLENT ? Html::tag('span', '', ['class' => 'badge badge-pill badge-info']) : '' ?><?= Html::a($model->name, ['/bbs/topic/view', 'id' => $model->id]) ?><?= $model->status == ActiveModel::STATUS_INACTIVE ? ' ' . Html::tag('span', Yii::t('app', 'Unverified'), ['class' => 'btn-warning pl-1 pr-1']) . ' ' . Html::a(Yii::t('app', 'Pass'), ['/bbs/topic/pass', 'id' => $model->id], ['class' => 'btn btn-sm btn-success']) . ' ' . Html::a(Yii::t('app', 'Delete'), ['/bbs/topic/delete', 'id' => $model->id], ['class' => 'btn btn-sm btn-danger']) : '' ?> </div>
<div class="topic-info">
<a class="remove-padding-left" href="<?= Url::to(['/bbs/topic/view', 'id' => $model->id]) ?>"><span class="bi-hand-thumbs-up"> <?= $model->like ?> </span></a> •
<a class="remove-padding-left" href="<?= Url::to(['/bbs/topic/view', 'id' => $model->id]) ?>"><span class="fa fa-thumbs-o-up"> <?= $model->like ?> </span></a> •
<a class="topic-node" href="<?= Url::to(['/bbs/default/index', 'id' => $model->node_id]) ?>"><?= $model->node->name ?></a> •
<?php if ($model->comment > 0) { ?>
<span>最后由 <a href="<?= Url::to(['/bbs/user/view', 'id' => $model->last_comment_user_id]) ?>"><strong> <?= $model->last_comment_username ?> </strong></a>于 <?= Yii::$app->formatter->asDate($model->last_comment_updated_at) ?> 回复 •
Expand Down
10 changes: 5 additions & 5 deletions web/resources/bbs/default/views/layouts/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
</div>

<div class="btn-group-vertical" id="floatButton">
<button type="button" class="btn btn-light" id="goTop" title="<?= Yii::t('app', 'Go Top') ?>"><span class="bi-arrow-up"></span></button>
<button type="button" class="btn btn-light" id="refresh" title="<?= Yii::t('app', 'Refresh') ?>"><span class="bi-arrow-clockwise"></span></button>
<button type="button" class="btn btn-light" id="pageQrcode" title="<?= Yii::t('app', 'Qrcode') ?>"><span class="bi-upc-scan"></span>
<img class="qrcode" width="130" height="130" src="<?= Url::to(['/site/qr', 'text' => Yii::$app->request->absoluteUrl]) ?>"/>
<button type="button" class="btn btn-light" id="goTop" title="<?= Yii::t('app', 'Go Top') ?>"><span class="fa fa-chevron-up"></span></button>
<button type="button" class="btn btn-light" id="refresh" title="<?= Yii::t('app', 'Refresh') ?>"><span class="fa fa-refresh"></span></button>
<button type="button" class="btn btn-light" id="pageQrcode" title="<?= Yii::t('app', 'Qrcode') ?>"><span class="fa fa-qrcode"></span>
<img class="qrcode" width="130" height="130" src="<?= Url::to(['/bbs/default/qr', 'text' => Yii::$app->request->absoluteUrl]) ?>"/>
</button>
<button type="button" class="btn btn-light" id="goBottom" title="<?= Yii::t('app', 'Go Bottom') ?>"><span class="bi-arrow-down"></span></button>
<button type="button" class="btn btn-light" id="goBottom" title="<?= Yii::t('app', 'Go Bottom') ?>"><span class="fa fa-chevron-down"></span></button>
</div>

4 changes: 2 additions & 2 deletions web/resources/bbs/default/views/layouts/nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
} else {
// 通知
/*$menuItems[] = [
'label' => Html::tag('i', '', ['class' => 'bi-bell-fill']) . (1 > 0 ?Html::tag('span', 1, ['class' => 'badge badge-danger']) : ''),
'label' => Html::tag('i', '', ['class' => 'fa fa-bell']) . (1 > 0 ?Html::tag('span', 1, ['class' => 'badge badge-danger']) : ''),
'url' => ['/notice/index'],
'options' => ['class' => 'notice-count'],
];*/
Expand All @@ -78,7 +78,7 @@

// 语言
/*$menuItems[] = [
'label' => Html::tag('i', '', ['class' => 'bi-globe']),
'label' => Html::tag('i', '', ['class' => 'fa fa-globe']),
'items' => [
['label' => '<i class="flag-icon flag-icon-cn mr-2"></i>' . Yii::t('app', 'Chinese'), 'url' => 'javascript:;', 'linkOptions' => ['class' => 'funboot-lang', 'data-lang' => 'cn']],
['label' => '<i class="flag-icon flag-icon-gb mr-2"></i>' . Yii::t('app', 'English'), 'url' => 'javascript:;', 'linkOptions' => ['class' => 'funboot-lang', 'data-lang' => 'en']],
Expand Down
24 changes: 12 additions & 12 deletions web/resources/bbs/default/views/topic/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="topic-info">
<a class="topic-node" href="<?= Url::to(['/bbs/default/index', 'id' => $model->node_id]) ?>"><?= Html::tag('span', $model->node->name, ['class' => 'btn-sm btn-info']) ?></a> •
<?= $model->tag_id > 0 ? Html::a($model->tag->name, ['/bbs/default/index', 'ModelSearch[tag_id]' => $model->tag_id], ['class' => 'btn-sm btn-info']) : '' ?>
<a class="remove-padding-left" href="<?= Url::to(['/bbs/topic/view', 'id' => $model->id]) ?>"><span class="bi-hand-thumbs-up"> <?= $model->like ?> </span></a> •
<a class="remove-padding-left" href="<?= Url::to(['/bbs/topic/view', 'id' => $model->id]) ?>"><span class="fa fa-thumbs-o-up"> <?= $model->like ?> </span></a> •
<?php if ($model->comment > 0) { ?>
<span>最后由 <a href="<?= Url::to(['/bbs/user/view', 'id' => $model->last_comment_user_id]) ?>"><strong> <?= $model->last_comment_username ?> </strong></a>于 <?= Yii::$app->formatter->asDate($model->last_comment_updated_at) ?> 回复 •
<?php } else { ?>
Expand Down Expand Up @@ -55,7 +55,7 @@
<div class="card-footer">
<?php
$like = Html::a(
Html::tag('i', '', ['class' => 'bi-hand-thumbs-up']) . Html::tag('span', $model->like) . ' 个赞',
Html::tag('i', '', ['class' => 'fa fa-thumbs-o-up']) . Html::tag('span', $model->like) . ' 个赞',
'#',
[
'data-action' => UserAction::ACTION_LIKE,
Expand All @@ -65,7 +65,7 @@
]);

$hate = Html::a(
Html::tag('i', '', ['class' => 'bi-hand-thumbs-down']) . '',
Html::tag('i', '', ['class' => 'fa fa-thumbs-o-down']) . '',
'#',
[
'data-action' => UserAction::ACTION_HATE,
Expand All @@ -76,7 +76,7 @@
);

$follow = Html::a(
Html::tag('i', '', ['class' => 'bi-eye']) . ' 关注',
Html::tag('i', '', ['class' => 'fa fa-eye']) . ' 关注',
'#',
[
'data-action' => UserAction::ACTION_FOLLOW,
Expand All @@ -86,7 +86,7 @@
]
);
$thanks = Html::a(
Html::tag('i', '', ['class' => 'bi-heart']) . ' 感谢',
Html::tag('i', '', ['class' => 'fa fa-heart-o']) . ' 感谢',
'#',
[
'data-action' => UserAction::ACTION_THANKS,
Expand All @@ -96,7 +96,7 @@
]
);
$favorite = Html::a(
Html::tag('i', '', ['class' => 'bi-bookmark']) . ' 收藏',
Html::tag('i', '', ['class' => 'fa fa-bookmark-o']) . ' 收藏',
'#',
[
'data-action' => UserAction::ACTION_FAVORITE,
Expand All @@ -109,7 +109,7 @@

if ($model->isOwner()) {
echo Html::a(
Html::tag('i', '', ['class' => 'bi-hand-thumbs-up']) . ' ' . Html::tag('span', $model->like) . ' 个赞',
Html::tag('i', '', ['class' => 'fa fa-thumbs-o-up']) . ' ' . Html::tag('span', $model->like) . ' 个赞',
'javascript:;'
);
} else {
Expand All @@ -119,12 +119,12 @@

if ($this->context->isManager()) {
echo Html::a(
Html::tag('i', '', ['class' => 'bi-trophy']) . ' ' . ($model->grade == ActiveModel::GRADE_EXCELLENT ? '取消' : '') . '加精',
Html::tag('i', '', ['class' => 'fa fa-trophy']) . ' ' . ($model->grade == ActiveModel::GRADE_EXCELLENT ? '取消' : '') . '加精',
['/bbs/topic/excellent', 'id' => $model->id, 'cancel' => $model->grade == ActiveModel::GRADE_EXCELLENT ? 1 : 0],
['class' => ($model->grade == ActiveModel::GRADE_EXCELLENT ? 'icon-active' : '')]
);
echo Html::a(
Html::tag('i', '', ['class' => 'bi-arrow-up-circle']) . ' ' . ($model->sort == 10 ? '取消' : '') . '置顶',
Html::tag('i', '', ['class' => 'fa fa-arrow-circle-o-up']) . ' ' . ($model->sort == 10 ? '取消' : '') . '置顶',
['/bbs/topic/top', 'id' => $model->id, 'cancel' => $model->sort == 10 ? 1 : 0],
['class' => ($model->sort == 10 ? ' icon-active' : '')]
);
Expand All @@ -134,16 +134,16 @@
echo '<span class="float-right">';
if ($model->status != ActiveModel::STATUS_ACTIVE) {
echo Html::a(
Html::tag('i', '', ['class' => 'bi-pencil']) . ' 审核通过',
Html::tag('i', '', ['class' => 'fa fa-pencil']) . ' 审核通过',
['/bbs/topic/pass', 'id' => $model->id]
);
}
echo Html::a(
Html::tag('i', '', ['class' => 'bi-pencil']) . ' 修改',
Html::tag('i', '', ['class' => 'fa fa-pencil']) . ' 修改',
['/bbs/topic/edit', 'id' => $model->id]
);
echo Html::a(
Html::tag('i', '', ['class' => 'bi-trash']) . ' 删除',
Html::tag('i', '', ['class' => 'fa fa-trash']) . ' 删除',
['/bbs/topic/delete', 'id' => $model->id],
[
'data' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</li>
<?php } ?>
<li class="nav-item ml-auto mr-2">
<a class="nav-link btn-primary" href="<?= Url::to(['/bbs/topic/edit', 'node_id' => Yii::$app->request->get('id')]) ?>" tabindex="-1" aria-disabled="true"><?= Html::tag('i', '', ['class' => 'bi-pencil']) . ' ' . Yii::t('app', 'Publish') ?></a>
<a class="nav-link btn-primary" href="<?= Url::to(['/bbs/topic/edit', 'node_id' => Yii::$app->request->get('id')]) ?>" tabindex="-1" aria-disabled="true"><?= Html::tag('i', '', ['class' => 'fa fa-pencil']) . ' ' . Yii::t('app', 'Publish') ?></a>
</li>
</ul>
</div>
Expand Down
8 changes: 4 additions & 4 deletions web/resources/mall/default/views/layouts/footer-platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
</div>

<div class="btn-group-vertical" id="floatButton">
<button type="button" class="btn btn-light" id="goTop" title="<?= Yii::t('app', 'Go Top') ?>"><span class="bi-arrow-up"></span></button>
<button type="button" class="btn btn-light" id="refresh" title="<?= Yii::t('app', 'Refresh') ?>"><span class="bi-arrow-clockwise"></span></button>
<button type="button" class="btn btn-light" id="pageQrcode" title="<?= Yii::t('app', 'Qrcode') ?>"><span class="bi-upc-scan"></span>
<button type="button" class="btn btn-light" id="goTop" title="<?= Yii::t('app', 'Go Top') ?>"><span class="fa fa-chevron-up"></span></button>
<button type="button" class="btn btn-light" id="refresh" title="<?= Yii::t('app', 'Refresh') ?>"><span class="fa fa-refresh"></span></button>
<button type="button" class="btn btn-light" id="pageQrcode" title="<?= Yii::t('app', 'Qrcode') ?>"><span class="fa fa-qrcode"></span>
<img class="qrcode" width="130" height="130" src="<?= Url::to(['/site/qr', 'text' => Yii::$app->request->absoluteUrl]) ?>"/>
</button>
<button type="button" class="btn btn-light" id="goBottom" title="<?= Yii::t('app', 'Go Bottom') ?>"><span class="bi-arrow-down"></span></button>
<button type="button" class="btn btn-light" id="goBottom" title="<?= Yii::t('app', 'Go Bottom') ?>"><span class="fa fa-chevron-down"></span></button>
</div>

4 changes: 2 additions & 2 deletions web/resources/mall/default/views/layouts/nav-platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
} else {
// 通知
/*$menuItems[] = [
'label' => Html::tag('i', '', ['class' => 'bi-bell-fill']) . (1 > 0 ?Html::tag('span', 1, ['class' => 'badge badge-danger']) : ''),
'label' => Html::tag('i', '', ['class' => 'fa fa-bell']) . (1 > 0 ?Html::tag('span', 1, ['class' => 'badge badge-danger']) : ''),
'url' => ['/notice/index'],
'options' => ['class' => 'notice-count'],
];*/
Expand All @@ -70,7 +70,7 @@

// 语言
/*$menuItems[] = [
'label' => Html::tag('i', '', ['class' => 'bi-globe']),
'label' => Html::tag('i', '', ['class' => 'fa fa-globe']),
'items' => [
['label' => '<i class="flag-icon flag-icon-cn mr-2"></i>' . Yii::t('app', 'Chinese'), 'url' => 'javascript:;', 'linkOptions' => ['class' => 'funboot-lang', 'data-lang' => 'cn']],
['label' => '<i class="flag-icon flag-icon-gb mr-2"></i>' . Yii::t('app', 'English'), 'url' => 'javascript:;', 'linkOptions' => ['class' => 'funboot-lang', 'data-lang' => 'en']],
Expand Down

0 comments on commit 5348f6a

Please sign in to comment.