Skip to content

Commit

Permalink
Fix encoding and Bootstrap usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-42 committed Feb 9, 2021
1 parent 6b73887 commit cf21a1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/Blog/Widget/PostCard.php
Expand Up @@ -30,8 +30,6 @@ protected function run(): string

$this->initOptions();

$this->registerPlugin('page-card', $this->options);

return implode("\n", [
Html::beginTag('div', $this->options),
Html::beginTag('div', ['class' => 'card-body d-flex flex-column align-items-start']),
Expand Down Expand Up @@ -59,7 +57,7 @@ protected function renderBody(): string
Html::encode($this->post->getUser()->getLogin()),
$this->urlGenerator->generate('user/profile', ['login' => $this->post->getUser()->getLogin()])
),
['class' => 'mb-1 text-muted']
['class' => 'mb-1 text-muted', 'encode' => false]
) . Html::p(
Html::encode(mb_substr($this->post->getContent(), 0, 400))
. (mb_strlen($this->post->getContent()) > 400 ? '…' : ''),
Expand Down
2 changes: 0 additions & 2 deletions src/Widget/OffsetPagination.php
Expand Up @@ -62,8 +62,6 @@ protected function run(): string
$this->initOptions();
$this->prepareButtons();

$this->registerPlugin('offset-pagination', $this->options);

return implode("\n", [
Html::beginTag('nav', $this->options),
Html::beginTag('ul', ['class' => 'pagination']),
Expand Down

0 comments on commit cf21a1a

Please sign in to comment.