supermundano/sage-the-events-calendar
Composer 安装命令:
composer require supermundano/sage-the-events-calendar
包简介
README 文档
README
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:
the-events-calendar/src/views/v2/components/events-bar.php
just copy the file in the folder root folder of your theme
your-sage10-theme/tribe/events/v2/components/events-bar.php
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).
$ composer require supermundano/sage-the-events-calendar
Add the package to the cached package manifest.
$ wp acorn package:discover
Publish the required template-default.blade.php view
$ wp acorn vendor:publish --tag="TheEventsCalendar Templates"
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.
supermundano/sage-the-events-calendar 适用场景与选型建议
supermundano/sage-the-events-calendar 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 25.72k 次下载、GitHub Stars 达 17, 最近一次更新时间为 2021 年 04 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 supermundano/sage-the-events-calendar 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 supermundano/sage-the-events-calendar 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 25.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-14