templates/website/page/view-image.html.twig line 1
{% extends '@web/base-print.html.twig' %}{% block body %}<style>.wrapper-main-title h2{margin-bottom: 3px!important;}.wrapper-title .wrapper-right p {font-size: 13px;}p{word-break: break-word;}.wrapper-title .wrapper-right strong{font-size: 13px;}.wrapper-title .wrapper-right h6{font-size: 13px;}</style>{% if page.id == 34 %}<style>.wrapper-main-title * {font-size: 21px;}</style>{% endif %}{% if pantum is defined and pantum %}<style>#preview {filter: contrast(50%);}h5 {background-color: #7f7f7f99;}p{color: #696969;}.wrapper-file-upload {z-index: 9999;}</style>{% endif %}<style>header {display: flex;flex-direction: column;padding-top: 20px;}header .wrapper-logo {display: flex;align-items: center;gap: 20px;justify-content: center;text-decoration: none;}header .wrapper-logo .wrapper-image img {width: 180px;}@media (max-width: 991px) {header .wrapper-logo .wrapper-image img {width: 80px;}}header .wrapper-logo h1 {font-size: 50px;margin: 0;font-weight: 600;color: #000;text-align: center;}@media (max-width: 991px) {header .wrapper-logo h1 {font-size: 24px;}}header ul {box-shadow: inset 0 2px 0 0 #d3d2ca, inset 0 3px 0 0 #fefdf3, inset 0 4px 0 0 #d3d2ca;width: 100%;display: flex;align-items: center;padding: 12px 0;position: relative;list-style: none;margin: 20px 0;}@media (max-width: 991px) {header ul {display: grid;grid-template-columns: repeat(3, 1fr);gap: 10px;}}header ul:after {position: absolute;content: '';bottom: 0;box-shadow: inset 0 2px 0 0 #d3d2ca, inset 0 3px 0 0 #fefdf3, inset 0 4px 0 0 #d3d2ca;left: 0;right: 0;width: 100%;height: 4px;}header ul li {flex: 1;display: flex;justify-content: center;align-items: center;}header ul li a {text-transform: uppercase;font-weight: 600;color: #000;text-decoration: none;}@media print {.custom-container {display: none;}}.wrapper-items-header {display: flex;gap: 20px;align-items: center;justify-content: center;margin-bottom: 20px;}.wrapper-items-header img {width: 20px;}.wrapper-languages a{background-color: #000!important;color: #fff!important;padding: 8px 16px!important;border: none!important;box-shadow: none!important;text-decoration: none!important;}</style><div class="custom-container"><header><a href="{{ path('page_index') }}" class="wrapper-logo"><div class="wrapper-image"><img src="{{ asset('image/logo.png') }}" alt=""></div><h1>THE INFINITE MOMENT GAZETTE</h1></a><div class="wrapper-main-head"><ul><li><a href="{{ path('page_index') }}">Home</a></li><li><a href="{{ path('page_about') }}">About us</a></li><li><a href="{{ path('page_services') }}">Services</a></li><li><a href="{{ path('page_gallery') }}">Gallery</a></li><li><a href="{{ path('page_contact_us') }}">Contacts</a></li><li><a href="https://wa.me/37496076646">Book</a></li></ul><div class="wrapper-items-header"><a href="https://www.instagram.com/infinite__moment__/"><img src="{{ asset('images/instagram.png') }}" alt=""></a><a href="#"><img src="{{ asset('images/facebook.png') }}" alt=""></a><a href="https://wa.me/37496076646"><img src="{{ asset('images/whatsapp.png') }}" alt=""></a></div></div></header><div class="wrapper-languages"><ul><li><a href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale': 'hy'})) ~ (app.request.query.all ? '?' ~ app.request.query.all|url_encode : '') }}"><span>ARMENIAN</span></a></li><li><a href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale': 'ru'})) ~ (app.request.query.all ? '?' ~ app.request.query.all|url_encode : '') }}"><span>RUSSIAN</span></a></li><li><a href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale': 'en'})) ~ (app.request.query.all ? '?' ~ app.request.query.all|url_encode : '') }}"><span>ENGLISH</span></a></li></ul></div></div><div class="page {% if editable == true %}bordred{% endif %}" id="pdfFrame"><div class="wrapper-title"><div class="wrapper-left"><span style="font-size: 12px;margin-bottom: -3px" id="documentId" data-template="{{ page.id }}"data-value="{{ "now"|date('siHYmd') }}">infinitemoment.am</span><img style="height: 115px" src="{{ asset('uploads/the.infinite.moment.gazette_qr.png') }}" alt=""><span style="font-size: 12px;margin-top: -5px" id="documentId"data-value="{{ "now"|date('siHYmd') }}">{{ image.documentNumber }}</span></div><div class="wrapper-middle"><h1>The Infinite Moment </h1><h3>Gazette</h3><h2>{{ 'Reflection Framed Forever'|trans }}</h2><p style=" font-size: 11px;'1margin-top: 10px;display:flex;align-items:center;gap:10px">{{ 'Cost of each example:'|trans }} <strong style="font-size:32px"> ∞ </strong> {{ 'memory'|trans }}</p></div><div class="wrapper-right"><h6><p>{{ 'Special News'|trans }}</p><strong> {{ 'Famous superstar'|trans }} </strong> <br> {{ 'was spotted in'|trans }} <br>{% if editable %}<div class="editable"><div class="edit-icon" style="right: -15px"><i class="fas fa-edit" data-field="location"onclick="openEditor(this)"></i></div><span class="text-editable">{{ page.location|raw }}</span></div>{% else %}{% if page.location %}<div class="editable"><span class="text-editable">{{ page.location|raw }}</span></div>{% endif %}{% endif %}{% if app.request.locale == 'en' %}{{ 'on'|trans }}<br>{% endif %} <strong style="font-size:20px">{{ image.createdAt|date('d.m.Y') }}</strong></h6></div></div><div class="wrapper-content"><div class="wrapper-data"><div class="wrapper-image" style=" border: 4px solid;position: relative;width: calc(100% - 20px);padding: 4px;overflow:hidden;background:#fff">{% if image.id < 32175 %}<img id="preview" src="/user_uploads/{{ image.image }}"style="width:100%;height:100%;object-fit:cover">{% else %}<img id="preview" src="https://infinitemoment.nyc3.cdn.digitaloceanspaces.com/{{ image.image }}"style="width:100%;height:100%;object-fit:cover">{% endif %}</div><div class="wrapper-main-title editable">{% if editable %}<div class="edit-icon"><i class="fas fa-edit" data-field="imageText"onclick="openEditor(this)"></i></div><span class="text-editable">{{ page.imageText|raw }}</span>{% else %}{% if page.imageText %}<span class="text-editable">{{ page.imageText|raw }}</span>{% endif %}{% endif %}</div><div class="wrapper-items"><div class="wrapper-item-box"><div class="wrapper-item">{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="firstColumnTitle"onclick="openEditor(this)"></i></div><h5 style="font-size: 12px"class="text-editable">{{ page.firstColumnTitle|striptags }}</h5></div>{% else %}{% if page.firstColumnTitle %}<div class="editable"><h5 style="font-size: 12px"class="text-editable">{{ page.firstColumnTitle|striptags }}</h5></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="firstColumnText"onclick="openEditor(this)"></i></div><span class="text-editable">{{ page.firstColumnText|raw }}</span></div>{% else %}{% if page.firstColumnText %}<div class="editable"><span class="text-editable">{{ page.firstColumnText|raw }}</span></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-images imgUpload" onclick="fileUpload(this)"data-field="firstColumnImage"></i></div><img class="image-editable" src="{{ '/user_uploads/'~page.firstColumnImage }}"width="100%" alt=""></div>{% else %}{% if page.firstColumnImage %}<div class="editable"><img class="image-editable"src="{{ '/user_uploads/'~page.firstColumnImage }}"width="100%" alt=""></div>{% endif %}{% endif %}</div><div class="wrapper-item">{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit"data-field="firstColumnSecondTitle"onclick="openEditor(this)"></i></div><h5 class="text-editable">{{ page.firstColumnSecondTitle|striptags }}</h5></div>{% else %}{% if page.firstColumnSecondTitle %}<div class="editable"><h5 class="text-editable">{{ page.firstColumnSecondTitle|striptags }}</h5></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="firstColumnSecondText"onclick="openEditor(this)"></i></div><span class="text-editable">{{ page.firstColumnSecondText|raw }}</span></div>{% else %}{% if page.firstColumnSecondText %}<div class="editable"><span class="text-editable">{{ page.firstColumnSecondText|raw }}</span></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-images imgUpload" onclick="fileUpload(this)"data-field="firstColumnSecondImage"></i></div><img class="image-editable"src="{{ '/user_uploads/'~page.firstColumnSecondImage }}"width="100%" alt=""></div>{% else %}{% if page.firstColumnSecondImage %}<div class="editable"><img class="image-editable"src="{{ '/user_uploads/'~page.firstColumnSecondImage }}"width="100%" alt=""></div>{% endif %}{% endif %}</div></div><div class="wrapper-item-box"><div class="wrapper-item">{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="secondColumnTitle"onclick="openEditor(this)"></i></div><h5 class="text-editable">{{ page.secondColumnTitle|striptags }}</h5></div>{% else %}{% if page.secondColumnTitle %}<div class="editable"><h5 class="text-editable">{{ page.secondColumnTitle|striptags }}</h5></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="secondColumnText"onclick="openEditor(this)"></i></div><span class="text-editable">{{ page.secondColumnText|raw }}</span></div>{% else %}{% if page.secondColumnText %}<div class="editable"><span class="text-editable">{{ page.secondColumnText|raw }}</span></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-images imgUpload" onclick="fileUpload(this)"data-field="secondColumnImage"></i></div><img class="image-editable"src="{{ '/user_uploads/'~page.secondColumnImage|raw }}"width="100%" alt=""></div>{% else %}{% if page.secondColumnImage %}<div class="editable"><img class="image-editable"src="{{ '/user_uploads/'~page.secondColumnImage|raw }}"width="100%" alt=""></div>{% endif %}{% endif %}</div><div class="wrapper-item">{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit"data-field="secondColumSecondTitle"onclick="openEditor(this)"></i></div><h5 class="text-editable">{{ page.secondColumSecondTitle|striptags }}</h5></div>{% else %}{% if page.secondColumSecondTitle %}<div class="editable"><h5 class="text-editable">{{ page.secondColumSecondTitle|striptags }}</h5></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit"data-field="secondColumnSecondText"onclick="openEditor(this)"></i></div><span class="text-editable">{{ page.secondColumnSecondText|raw }}</span></div>{% else %}{% if page.secondColumnSecondText %}<div class="editable"><span class="text-editable">{{ page.secondColumnSecondText|raw }}</span></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-images imgUpload" onclick="fileUpload(this)"data-field="secondColumnSecondImage"></i></div><img class="image-editable"src="{{ '/user_uploads/'~page.secondColumnSecondImage }}"width="100%" alt=""></div>{% else %}{% if page.secondColumnSecondImage %}<div class="editable"><img class="image-editable"src="{{ '/user_uploads/'~page.secondColumnSecondImage }}"width="100%" alt=""></div>{% endif %}{% endif %}</div></div><div class="wrapper-item-box"><div class="wrapper-item">{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="thirdColumnTitle"onclick="openEditor(this)"></i></div><h5 class="text-editable">{{ page.thirdColumnTitle|striptags }}</h5></div>{% else %}{% if page.thirdColumnTitle %}<div class="editable"><h5 class="text-editable">{{ page.thirdColumnTitle|striptags }}</h5></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="thirdColumnText"onclick="openEditor(this)"></i></div><span class="text-editable">{{ page.thirdColumnText|raw }}</span></div>{% else %}{% if page.thirdColumnText %}<div class="editable"><span class="text-editable">{{ page.thirdColumnText|raw }}</span></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-images imgUpload" onclick="fileUpload(this)"data-field="thirdColumnImage"></i></div><img class="image-editable" src="{{ '/user_uploads/'~page.thirdColumnImage }}"width="100%" alt=""></div>{% else %}{% if page.thirdColumnImage %}<div class="editable"><img class="image-editable"src="{{ '/user_uploads/'~page.thirdColumnImage }}"width="100%" alt=""></div>{% endif %}{% endif %}</div><div class="wrapper-item">{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit"data-field="thirdColumnSecondTitle"onclick="openEditor(this)"></i></div><h5 class="text-editable">{{ page.thirdColumnSecondTitle|striptags }}</h5></div>{% else %}{% if page.thirdColumnSecondTitle %}<div class="editable"><h5 class="text-editable">{{ page.thirdColumnSecondTitle|striptags }}</h5></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="thirdColumnSecondText"onclick="openEditor(this)"></i></div><span class="text-editable">{{ page.thirdColumnSecondText|raw }}</span></div>{% else %}{% if page.thirdColumnSecondText %}<div class="editable"><span class="text-editable">{{ page.thirdColumnSecondText|raw }}</span></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-images imgUpload" onclick="fileUpload(this)"data-field="thirdColumnSecondImage"></i></div><img class="image-editable"src="{{ '/user_uploads/'~page.thirdColumnSecondImage }}"width="100%" alt=""></div>{% else %}{% if page.thirdColumnSecondImage %}<div class="editable"><img class="image-editable"src="{{ '/user_uploads/'~page.thirdColumnSecondImage }}"width="100%" alt=""></div>{% endif %}{% endif %}</div></div></div></div><div class="wrapper-right-data"><div class="wrapper-item">{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="fourthColumnTitle"onclick="openEditor(this)"></i></div><h5 class="text-editable">{{ page.fourthColumnTitle|striptags }}</h5></div>{% else %}{% if page.fourthColumnTitle %}<div class="editable"><h5 class="text-editable">{{ page.fourthColumnTitle|striptags }}</h5></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="fourthColumnText"onclick="openEditor(this)"></i></div><span class="text-editable">{{ page.fourthColumnText|raw }}</span></div>{% else %}{% if page.fourthColumnText %}<div class="editable"><span class="text-editable">{{ page.fourthColumnText|raw }}</span></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-images imgUpload" onclick="fileUpload(this)"data-field="fourthColumnImage"></i></div><img class="image-editable" src="{{ '/user_uploads/'~page.fourthColumnImage }}"width="100%"alt=""></div>{% else %}{% if page.fourthColumnImage %}<div class="editable"><img class="image-editable" src="{{ '/user_uploads/'~page.fourthColumnImage }}"width="100%"alt=""></div>{% endif %}{% endif %}</div><div class="wrapper-item">{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="fourthColumnSecondTitle"onclick="openEditor(this)"></i></div><h5 class="text-editable">{{ page.fourthColumnSecondTitle|striptags }}</h5></div>{% else %}{% if page.fourthColumnSecondTitle %}<div class="editable"><h5 class="text-editable">{{ page.fourthColumnSecondTitle|striptags }}</h5></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-edit" data-field="fourthColumnSecondText"onclick="openEditor(this)"></i></div><span class="text-editable">{{ page.fourthColumnSecondText|raw }}</span></div>{% else %}{% if page.fourthColumnSecondText %}<div class="editable"><span class="text-editable">{{ page.fourthColumnSecondText|raw }}</span></div>{% endif %}{% endif %}{% if editable %}<div class="editable"><div class="edit-icon"><i class="fas fa-images imgUpload" onclick="fileUpload(this)"data-field="fourthColumnSecondImage"></i></div><img class="image-editable" src="{{ '/user_uploads/'~page.fourthColumnSecondImage }}"width="100%" alt=""></div>{% else %}{% if page.fourthColumnSecondImage %}<div class="editable"><img class="image-editable"src="{{ '/user_uploads/'~page.fourthColumnSecondImage }}"width="100%" alt=""></div>{% endif %}{% endif %}</div></div></div></div>{% if editable %}<div id="myModal" class="modal"><!-- Modal content --><div class="modal-content"><div class="modal-body"><input type="hidden" id="fieldName" value=""><input type="hidden" id="pageID" name="pageId" value="{{ page.id }}"><textarea name="" class="editorShort" id="editor_value" style="width: 100%; height: 500px"rows="50"></textarea></div><div class="modal-footer"><button onclick="discardModal()">discard Changes</button><button onclick="SaveModalData()">Save Changes</button></div></div></div><div id="FileUploadModal" class="modal"><!-- Modal content --><div class="modal-content"><div class="modal-body"><input type="hidden" id="FileFieldName" value=""><input type="hidden" id="FilePageID" value="{{ page.id }}"><input id="ModalFileInput" type="file" name="fileInput" class="modalFileUpload"><img id="ModalFilePreview" width="300" height="300"></div><div class="modal-footer"><button onclick="discardModalFileUpload()">discard Changes</button><button onclick="saveUploadedFile()">Save Changes</button><button onclick="removeCurrentImage()">Remove Image</button></div></div></div><button id="openModalButton" style="display: none"></button><button id="FileUploadButton" style="display: none"></button><script src="{{ asset('js/ckeditor.js') }}"></script><script src="{{ asset('js/jquery-3.6.3.min.js') }}"></script>{% endif %}{% endblock %}