<?php
/*------------------------------------------------------------------------
# com_zhosmmap - Zh OpenStreetMap Component
# ------------------------------------------------------------------------
# author:    Dmitry Zhuk
# copyright: Copyright (C) 2011 zhuk.cc. All Rights Reserved.
# license:   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
# website:   http://zhuk.cc
# Technical Support Forum: http://forum.zhuk.cc/
-------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\Language\Text;

/* 
Variables
    $currentArticleId    - article ID, used to show a few maps on one page. Is null for component and module call
    $currentmarker        - placemark data
    $imgpathIcons        - icon folder (icons)
    $imgpathUtils        - icon folder (utils)
    $directoryIcons        - icon folder (icons)
    $currentLanguage    - current language
    $currentLangTag        - current language tag
    $currentTitleTag    - component option, H2 or H3 tag for placemark titles
    $showCreateInfo        - attrubute how to show user and creation date
    
Popup content have to be assigned to $returnText variable
*/
        $returnText = '';
      
        $returnText .= '\'<div id="placemarkContent'. $currentmarker->id.'" class="placemarkContent" >\' +    ' ."\n";

        $returnText .= '\'<'.$currentTitleTag.' id="headContent'. $currentmarker->id.'" class="placemarkHead">'.'\'+' ."\n";
        $returnText .= '\''.htmlspecialchars(str_replace('\\', '/', $currentmarker->title), ENT_QUOTES, 'UTF-8').'\'+'."\n";
        $returnText .= '\'</'.$currentTitleTag.'>\'+' ."\n";

        
        $returnText .= '\'</div>\'';


