mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-12 18:08:47 +00:00
[html] code linting
This commit is contained in:
parent
4f8eb2fd37
commit
96acb66fc4
@ -230,7 +230,7 @@ function defaultLinkTo($dom, $url)
|
|||||||
* Parse a srcset HTML attribute value and return size => URL mappings
|
* Parse a srcset HTML attribute value and return size => URL mappings
|
||||||
* Srcset contains a list of image URLs with associated size specified as size (e.g. 1024w) or scale (e.g. 2x)
|
* Srcset contains a list of image URLs with associated size specified as size (e.g. 1024w) or scale (e.g. 2x)
|
||||||
* The web browser should pick the most appropriate image depending on screen size and/or pixel density
|
* The web browser should pick the most appropriate image depending on screen size and/or pixel density
|
||||||
*
|
*
|
||||||
* This function takes a srcset string such as the following:
|
* This function takes a srcset string such as the following:
|
||||||
* header640.png 640w, header960.png 960w, header1024.png 1024w
|
* header640.png 640w, header960.png 960w, header1024.png 1024w
|
||||||
*
|
*
|
||||||
@ -240,7 +240,7 @@ function defaultLinkTo($dom, $url)
|
|||||||
* '960w' => 'header960.png',
|
* '960w' => 'header960.png',
|
||||||
* '1024w' => 'header1024.png'
|
* '1024w' => 'header1024.png'
|
||||||
* ]
|
* ]
|
||||||
*
|
*
|
||||||
* @param string $srcset Content of srcset html attribute
|
* @param string $srcset Content of srcset html attribute
|
||||||
* @param bool $return_largest_url Instead of returning an array, return URL for the largest entry
|
* @param bool $return_largest_url Instead of returning an array, return URL for the largest entry
|
||||||
* @return array|string Content of srcset attribute as { size => url } array, or largest entry URL if requested
|
* @return array|string Content of srcset attribute as { size => url } array, or largest entry URL if requested
|
||||||
@ -279,7 +279,7 @@ function parseSrcset($srcset, $return_largest_url = false)
|
|||||||
} else {
|
} else {
|
||||||
return $entries;
|
return $entries;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert lazy-loading images and frames (video embeds) into static elements
|
* Convert lazy-loading images and frames (video embeds) into static elements
|
||||||
|
Loading…
Reference in New Issue
Block a user