{"id":2299,"date":"2019-06-24T21:17:21","date_gmt":"2019-06-24T21:17:21","guid":{"rendered":"http:\/\/fespa.es\/congreso2019\/?page_id=2299"},"modified":"2022-06-15T04:56:51","modified_gmt":"2022-06-15T04:56:51","slug":"galeria-2","status":"publish","type":"page","link":"http:\/\/fespa.es\/congreso2022\/pt\/galeria-2\/","title":{"rendered":"Edici\u00f3n 2019 &#8211; Madrid"},"content":{"rendered":"\t\t\t\t\t\t\t<style>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t.flickr-img-responsive {\r\n\t\t\t\t\t\t\t\twidth:100% !important;\r\n\t\t\t\t\t\t\t\theight:auto !important;\r\n\t\t\t\t\t\t\t\tdisplay:block !important;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t.LoadingImg img {\r\n\t\t\t\t\t\t\t\tmax-width: 45px;\r\n\t\t\t\t\t\t\t\tmax-height: 45px;\r\n\t\t\t\t\t\t\t\tbox-shadow:  none;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t.wpfrank-flickr-div{\r\n\t\t\t\t\t\t\t\tpadding:15px;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@media (max-width: 786px){\r\n\t\t\t\t\t\t\t\t.col-md-3 {\r\n\t\t\t\t\t\t\t\t\twidth:49.9%;\r\n\t\t\t\t\t\t\t\t\tfloat:left;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t.play-pause {\r\n\t\t\t\t\t\t\t\tdisplay: none !important;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t.gallery2296 {\r\n\t\t\t\t\t\t\t\toverflow:hidden;\r\n\t\t\t\t\t\t\t\tclear: both;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t.fnf{\r\n\t\t\t\t\t\t\t\tbackground-color: #a92929;\r\n\t\t\t\t\t\t\t\tborder-radius: 5px;\r\n\t\t\t\t\t\t\t\tcolor: #fff;\r\n\t\t\t\t\t\t\t\tfont-family: initial;\r\n\t\t\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\t\t\tpadding:12px;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t<\/style>\r\n\t\t\t\t\t\t\t<script type=\"text\/javascript\">\r\n\t\t\t\t\t\t\tjQuery(function() {\r\n\t\t\t\t\t\t\t\tjQuery('.gallery2296').flickr({\r\n\t\t\t\t\t\t\t\t\tapiKey: '037c012784565c3b5691cc5a0aa912b7',\r\n\t\t\t\t\t\t\t\t\tphotosetId: '72157709232668081'\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t;(function ($, window, document, undefined) {\r\n\r\n\t\t\t\t\t\t\t    'use strict';\r\n\r\n\t\t\t\t\t\t\t    var pluginName = \"flickr\",\r\n\t\t\t\t\t\t\t        defaults = {\r\n\t\t\t\t\t\t\t            apiKey: \"\",\r\n\t\t\t\t\t\t\t            photosetId: \"\",\r\n\t\t\t\t\t\t\t            errorText: \"<div class='fnf'><i class='far fa-times-circle'><\/i> Error generating gallery.<\/div>\",\r\n\t\t\t\t\t\t\t            loadingSpeed: 38,\r\n\t\t\t\t\t\t\t            photosLimit: 200\r\n\t\t\t\t\t\t\t        },\r\n\t\t\t\t\t\t\t        apiUrl = 'https:\/\/api.flickr.com\/services\/rest\/',\r\n\t\t\t\t\t\t\t        photos = [];\r\n\r\n\t\t\t\t\t\t\t    \/\/ The actual plugin constructor\r\n\t\t\t\t\t\t\t    function Plugin(element, options) {\r\n\t\t\t\t\t\t\t        this.element = $(element);\r\n\t\t\t\t\t\t\t        this.settings = $.extend({}, defaults, options);\r\n\t\t\t\t\t\t\t        this._defaults = defaults;\r\n\t\t\t\t\t\t\t        this._name = pluginName;\r\n\r\n\t\t\t\t\t\t\t        this._hideSpinner = function() {\r\n\t\t\t\t\t\t\t            this.element.find('.spinner-wrapper').hide().find('*').hide();\r\n\t\t\t\t\t\t\t        };\r\n\r\n\t\t\t\t\t\t\t        this._printError = function() {\r\n\t\t\t\t\t\t\t             \/\/this.element.find('.gallery-container').append($(\"<div><\/div>\", { \"class\": \"col-lg-12 col-lg-offset-1\" })\r\n\t\t\t\t\t\t\t            this.element.find('.gallery-container').append($(\"<div><\/div>\", { \"class\": \"col-lg-12\" })\r\n\t\t\t\t\t\t\t                .append($(\"<div><\/div>\", { \"class\": \"error-wrapper\" })\r\n\t\t\t\t\t\t\t                    .append($(\"<span><\/span>\", { \"class\": \"label label-danger error\" })\r\n\t\t\t\t\t\t\t                        .html(this.settings.errorText))));\r\n\t\t\t\t\t\t\t        };\r\n\r\n\t\t\t\t\t\t\t        this._flickrAnimate = function() {\r\n\t\t\t\t\t\t\t            this.element.find('.gallery-container img').each($.proxy(function(index, el) {\r\n\t\t\t\t\t\t\t                var image = el;\r\n\t\t\t\t\t\t\t                setTimeout(function() {\r\n\t\t\t\t\t\t\t                    $(image).parent().fadeIn();\r\n\t\t\t\t\t\t\t                }, this.settings.loadingSpeed * index);\r\n\t\t\t\t\t\t\t            }, this));\r\n\t\t\t\t\t\t\t        };\r\n\r\n\t\t\t\t\t\t\t        this._printGallery = function(photos) {\r\n\t\t\t\t\t\t\t            var element = this.element.find('.gallery-container');\r\n\t\t\t\t\t\t\t            $.each(photos, function(key, photo) {\r\n\t\t\t\t\t\t\t                var img = $('<img>', { 'class': 'thumb img-thumbnail flickr-img-responsive', src: photo.thumbnail });\r\n\t\t\t\t\t\t\t                element.append($('<div><\/div>', { 'class': ' col-md-3 col-sm-4 col-center wpfrank-flickr-div' })\r\n\t\t\t\t\t\t\t                    .append($('<a><\/a>', { 'class': '', title: photo.title, href: photo.href, 'data-gallery': '' }).hide()\r\n\t\t\t\t\t\t\t                        .append(img)));\r\n\t\t\t\t\t\t\t            });\r\n\r\n\t\t\t\t\t\t\t            element.imagesLoaded()\r\n\t\t\t\t\t\t\t                .done($.proxy(this._flickrAnimate, this))\r\n\t\t\t\t\t\t\t                .always($.proxy(this._hideSpinner, this));\r\n\t\t\t\t\t\t\t        };\r\n\r\n\t\t\t\t\t\t\t        this._flickrPhotoset = function(photoset) {\r\n\t\t\t\t\t\t\t            var _this = this;\r\n\t\t\t\t\t\t\t            \r\n\t\t\t\t\t\t\t            photos[photoset.id] = [];\r\n\t\t\t\t\t\t\t            $.each(photoset.photo, function(key, photo) {\r\n\t\t\t\t\t\t\t                \/\/ Limit number of photos.\r\n\t\t\t\t\t\t\t                if(key >= _this.settings.photosLimit) {\r\n\t\t\t\t\t\t\t                    return false;\r\n\t\t\t\t\t\t\t                }\r\n\r\n\t\t\t\t\t\t\t                photos[photoset.id][key] = {\r\n\t\t\t\t\t\t\t                    thumbnail: 'https:\/\/farm' + photo.farm + '.static.flickr.com\/' + photo.server + '\/' + photo.id + '_' + photo.secret + '_q.jpg',\r\n\t\t\t\t\t\t\t                    href: 'https:\/\/farm' + photo.farm + '.static.flickr.com\/' + photo.server + '\/' + photo.id + '_' + photo.secret + '_b.jpg',\r\n\t\t\t\t\t\t\t\t\t\t\t\ttitle: photo.title\r\n\t\t\t\t\t\t\t                };\r\n\t\t\t\t\t\t\t            });\r\n\r\n\t\t\t\t\t\t\t            this._printGallery(photos[photoset.id]);\r\n\t\t\t\t\t\t\t        };\r\n\r\n\t\t\t\t\t\t\t        this._onFlickrResponse = function(response) {\r\n\t\t\t\t\t\t\t            if(response.stat === \"ok\") {\r\n\t\t\t\t\t\t\t                 this._flickrPhotoset(response.photoset);\r\n\t\t\t\t\t\t\t            }\r\n\t\t\t\t\t\t\t            else {\r\n\t\t\t\t\t\t\t                this._hideSpinner();\r\n\t\t\t\t\t\t\t                this._printError();\r\n\t\t\t\t\t\t\t            }\r\n\t\t\t\t\t\t\t        };\r\n\r\n\t\t\t\t\t\t\t        this._flickrRequest = function(method, data) {\r\n\t\t\t\t\t\t\t            var url = apiUrl + \"?format=json&jsoncallback=?&method=\" + method + \"&api_key=\" + this.settings.apiKey;\r\n\r\n\t\t\t\t\t\t\t            $.each(data, function(key, value) {\r\n\t\t\t\t\t\t\t                url += \"&\" + key + \"=\" + value;\r\n\t\t\t\t\t\t\t            });\r\n\r\n\t\t\t\t\t\t\t            $.ajax({\r\n\t\t\t\t\t\t\t                dataType: \"json\",\r\n\t\t\t\t\t\t\t                url: url,\r\n\t\t\t\t\t\t\t                context: this,\r\n\t\t\t\t\t\t\t                success: this._onFlickrResponse\r\n\t\t\t\t\t\t\t            });\r\n\t\t\t\t\t\t\t        };\r\n\r\n\t\t\t\t\t\t\t        this._flickrInit = function () {\r\n\t\t\t\t\t\t\t            this._flickrRequest('flickr.photosets.getPhotos', {\r\n\t\t\t\t\t\t\t                photoset_id: this.settings.photosetId\r\n\t\t\t\t\t\t\t            });\r\n\t\t\t\t\t\t\t        };\r\n\r\n\t\t\t\t\t\t\t        \/\/ Init\r\n\t\t\t\t\t\t\t        this.init();\r\n\t\t\t\t\t\t\t    }\r\n\r\n\t\t\t\t\t\t\t    Plugin.prototype = {\r\n\t\t\t\t\t\t\t        init: function () {\r\n\t\t\t\t\t\t\t            this._flickrInit();\r\n\t\t\t\t\t\t\t        }\r\n\t\t\t\t\t\t\t    };\r\n\r\n\t\t\t\t\t\t\t    \/\/ Wrapper\r\n\t\t\t\t\t\t\t    $.fn[pluginName] = function (options) {\r\n\t\t\t\t\t\t\t        this.each(function () {\r\n\t\t\t\t\t\t\t            if (!$.data(this, \"plugin_\" + pluginName)) {\r\n\t\t\t\t\t\t\t                $.data(this, \"plugin_\" + pluginName, new Plugin(this, options));\r\n\t\t\t\t\t\t\t            }\r\n\t\t\t\t\t\t\t        });\r\n\r\n\t\t\t\t\t\t\t        \/\/ Chain\r\n\t\t\t\t\t\t\t        return this;\r\n\t\t\t\t\t\t\t    };\r\n\r\n\t\t\t\t\t\t\t})(jQuery, window, document);\r\n\t\t\t\t\t\t\t<\/script>\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<div class=\"gallery2296\">\r\n\t\t\t\t\t\t\t\t<!-- Gallery Thumbnails -->\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"col-xs-12 spinner-wrapper\">\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"LoadingImg\"><img src=\"http:\/\/fespa.es\/congreso2022\/wp-content\/plugins\/flickr-album-gallery\/img\/loading.gif\" \/><\/div>\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t<div align=\"center\" class=\"gallery-container\"><\/div>\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t<!-- Blueimp gallery -->\r\n\t\t\t<div id=\"blueimp-gallery\" class=\"blueimp-gallery blueimp-gallery-controls\">\r\n\t\t\t\t<div class=\"slides\"><\/div>\r\n\t\t\t\t<h3 class=\"title\"><\/h3>\r\n\t\t\t\t<a class=\"prev\">\u2039<\/a>\r\n\t\t\t\t<a class=\"next\">\u203a<\/a>\r\n\t\t\t\t<a class=\"close\">\u00d7<\/a>\r\n\t\t\t\t<a class=\"play-pause\"><\/a>\r\n\t\t\t\t<ol class=\"indicator\"><\/ol>\r\n\t\t\t\t<div class=\"modal fade\">\r\n\t\t\t\t\t<div class=\"modal-dialog\">\r\n\t\t\t\t\t\t<div class=\"modal-content\">\r\n\t\t\t\t\t\t\t<div class=\"modal-header\">\r\n\t\t\t\t\t\t\t\t<button type=\"button\" class=\"close\" aria-hidden=\"true\">&times;<\/button>\r\n\t\t\t\t\t\t\t\t<h4 class=\"modal-title\"><\/h4>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<div class=\"modal-body next\"><\/div>\r\n\t\t\t\t\t\t\t<div class=\"modal-footer\">\r\n\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-default pull-left prev\">\r\n\t\t\t\t\t\t\t\t\t<i class=\"glyphicon glyphicon-chevron-left\"><\/i>\r\n\t\t\t\t\t\t\t\t\tPrevious\t\t\t\t\t\t\t\t<\/button>\r\n\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-primary next\">\r\n\t\t\t\t\t\t\t\t\tNext\t\t\t\t\t\t\t\t\t<i class=\"glyphicon glyphicon-chevron-right\"><\/i>\r\n\t\t\t\t\t\t\t\t<\/button>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t<script type=\"text\/javascript\">\r\n\t\t\tjQuery(function() {\r\n\t\t\t\t\/\/ Set blueimp gallery options\r\n\t\t\t\tjQuery.extend(blueimp.Gallery.prototype.options, {\r\n\t\t\t\t\tuseBootstrapModal: false,\r\n\t\t\t\t\thidePageScrollbars: false\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t<\/script>\t\t\t\r\n\t\t\t<div align=\"center\" style=\"font-size: small; margin-bottom:25px; margin-top:25px; width:100%; float: left;\">Flickr Album Gallery Powered By: <a href=\"https:\/\/wpfrank.com\/\" target=\"_blank\">WP Frank<\/a><\/div>\r\n\t\t\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/fespa.es\/congreso2022\/pt\/wp-json\/wp\/v2\/pages\/2299"}],"collection":[{"href":"http:\/\/fespa.es\/congreso2022\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/fespa.es\/congreso2022\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/fespa.es\/congreso2022\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fespa.es\/congreso2022\/pt\/wp-json\/wp\/v2\/comments?post=2299"}],"version-history":[{"count":3,"href":"http:\/\/fespa.es\/congreso2022\/pt\/wp-json\/wp\/v2\/pages\/2299\/revisions"}],"predecessor-version":[{"id":2393,"href":"http:\/\/fespa.es\/congreso2022\/pt\/wp-json\/wp\/v2\/pages\/2299\/revisions\/2393"}],"wp:attachment":[{"href":"http:\/\/fespa.es\/congreso2022\/pt\/wp-json\/wp\/v2\/media?parent=2299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}