Hi,

I've seen some functions and hooks in theme/boostrap folder, but how are we supposed to use it ?

Is there a documentation somewhere ? not the Bootstrap documentation, which is great, but the Drupal Boostrap theme documentation explaining in extenso the features the theme brings. I guess the theme doesn't only embed boostrap.css and related JS... but without any documentation we could think that.

Thanks for your support!

Comments

el7cosmos’s picture

Status: Active » Closed (won't fix)

You can use theme() like this:

$variables = array(
  'id' => 'accordion',
  'elements' => array(
    'collapse-one' => array(
      'header' => t('Header'),
      'content' => array(
        '#markup' => '<p>Content</p>',
      ),
    ),
  ),
);

print theme('bootstrap_accordion', $variables);

========Scripted response=======

Supported code

This project only supports Drupal versions 7.x-3.x and higher.
This project only supports Bootstrap versions 3.0.0 and higher.
This project only supports jQuery versions 1.7 and higher.

Anything that falls outside the scope of this support will be either escalated to the current version or marked as "Closed (won't fix)".

Documentation

There's been some amazing Drupal Community work done around Bootstrap. Many of your questions can be answered in our Bootstrap Documentation section by individuals who have helped further expand Bootstrap's integration with Drupal:
  * Bootstrap related modules
  * Bootstrap sub-theming "how to"
  * Bootstrap theming techniques and tips

If you find documentation in these locations inaccurate or missing, please update it yourself (all logged in users have edit capability).

Creating new issues

PLEASE SEARCH THE ISSUE QUEUE FIRST. DO NOT DUPLICATE EXISTING ISSUES.

It is also strongly recommended you read: How To Solve All Your [Drupal] Problems.

This project's issue queue should only be used when existing/new bugs are found or new feature requests are desired to integrate Bootstrap into Drupal. It should not be used to create issues against the Bootstrap framework, please go to https://github.com/twbs/bootstrap/issues and file them there.

The following "support questions" or "bug issues" should also not be created either:
  * CSS/Layout (site specific)
  * LESS or SASS syntax/integration
  * JavaScript, Bootstrap or custom (site) plugins
  * Integration with modules that don't work in multiple themes (file the issue with that module).
  * Button issues (@see #2120849: Decrease Panels IPE CSS & JS specificity to allow "button" elements)

If you create an issue and it has been marked as "Closed (won't fix)", please visit Drupal StackExchange. It is an amazing resource for asking questions, learning new techniques and overall general support. Please do not blow up this project's issue queue with the equivalent of: "Help me! I don't want to read the multitude of documentation found by a simple Google search."

tahiticlic’s picture

Thanks!