Changeset 115789 in spip-zone


Ignore:
Timestamp:
Jun 26, 2019, 10:39:24 AM (8 weeks ago)
Author:
cedric@…
Message:

Oups remettre les URLs en https (pour celles qui fonctionnent)

Location:
_plugins_/adaptive_images/trunk/lib/AdaptiveImages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/adaptive_images/trunk/lib/AdaptiveImages/AdaptiveImages.php

    r115788 r115789  
    326326                        $async_style = "html img.adapt-img{opacity:0.01}html .adapt-img-wrapper:after{display:none;}";
    327327                        $length = strlen($html)+strlen($ins_style)+2000; // ~2000 bytes for CSS and minified JS we add here
    328                         // minified version of AdaptiveImages.js (using http://closure-compiler.appspot.com/home)
     328                        // minified version of AdaptiveImages.js (using https://closure-compiler.appspot.com/home)
    329329                        $ins .= "<script type='text/javascript'>/*<![CDATA[*/var adaptImgDocLength=$length;adaptImgAsyncStyles=\"$async_style\";adaptImgLazy=".($this->lazyload?"true":"false").";".<<<JS
    330330function adaptImgFix(d){var e=window.getComputedStyle(d.parentNode).backgroundImage.replace(/\W?\)$/,"").replace(/^url\(\W?|/,"");d.src=e&&"none"!=e?e:d.src}(function(){function d(a){var b=document.documentElement;b.className=b.className+" "+a}function e(a){var b=window.onload;window.onload="function"!=typeof window.onload?a:function(){b&&b();a()}}document.createElement("picture");adaptImgLazy&&d("lazy");/android 2[.]/i.test(navigator.userAgent.toLowerCase())&&d("android2");var c=!1;if("undefined"!==typeof window.performance)c=window.performance.timing,c=(c=~~(adaptImgDocLength/(c.responseEnd-c.connectStart)))&&50>c;else{var f=navigator.connection||navigator.mozConnection||navigator.webkitConnection;"undefined"!==typeof f&&(c=3==f.type||4==f.type||/^[23]g$/.test(f.type))}c&&d("aislow");var h=function(){var a=document.createElement("style");a.type="text/css";a.innerHTML=adaptImgAsyncStyles;var b=document.getElementsByTagName("style")[0];b.parentNode.insertBefore(a,b);window.matchMedia||window.onbeforeprint||g()};"undefined"!==typeof jQuery?jQuery(function(){jQuery(window).load(h)}):e(h);var g=function(){for(var a=document.getElementsByClassName("adapt-img"),b=0;b<a.length;b++)adaptImgFix(a[b])};window.matchMedia&&window.matchMedia("print").addListener(function(a){g()});"undefined"!==typeof window.onbeforeprint&&(window.onbeforeprint=g)})();
     
    884884         * Find and get attribute value in an HTML tag
    885885         * Regexp from function extraire_attribut() in
    886          * http://core.spip.org/projects/spip/repository/entry/spip/ecrire/inc/filtres.php#L2013
     886         * https://core.spip.net/projects/spip/repository/entry/spip/ecrire/inc/filtres.php#L2013
    887887         * @param $tag
    888888         *   html tag
     
    990990        /**
    991991         * Detect animated GIF : don't touch it
    992          * http://it.php.net/manual/en/function.imagecreatefromgif.php#59787
     992         * https://www.php.net/manual/en/function.imagecreatefromgif.php#59787
    993993         *
    994994         * @param string $filename
     
    11641164        /**
    11651165         * Resize without bluring, and save image with needed quality if JPG image
    1166          * @author : Arno* from http://zone.spip.org/trac/spip-zone/browser/_plugins_/image_responsive/action/image_responsive.php
     1166         * @author : Arno* from https://zone.spip.org/trac/spip-zone/browser/_plugins_/image_responsive/action/image_responsive.php
    11671167         *
    11681168         * @param string $source
     
    12801280
    12811281        /**
    1282          * @author : Arno* from http://zone.spip.org/trac/spip-zone/browser/_plugins_/image_responsive/action/image_responsive.php
     1282         * @author : Arno* from http:s//zone.spip.org/trac/spip-zone/browser/_plugins_/image_responsive/action/image_responsive.php
    12831283         *
    12841284         * @param int $intOrig
     
    14541454        /**
    14551455         * Convert indexed colors image to true color image
    1456          * available in PHP 5.5+ http://www.php.net/manual/fr/function.imagepalettetotruecolor.php
     1456         * available in PHP 5.5+ https://www.php.net/manual/fr/function.imagepalettetotruecolor.php
    14571457         * @param resource $img
    14581458         * @return bool
  • _plugins_/adaptive_images/trunk/lib/AdaptiveImages/README.md

    r115788 r115789  
    44## What is it?
    55This is the standalone PHP implementation of "3-layer technique" for Adaptive Images generation.
    6 See <http://openweb.eu.org/277> for technical explanations and justifications (french version available : <openweb.eu.org/280>)
     6See <https://openweb.eu.org/277> for technical explanations and justifications (french version available : <openweb.eu.org/280>)
    77
    88## Requirements
     
    169169This library is already available through plugins in:
    170170
    171 * SPIP CMS <http://contrib.spip.net/Adaptive-Images-4458> [See the implementation](http://zone.spip.org/trac/spip-zone/browser/_plugins_/adaptive_images/trunk/adaptive_images_options.php)
     171* SPIP CMS <https://contrib.spip.net/Adaptive-Images-4458> [See the implementation](http://zone.spip.org/trac/spip-zone/browser/_plugins_/adaptive_images/trunk/adaptive_images_options.php)
    172172* DotClear blog engine <http://plugins.dotaddict.org/dc2/details/adaptiveImages>
Note: See TracChangeset for help on using the changeset viewer.