first commit
This commit is contained in:
56
resources/views/shortcodes/testimonials.blade.php
Normal file
56
resources/views/shortcodes/testimonials.blade.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
if (isset($branch)) {
|
||||
if ($branch != "all") {
|
||||
$Testi = CCMS::getTestimonialsByBranchAlias($branch);
|
||||
} else {
|
||||
$Testi = CCMS::getTestimonials();
|
||||
}
|
||||
} else {
|
||||
$Testi = CCMS::getTestimonials();
|
||||
}
|
||||
if (isset($layout)) {
|
||||
?>
|
||||
<?php foreach ($Testi as $testimo) : ?>
|
||||
|
||||
<div class="row pb-5 mb-10" style="border-bottom: 1px solid;">
|
||||
<div class="col-12 txt-p-jssfy">
|
||||
<h6><?php echo $testimo->by; ?></h6>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<img src="<?php echo site_url($testimo->image); ?>" alt="<?php echo $testimo->by; ?>" class="logo">
|
||||
</div>
|
||||
<div class="col-8 txt-p-jssfy">
|
||||
<i class="quote-left fas fa-quote-left"></i>
|
||||
<?php echo Str::words($testimo->text, 30, " ..."); ?> <i class="quote-right fas fa-quote-right"></i>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php
|
||||
|
||||
|
||||
} else {
|
||||
?>
|
||||
<div class="swiper-container mid-slider items" data-perview="3">
|
||||
|
||||
<div class="swiper-wrapper">
|
||||
<?php foreach ($Testi as $testimo) : ?>
|
||||
<div class="swiper-slide slide-center item">
|
||||
<div class="row card">
|
||||
<div class="col-12 txt-p-jssfy">
|
||||
<div class="cntr-img"><img src="<?php echo site_url($testimo->image); ?>" alt="<?php echo $testimo->by; ?>" class="logo"></div>
|
||||
<i class="quote-left fas fa-quote-left"></i>
|
||||
<?php echo Str::words($testimo->text, 30, " ..."); ?> <i class="quote-right fas fa-quote-right"></i>
|
||||
<h6><?php echo $testimo->by; ?></h6>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user