first commit
This commit is contained in:
31
templates_user/__partials/home-case-study.php
Normal file
31
templates_user/__partials/home-case-study.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<? foreach (\front\factory\CaseStudy::case_study_list() as $key => $case_study) : ?>
|
||||
<?
|
||||
$case_img = "";
|
||||
|
||||
if($case_study['section_company_img']) {
|
||||
$case_img = $case_study['section_company_img'];
|
||||
} elseif($case_study['section_company_iframe']) {
|
||||
$case_img = $case_study['section_company_iframe'];
|
||||
}
|
||||
if ( $case_study['id'] == 42 ) {
|
||||
$case_img = "/upload/filemanager/case_study/4-szpaki/Moon-2.jpg";
|
||||
}
|
||||
?>
|
||||
|
||||
<? if ($case_study['id'] == 36 || $case_study['id'] == 41 or $case_study['id'] == 42 ) : ?>
|
||||
<div class="col-md-6 col-lg-4 mb-4 mb-md-0">
|
||||
<?= \Tpl::view( 'templates_user/components/homeOfferCard', [
|
||||
'obrazek' => $case_img,
|
||||
'title' => $case_study['title'],
|
||||
'wspolpraca' => $case_study['wspolpraca-od'],
|
||||
'witryna_txt' => $case_study['witryna'],
|
||||
'witryna_url' => '',
|
||||
'rynek' => $case_study['rynek'],
|
||||
'sprawdz_url' => "/case-study/" . \S::seo($case_study['title'] ),
|
||||
'image' => $case_study['logo'],
|
||||
'tags' => [ ]
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
<? endif; ?>
|
||||
<? endforeach; ?>
|
||||
Reference in New Issue
Block a user