Skip to content

Commit

Permalink
Merge pull request #203 from ResponsiveImagesCG/2.5.2-inline-docs
Browse files Browse the repository at this point in the history
Update inline docs for 2.5.2
  • Loading branch information
joemcgill committed Oct 2, 2015
2 parents 193420b + 3d40928 commit 9cf2a1a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions wp-tevko-responsive-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ function tevkori_get_picturefill() {
* @since 2.2.0
*
* @param int $id Image attachment ID.
* @param string $size Optional. Name of image size. Default value: 'thumbnail'.
* @param string $size Optional. Name of image size. Default value: 'medium'.
* @param array $args {
* Optional. Arguments to retrieve posts.
*
* @type array|string $sizes An array or string containing of size information.
* @type int $width A single width value used in the default `sizes` string.
* }
* @return string|bool A valid source size value for use in a 'sizes' attribute or false.
*/
Expand Down Expand Up @@ -155,11 +156,12 @@ function tevkori_get_sizes( $id, $size = 'medium', $args = null ) {
* @since 2.2.0
*
* @param int $id Image attachment ID.
* @param string $size Optional. Name of image size. Default value: 'thumbnail'.
* @param string $size Optional. Name of image size. Default value: 'medium'.
* @param array $args {
* Optional. Arguments to retrieve posts.
*
* @type array|string $sizes An array or string containing of size information.
* @type int $width A single width value used in the default `sizes` string.
* }
* @return string|bool A valid source size list as a 'sizes' attribute or false.
*/
Expand All @@ -173,7 +175,7 @@ function tevkori_get_sizes_string( $id, $size = 'medium', $args = null ) {
* Get an array of image sources candidates for use in a 'srcset' attribute.
*
* @param int $id Image attachment ID.
* @param string $size Optional. Name of image size. Default value: 'thumbnail'.
* @param string $size Optional. Name of image size. Default value: 'medium'.
* @return array|bool An array of of srcset values or false.
*/
function tevkori_get_srcset_array( $id, $size = 'medium' ) {
Expand Down Expand Up @@ -259,7 +261,7 @@ function tevkori_get_srcset_array( $id, $size = 'medium' ) {
* @since 2.3.0
*
* @param int $id Image attachment ID.
* @param string $size Optional. Name of image size. Default value: 'thumbnail'.
* @param string $size Optional. Name of image size. Default value: 'medium'.
* @return string|bool A 'srcset' value string or false.
*/
function tevkori_get_srcset( $id, $size = 'medium' ) {
Expand All @@ -278,7 +280,7 @@ function tevkori_get_srcset( $id, $size = 'medium' ) {
* @since 2.1.0
*
* @param int $id Image attachment ID.
* @param string $size Optional. Name of image size. Default value: 'thumbnail'.
* @param string $size Optional. Name of image size. Default value: 'medium'.
* @return string|bool A full 'srcset' string or false.
*/
function tevkori_get_srcset_string( $id, $size = 'medium' ) {
Expand Down

0 comments on commit 9cf2a1a

Please sign in to comment.