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

Convert the user bar into a helper #1108

Merged
merged 3 commits into from
Jul 2, 2018

Conversation

Daniel-KM
Copy link
Contributor

@Daniel-KM Daniel-KM commented Oct 25, 2017

Based on the previous pull request, I converted the user bar into a helper, so it is possible to add new tools in it. In fact, there are two ways to add new tools: a helper, so it's possible to upgrade the https:/omeka/plugin-EditLink, or a trigger, or even a block, but it's simpler via a helper and modules for now.

Note that this change requires an update to the official themes, since the user bar is now just echo $this->userBar(); (the partial is still available, but it requires a value for "user" and checks are not done). I can push this update if needed.

@Daniel-KM Daniel-KM force-pushed the feature/helper_user_bar branch 3 times, most recently from c15f54c to fbfb163 Compare October 25, 2017 15:34
@Daniel-KM
Copy link
Contributor Author

The last commit avoids to update old themes, but the check for the user bar should be done when the helper is not used.

@zerocrates
Copy link
Member

I like this change, but I think we're going to wait until post-1.0 for it.

@Daniel-KM
Copy link
Contributor Author

Rebased.

@Daniel-KM
Copy link
Contributor Author

Rebased.

@zerocrates
Copy link
Member

I'm understanding the change correctly that the bar will render with no theme changes, but switching over to use the helper is required to get the always/never/logged-in switch to work, yes?

@Daniel-KM
Copy link
Contributor Author

Last year, the idea was to avoid the upgrade of themes, so the upgrade works with any theme, and that's why the radio uses values "-1", "0", and "1", like a checkbox. These values can be changed if you want to require a change in themes.

@Daniel-KM Daniel-KM deleted the feature/helper_user_bar branch July 3, 2018 08:07
kimisgold added a commit to omeka-s-themes/centerrow that referenced this pull request Jul 31, 2018
kimisgold added a commit to omeka-s-themes/thedaily that referenced this pull request Jul 31, 2018
kimisgold added a commit to omeka-s-themes/cozy that referenced this pull request Jul 31, 2018
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.

3 participants