-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Fix images #35780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[4.0] Fix images #35780
Changes from 12 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
08cd724
Fix images
dgrammatiko 7fd6a59
menus
dgrammatiko f2bfbad
Update components/com_contact/tmpl/category/default_items.php
dgrammatiko ce2e00f
more
dgrammatiko e10da79
one more
dgrammatiko 45ec5c4
more
dgrammatiko dc10268
Update components/com_contact/tmpl/contact/default.php
dgrammatiko 7962abb
Update components/com_content/tmpl/category/blog.php
dgrammatiko c8132ff
Update components/com_newsfeeds/tmpl/category/default.php
dgrammatiko 9a0f4d7
Update components/com_newsfeeds/tmpl/newsfeed/default.php
dgrammatiko 6657f4c
Update components/com_newsfeeds/tmpl/newsfeed/default.php
dgrammatiko 60633dc
Update modules/mod_articles_news/tmpl/_item.php
dgrammatiko 5d051b0
Update components/com_newsfeeds/tmpl/newsfeed/default.php
dgrammatiko 9bed5fc
Undo menu changes, proper invocation of HTMLHelper
dgrammatiko ee4c197
one more
dgrammatiko 8738949
Use a Layout
dgrammatiko 9aae3cd
one more
dgrammatiko 6810fad
Update components/com_contact/tmpl/contact/default.php
dgrammatiko 707d717
Update components/com_contact/tmpl/contact/default.php
dgrammatiko 47291e5
Update components/com_contact/tmpl/category/default_items.php
dgrammatiko 9d43461
Update components/com_contact/tmpl/contact/default.php
dgrammatiko 5348c56
Update components/com_content/tmpl/category/blog.php
dgrammatiko 19d99ea
Update components/com_newsfeeds/tmpl/category/default.php
dgrammatiko dd36e11
Update components/com_newsfeeds/tmpl/newsfeed/default.php
dgrammatiko 38e61c8
Update modules/mod_articles_news/tmpl/_item.php
dgrammatiko 8efc2a2
Update components/com_newsfeeds/tmpl/newsfeed/default.php
dgrammatiko 1c8d811
Update components/com_newsfeeds/tmpl/newsfeed/default.php
dgrammatiko d50b8b0
Simplify the layout/data/etc
dgrammatiko 687d583
meh
dgrammatiko 4c54bb5
Redo
dgrammatiko 6f67b9f
Update image.php
dgrammatiko a2b71cb
Update layouts/joomla/html/image.php
dgrammatiko 9061a45
Update image.php
dgrammatiko 27d1bc4
Replace title with figure/figcaprion
dgrammatiko e95e9ee
Update image.php
dgrammatiko 2557b33
Update modules/mod_articles_news/tmpl/_item.php
dgrammatiko 885d9ec
One common jlayout for all images
dgrammatiko c5fa812
Meh
dgrammatiko 1ce9cf4
oops
dgrammatiko bcaa805
Remove double escaping
dgrammatiko a32c810
Remove double escaping
dgrammatiko 6a1dcc6
simplify, the loading part, revert some CS
dgrammatiko 7f2f4fc
Remove unused imports
dgrammatiko 0990be1
use escape in the jLayouts
dgrammatiko fbbb8cc
Update components/com_content/tmpl/category/blog.php
dgrammatiko ba3250b
Update components/com_content/tmpl/category/blog.php
dgrammatiko b976276
Update components/com_newsfeeds/tmpl/newsfeed/default.php
dgrammatiko 1877d55
Update layouts/joomla/html/image.php
dgrammatiko 282fa98
Update modules/mod_articles_news/tmpl/_item.php
dgrammatiko bf34ca0
Update layouts/joomla/html/image.php
dgrammatiko 4fd81ee
Update components/com_contact/tmpl/category/default_items.php
dgrammatiko 7f312c1
Update layouts/joomla/content/intro_image.php
dgrammatiko 4b64a15
Update components/com_newsfeeds/tmpl/newsfeed/default.php
dgrammatiko 9cc8b33
Update components/com_newsfeeds/tmpl/newsfeed/default.php
dgrammatiko 4865886
comment
dgrammatiko d0bbb00
the obj reurned from cleanImageURL has a url and attributes
dgrammatiko 6fce942
Update layouts/joomla/html/image.php
dgrammatiko 19ac361
Remove extra isset
dgrammatiko cad01eb
Update image.php
dgrammatiko 020c806
meh
dgrammatiko 6badaac
use escape
dgrammatiko bba0545
Update layouts/joomla/html/image.php
dgrammatiko a782b24
Add missing category image
dgrammatiko 1ec83be
Respect the no Description checkbox
dgrammatiko d0ba9b8
DO NOT UNSET OBJECT PARTS!
dgrammatiko 49c8ff6
Skip double escaping
dgrammatiko 4d5ff42
CS
dgrammatiko 8f4d6d2
Update components/com_newsfeeds/tmpl/newsfeed/default.php
dgrammatiko 0da6cb4
Merge branch '4.0-dev' into 4.0-dev-images
dgrammatiko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, still have question: Why do we use
htmlspecialcharshere for title instead of handle it in the layout like alt attribute?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although
titleis an acceptable attribute for images https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes and https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes I have no clue if it's a11y correct. We could loop through all the attributes and escape them but it would be tiny slower and also most of the attributes should be fine without escaping (class, id, etc)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I think we should not loop through all the attributes and escape them. I just think we should move htmlspecialchars for title to the layout (same as alt) to make the code uses layout simpler.
@Fedik Any feedback about this? If all is OK, I will do final test and report test result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, just make it as you did for
altThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kinda disagree here. The problem is that instead of title the parent layout should used figure and figcaption elements. The title is not a11y correct in this case and the platform already has the solution with the figure element. So, adding title to the img layout will be the wrong solution to the problem…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then just remove it here from attributes, no one will cry for it ;)
maybe some old legacy thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that’s a legacy thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Fedik @joomdonation so I swapped the title for a figure/figcaption, let me know if there's something more here