2017 © Pedro Peláez
 

library bootstrap-theme-bundle

Symfony2 Boostrap Theme/Template management bundle, with live theme editing

image

ilp/bootstrap-theme-bundle

Symfony2 Boostrap Theme/Template management bundle, with live theme editing

  • Tuesday, November 4, 2014
  • by ilikeprograms
  • Repository
  • 1 Watchers
  • 1 Stars
  • 97 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

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., (*1)

There is also a service which allows you to compile the changes to the theme and get information about the current theme., (*2)

For example usage see (Corvus)[https://github.com/ilikeprograms/corvus], (*3)

This project makes use of (Cluckles)[https://github.com/ilikeprograms/Cluckles] for the Live editing features., (*4)

Getting Started

To get started using BootstrapThemeBundle, add the project and its dependencies to your app's composer.json file., (*5)

{
    "require": {
        "ilp/bootstrap-theme-bundle": "~0.1.0",
        "oyejorge/less.php": "~1.5"
    }
}

Then enable the Bundle in your AppKernel, (*6)

$bundles = array(
// ... Other Dependencies
    new ILP\BootstrapThemeBundle\ILPBootstrapThemeBundle()
);

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"), (*7)

ilp_bootstrap_theme:
    theme_base: 'src/Corvus/FrontendBundle/Resources/public/css'
    template_base: 'src/Corvus/FrontendBundle/Resources/views'
    bundle: CorvusFrontend # Not case sensitive (Corvus = Vendor, Frontend = Bundle name)

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., (*8)

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., (*9)

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., (*10)

Then you need to include the base bootstrap.less so that it can be modified live, (*11)

# theme_editor.bootstrap path returns the path to the Custom bootstrap.less file included with Cluckles
<link type="text/css" href="{{ asset('theme_editor.bootstrap_path') }}" rel="stylesheet/less" />

Finally you need to include the theme-editor js and initialise an instance, this will allow you to edit and save the changes, (*12)

{% include 'ILPBootstrapThemeBundle:Default:editor-js.html.twig' %}






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., (*13)

The Versions

04/11 2014

dev-master

9999999-dev https://github.com/ilikeprograms/BootstrapThemeBundle

Symfony2 Boostrap Theme/Template management bundle, with live theme editing

  Sources   Download

MIT

The Requires

 

04/11 2014

0.2.2

0.2.2.0 https://github.com/ilikeprograms/BootstrapThemeBundle

Symfony2 Boostrap Theme/Template management bundle, with live theme editing

  Sources   Download

MIT

The Requires

 

24/10 2014

0.2.1

0.2.1.0 https://github.com/ilikeprograms/BootstrapThemeBundle

Symfony2 Boostrap Theme/Template management bundle, with live theme editing

  Sources   Download

MIT

The Requires

 

06/08 2014

0.1.0

0.1.0.0 https://github.com/ilikeprograms/BootstrapThemeBundle

Symfony2 Boostrap Theme/Template management bundle, with live theme editing

  Sources   Download

GPL-3.0+

The Requires

 

14/07 2014

0.0.8

0.0.8.0 https://github.com/ilikeprograms/BootstrapThemeBundle

Symfony2 Boostrap Theme/Template management bundle, with theme live editing

  Sources   Download

GPL-3.0+

The Requires

 

07/07 2014

0.0.7

0.0.7.0 https://github.com/ilikeprograms/BootstrapThemeBundle

Symfony2 Boostrap Theme/Template management bundle, with theme live editing

  Sources   Download

GPL-3.0+

The Requires

 

07/07 2014

0.0.6

0.0.6.0 https://github.com/ilikeprograms/BootstrapThemeBundle

Symfony2 Boostrap Theme/Template management bundle, with theme live editing

  Sources   Download

GPL-3.0+

The Requires

 

30/06 2014

0.0.4

0.0.4.0 https://github.com/ilikeprograms/BootstrapThemeBundle

Symfony2 Boostrap Theme/Template management bundle, with theme live editing

  Sources   Download

GPL-3.0+

The Requires

 

30/06 2014

0.0.3

0.0.3.0 https://github.com/ilikeprograms/BootstrapThemeBundle

Symfony2 Boostrap Theme/Template management bundle, with theme live editing

  Sources   Download

GPLv3

The Requires

 

30/06 2014

0.0.2

0.0.2.0

Symfony2 Boostrap Theme/Template management bundle, with theme live editing

  Sources   Download

GPLv3

The Requires