templates/frontend/visualisasi/index.html.twig line 1

Open in your IDE?
  1. {% extends 'frontend/base.html.twig' %}
  2. {% block body %}
  3.     <div class="page-bar-hero is-detail" style="margin-top:75px;">
  4.         <div class="container d-flex align-items-center">
  5.             <div class="position-relative">
  6.                 <a href="{{ path('homepage') }}" class="btn btn-outline-light btn-sm fw-500 mb-3">
  7.                     <i class="bi bi-arrow-left-circle"></i>
  8.                     Beranda
  9.                 </a>
  10.                 <div class="title-infografik">Visualisasi</div>
  11.             </div>
  12.         </div>
  13.     </div>
  14.     <main>
  15.         <div class="pt-4 pb-5">
  16.             <div class="container">
  17.                 <div class="position-relative mb-4" style="top: 10px;">
  18.                     {# <div class="mb-5">
  19.                         <div class="border rounded-lg bg-white mx-auto" style="height: 55px; max-width: 550px;">
  20.                             <form action="{{ path('infografik') }}" method="get" class="h-100">
  21.                                 <div class="input-group h-100">
  22.                                     <input type="text" name="judul" value="{% if search['judul'] %} {{ search['judul'] }} {% endif %}" class="form-control input-search h-100 border-0" placeholder="Masukkan Kata Pencarian">
  23.                                     <button class="btn btn-danger" type="submit">
  24.                                         <i class="fa fa-search"></i>
  25.                                     </button>
  26.                                 </div>
  27.                             </form>
  28.                         </div>
  29.                     </div> #}
  30.                     <style></style>
  31.                     <div class="row">
  32.                         {% for ig in pagination %}
  33.                             <div class="col-4" style="padding-top: 20px;">
  34.                                 <div class="showcase-item" >
  35.                                     <a class="showcase-item__link" href="{{ path('detail_visualisasi', {id: ig.id}) }}"></a>
  36.                                     <figure class="showcase-item__img m-0">
  37.                                         {% set hasThumbnail = ig.cover ? "uploads/" ~ ig.cover : "frontend/img/poster-placeholder.png" %} 
  38.                                         {% set extensi = hasThumbnail|split('.') %}
  39.                                         {% set ext = extensi|last %}
  40.                                         {% if ext == 'pdf' %}
  41.                                             <img src="{{ asset('frontend/img/pdf.png') }}" class="w-100 h-100" style="object-fit: contain;" alt="img-grafis" width="20px"/>
  42.                                         {% else %}
  43.                                             <img src="{{ asset(hasThumbnail) }}" alt=""/>
  44.                                         {% endif %}
  45.                                     </figure>
  46.                                     <div class="showcase-item__content">
  47.                                         <h6 class="text-light">{{ ig.judul }}</h6>
  48.                                         {# <div class="d-flex align-items-center">
  49.                                             <div>
  50.                                                 <span class="fs-14 text-light fw-300">
  51.                                                     <i class="bi bi-briefcase-fill"></i>
  52.                                                     {{ ig.sumber }}
  53.                                                 </span>
  54.                                             </div>
  55.                                             <div class="ml-3">
  56.                                                 <span class="icon fs-14 text-light fw-300">
  57.                                                     <i class="bi bi-eye-fill"></i>
  58.                                                     {{ ig.view }}
  59.                                                 </span>
  60.                                             </div>
  61.                                         </div> #}
  62.                                     </div>
  63.                                 </div>
  64.                             </div>
  65.                         {% endfor %}
  66.                     </div>
  67.                     <div
  68.                         class="d-flex justify-content-center">
  69.                         {# <a href="{{ path('dataset', { page: pagenya + 1 }) }}" class="btn btn-success">Muat Lebih Banyak</a> #}
  70.                         {{ knp_pagination_render(pagination, 'frontend/dataset/pager.html.twig') }}
  71.                     </div>
  72.                 </div>
  73.             </div>
  74.         </div>
  75.     </main>
  76.     {# <main>
  77.         <div class="pt-4 pb-5">
  78.             <div class="container">
  79.                 <div class="position-relative mb-4" style="top: 10px;">
  80.                     <div class='tableauPlaceholder' id='viz1677652123262' style='position: relative'><noscript><a href='#'><img alt='pdrb kab kediri ' src='https:&#47;&#47;public.tableau.com&#47;static&#47;images&#47;WX&#47;WX8D8QPGW&#47;1_rss.png' style='border: none' /></a></noscript>
  81.                     <object class='tableauViz'  style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> 
  82.                     <param name='embed_code_version' value='3' /> <param name='path' value='shared&#47;WX8D8QPGW' /> 
  83.                     <param name='toolbar' value='yes' /><param name='static_image' value='https:&#47;&#47;public.tableau.com&#47;static&#47;images&#47;WX&#47;WX8D8QPGW&#47;1.png' /> 
  84.                     <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' />
  85.                     <param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' />
  86.                     <param name='display_count' value='yes' /><param name='language' value='en-US' />
  87.                     </object>
  88.                     </div>                
  89.                 </div>
  90.             </div>
  91.         </div>
  92.     </main> #}
  93.     <script type='text/javascript'>                    
  94.         var divElement = document.getElementById('viz1677652123262');                    
  95.         var vizElement = divElement.getElementsByTagName('object')[0];                    
  96.         vizElement.style.width='1169px';vizElement.style.height='4127px';                    
  97.         var scriptElement = document.createElement('script');                    
  98.         scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js';                    
  99.         vizElement.parentNode.insertBefore(scriptElement, vizElement);                
  100.     </script>
  101. {% endblock %}