templates/frontend/static/about.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3.     {{ 'about_us'|trans }}
  4. {% endblock %}
  5. {% block css %}
  6.     <style>
  7.         .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){
  8.             border-color: transparent!important;
  9.         }
  10.         .ck.ck-editor__main>.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{
  11.             border: transparent!important;
  12.         }
  13.         .main-timeline{
  14.             font-family: 'Sanchez', serif;
  15.             position: relative;
  16.         }
  17.         .main-timeline:before{
  18.             content: '';
  19.             height: 100%;
  20.             width: 2px;
  21.             border: 2px solid {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  22.             transform: translateX(-50%);
  23.             position: absolute;
  24.             left: 50%;
  25.             top: 0;
  26.         }
  27.         .main-timeline:after{
  28.             content: '';
  29.             display: block;
  30.             clear: both;
  31.         }
  32.         .main-timeline .timeline{
  33.             width: 50.05%;
  34.             display:inline-block;
  35.             float: left;
  36.             position: relative;
  37.             z-index: 1;
  38.         }
  39.         .main-timeline .timeline:before,
  40.         .main-timeline .timeline:after{
  41.             content: '';
  42.             background-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  43.             border-radius: 50%;
  44.             transform: translateY(-50%);
  45.             position: absolute;
  46.             top: 50%;
  47.             right: -12px;
  48.         }
  49.         .main-timeline .timeline:after{
  50.             height: 5px;
  51.             width: 100px;
  52.             border-radius: 0;
  53.             right: 0;
  54.         }
  55.         .main-timeline .timeline-content{
  56.             text-align: justify;
  57.             min-height: 155px;
  58.             max-height: 300px;
  59.             padding: 20px 230px 15px 12px;
  60.             display:block;
  61.             overflow: hidden;
  62.         }
  63.         .main-timeline .timeline-content:hover{ text-decoration: none; }
  64.         .main-timeline .timeline-year{
  65.             color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  66.             background-color: #fff;
  67.             font-size: 14px;
  68.             font-weight: 600;
  69.             text-align: center;
  70.             line-height: 50px;
  71.             height: auto;
  72.             width: 120px;
  73.             border: 2px solid {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  74.             transform: translateY(-50%);
  75.             position: absolute;
  76.             right: 50px;
  77.             top: 50%;
  78.             z-index: 1;
  79.         }
  80.         .main-timeline .title{
  81.             color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  82.             font-size: 22px;
  83.             font-weight: 600;
  84.             text-transform: capitalize;
  85.             letter-spacing: 1px;
  86.             margin: 0 0 5px;
  87.         }
  88.         .main-timeline .description{
  89.             color: #101010;
  90.             font-size: 15px;
  91.             letter-spacing: 1px;
  92.             margin: 0;
  93.             background-color: #fcfcfd;
  94.         }
  95.         .main-timeline .timeline:nth-child(even){ float: right; }
  96.         .main-timeline .timeline:nth-child(even):before{
  97.             right: auto;
  98.             left: -12px;
  99.         }
  100.         .main-timeline .timeline:nth-child(even):after{
  101.             right: auto;
  102.             left: 0;
  103.         }
  104.         .main-timeline .timeline:nth-child(even) .timeline-content{
  105.             padding: 20px 12px 15px 230px;
  106.             text-align: left;
  107.         }
  108.         .main-timeline .timeline:nth-child(even) .timeline-year{
  109.             right: auto;
  110.             left: 100px;
  111.         }
  112.         .main-timeline .timeline:nth-child(5n+2):before,
  113.         .main-timeline .timeline:nth-child(5n+2):after{
  114.             background-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  115.         }
  116.         .main-timeline .timeline:nth-child(5n+2) .timeline-year{
  117.             color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  118.             border-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  119.         }
  120.         .main-timeline .timeline:nth-child(5n+2) .title{ color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %}; }
  121.         .main-timeline .timeline:nth-child(5n+3):before,
  122.         .main-timeline .timeline:nth-child(5n+3):after{
  123.             background-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  124.         }
  125.         .main-timeline .timeline:nth-child(5n+3) .timeline-year{
  126.             color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  127.             border-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  128.         }
  129.         .main-timeline .timeline:nth-child(5n+3) .title{ color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %}; }
  130.         .main-timeline .timeline:nth-child(5n+4):before,
  131.         .main-timeline .timeline:nth-child(5n+4):after{
  132.             background-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  133.         }
  134.         .main-timeline .timeline:nth-child(5n+4) .timeline-year{
  135.             color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  136.             border-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %};
  137.         }
  138.         .main-timeline .timeline:nth-child(5n+4) .title{ color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %}; }
  139.         @media screen and (max-width:990px){
  140.             .main-timeline .timeline-year{ right: 30px; }
  141.             .main-timeline .timeline-content{ padding: 15px 160px 15px 15px; }
  142.             .main-timeline .timeline:nth-child(even) .timeline-year{ left: 30px; }
  143.             .main-timeline .timeline:nth-child(even) .timeline-content{ padding: 15px 15px 15px 160px; }
  144.         }
  145.         @media screen and (max-width:767px){
  146.             .main-timeline:before{
  147.                 transform: translateX(0);
  148.                 left: -3px;
  149.             }
  150.             .main-timeline .timeline{
  151.                 width: 100%;
  152.                 margin-bottom: 20px;
  153.             }
  154.             .main-timeline .timeline:before,
  155.             .main-timeline .timeline:after,
  156.             .main-timeline .timeline:nth-child(even):before,
  157.             .main-timeline .timeline:nth-child(even):after{
  158.                 transform: translateY(0);
  159.                 top: 14px;
  160.             }
  161.             .main-timeline .timeline:before,
  162.             .main-timeline .timeline:after{
  163.                 right: auto;
  164.                 left: -12px;
  165.             }
  166.             .main-timeline .timeline:after{ left: 0; }
  167.             .main-timeline .timeline:after,
  168.             .main-timeline .timeline:nth-child(even):after{
  169.                 width: 50px;
  170.                 top: 17px;
  171.             }
  172.             .main-timeline .timeline .timeline-content,
  173.             .main-timeline .timeline:nth-child(even) .timeline-content{
  174.                 text-align: left;
  175.                 padding: 70px 10px 10px 20px;
  176.             }
  177.             .main-timeline .timeline .timeline-year,
  178.             .main-timeline .timeline:nth-child(even) .timeline-year{
  179.                 line-height: 40px;
  180.                 height: 50px;
  181.                 width: 120px;
  182.                 border-width: 5px;
  183.                 transform: translateY(0);
  184.                 top: 0;
  185.                 left: 45px;
  186.             }
  187.         }
  188.         .team3 {
  189.             font-size: 16px;
  190.         }
  191.         .team3 h1,
  192.         .team3 h2,
  193.         .team3 h3,
  194.         .team3 h4,
  195.         .team3 h5,
  196.         .team3 h6 {
  197.             color: #3e4555;
  198.         }
  199.         .team3 .font-weight-medium {
  200.             font-weight: 500;
  201.         }
  202.         .team3 .bg-light {
  203.             background-color: #f4f8fa !important;
  204.         }
  205.         .team3 .subtitle {
  206.             color: #8d97ad;
  207.             line-height: 24px;
  208.             font-size: 13px;
  209.         }
  210.         .team3 ul {
  211.             margin-top: 30px;
  212.         }
  213.         .team3 h5 {
  214.             line-height: 22px;
  215.             font-size: 18px;
  216.         }
  217.         .team3 ul li a {
  218.             color: #8d97ad;
  219.             padding-right: 15px;
  220.             -webkit-transition: 0.1s ease-in;
  221.             -o-transition: 0.1s ease-in;
  222.             transition: 0.1s ease-in;
  223.         }
  224.         .team3 ul li a:hover {
  225.             -webkit-transform: translate3d(0px, -5px, 0px);
  226.             transform: translate3d(0px, -5px, 0px);
  227.             color: #316ce8;
  228.         }
  229.         .team3 .title {
  230.             margin: 30px 0 0 0;
  231.         }
  232.         .team3 .subtitle {
  233.             margin: 0 0 0px 0;
  234.             font-size: 13px;
  235.         }
  236.     </style>
  237. {% endblock %}
  238. {% block body %}
  239.     <div class=" d-flex flex-column flex-row-fluid">
  240.         <div class="card-body row pt-head">
  241.             {% if page_about is not null %}
  242.                 <div class="row container-fluid scrool-div" id="{{ page_about.slug }}">
  243.                     <div class="richText">
  244.                         <h2 class="bold text-center text-primary mt-5 mb-5">{{ page_about.name }}</h2>
  245.                         <div class="ck ck-content ck-editor__editable ck-rounded-corners ck-editor__editable_inline ck-read-only ck-blurred" lang="en" dir="ltr" role="textbox" aria-label="Rich Text Editor, main" contenteditable="false">
  246.                             {{ page_about.richText|raw }}
  247.                         </div>
  248.                     </div>
  249.                 </div>
  250.             {% endif %}
  251.             <div class="row container-fluid " style="margin-top: 80px;">
  252.                 {% if page_story is not null %}
  253.                     <div class="container scrool-div" id="{{ page_story.slug }}">
  254.                         <h2 class="bold text-center text-primary mb-5 mt-5">{{ page_story.name }}</h2>
  255.                         <div class="row">
  256.                             <div class="col-md-12">
  257.                                 <div class="main-timeline">
  258.                                     {%  for s in stories %}
  259.                                         <div class="timeline">
  260.                                             <a href="javascript:void(0)" class="timeline-content btn-show" data-id="{{ s.id }}" >
  261.                                                 <span class="timeline-year">{{ s.storyDate }}</span>
  262.                                                 {% if s.image != '' %}
  263.                                                     <img style="max-width: 300px;max-height: 190px" src="{{ asset('uploads/'~s.image) }}"/>
  264.                                                 {% endif %}
  265.                                                 <p class="description" style="text-align: {% if loop.index % 2 ==0 %} justify {% else %} justify {% endif %}">
  266.                                                     {{ s.description|striptags|u.truncate(100, '...')|raw }}
  267.                                                 </p>
  268.                                             </a>
  269.                                         </div>
  270.                                     {% endfor %}
  271.                                 </div>
  272.                             </div>
  273.                         </div>
  274.                     </div>
  275.                 {% endif %}
  276.             </div>
  277.             <div class="row container-fluid"  style="margin-top: 80px;">
  278.                 {% if page_team is not null %}
  279.                     <div class="container scrool-div" id="{{ page_team.slug }}">
  280.                         <h2 class="bold text-center text-primary mb-5 mt-5">{{ page_team.name }}</h2>
  281.                         <div class="py-5 team3 ">
  282.                             <div class="container">
  283.                                 <div class="row">
  284.                                     {% for t in teams %}
  285.                                         <div class="col-lg-3 col-md-4 mb-4">
  286.                                             <div class="row">
  287.                                                 <div class="col-md-12">
  288.                                                     {% if t.image ==''  %}
  289.                                                         <img style="width: 270px;height: 250px" src="{{ asset('assets/media/avatars/user.png') }}" alt="wrapkit" class="img-thumbnail img-fluid" />
  290.                                                     {% else %}
  291.                                                         <img style="width: 270px;height: 250px" src="{{ asset('uploads/'~t.image) }}" alt="wrapkit" class="img-thumbnail img-fluid" />
  292.                                                     {% endif %}
  293.                                                 </div>
  294.                                                 <div class="col-md-12">
  295.                                                     <div class="pt-2">
  296.                                                         <h3 class="mt-4 font-weight-medium mb-0">{{ t.name }}</h3>
  297.                                                         <h4 class="subtitle">{{ t.position.name }}</h4>
  298.                                                         <h4 class="subtitle">{{ t.department.name }}</h4>
  299.                                                         <a style="display: block" href = "mailto: {{ t.email }}" class="subtitle"> {{ t.email }}</a>
  300.                                                         <a  style="display: block" href = "tel: {{ t.phone }}" class="subtitle"> {{ t.phone }}</a>
  301.                                                     </div>
  302.                                                 </div>
  303.                                             </div>
  304.                                         </div>
  305.                                     {% endfor %}
  306.                                 </div>
  307.                             </div>
  308.                         </div>
  309.                     </div>
  310.                 {% endif %}
  311.             </div>
  312.         </div>
  313.     </div>
  314.     <div class="modal fade" data-bs-focus="false" tabindex="-1" id="kt_modal_show">
  315.         <div class="modal-dialog modal-fullscreen">
  316.             <div class="modal-content">
  317.                 <div class="modal-header">
  318.                     <h5 class="modal-title" id="modal_show_title">
  319.                         <span class="fa fa-spin fa-satellite"></span>
  320.                     </h5>
  321.                     <div class="btn btn-icon btn-sm btn-active-light-primary ms-2" data-bs-dismiss="modal" aria-label="Close">
  322.                         <span class="fa fa-window-close"></span>
  323.                     </div>
  324.                     <!--end::Close-->
  325.                 </div>
  326.                 <div class="modal-body">
  327.                     <div class=" d-flex flex-column flex-row-fluid " id="modal_show_img">
  328.                     </div>
  329.                     <div class=" d-flex flex-column flex-row-fluid" id="modal_show_content">
  330.                     </div>
  331.                 </div>
  332.                 <div class="modal-footer">
  333.                     <button type="button" class="btn btn-light" data-bs-dismiss="modal">{{ 'close'|trans }}</button>
  334.                 </div>
  335.             </div>
  336.         </div>
  337.     </div>
  338. {% endblock %}
  339.  {% block js %}
  340.      <script src="{{ asset('assets/plugins/custom/ckeditor/ckeditor-classic.bundle.js') }}"></script>
  341.      <script>
  342.          $(document).ready(function (){
  343.          })
  344.      </script>
  345.      <script>
  346.          $(document).ready(function (){
  347.              let modalShow = bootstrap.Modal.getOrCreateInstance(document.getElementById('kt_modal_show'));
  348.              $(modalShow).on('hidden.bs.modal', function (event) {
  349.                  ;
  350.                  $('#modal_show_title').html('<span class="fa fa-spin fa-satellite"></span>');
  351.                  $('#modal_show_content').html('');
  352.                  $('#modal_show_img').html('');
  353.              });
  354.              $('.btn-show').on('click', function () {
  355.                  let url = "{{ path('get_one_entity',{'entity':'story','id':'00000'}) }}";
  356.                  url = url.replace('00000',this.getAttribute('data-id'));
  357.                  $.ajax({
  358.                      url: url,
  359.                      type: 'GET',
  360.                      dataType: 'json',
  361.                      success: function(res){
  362.                          $('#modal_show_title').html(res.data.story_date);
  363.                          $('#modal_show_content').html(res.data.description);
  364.                          if(res.data.image !== ""){
  365.                              let img='<img class="img-responsive img" style="max-width: 400px;max-height: 300px" src="'+"{{ asset('uploads/') }}"+res.data.image +'"'+' />';
  366.                              $('#modal_show_img').html(img);
  367.                          }
  368.                          else{
  369.                              $('#modal_show_img').html('');
  370.                          }
  371.                          modalShow.show();
  372.                      },
  373.                      error :function (error) {
  374.                          Swal.fire({
  375.                              text: "{{ 'object_not_found'|trans }}",
  376.                              icon: "error",
  377.                              buttonsStyling: false,
  378.                              confirmButtonText: "{{ 'close'|trans }}",
  379.                              customClass: {
  380.                                  confirmButton: "btn btn-primary"
  381.                              }
  382.                          });
  383.                      }
  384.                  });
  385.              });
  386.          })
  387.      </script>
  388.  {% endblock %}