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

Layout Sections #82

Merged
merged 1 commit into from
Jun 7, 2021
Merged

Conversation

MGatner
Copy link
Collaborator

@MGatner MGatner commented Jun 7, 2021

This PR adds two additional sections to the main app layout: headerAssets and footerAssets. This makes it easier for individual pages to supply their own code that deviates from the rest of the template.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 913184274

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 75.938%

Totals Coverage Status
Change from base Build 864105391: 0.0%
Covered Lines: 243
Relevant Lines: 320

💛 - Coveralls

@MGatner
Copy link
Collaborator Author

MGatner commented Jun 7, 2021

This allows individual pages to add sections, like this:

<?= $this->section('footerAssets') ?>
<style>
header {
    background-color: white;
}
</style>
<?= $this->endSection() ?>

@lonnieezell lonnieezell merged commit 649dee0 into codeigniter4projects:develop Jun 7, 2021
@MGatner MGatner deleted the sections branch June 7, 2021 11:28
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