Skip to content
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

Enh: Move the widget wall entry links to a view and surround the link… #512

Merged
merged 4 commits into from
Nov 22, 2024

Conversation

marc-farre
Copy link
Contributor

…s with a div having a dedicated class

@marc-farre
Copy link
Contributor Author

@luke- This PR adds these 2 HTML elements with dedicated classes allowing to style the links with CSS:
image

And the button rendering is done in a view instead of directly into the widget, allowing to overwrite the view with a custom theme.

Usage: it will allow the Clean Theme to replace the link texts with an icon.

Copy link
Contributor

@luke- luke- left a comment

Choose a reason for hiding this comment

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

@marc-farre In terms of code style, I would like to avoid template files in the future that contain only a single link or/and 1-3 HTML elements.

I know that this is currently the case in various places, but I would like to eliminate this in future.

See suggestion below. What you think?

widgets/DownloadIcsLink.php Outdated Show resolved Hide resolved
@luke- luke- merged commit 834578c into master Nov 22, 2024
5 of 12 checks passed
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.

2 participants