Download the PHP package ilp/bootstrap-theme-bundle without Composer
On this page you can find all versions of the php package ilp/bootstrap-theme-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ilp/bootstrap-theme-bundle
More information about ilp/bootstrap-theme-bundle
Files in ilp/bootstrap-theme-bundle
Package bootstrap-theme-bundle
Short Description Symfony2 Boostrap Theme/Template management bundle, with live theme editing
License MIT
Homepage https://github.com/ilikeprograms/BootstrapThemeBundle
Informations about the package bootstrap-theme-bundle
Bootstrap Theme Bundle
Boostrap Theme Bundle provided the ability to manage themes/templates of Bootstrap based Symfony2 projects. You can integrate the live editor to allow your themes to be edited live and the changes to a theme saved.
There is also a service which allows you to compile the changes to the theme and get information about the current theme.
For example usage see (Corvus)[https://github.com/ilikeprograms/corvus]
This project makes use of (Cluckles)[https://github.com/ilikeprograms/Cluckles] for the Live editing features.
Getting Started
To get started using BootstrapThemeBundle, add the project and its dependencies to your app's composer.json file.
Then enable the Bundle in your AppKernel
Then provide the folders which hold your theme/template folders which you want the bundle to manage (config.yml), aswell as the Bundle which holds the Resources (in the format below, Vendor and Bundle Name without "Bundle")
These folders expect that public/css
and Resources/views
will have folders with the name of the theme/templates.
The Resources/views/*
folders will be expected to hold the twig templates for the current theme.
The public/css
folder will be expected to hold folders with the theme files for the current theme.
Using Themes
By default if you have a folder in the public/css
folder, it will be treated as a Theme directory, if it has no theme.css file, one will be automatically created for it.
This theme.css file will have the generic base Twitter Bootstrap styling.
To change this Theme, the BoostrapThemeBundle's editor can be used, there is an themeEditor.html.twig
view which can be included in another template to provide the editor view.
This view can then be interacted with to customise the current theme.
Then you need to include the base bootstrap.less
so that it can be modified live
Finally you need to include the theme-editor js and initialise an instance, this will allow you to edit and save the changes
A download/save link will be in the themeEditor.html.twig
view which will enable the changes to be saved. They will be posted to the theme-editor/save
url (relative to the project url) and the theme_manager
service will then compile and save the changes.