templates/content/caseStudy.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %} 
  2. {% block body %}
  3. <div id="main-content" class="content">
  4.     <div class="section bottom-padding top-padding-4em">
  5.         <div class="inner position-relative">
  6.             <div class="case-study-details">
  7.                 <div class="logo-container">
  8.                     <img style="max-width: 225px; max-height: 100px" src="{{ caseStudy.getClientLogo() }}" />
  9.                 </div>
  10.                 <div>
  11.                     <h3>Project Details:</h3>
  12.                     <ul>
  13.                         <li><strong>Client:</strong> {{ caseStudy.getClientName()|raw }}</li>
  14.                         <li><strong>Industry:</strong> {{ caseStudy.getIndustry()|join(', ') }} </li>
  15.                         <li><strong>Solutions:</strong> {{ caseStudy.getSolutions()|join(', ') }} </li>
  16.                     </ul>
  17.                 </div>
  18.             </div>
  19.             <div class="row middle-lg middle-md">
  20.                 <div class="col-lg-7 col-md-7 col-sm-7 col-xs-12 intro-title-description">
  21.                     {# <h2 data-aos="fade-up">{{ caseStudy.getDescriptionTitle() }}</h2> #}
  22.                     <p data-aos="fade-up"> {{ caseStudy.getDescription() }} </p>
  23.                 </div>
  24.             </div>
  25.         </div>
  26.     </div>
  27.     {% set keyFactItems = caseStudy.getKeyFacts() %}
  28.     {% if keyFactItems %}
  29.     {% set keyFactsMaxWidth = caseStudy.getkeyFactsMaxWidth() ? ' style=max-width:' ~ caseStudy.getkeyFactsMaxWidth() ~ 'px' : '' %}
  30.     <div class="section bottom-padding">
  31.         <div class="inner text-align-center{% if not caseStudy.getMaxWidth() %} maxwidth--1080{% endif %}"{{ keyFactsMaxWidth }}>
  32.             <h2 data-aos="fade-up" class="h2--lg">Client Key Facts</h2>
  33.             {% if keyFactItems %}
  34.             <div data-aos="fade-up" class="top-margin-2em red-backdrop">
  35.                 <div class="results-box row gutter-space--lg center-lg center-md center-sm center-xs bg-color--lightgray border-right-bottom{% if keyFactItems|length == 2 %} two-facts{% elseif keyFactItems|length == 3 %} three-facts{% endif %}" style="margin-left:auto;margin-right:auto;">
  36.                     {% for keyFactItem in keyFactItems %}
  37.                     <div data-aos="fade-up" class="col{% if keyFactItems|length == 2 %} col-lg-6 col-md-6{% elseif keyFactItems|length == 3 %} col-lg-4 col-md-4{% endif %} col-sm-6 col-xs-12">
  38.                         {% if keyFactItem["Icon"].getData() %}
  39.                         <img src="{{ keyFactItem["Icon"].getData() }}" style="max-height: 50px;margin:0 auto 10px;">
  40.                         {% endif %}
  41.                         {% if keyFactItem["Digit"].getData() %}
  42.                         <p class="large-number">{{ keyFactItem["Digit"].getData()|raw }}</p>
  43.                         {% endif %}
  44.                         <p class="text--lg auto-margins" style="max-width: 300px">
  45.                             <strong>{{ keyFactItem["Title"].getData()|raw }}</strong>
  46.                         </p>
  47.                     </div>
  48.                     {% endfor %}
  49.                 </div>
  50.             </div>
  51.             {% endif %}
  52.         </div>
  53.     </div>
  54.     {% endif %}
  55.     {% set vertAlignChallenge = caseStudy.getVerticalAlignment1() == 'top' ? '' : caseStudy.getVerticalAlignment1() == 'middle' ? ' middle-lg middle-md' : caseStudy.getVerticalAlignment1() == 'bottom' ? ' bottom-lg bottom-md' : '' %}
  56.     <div class="section bg-color--dark top-bottom-padding">
  57.         <div class="inner light">
  58.             <div class="row gutter-space--lg{{ vertAlignChallenge }} gutter-space--md">
  59.                 <div class="col col-lg-{% if caseStudy.getChallengeImage() %}6{% else %}7{% endif %} col-md-{% if caseStudy.getChallengeImage() %}6{% else %}7{% endif %} col-sm-12 col-xs-12 bottom-margin-2em-mobile">
  60.                     <h2 data-aos="fade-up" class="h2--lg">The Challenge</h2>
  61.                     <div data-aos="fade-up">
  62.                         {{ caseStudy.getChallenge() | raw }}
  63.                     </div>
  64.                 </div>
  65.                 {% if caseStudy.getChallengeImage() is not empty %}
  66.                 {% set imgClass = caseStudy.getPolaroid() ? 'full-width polaroid' : 'full-width' %}
  67.                 <div class="col col-lg-6 col-md-6 col-sm-12 col-xs-12">
  68.                     {{ caseStudy.getChallengeImage().thumbnail('width_500').html({
  69.                         'imgAttributes': {
  70.                           'class': imgClass,
  71.                           'data-aos': 'fade-up',
  72.                         }
  73.                     })|raw }}
  74.                 </div>
  75.                 {% endif %}
  76.             </div>
  77.         </div>
  78.     </div>
  79.     {% if caseStudy.getTestimonial() %}
  80.     <div class="section top-bottom-padding">
  81.         <div class="inner text-align-center">
  82.         {% if caseStudy.getAuthorPortrait() %}
  83.         <div data-aos="fade-up" class="author-portrait-container">
  84.             <img
  85.             src="{{ caseStudy.getAuthorPortrait() }}"
  86.             class="author-portrait"
  87.             />
  88.         </div>
  89.         {% endif %}
  90.         <div
  91.             data-aos="fade-up"
  92.             class="text--lg auto-margins bottom-margin-1em"
  93.             style="max-width: 850px; font-style: italic"
  94.         >
  95.             {{ caseStudy.getTestimonial() | raw }}
  96.         </div>
  97.         <p data-aos="fade-up">
  98.             {{ caseStudy.getAuthorName() }}<br />{{ caseStudy.getAuthorPosition() }}
  99.         </p>
  100.         </div>
  101.     </div>
  102.     {% endif %}
  103.     {% set vertAlign = caseStudy.getVerticalAlignment() == 'top' ? '' : caseStudy.getVerticalAlignment() == 'middle' ? ' middle-lg middle-md' : caseStudy.getVerticalAlignment() == 'bottom' ? ' bottom-lg bottom-md' : '' %}
  104.     <div class="section bg-color--lightgray top-bottom-padding">
  105.         <div class="inner">
  106.         <div class="row gutter-space--lg{{ vertAlign }} gutter-space--md reverse">
  107.             <div class="col col-lg-6 col-md-6 col-sm-12 col-xs-12 bottom-margin-2em-mobile">
  108.             <h2 data-aos="fade-up" class="h2--lg">Our Solution</h2>
  109.             <div data-aos="fade-up">
  110.                 {{ caseStudy.getSolution() | raw }}
  111.             </div>
  112.             </div>
  113.             {% if caseStudy.getSolutionImage() is not empty %}
  114.             {% set imgClass = caseStudy.getPolaroid1() ? 'full-width polaroid' : 'full-width' %}
  115.             <div class="col col-lg-6 col-md-6 col-sm-12 col-xs-12">
  116.             {% if caseStudy.getLightbox() %}
  117.             <a href="{{ caseStudy.getSolutionImage() }}" data-fslightbox="lightbox" data-type="image">
  118.             {% endif %}
  119.                 {{ caseStudy.getSolutionImage().thumbnail('width_500').html({
  120.                     'imgAttributes': {
  121.                     'class': imgClass,
  122.                     'data-aos': 'fade-up',
  123.                     }
  124.                 })|raw }}
  125.             {% if caseStudy.getLightbox() %}
  126.             </a>
  127.             {% endif %}
  128.             </div>
  129.             {% endif %}
  130.         </div>
  131.         </div>
  132.     </div>
  133.     {% if caseStudy.getSecondaryTestimonial() %} 
  134.     {% set bgColor = caseStudy.getSelect() == 'dark' ? ' bg-color--dark' : '' %}
  135.     <div class="section top-bottom-padding{{ bgColor }}">
  136.         <div class="inner text-align-center">
  137.             {% if caseStudy.getSecondaryAuthorPortrait() %}
  138.             <div data-aos="fade-up" class="author-portrait-container">
  139.                 <img
  140.                 src="{{ caseStudy.getSecondaryAuthorPortrait() }}"
  141.                 class="author-portrait"
  142.                 />
  143.             </div>
  144.             {% endif %}
  145.             <p
  146.                 data-aos="fade-up"
  147.                 class="text--lg auto-margins"
  148.                 style="max-width: 850px; font-style: italic"
  149.             >
  150.                 {{ caseStudy.getSecondaryTestimonial() }}
  151.             </p>
  152.             <p data-aos="fade-up">
  153.                 {{ caseStudy.getSecondaryAuthorName() }}<br />{{
  154.                 caseStudy.getSecondaryAuthorPosition()
  155.                 }}
  156.             </p>
  157.         </div>
  158.     </div>
  159.     {% endif %}
  160.     {% set maxWidth = caseStudy.getMaxWidth() ? ' style=max-width:' ~ caseStudy.getMaxWidth() ~ 'px' : '' %}
  161.     <div class="section top-bottom-padding the-results">
  162.         <div class="inner text-align-center{% if not caseStudy.getMaxWidth() %} maxwidth--1080{% endif %}"{{ maxWidth }}>
  163.         <h2 data-aos="fade-up" class="h2--lg">The Results</h2>
  164.         <div data-aos="fade-up" class="auto-margins">
  165.             {{ caseStudy.getResults() | raw }}
  166.         </div>
  167.         {% set featureBlockItems = caseStudy.getFeatures() %}
  168.         {% if featureBlockItems %}
  169.         <div data-aos="fade-up" class="top-margin-2em red-backdrop{% if caseStudy.getClientLink() %} bottom-margin-1em{% endif %}">
  170.             <div class="results-box row gutter-space--lg center-lg center-md center-sm center-xs bg-color--lightgray border-right-bottom" style="margin-left:auto;margin-right:auto;">
  171.                 {% for featureBlockItem in featureBlockItems %}
  172.                 <div data-aos="fade-up" class="col{% if featureBlockItems|length == 2 %} col-lg-6 col-md-6{% elseif featureBlockItems|length == 3 %} col-lg-4 col-md-4{% endif %} col-sm-6 col-xs-12">
  173.                 {% if featureBlockItem["Icon"].getData() %}
  174.                 <img src="{{ featureBlockItem["Icon"].getData() }}" style="max-height: 50px;margin:0 auto 10px;">
  175.                 {% endif %}
  176.                 {% if featureBlockItem["Digit"].getData() %}
  177.                     <p class="large-number">{{ featureBlockItem["Digit"].getData()|raw }}</p>
  178.                 {% endif %}
  179.                 <p class="text--lg auto-margins" style="max-width: 300px">
  180.                     <strong>{{ featureBlockItem["Title"].getData()|raw }}</strong>
  181.                 </p>
  182.                 </div>
  183.                 {% endfor %}
  184.             </div>
  185.         </div>
  186.         {% endif %}
  187.         {% if caseStudy.getClientLink() %}
  188.         {% set buttonLabel = caseStudy.getButtonLabel() ? caseStudy.getButtonLabel() : 'Visit Website' %}
  189.         <a data-aos="fade-up" class="btn dark" href="{{ caseStudy.getClientLink() }}" target="_blank">{{ buttonLabel }}</a>
  190.         {% endif %}
  191.         </div>
  192.     </div>
  193.     {% include 'content/includes/case-study-carousel.html.twig' %}
  194.     <section class="section top-bottom-padding bg-color--red light">
  195.         <div class="inner text-align-center">
  196.             <div class="row gutter-space--md center-lg center-md center-sm center-xs">
  197.                 <div class="cta-display-flex no-bottom-margin col-lg-12 col-md-12 col-sm-12 col-xs-12">
  198.                     <div data-aos="fade-up">
  199.                         <h1 data-aos="fade-up" class="h2--lg aos-init aos-animate">Ready to get started?</h1>
  200.                     </div>
  201.                     <div data-aos="fade-up">
  202.                         <a href="/contact" class="btn dark">Talk to an expert</a>
  203.                     </div>
  204.                 </div>
  205.             </div>
  206.         </div>
  207.     </section>
  208. </div>
  209. {% endblock %}