templates/panel/icerik/cokveri/getir.html.twig line 1

Open in your IDE?
  1. <table id="datatable" class="table table-bordered datatable nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
  2.     <thead>
  3.     <tr>
  4.         <th width="5%">#</th>
  5.         {% if sayfa[0].kategori==1 %}
  6.             <th>Kategori</th>
  7.         {% endif %}
  8.         {% set gg = 0 %}
  9.         {% for key,alan in alanlar %}
  10.             {% if alan|replace({' ':''})|seo =='resim' or alan|replace({' ':''})|seo=='resimler' or alan|replace({' ':''})|seo=='metin' or alan|replace({' ':''})|seo=='seourl' or alan|replace({' ':''})|seo=='sayfabasligi' or alan|replace({' ':''})|seo=='anahtarkelimeler' or alan|replace({' ':''})|seo=='sayfaaciklamasi' %}{% else %}
  11.                 {% if gg<2 %}
  12.                     {% if tipler[key]!='text' %}
  13.                         <th>{{ alan|title }}</th>
  14.                     {% endif %}
  15.                 {% endif %}
  16.                 {% set gg = gg+1 %}
  17.             {% endif %}
  18.         {% endfor %}
  19.         {% if sayfa[0].icIcerik==1 %}
  20.         <th>Url</th>
  21.         {% endif %}
  22.         <th></th>
  23.     </tr>
  24.     </thead>
  25.     <tbody class="icerik_sirala0">
  26.     {% for key,veri in veriler %}
  27.         {% set aralink ='' %}
  28.         <tr id="listItem_{{ veri.dilgrup }}">
  29.             <td>{{ key+1 }} </td>
  30.             {% if sayfa[0].kategori==1 %}
  31.                 <td>{{ veri.k_adi|default('') }}</td>
  32.             {% endif %}
  33.             {% set gg = 0 %}
  34.             {% for key,alan in alanlar %}
  35.                     {% if alan|replace({' ':''})|seo =='resim' or alan|replace({' ':''})|seo=='resimler' or alan|replace({' ':''})|seo=='metin' or alan|replace({' ':''})|seo=='seourl' or alan|replace({' ':''})|seo=='sayfabasligi' or alan|replace({' ':''})|seo=='anahtarkelimeler' or alan|replace({' ':''})|seo=='sayfaaciklamasi' %}{% else %}
  36.                         {% if gg<2 %}
  37.                             {% if tipler[key]!='text' %}
  38.                                 {% if tipler[key]=='datetime' %}
  39.                                     <td>{{ veri[alan|replace({' ':''})|seo]|date('d.m.Y H:i') }}</td>
  40.                                 {% elseif tipler[key]=='float' %}
  41.                                     <td>{{ veri[alan|replace({' ':''})|seo]|number_format(2,',',' ') }}</td>
  42.                                 {% else %}
  43.                                     <td>{{ veri[alan|replace({' ':''})|seo]|raw }}</td>
  44.                                 {% endif %}
  45.                             {% endif %}
  46.                         {% endif %}
  47.                         {% set gg = gg+1 %}
  48.                     {% endif %}
  49.             {% endfor %}
  50.             {% if sayfa[0].icIcerik==1 %}
  51.             <td>
  52.                 {% if sayfa[0].kategori==1 %}
  53.                         {% set aralink = veri.k_dilgrup|altKategoriGeriYaz %}
  54.                 {% endif %}
  55.                 {% if ''|dilSay>1 %}
  56.                     <a href="{{ 'siteYolu'|ayarlar }}{{ veri.dKisa }}/{{ sayfa[0].seo }}/{{ aralink }}{{ veri.seourl }}" target="_blank"> {{ 'siteYolu'|ayarlar }}{{ veri.dKisa }}/{{ sayfa[0].seo }}/{{ aralink }}{{ veri.seourl }}</a>
  57.                 {% else %}
  58.                     <a href="{{ 'siteYolu'|ayarlar }}{{ sayfa[0].seo }}/{{ aralink }}{{ veri.seourl }}" target="_blank"> {{ 'siteYolu'|ayarlar }}{{ sayfa[0].seo }}/{{ aralink }}{{ veri.seourl }}</a>
  59.                 {% endif %}
  60.             </td>
  61.             {% endif %}
  62.             <td>
  63.                 <div class="dropdown mo-mb-2">
  64.                     {% if sayfa[0].kategori==1 and kategori!='' %}
  65.                         <a class="btn btn-info waves-effect waves-light handle0 text-white "><i data-feather="move"></i></a>
  66.                     {% endif %}
  67.                     {% if sayfa[0].kategori==0 %}
  68.                         <a class="btn btn-info waves-effect waves-light handle0 text-white "><i data-feather="move"></i></a>
  69.                     {% endif %}
  70.                     <button class="btn btn-primary dropdown-toggle " type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i data-feather="more-horizontal"></i></button>
  71.                     <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  72.                         <a class="dropdown-item " href="{{ path('cokveri_duzenle',{'dilgrup':sayfa[0].id,'vDilgrup':veri.dilgrup}) }}" >Düzenle</a>
  73.                         <a class="dropdown-item " href="javascript:void(0);" onclick="icerikSil({{ veri.dilgrup }});">Sil</a>
  74.                     </div>
  75.                 </div>
  76.             </td>
  77.         </tr>
  78.     {% endfor %}
  79.     </tbody>
  80. </table>