Initial News theme templating #77
Merged
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.
The commits in this PR do the following:
inc/entry.php
. No code is changed. The templates which Pages will use do move into a newtemplates/
folder, similar to how the other themes are structured.cards.php
page-news.php
getRoot
function at the top of some page templates. This will need to be more thoroughly cleaned in the next PR.Mitlib/News
namespace to any template that gets loaded when the production content gets imported.The goal of all of this is to bring in all the legacy PHP templates, and to make sure that the resulting theme doesn't crash egregiously after the current set of content is imported.
This PR will not close LM-143 entirely, but it does bring us close enough that I'll be able to import the production content in a review app, and closely inspect the behavior and resolve the rest of the issues.
Developer
Secrets
Documentation
Accessibility
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)
Stakeholder approval
Dependencies
NO dependencies are updated
Code Reviewer
(not just this pull request message)