403Webshell
Server IP : 104.26.3.156  /  Your IP : 216.73.216.185
Web Server : nginx/1.27.1
System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User : vinodai ( 3134)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v1396/vinoddoshi2/public_html/wp-content/plugins/ocean-extra/includes/widgets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v1396/vinoddoshi2/public_html/wp-content/plugins/ocean-extra/includes/widgets/js/flickr.js
(function($) {
    function loadFlickrPhotos($scope) {
        var $container = $scope.find('.oceanwp-flickr-container');
        if (!$container.length) {
            return;
        }

        $container.each(function() {
            var $this = $(this);
            var userId = $this.data('user-id');
            var maxPhotos = $this.data('max-photos');
            var containerId = $this.attr('id') || Math.random().toString(36).substring(2);

            // Sanitize the containerId
            containerId = containerId.replace(/[^a-zA-Z0-9_-]/g, '');
            var callbackName = 'jsonFlickrFeed_' + containerId;

            window[callbackName] = function(data) {
                var counter = 0;
                data.items.forEach(function(item) {
                    if (counter < maxPhotos) {
                        var photoUrl = item.media.m.replace('_m.jpg', '_q.jpg');
                        var $img = $('<img>')
                            .attr('src', photoUrl)
                            .attr('alt', item.title || 'Flickr image');
                        $this.append($img);
                        counter++;
                    }
                });

                // Clean up
                delete window[callbackName];
            };

            var feedUrl = 'https://www.flickr.com/services/feeds/photos_public.gne?' +
                'id=' + encodeURIComponent(userId) +
                '&format=json&jsoncallback=' + callbackName;

            var script = document.createElement('script');
            script.src = feedUrl;
            script.onerror = function() {
                console.error('Error loading Flickr feed.');
            };
            document.head.appendChild(script);
        });
    }

    $(document).ready(function() {
        loadFlickrPhotos($(document));
    });

    $(window).on('elementor/frontend/init', function() {
        elementorFrontend.hooks.addAction('frontend/element_ready/widget', function($scope) {
            loadFlickrPhotos($scope);
        });
    });
})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit