Download the PHP package supermundano/sage-the-events-calendar without Composer
On this page you can find all versions of the php package supermundano/sage-the-events-calendar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sage-the-events-calendar
The Events Calendar support for Sage 10
Add The Events Calendar support to Sage 10.
For the time being there can only be a blade view, the default-template.blade.php file, that allows the events page to work loading the Sage blade layout.
The template parts are not available yet as blade templates. If you need to override a template part, say for instance:
just copy the file in the folder root folder of your theme
You won't have the blade functionality but at least you can use the plugin.
Requirements
Installation
Install the composer package (in the theme folder).
Add the package to the cached package manifest.
Publish the required template-default.blade.php
view
Bug Reports
If you discover a bug in Sage The Events Calendar, please open an issue.
Todo
What we need to have full Sage10 coverage:
- [] Allow blade templates for template parts
What I've found so far:
The templates are rendered by the function template here the-events-calendar/common/src/Tribe/Template.php
We need to figure out how to:
- get access to $context and $echo
- port those actions before/after template rendering: https://github.com/the-events-calendar/tribe-common/blob/a561e923b1eb4877e78abeb44f9db06e357cb650/src/Tribe/Template.php#L893:L900
- set the current hook name back again https://github.com/the-events-calendar/tribe-common/blob/a561e923b1eb4877e78abeb44f9db06e357cb650/src/Tribe/Template.php#L915
Try using this gist from Log1x https://gist.github.com/Log1x/d02f35f6f9de5f1a5078a3807c6a36c2
License
Sage The Events Calendar is provided under the MIT License.