-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add branded notices to inform users when AspireUpdate is in operation on a screen. #142
Conversation
1e55241
to
d3f81c6
Compare
Don’t forget the to add the flag to the docs https://github.com/aspirepress/AspireUpdate/blob/main/README.md So it should not be possible to set in the GUi to close branding? Is it possible close the notice ? (Can’t see in the picture) |
This is a brand so it will not have a close link or ui control. Then config parameter can be used to turn it off. |
b514623
to
a15ec65
Compare
understand, but why do we want to offer it from a config parameter to turn it off but not in GUI? |
We should eliminate the config parameter? Branding is not something you can easily remove. It's not a notice. |
|
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.
-
We should remove the new config parameter and connect this to the AP_NO_UI config parameter.
-
Lets get rid of that inline svg and move it to CSS.
@namithj PR has been updated.
New screenshots are in the description. |
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.
There are new strings that will need to be updated. Can you the .pot file?
Maybe worth updating docs to include branding as it’s not only settings anymore today: |
Do we need to translate the URLs? |
Pull Request
What changed?
AspireUpdate\Branding
, has been introduced which will output an admin notice on certain screens whenAP_ENABLE
istrue
andAP_REMOVE_UI
is undefined orfalse
..aspireupdate-notice
.<div class="notice aspireupdate-notice"><p>I am a notice</p></div>
AspireUpdate\Branding
.Dashboard > Updates
Plugins > Installed plugins
Plugins > Add New Plugin
Appearance > Themes
Appearance > Themes > Add New Theme
Line/Branch Coverage
Why did it change?
To inform users when AspireUpdate is in operation on these screens.
Did you fix any specific issues?
Fixes #72
CERTIFICATION
By opening this pull request, I do agree to abide by
the CODE OF CONDUCT and be bound by the terms
of the Contribution Guidelines in effect on the date and time
of my contribution as proven by the
revision information in GitHub. I also agree that any previous contributions shall be deemed subject to the terms of the
version in effect on the date and time of this pull request, or any future revisions for pull requests I may submit.
Further, I certify that this work is my own, is original, does not violate the intellectual property of any other person
or entity, and I am not violating any license agreements or contracts I have with any person or entity. Finally, I agree
that this code may be licensed under any license deemed appropraite by AspirePress, including but not
limited to open source, closed source, proprietary or custom licenses, and that such license terms neither violate my
rights or my copyright to this code.