Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • ladyk82 Friend
    #1022991

    hi , I need to insert my php code in the file that view (in tooltip mode) data content and link when content type is = default. I tried to modify helper.php, but nothing apppears. can you tell me which file I need to modify to access to values for variables $link and $details? thank u

    Luna Garden Moderator
    #1023166

    Hi,

    Go to file:

    modules\mod_jaimagehotspot\assets\js\script.js

    find for

    if (data.content_type == 'default' || data.content_type == undefined) {
                defaultcontent = '<div class="janone_layout">'+
                (data.link != '' ? '<a href="'+data.link+'">' : '')+
                    (data.content_img != '' ? '<img width="100%" src="'+rootURL+data.content_img+'" />' : '')+
                    (data.details != '' ? data.details : '')+
                (data.link != '' ? '</a>' : '')+
                '</div>';
            }

    There are two places in this file.

    data.link is represent for value Link
    data.details is for content of Popup

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  Luna Garden 7 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum