Skip to content

Comments

Add srcset and sizes attributes to the img tag#117

Merged
const-cloudinary merged 12 commits intomasterfrom
feature/add-srcset-to-cl-image-tag
May 3, 2018
Merged

Add srcset and sizes attributes to the img tag#117
const-cloudinary merged 12 commits intomasterfrom
feature/add-srcset-to-cl-image-tag

Conversation

@const-cloudinary
Copy link
Contributor

No description provided.

@const-cloudinary const-cloudinary requested a review from tocker April 30, 2018 08:15
@const-cloudinary const-cloudinary force-pushed the feature/add-srcset-to-cl-image-tag branch from 2ad3d32 to 0732165 Compare May 3, 2018 12:26
}

/**
* @internal Helper function. Generates sizes attribute value of the HTML img tag
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Update PHPDoc

}

/**
* Generates HTML img tag
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Update PHPDoc

}

/**
* @internal Helper function. Generates srcset attribute value of the HTML img tag
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Update PHPDoc

}

/**
* @internal Helper function. Generates a single srcset item url
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Update PHPDoc

function cl_image_tag($source, $options = array())

/**
* @internal Helper function. Gets or populates srcset breakpoints using provided parameters
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Update PHPDoc

@const-cloudinary const-cloudinary requested a review from jackieros May 3, 2018 12:53
@const-cloudinary const-cloudinary merged commit 2e65e32 into master May 3, 2018
@const-cloudinary const-cloudinary deleted the feature/add-srcset-to-cl-image-tag branch May 10, 2018 12:48
const-cloudinary added a commit that referenced this pull request Jul 14, 2020
* Add doc strings for classes.

* Transformations: StreamingProfile to Volume (Meir)

* Add doc strings to various transformation classes.

* Update transformation strings.

* Add strings for SmartObject and Palette classes.

* Apply suggestions from Caroline's code review

* Add transformation guide link to Opacity class description.

* Fix docs .gitignore file

* Fix maximum line length warning

* Add Tag class doc strings.

* Update following review.

* Update following review.

* Improve tag samples

* Update description.

Co-authored-by: Nick Bradley <nick.bradley@cloudinary.com>
Co-authored-by: Meir Feinberg <meir.feinberg@cloudinary.com>
Co-authored-by: Caroline Levison <caroline.levison@cloudinary.com>
Co-authored-by: Constantine Nathanson <constantine@cloudinary.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant