Projet

Général

Profil

Paste
Télécharger (523 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / bootstrap / theme / system / date.func.php @ 87dbc3bf

1
<?php
2
/**
3
 * @file
4
 * date.func.php
5
 */
6

    
7
/**
8
 * Overrides theme_date().
9
 */
10
function bootstrap_date($variables) {
11
  $element = $variables['element'];
12

    
13
  $attributes = array();
14
  if (isset($element['#id'])) {
15
    $attributes['id'] = $element['#id'];
16
  }
17
  if (!empty($element['#attributes']['class'])) {
18
    $attributes['class'] = (array) $element['#attributes']['class'];
19
  }
20
  $attributes['class'][] = 'form-inline';
21

    
22
  return '<div' . drupal_attributes($attributes) . '>' . drupal_render_children($element) . '</div>';
23
}