Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/location/widget/src/mappopup/ |
Upload File : |
import {Tag} from "main.core"; export default class Photo { #description; #url; #link; #location; #title; constructor(props) { this.#url = props.url; this.#link = props.link || ''; this.#description = props.description || ''; this.#location = props.location; this.#title = props.title || ''; } render() { let description = ''; if(this.#description) { //todo: sanitize description = Tag.render`<span class="location-map-item-description">${this.#description}</span>`; } return Tag.render` <div class="location-map-photo-item-block"> <span class="location-map-photo-item-block-image-block-inner"> ${description} <span data-viewer data-viewer-type="image" data-src="${this.#link}" data-title="${this.#title}" class="location-map-item-photo-image" data-viewer-group-by="${this.#location.externalId}" style="background-image: url(${this.#url});"> </span> </span> </div>`; } }