first commit
This commit is contained in:
59
templates_user/components/homeOfferCard.php
Normal file
59
templates_user/components/homeOfferCard.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<div class="product-offer-card">
|
||||
<div class="offer-card-img">
|
||||
<? if($this->obrazek) : ?>
|
||||
<img class="offer-card-img-img" src="<?= $this->obrazek; ?>" alt="">
|
||||
<? endif; ?>
|
||||
|
||||
<img class="offer-card-img-star" src="/upload/filemanager/new-2024/assets/big-star-border.svg" alt="">
|
||||
|
||||
<? if($this->tags) : ?>
|
||||
<ul>
|
||||
<? foreach ($this->tags as $key => $value) : ?>
|
||||
<li><?= $value; ?></li>
|
||||
<? endforeach; ?>
|
||||
</ul>
|
||||
<? endif; ?>
|
||||
</div>
|
||||
<div class="offer-card-data">
|
||||
<? if($this->title) : ?>
|
||||
<h2><?= $this->title; ?></h2>
|
||||
<? endif; ?>
|
||||
<ul>
|
||||
<? if($this->wspolpraca) : ?>
|
||||
<li class="offer-collaboration">
|
||||
<img src="/upload/filemanager/new-2024/assets/Star.svg" alt="">
|
||||
<p>Współpraca od: <strong><?= $this->wspolpraca; ?></strong></p>
|
||||
</li>
|
||||
<? endif; ?>
|
||||
<? if($this->witryna_txt) : ?>
|
||||
<li class="offer-website">
|
||||
<img src="/upload/filemanager/new-2024/assets/Star.svg" alt="">
|
||||
<p>Witryna: <strong>
|
||||
<? if($this->witryna_url) : ?>
|
||||
<a href="<?= $this->witryna_url; ?>"><?= $this->witryna_txt; ?></a>
|
||||
<? else : ?>
|
||||
<span><?= $this->witryna_txt; ?></span>
|
||||
<? endif; ?>
|
||||
</strong></p>
|
||||
</li>
|
||||
<? endif; ?>
|
||||
<? if($this->rynek) : ?>
|
||||
<li class="offer-market">
|
||||
<img src="/upload/filemanager/new-2024/assets/Star.svg" alt="">
|
||||
<p>Rynek: <strong><?= $this->rynek; ?></strong></p>
|
||||
</li>
|
||||
<? endif; ?>
|
||||
</ul>
|
||||
<div class="offer-card-footer">
|
||||
<? if($this->sprawdz_url) : ?>
|
||||
<a href="<?= $this->sprawdz_url; ?>" class="offer-card-btn">
|
||||
Sprawdź
|
||||
<img src="/upload/filemanager/new-2024/assets/black-mini-arrow.svg" alt="">
|
||||
</a>
|
||||
<? endif; ?>
|
||||
<? if($this->image) : ?>
|
||||
<img src="<?= $this->image; ?>" alt="">
|
||||
<? endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user