Dodaj funkcje do czyszczenia tekstu ogłoszeń oraz aktualizuj wywołania w szablonach

This commit is contained in:
2025-07-13 11:05:09 +02:00
parent fcf8af71aa
commit f43b6081c1
10 changed files with 74 additions and 11 deletions

View File

@@ -55,7 +55,7 @@
<span class="place"><?= $advert['country'];?> - <?= $advert['city'];?></span> | <span class="firm"><?= $advert['firm_name_profile'];?></span> | <span class="category"><?= $advert['category'];?></span>
</div>
<div class="short-text">
<?= mb_substr( strip_tags( $advert['text'] ), 0, 150, 'UTF-8' );?>...
<?= mb_substr( strip_tags( \S::clear_advert_text( $advert['text'] ) ), 0, 150, 'UTF-8' );?>...
</div>
<a href="/oferta/<?= $advert['id'];?>/<?= \S::seo( $advert['title'], true );?>" target="_blank" class="btn btn-success"><?= $lang['szczegoly-oferty'];?></a>
</div>