Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Symfony 2 bundle for integrating with Bootstrap and Fontawesome

License

Notifications You must be signed in to change notification settings

bravesheep/bootstrapify-bundle

Repository files navigation

Bravesheep Bootstrapify bundle

Installation

Add the BsBootstrapifyBundle to assetic and define a global Twig variable named locale:

assetic:
    bundles:
        - BsBootstrapifyBundle

twig:
    globals:
        locale: "%locale%"
    form:
        resources:
            - "BsBootstrapifyBundle::form.html.twig"

To include the Bootstrap Datepicker add the following to your layout:

{% block javascripts %}
  {{ parent() }}
  {% javascripts filter='?yui_js'
    '@BsBootstrapifyBundle/Resources/js/bootstrap-datepicker.js'
  %}
    <script type="text/javascript" src="{{ asset_url }}"></script>
  {% endjavascripts %}
  <script type="text/javascript" src="{{ asset('bundles/bsbootstrapify/js/locale/datepicker/' ~ locale ~ '.js') }}"></script>
{% endblock %}

The main less source file can be extended by importing it in your own less file. Use the following statement to import the main less file (assumed the file is located in Bundle/Resources/less/):

@import "../../../../../vendor/bravesheep/bootstrapify-bundle/Bs/BootstrapifyBundle/Resources/less/bootstrap-fa-s2.less";

About

Symfony 2 bundle for integrating with Bootstrap and Fontawesome

Resources

License

Stars

Watchers

Forks

Packages

No packages published