@@ 867-873 (lines=7) @@ | ||
864 | if (isset($this->urls[$link_id])) { |
|
865 | $url = $this->encodeURLAttribute($this->urls[$link_id]); |
|
866 | $result = "<img src=\"$url\" alt=\"$alt_text\""; |
|
867 | if(file_exists($url)) |
|
868 | { |
|
869 | list($width, $height, $type, $attr) = getimagesize($url); |
|
870 | if(isset($width)) $result .= " width=\"$width\""; |
|
871 | if(isset($height)) $result .= " height=\"$height\""; |
|
872 | if(isset($width) && isset($height)) $result .= " loading=\"lazy\""; |
|
873 | } |
|
874 | if (isset($this->titles[$link_id])) { |
|
875 | $title = $this->titles[$link_id]; |
|
876 | $title = $this->encodeAttribute($title); |
|
@@ 903-909 (lines=7) @@ | ||
900 | $alt_text = $this->encodeAttribute($alt_text); |
|
901 | $url = $this->encodeURLAttribute($url); |
|
902 | $result = "<img src=\"$url\" alt=\"$alt_text\""; |
|
903 | if(file_exists($url)) |
|
904 | { |
|
905 | list($width, $height, $type, $attr) = getimagesize($url); |
|
906 | if(isset($width)) $result .= " width=\"$width\""; |
|
907 | if(isset($height)) $result .= " height=\"$height\""; |
|
908 | if(isset($width) && isset($height)) $result .= " loading=\"lazy\""; |
|
909 | } |
|
910 | if (isset($title)) { |
|
911 | $title = $this->encodeAttribute($title); |
|
912 | $result .= " title=\"$title\""; // $title already quoted |
@@ 1033-1039 (lines=7) @@ | ||
1030 | if (isset($this->urls[$link_id])) { |
|
1031 | $url = $this->encodeURLAttribute($this->urls[$link_id]); |
|
1032 | $result = "<img src=\"$url\" alt=\"$alt_text\""; |
|
1033 | if(file_exists($url)) |
|
1034 | { |
|
1035 | list($width, $height, $type, $attr) = getimagesize($url); |
|
1036 | if(isset($width)) $result .= " width=\"$width\""; |
|
1037 | if(isset($height)) $result .= " height=\"$height\""; |
|
1038 | if(isset($width) && isset($height)) $result .= " loading=\"lazy\""; |
|
1039 | } |
|
1040 | if (isset($this->titles[$link_id])) { |
|
1041 | $title = $this->titles[$link_id]; |
|
1042 | $title = $this->encodeAttribute($title); |
|
@@ 1074-1080 (lines=7) @@ | ||
1071 | $alt_text = $this->encodeAttribute($alt_text); |
|
1072 | $url = $this->encodeURLAttribute($url); |
|
1073 | $result = "<img src=\"$url\" alt=\"$alt_text\""; |
|
1074 | if(file_exists($url)) |
|
1075 | { |
|
1076 | list($width, $height, $type, $attr) = getimagesize($url); |
|
1077 | if(isset($width)) $result .= " width=\"$width\""; |
|
1078 | if(isset($height)) $result .= " height=\"$height\""; |
|
1079 | if(isset($width) && isset($height)) $result .= " loading=\"lazy\""; |
|
1080 | } |
|
1081 | if (isset($title) && $title_quote) { |
|
1082 | $title = $this->encodeAttribute($title); |
|
1083 | $result .= " title=\"$title\""; // $title already quoted |