Skip to content

Commit

Permalink
template - check if $JobTitle exsits (#9)
Browse files Browse the repository at this point in the history
layout tweaks
  • Loading branch information
jsirish committed Oct 17, 2023
1 parent f32b732 commit f765c75
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions templates/Dynamic/Elements/PullQuote/Elements/ElementPullQuote.ss
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
<div class="row element__pull__quote">
<section class="bg-light">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col col-lg-10 col-xl-8">
<div class="card rounded-3">
<div class="card-body p-5">
<% if $Image %>
<div class="d-flex justify-content-center mb-4">
<img src="$Image.FocusFill(100,100).URL" alt="$Image.Title.ATT"
class="rounded-circle shadow-1-strong" width="100" height="100" />
</div>
<% end_if %>
<figure class="text-center mb-0">
<blockquote class="blockquote mb-4">
<p>
<span class="font-italic">$Content</span>
</p>
</blockquote>
<figcaption class="blockquote-footer mb-0">
$Title at <cite title="Source Title">$JobTitle</cite>
</figcaption>
</figure>
</div>
<div class="col-md-12 bg-light element__pull__quote">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col col-lg-10 col-xl-8">
<div class="card rounded-3">
<div class="card-body p-5">
<% if $Image %>
<div class="d-flex justify-content-center mb-4">
<img src="$Image.FocusFill(100,100).URL" alt="$Image.Title.ATT"
class="rounded-circle shadow-1-strong" width="100" height="100" />
</div>
<% end_if %>
<figure class="text-center mb-0">
<blockquote class="blockquote mb-4">
<p>
<span class="font-italic">$Content</span>
</p>
</blockquote>
<figcaption class="blockquote-footer mb-0">
$Title <% if $JobTitle %>at <cite title="Source Title">$JobTitle</cite><% end_if %>
</figcaption>
</figure>
</div>
</div>
</div>
</div>
</section>
</div>
</div>

0 comments on commit f765c75

Please sign in to comment.