folivoro/layotter
Composer 安装命令:
composer require folivoro/layotter
包简介
Add and arrange your content freely with an intuitive drag and drop interface!
README 文档
README
Build fully customizable and easy to use Wordpress websites – with Layotter, the drag-and-drop page builder for developers!
As a professional Wordpress developer, you've probably got your own theme boilerplate, a favorite grid system, project structure, … you name it. So why should your page builder dictate its own HTML or CSS structure? Why should it come with a ton of predesigned modules that won't fit your client's design anyway? We believe it shouldn't. So Layotter doesn't.
If you like ACF, you'll love Layotter
Layotter is based on Advanced Custom Fields (ACF), a very popular Wordpress plugin that lets you create wildly complex forms without having to write any code. Thanks to ACF, building a simple Layotter element takes as little as 15 lines of code:
class Text_Element extends Layotter_Element { protected function attributes() { $this->title = 'Text'; $this->description = 'A very simple text element.'; $this->icon = 'font'; // pick an icon from Font Awesome $this->field_group = 'group_abc1337'; // your ACF field group } protected function frontend_view($fields) { echo $fields['content']; // what visitors will see } protected function backend_view($fields) { echo $fields['content']; // what editors will see } } Layotter::register_element('text', 'Text_Element');
Read the introduction or the installation instructions to get started, or head directly to the tutorial on how to create an element type.
Some more features you'll enjoy
- Super clean, object oriented API
- Full HTML and CSS customization
- Settings filters for programmatic configuration
- Integrates so nicely, your clients will think it's a part of Wordpress
- Works with the Pro and regular versions of ACF
- Open source and free to include even in commercial themes
By the way, Layotter 2 is in the making…
Check out the (terribly named) modular branch to learn more about the the upcoming release.
folivoro/layotter 适用场景与选型建议
folivoro/layotter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 508 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 05 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 folivoro/layotter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 folivoro/layotter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 508
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 15
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2023-05-17