此插件允许您更改指定 twig 模板的主题和身体背景

安装: 6

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

语言:HTML

类型:symfony-bundle

dev-master 2016-12-31 23:57 UTC

This package is not auto-updated.

Last update: 2024-09-28 19:42:10 UTC


README

Symfony 主题插件系统

/* Symfony Themesbundle,允许轻松更改主题和身体背景。版权 (C) 2016 Justin Fuhrmeister-Clarke

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://gnu.ac.cn/licenses/>.

*/

请启用:new ThemesBundle\ThemesBundle() ,

在 AppKernal.php 中

要启用路由,请在 app/config/routing.yml 中放置以下内容

themes: resource: "@ThemesBundle/Resources/config/routing.yml" prefix: /themes

要启用这些主题,请在 layout.html.twig 或 base.html.twig 的底部放置以下内容。

<!-- start theme Embed -->
{{ render(controller( 'ThemesBundle:Default:footer' )) }}
<!-- end theme Embed -->

如有问题,请记录在 github issues 中。