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

Issue #4439: Denote which theme has been set as the admin theme #3166

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from

Conversation

klonos
Copy link
Member

@klonos klonos commented Jun 11, 2020

@backdrop-ci
Copy link
Collaborator

Related to: backdrop/backdrop-issues#4439

@backdrop-ci
Copy link
Collaborator

Website: http://3166.backdrop.backdrop.qa.backdropcms.org
Username: admin
Password: AR9qq7MC

Comment on lines 128 to +129
$theme->is_default = ($theme->name == $theme_default);
$theme->is_admin = ($theme->name == $admin_theme);
Copy link
Member Author

@klonos klonos Jun 11, 2020

Choose a reason for hiding this comment

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

The way this is implemented these properties are available only within the context of the themes listing page. I would like us to move these into system_rebuild_theme_data() and/or list_themes(), so that they become available info on themes in general. Would this be an API change?

Copy link
Member

Choose a reason for hiding this comment

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

I think moving it into list_themes() would be appropriate. It would be an API expansion to do so, since these properties would be made available in more places than they had been previously. That's fine to do in our 1.x release. In our docblock for list_themes() we'd just have to include documentation on the new properties and include @since sections for the new properties.

Then instead of this function (system_themes_page()) calling $themes = system_rebuild_theme_data();, it should pull from list_themes() instead so it doesn't have to duplicate the work.

klonos added a commit to klonos/backdrop that referenced this pull request Jul 27, 2020
yorkshire-pudding added a commit to yorkshire-pudding/backdrop that referenced this pull request Jan 29, 2024
indigoxela added a commit to indigoxela/backdrop that referenced this pull request Feb 1, 2024
quicksketch added a commit to quicksketch/backdrop that referenced this pull request Mar 7, 2024
argiepiano added a commit to argiepiano/backdrop that referenced this pull request Mar 7, 2024
Issue backdrop#3166: Remove views-specific code from autosubmit fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants