{% extends 'system_base.html.twig' %} {% block title %}Tedavi{% endblock %} {% set videoLimit = entity.video ? 0 : 1 %} {% set videoMobilLimit = entity.videoMobil ? 0 : 1 %} {% set bannerBoyut = [1920,1080] %} {% set bannerLimit = entity.banner ? 0 : 1 %} {% set bannerMobilBoyut = [1920,1080] %} {% set bannerMobilLimit = entity.bannerMobile ? 0 : 1 %} {% set bannerLogoBoyut = [300,75] %} {% set bannerLogoLimit = entity.bannerLogo ? 0 : 1 %} {% set imageBoyut = [600,720] %} {% set imageLimit = entity.image ? 0 : 1 %} {% set thumbnailBoyut = [800,800] %} {% set thumbnailLimit = entity.thumbnail ? 0 : 1 %} {% set kapakBoyut = [800,800] %} {% set kapakLimit = entity.kapak ? 0 : 1 %} {% set dropzones = [ { labelText: "PC'de oynatılan video banner", uniqueName: 'video', type: 'video', maxFiles: videoLimit, listPath: path('app_tedavi_video', {'code': entity.code}), uploadPath: path('app_tedavi_video_upload', {'code': entity.code}), mime: 'video/mp4', method: 'dropzoneFile' }, { labelText: "Mobilde oynatılan video banner", uniqueName: 'video_mobil', type: 'video', maxFiles: videoMobilLimit, listPath: path('app_tedavi_video', {'code': entity.code, 'type': 'mobil'}), uploadPath: path('app_tedavi_video_upload', {'code': entity.code, 'type': 'mobil'}), mime: 'video/mp4', method: 'dropzoneFile' }, { labelText: "Pc'deki fotoğaf Banner (PC video varsa görünmez)", uniqueName: 'banner', type: 'image', dimensions: bannerBoyut, maxFiles: bannerLimit, listPath: path('app_tedavi_banner', {'code': entity.code}), uploadPath: path('app_tedavi_banner_upload', {'code': entity.code}), cropperPath: path('app_tedavi_banner_upload', {'code': entity.code, 'cropperCode': 'CROPPERCODE'}), method: 'dropzoneCropper' }, { labelText: "Mobil fotoğaf Banner (Mobil video varsa görünmez)", uniqueName: 'banner_mobil', type: 'image', dimensions: bannerMobilBoyut, maxFiles: bannerMobilLimit, listPath: path('app_tedavi_bannermobile', {'code': entity.code}), uploadPath: path('app_tedavi_bannermobile_upload', {'code': entity.code}), cropperPath: path('app_tedavi_bannermobile_upload', {'code': entity.code, 'cropperCode': 'CROPPERCODE'}), method: 'dropzoneCropper' }, { labelText: "Banner Logo", uniqueName: 'banner_logo', type: 'image', dimensions: bannerLogoBoyut, maxFiles: bannerLogoLimit, listPath: path('app_tedavi_banner_logo', {'code': entity.code}), uploadPath: path('app_tedavi_banner_logo_upload', {'code': entity.code}), cropperPath: path('app_tedavi_banner_logo_upload', {'code': entity.code, 'cropperCode': 'CROPPERCODE'}), method: 'dropzoneCropper' }, { labelText: "Mega Menu Görseli", uniqueName: 'image', type: 'image', dimensions: imageBoyut, maxFiles: imageLimit, listPath: path('app_tedavi_image', {'code': entity.code}), uploadPath: path('app_tedavi_image_upload', {'code': entity.code}), cropperPath: path('app_tedavi_image_upload', {'code': entity.code, 'cropperCode': 'CROPPERCODE'}), method: 'dropzoneCropper' }, { labelText: "İlginizi çekebilir kısmındaki görseli", uniqueName: 'thumbnail', type: 'image', dimensions: thumbnailBoyut, maxFiles: thumbnailLimit, listPath: path('app_tedavi_thumbnail', {'code': entity.code}), uploadPath: path('app_tedavi_thumbnail_upload', {'code': entity.code}), cropperPath: path('app_tedavi_thumbnail_upload', {'code': entity.code, 'cropperCode': 'CROPPERCODE'}), method: 'dropzoneCropper' }, { labelText: "Sosyal paylaşımdaki Görseli", uniqueName: 'kapak', type: 'image', dimensions: kapakBoyut, maxFiles: kapakLimit, listPath: path('app_tedavi_kapak', {'code': entity.code}), uploadPath: path('app_tedavi_kapak_upload', {'code': entity.code}), cropperPath: path('app_tedavi_kapak_upload', {'code': entity.code, 'cropperCode': 'CROPPERCODE'}), method: 'dropzoneCropper' } ] %} {# Pats of our new image upload sections will be activated later #} {#{% set dropzones = [#} {# {#} {# name: 'thumbnail',#} {# labelName: 'Thumbnail Görseli',#} {# path: '/tedavi/thumbnail/',#} {# dims: '600x720',#} {# maxFiles: 1,#} {# entityFile: entity.thumbnail#} {# },#} {# {#} {# name: 'kapak',#} {# labelName: 'Sosyal Paylaşım Görseli',#} {# path: '/tedavi/kapak/',#} {# dims: '800x800',#} {# maxFiles: 1,#} {# entityFile: entity.kapak#} {# },#} {#] %}#} {% set entityDilTr = entity.diller|filter(d => d.dil.kisaBaslik == 'tr')|first %} {% block body %}

Tedavi

{% for dil in entity.diller %}
Başlık
{{ dil.baslik }}
Title
{{ dil.title }}
Link
{{ dil.link }}
Description
{{ dil.description }}
{% endfor %}

İşlemler

Başlık Resim Video

Tedavinin Kısa Özetleri

Başlık Icon İşlem İşlemler

Sık Sorulan Sorular

Başlık Metin İşlemler

Bu tedavinin sonunda "ilginizi çekebilir" kısmında şu tedavileri de göster

Başlık Kategori İşlemler
{# All Dropzones#} {% for dz in dropzones %} {{ component('system:MyOldDropzone', { labelText: dz.labelText, uniqueName: dz.uniqueName, dimensions: dz.dimensions is defined ? dz.dimensions : [], type: dz.type, maximumNumberFilesUpload: 1 }) }} {% endfor %} {# Daha sonra aktif edilecek şuan pasif durumda #} {#{% for dz in dropzones %}#} {# {% set files = [] %}#} {# {% set imageLangs = [] %}#} {# {% for lang in entity.diller|default %}#} {# {% set key = lang.dil.kisaBaslik %}#} {# {% set imageLangs = imageLangs|merge({(key): {#} {# 'imageAlt': lang.imagealt,#} {# 'imageTitle': lang.imageTitle,#} {# }}) %}#} {# {% endfor %}#} {# {% if dz.entityFile|default %}#} {# {% set files = files|merge([{#} {# id: entity.id,#} {# name: dz.entityFile,#} {# langs: imageLangs,#} {# location: asset('uploads' ~ dz.path ~ dz.entityFile)#} {# }]) %}#} {# {% endif %}#} {# {{ include('partials/admin/dropzone.html.twig', {#} {# name: dz.name,#} {# labelName: dz.labelName,#} {# additionalPath: dz.path,#} {# files: files,#} {# options: {#} {# multipleDropzoneInOneSection: true,#} {# dimensions: dz.dims,#} {# maxFiles: dz.maxFiles,#} {# acceptedFiles: '.jpeg,.jpg,.png,.webp,.gif,.bmp,.svg'#} {# },#} {# langs: langs#} {# }, with_context = false) }}#} {#{% endfor %}#} {# Islemler Modal #} {# Ozetler Modal #} {# Sorular Modal #} {# İlginizi Çekebilir Modal #} {% endblock %} {% block head_css %} {% endblock %} {% block js %} {% endblock %}