Projet

Général

Profil

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

root / drupal7 / sites / all / themes / bootstrap / includes / icons.inc @ bd64b67c

1
<?php
2

    
3
/**
4
 * @file
5
 * Provide Bootstrap Glyphicons support via the Icon API module.
6
 */
7

    
8
require_once dirname(__FILE__) . '/common.inc';
9

    
10
/**
11
 * Implements hook_icon_providers().
12
 */
13
function bootstrap_icon_providers() {
14
  $providers['bootstrap'] = array(
15
    'title' => t('Bootstrap'),
16
    'url' => 'https://getbootstrap.com/docs/3.3/components/#glyphicons',
17
  );
18
  return $providers;
19
}
20

    
21
/**
22
 * Implements hook_icon_bundles().
23
 */
24
function bootstrap_icon_bundles() {
25
  $bundles['bootstrap'] = array(
26
    'render' => 'sprite',
27
    'provider' => 'bootstrap',
28
    'title' => t('Bootstrap'),
29
    'version' => t('Icons by Glyphicons'),
30
    'variations' => array(
31
      'icon-white' => t('White'),
32
    ),
33
    'settings' => array(
34
      'tag' => 'span',
35
    ),
36
    'icons' => _bootstrap_glyphicons(),
37
  );
38

    
39
  return $bundles;
40
}