1 |
caf16a48
|
Assos Assos
|
<?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 |
9525582e
|
Assos Assos
|
'url' => 'https://getbootstrap.com/docs/3.3/components/#glyphicons',
|
17 |
caf16a48
|
Assos Assos
|
);
|
18 |
|
|
return $providers;
|
19 |
|
|
}
|
20 |
|
|
|
21 |
|
|
/**
|
22 |
|
|
* Implements hook_icon_bundles().
|
23 |
|
|
*/
|
24 |
|
|
function bootstrap_icon_bundles() {
|
25 |
e61933c3
|
Assos Assos
|
$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 |
caf16a48
|
Assos Assos
|
return $bundles;
|
40 |
|
|
} |