maxencebeno/sonata-gentelella-bundle

基于 Gentelella 主题的 Symfony SonataAdminBundle

安装: 4

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 6

语言:JavaScript

类型:symfony-bundle

v1.0.18 2019-07-02 08:52 UTC

README

这是一个简单整合 Gentelella Alela! 主题到 SonataAdminBundle 的扩展。

这个扩展包会自动为 sonata admin 定义默认配置,因此安装过程非常简单,只需

composer require sherlockode/sonata-gentelella-bundle

并在 app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        ...
        new Sherlockode\SonataGentelellaBundle\SherlockodeSonataGentelellaBundle(),
    ];
}

app/config.yml

sonata_admin:
    templates:
        layout: '@App/standard_layout.html.twig'

您需要扩展 standard_layout.html.twig。如果您没有,则需要创建一个并按照以下方式编辑它

{% extends '@SherlockodeSonataGentelella/standard_layout.html.twig' %}

大多数模板块保持不变,但对于主题,我们被迫移动了一些。因此,如果您覆盖了 sonata 模板,可能会有一些问题

默认禁用所有插件,要启用插件,请修改 config.yml

sherlockode_sonata_gentelella:
    fast_click: true
    nprogress: true
    chart: true
    echarts: true
    gauge: true
    bootstrap_progressbar: true
    skycons: true
    flot: true
    datejs: true
    jqvmap: true
    bootstrap_daterangerpicker: true
    calendar: true
    switchery: true
    starrr: true
    jquery_tag_input: true
    bootstrap_wysiwyg: true
    parsley: true
    cropper: true
    autosize: true
    jquery_autocomplete: true
    ion_rangeslider: true
    bootstrap_colorpicker: true
    jquery_inputmask: true
    jquery_knob: true
    dropzone: true
    validator: true
    jquery_smart_wizard: true
    pnotify: true
    jquery_sparklines: true
    morris: true
    animate: true
    easy_pie_chart: true
    echarts: true
    datatables: true

查看演示(需要所有插件)

sherlockode_sonata_gentelella:
    demo: true