Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Jan 27, 2021
1 parent 1716511 commit fd8ada6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/views/modules/cms/content-element/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@
<? endif; ?>


<ul class="list-inline d-sm-flex g-color-gray-dark-v4 mb-0 sx-list-short-info">
<ul class="list-inline d-sm-flex g-color-gray-dark-v4 mb-0 sx-list-short-info sx-news-item-short-info">
<?php if ($model->createdBy) : ?>
<li class="list-inline-item">
<li class="list-inline-item sx-news-item-created_by">
<img src="<?= $model->createdBy->avatarSrc; ?>" style="height: 25px; border-radius: 50%;"/>
<a href="<?= $model->createdBy->getPageUrl(); ?>" title="<?= $model->createdBy->name; ?>" class="g-color-gray-dark-v4 g-color-primary--hover">
<?= $model->createdBy->shortDisplayName; ?>
</a>
</li>
<li class="list-inline-item g-mx-10">/</li>
<li class="list-inline-item g-mx-10 sx-news-item-created_by">/</li>
<?php endif; ?>


Expand Down
10 changes: 5 additions & 5 deletions src/views/widgets/ContentElementsCmsWidget/_news-item.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@

<!-- Article Content -->
<div class="col-md-12 align-self-center">
<ul class="list-inline g-color-gray-dark-v4 g-font-size-12 g-mb-0">
<ul class="list-inline g-color-gray-dark-v4 g-font-size-12 g-mb-0 sx-news-item-short-info">

<? if ($model->createdBy) : ?>
<li class="list-inline-item">
<li class="list-inline-item sx-news-item-created_by">
<img src="<?= $model->createdBy->avatarSrc; ?>" style="height: 25px; border-radius: 50%; max-width: 100%;"/>
<span title="<?= $model->createdBy->shortDisplayName; ?>" class="g-color-gray-dark-v4 g-color-primary--hover">
<?= $model->createdBy->shortDisplayName; ?>
</span>
</li>
<li class="list-inline-item">/</li>
<li class="list-inline-item sx-news-item-created_by">/</li>
<? endif; ?>

<li class="list-inline-item">
<li class="list-inline-item sx-news-item-created_at">
<?= \Yii::$app->formatter->asDate($model->published_at, 'medium') ?>
</li>

Expand Down Expand Up @@ -90,7 +90,7 @@
<div class="g-color-gray-dark-v1 g-font-size-16">
<?= $model->description_short; ?>
</div>
<p><a href="<?= $model->absoluteUrl; ?>" class="btn btn-md u-btn-outline-black g-mr-10 g-mb-15" data-pjax="0"><?= \Yii::t('skeeks/cms', 'More'); ?> <i class="fas fa-chevron-right"></i></a></p>
<p><a href="<?= $model->absoluteUrl; ?>" class="btn btn-secondary" data-pjax="0"><?= \Yii::t('skeeks/cms', 'More'); ?> <i class="hs-icon hs-icon-arrow-right" style="font-size: 11px;"></i></a></p>

</div>

0 comments on commit fd8ada6

Please sign in to comment.