Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/clinic.corals.io/public/assets/front/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/clinic.corals.io/public/assets/front/js/plugins.flickrfeed.js
/*!
 * Original copyright:
 *
 * Copyright (C) 2009 Joel Sutherland
 * Licenced under the MIT license
 * http://www.newmediacampaigns.com/page/jquery-flickr-plugin
 *
 * Available tags for templates:
 * title, link, date_taken, description, published, author, author_id, tags, image*
 */
!function (a) {
    a.fn.jflickrfeed = function (b, c) {
        b = a.extend(!0, {
            flickrbase: 'https://api.flickr.com/services/feeds/',
            feedapi: 'photos_public.gne',
            limit: 20,
            qstrings: { lang: 'en-us', format: 'json', jsoncallback: '?' },
            cleanDescription: !0,
            useTemplate: !0,
            itemTemplate: '',
            itemCallback: function () {},
        }, b);
        var d, e = b.flickrbase + b.feedapi + '?', f = !0;
        for (d in b.qstrings) f || (e += '&'), e += d + '=' +
            b.qstrings[d], f = !1;
        return a(this).each(function () {
            var d = a(this), f = this;
            a.getJSON(e, function (e) {
                a.each(e.items, function (a, c) {
                    var e, g, h, i;
                    if (a < b.limit) {
                        if (b.cleanDescription &&
                        (e = /<p>(.*?)<\/p>/g, g = c.description, e.test(g) &&
                        (c.description = g.match(e)[2], void 0 !==
                        c.description &&
                        (c.description = c.description.replace('<p>', '').
                            replace('</p>',
                                '')))), c.image_s = c.media.m.replace('_m',
                            '_s'), c.image_t = c.media.m.replace('_m',
                            '_t'), c.image_m = c.media.m.replace('_m',
                            '_m'), c.image = c.media.m.replace('_m',
                            ''), c.image_b = c.media.m.replace('_m',
                            '_b'), c.image_q = c.media.m.replace('_m',
                            '_q'), delete c.media, b.useTemplate) {
                            i = b.itemTemplate;
                            for (h in c) e = new RegExp('{{' + h + '}}',
                                'g'), i = i.replace(e, c[h]);
                            d.append(i);
                        }
                        b.itemCallback.call(f, c);
                    }
                }), a.isFunction(c) && c.call(f, e);
            });
        });
    };
}(jQuery);

window.SEMICOLON_flickrFeedInit = function ($flickrFeedEl) {

    $flickrFeedEl = $flickrFeedEl.filter(':not(.customjs)');

    if ($flickrFeedEl.length < 1) {
        return true;
    }

    $flickrFeedEl.each(function () {
        let element = $(this),
            elID = element.attr('data-id'),
            elCount = element.attr('data-count') || 9,
            elType = element.attr('data-type'),
            elTypeGet = 'photos_public.gne';

        if (elType == 'group') { elTypeGet = 'groups_pool.gne'; }

        element.jflickrfeed({
            feedapi: elTypeGet,
            limit: Number(elCount),
            qstrings: {
                id: elID,
            },
            itemTemplate: '<a class="grid-item" href="{{image_b}}" title="{{title}}" data-lightbox="gallery-item">' +
                '<img src="{{image_s}}" alt="{{title}}" />' +
                '</a>',
        }, function (data) {
            SEMICOLON.initialize.lightbox({ 'parent': element });
        });
    });

};

Spamworldpro Mini