Skip to content

Commit

Permalink
REFACTOR template to Bootstrap card format (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish committed Dec 6, 2022
1 parent bf3dc84 commit f7f8af0
Showing 1 changed file with 36 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,36 +1,41 @@
<% if $Title && $ShowTitle %><h2 class="element__title">$Title</h2><% end_if %>
<% if $Content %><div class="element__content">$Content</div><% end_if %>

<div class="row">
<% if $FullAddress %>
<div class="col-md-8">
$AddressMap(900,300)
</div>
<div class="col-md-4">
<% else %>
<div class="col-sm-12">
<% end_if %>

<% if $LocationName %><h3>$LocationName</h3><% end_if %>
<% if $FullAddress %>
<address>
<p>
<% if $Address %>$Address<br><% if $Address2 %>$Address2<br><% end_if %><% end_if %>
<% if $City %>$City<% end_if %><% if $State %><% if $City %>, <% end_if %>$State<% end_if %><% if $PostalCode %> $PostalCode<% end_if %>
<% if $City || $State || $PostalCode %>
<br>
<% end_if %>
<% if $Country %>$Country<% end_if %>
</p>
</address>
<% end_if %>
<% if $Phone || $Email || $Fax || $Website %>
<p>
<% if $Phone %><a href="tel:{$Phone}" title="Call $Phone">$Phone</a><br><% end_if %>
<% if $Email %><a href="mailto:{$Email}" title="Email $Email">$Email</a><br><% end_if %>
<% if $Fax %><a href="tel:$Fax" title="Email $Email">$Fax</a><br><% end_if %>
<% if $Website %><a href="$Website" target="_blank" title="Go to $Website">$Website</a><% end_if %>
</p>
<% end_if %>
<div class="row element__customer__service">
<div class="col-md-12 card">
<div class="row">
<% if $FullAddress %>
<div class="col-md-8 card-img-left">
$AddressMap(900,300)
</div>
<div class="col-md-4 card-body">
<% else %>
<div class="col-sm-12 card-body">
<% end_if %>
<% if $LocationName %><h3 class="card-title">$LocationName</h3><% end_if %>
<div class="card-text">
<% if $FullAddress %>
<address>
<p>
<% if $Address %>$Address<br><% if $Address2 %>$Address2<br><% end_if %><% end_if %>
<% if $City %>$City<% end_if %><% if $State %><% if $City %>, <% end_if %>$State<% end_if %><% if $PostalCode %> $PostalCode<% end_if %>
<% if $City || $State || $PostalCode %>
<br>
<% end_if %>
<% if $Country %>$Country<% end_if %>
</p>
</address>
<% end_if %>
<% if $Phone || $Email || $Fax || $Website %>
<p>
<% if $Phone %><a href="tel:{$Phone}" title="Call $Phone">$Phone</a><br><% end_if %>
<% if $Email %><a href="mailto:{$Email}" title="Email $Email">$Email</a><br><% end_if %>
<% if $Fax %><a href="tel:$Fax" title="Email $Email">$Fax</a><br><% end_if %>
<% if $Website %><a href="$Website" target="_blank" title="Go to $Website">$Website</a><% end_if %>
</p>
<% end_if %>
</div>
</div>
</div>
</div>
</div>

0 comments on commit f7f8af0

Please sign in to comment.