diff --git a/modules/xerte/parent_templates/Nottingham/models/flickr.rlm b/modules/xerte/parent_templates/Nottingham/models/flickr.rlm index 63eb0ab0ba..8a7a633757 100644 --- a/modules/xerte/parent_templates/Nottingham/models/flickr.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/flickr.rlm @@ -1 +1 @@ - 0){ imageIndex--; imageInteraction.broadcast('getImage'); } ]]> "); myImg.sendAndLoad(reqXML, url);]]> "); myImg.sendAndLoad(reqXML, url); ]]> ' + ccLicenses[myImg.templateData.rsp[0].photo[0].license].desc + ''; url = "http://api.flickr.com/services/rest/" url += "?api_key=8f6f38d31f048a90c436583a6ac92e47"; url += "&method=flickr.photos.getSizes"; url += "&photo_id=" + id ; reqXML = new XML(""); myImg.sendAndLoad(reqXML, url); ]]> = 500 || myImg.templateData.rsp[0].sizes[0].size[i].height >= 400){ sizeIndex = i; break; // we have a picture big enough } else { if (myImg.templateData.rsp[0].sizes[0].size[i].width >= maxWidth){ // we have a new largest picture sizeIndex = i; maxWidth = parseInt(myImg.templateData.rsp[0].sizes[0].size[i].width); } } } img = myImg.templateData.rsp[0].sizes[0].size[sizeIndex].source; myImg.loadImage(img);]]> \ No newline at end of file + 0){ imageIndex--; imageInteraction.broadcast('getImage'); } ]]> "); myImg.sendAndLoad(reqXML, url);]]> "); myImg.sendAndLoad(reqXML, url); ]]> ' + ccLicenses[myImg.templateData.rsp[0].photo[0].license].desc + ''; url = "https://api.flickr.com/services/rest/" url += "?api_key=8f6f38d31f048a90c436583a6ac92e47"; url += "&method=flickr.photos.getSizes"; url += "&photo_id=" + id ; reqXML = new XML(""); myImg.sendAndLoad(reqXML, url); ]]> = 500 || myImg.templateData.rsp[0].sizes[0].size[i].height >= 400){ sizeIndex = i; break; // we have a picture big enough } else { if (myImg.templateData.rsp[0].sizes[0].size[i].width >= maxWidth){ // we have a new largest picture sizeIndex = i; maxWidth = parseInt(myImg.templateData.rsp[0].sizes[0].size[i].width); } } } img = myImg.templateData.rsp[0].sizes[0].size[sizeIndex].source; myImg.loadImage(img);]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models_html5/flickr.html b/modules/xerte/parent_templates/Nottingham/models_html5/flickr.html index fba59a7664..f0cd525697 100644 --- a/modules/xerte/parent_templates/Nottingham/models_html5/flickr.html +++ b/modules/xerte/parent_templates/Nottingham/models_html5/flickr.html @@ -137,7 +137,7 @@ license = '1,2,3,4,5,6'; } - var feedURL = "http://api.flickr.com/services/rest/"; + var feedURL = "https://api.flickr.com/services/rest/"; feedURL += "?method=flickr.photos.search"; feedURL += "&text=" + keywords; feedURL += "&api_key=8f6f38d31f048a90c436583a6ac92e47"; @@ -185,7 +185,7 @@ ); } else { - var url = "http://api.flickr.com/services/rest/"; + var url = "https://api.flickr.com/services/rest/"; url += "?api_key=8f6f38d31f048a90c436583a6ac92e47"; url += "&method=flickr.photos.getInfo"; url += "&format=json"; @@ -217,7 +217,7 @@ ccInfo += '" target="_blank">' + ccLicenses[data.photo.license-1].desc + ''; x_pageInfo[x_currentPage].savedData.pictureInfo = ccInfo; - var url = "http://api.flickr.com/services/rest/"; + var url = "https://api.flickr.com/services/rest/"; url += "?api_key=8f6f38d31f048a90c436583a6ac92e47"; url += "&method=flickr.photos.getSizes"; url += "&format=json";