403Webshell
Server IP : 87.98.154.146  /  Your IP : 216.73.216.165
Web Server : Apache
System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : ohklomafyi ( 52085)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ohklomafyi/www/wp-content/plugins/ocean-extra/includes/widgets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ohklomafyi/www/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');
            var callbackName = 'jsonFlickrFeed_' + containerId;
            var feedUrl = 'https://www.flickr.com/services/feeds/photos_public.gne?id=' + userId + '&format=json&jsoncallback=' + callbackName;

            function getPhotoUrl(photo) {
                return photo.media.m.replace('_m.jpg', '_q.jpg');
            }

            window[callbackName] = function(data) {
                var counter = 0;
                $.each(data.items, function(i, item) {
                    if (counter < maxPhotos) {
                        var photoUrl = getPhotoUrl(item);
                        $this.append('<img src="' + photoUrl + '" alt="' + item.title + '">');
                        counter++;
                    }
                });
            };

            var script = document.createElement('script');
            script.src = feedUrl;
            document.head.appendChild(script);
        });
    }

    // Execute when the document is ready
    $(document).ready(function() {
        loadFlickrPhotos($(document));
    });

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

Youez - 2016 - github.com/yon3zu
LinuXploit