1 |
87dbc3bf
|
Benjamin Luce
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* icons.inc
|
6 |
|
|
* Provide Bootstrap Glyphicons support via the Icon API module.
|
7 |
|
|
*/
|
8 |
|
|
|
9 |
|
|
/**
|
10 |
|
|
* Implements hook_icon_providers().
|
11 |
|
|
*/
|
12 |
|
|
function bootstrap_icon_providers() {
|
13 |
|
|
$providers['bootstrap'] = array(
|
14 |
|
|
'title' => t('Bootstrap'),
|
15 |
|
|
'url' => 'http://getbootstrap.com/components/#glyphicons',
|
16 |
|
|
);
|
17 |
|
|
return $providers;
|
18 |
|
|
}
|
19 |
|
|
|
20 |
|
|
/**
|
21 |
|
|
* Implements hook_icon_bundles().
|
22 |
|
|
*/
|
23 |
|
|
function bootstrap_icon_bundles() {
|
24 |
|
|
$theme = variable_get('theme_default', $GLOBALS['theme']);
|
25 |
|
|
$cdn = theme_get_setting('bootstrap_cdn', $theme);
|
26 |
|
|
$bundles = array();
|
27 |
|
|
if ($cdn || (!$cdn && file_exists(drupal_get_path('theme', $theme) . '/bootstrap/fonts/glyphicons-halflings-regular.ttf'))) {
|
28 |
|
|
$bundles['bootstrap'] = array(
|
29 |
|
|
'render' => 'sprite',
|
30 |
|
|
'provider' => 'bootstrap',
|
31 |
|
|
'title' => t('Bootstrap'),
|
32 |
|
|
'version' => t('Icons by Glyphicons'),
|
33 |
|
|
'variations' => array(
|
34 |
|
|
'icon-white' => t('White'),
|
35 |
|
|
),
|
36 |
|
|
'settings' => array(
|
37 |
|
|
'tag' => 'i',
|
38 |
|
|
),
|
39 |
|
|
'icons' => array(
|
40 |
|
|
'glyphicon-adjust' => 'adjust',
|
41 |
|
|
'glyphicon-align-center' => 'align-center',
|
42 |
|
|
'glyphicon-align-justify' => 'align-justify',
|
43 |
|
|
'glyphicon-align-left' => 'align-left',
|
44 |
|
|
'glyphicon-align-right' => 'align-right',
|
45 |
|
|
'glyphicon-arrow-down' => 'arrow-down',
|
46 |
|
|
'glyphicon-arrow-left' => 'arrow-left',
|
47 |
|
|
'glyphicon-arrow-right' => 'arrow-right',
|
48 |
|
|
'glyphicon-arrow-up' => 'arrow-up',
|
49 |
|
|
'glyphicon-asterisk' => 'asterisk',
|
50 |
|
|
'glyphicon-backward' => 'backward',
|
51 |
|
|
'glyphicon-ban-circle' => 'ban-circle',
|
52 |
|
|
'glyphicon-barcode' => 'barcode',
|
53 |
|
|
'glyphicon-bell' => 'bell',
|
54 |
|
|
'glyphicon-bold' => 'bold',
|
55 |
|
|
'glyphicon-book' => 'book',
|
56 |
|
|
'glyphicon-bookmark' => 'bookmark',
|
57 |
|
|
'glyphicon-briefcase' => 'briefcase',
|
58 |
|
|
'glyphicon-bullhorn' => 'bullhorn',
|
59 |
|
|
'glyphicon-calendar' => 'calendar',
|
60 |
|
|
'glyphicon-camera' => 'camera',
|
61 |
|
|
'glyphicon-certificate' => 'certificate',
|
62 |
|
|
'glyphicon-check' => 'check',
|
63 |
|
|
'glyphicon-chevron-down' => 'chevron-down',
|
64 |
|
|
'glyphicon-chevron-left' => 'chevron-left',
|
65 |
|
|
'glyphicon-chevron-right' => 'chevron-right',
|
66 |
|
|
'glyphicon-chevron-up' => 'chevron-up',
|
67 |
|
|
'glyphicon-circle-arrow-down' => 'circle-arrow-down',
|
68 |
|
|
'glyphicon-circle-arrow-left' => 'circle-arrow-left',
|
69 |
|
|
'glyphicon-circle-arrow-right' => 'circle-arrow-right',
|
70 |
|
|
'glyphicon-circle-arrow-up' => 'circle-arrow-up',
|
71 |
|
|
'glyphicon-cloud' => 'cloud',
|
72 |
|
|
'glyphicon-cloud-download' => 'cloud-download',
|
73 |
|
|
'glyphicon-cloud-upload' => 'cloud-upload',
|
74 |
|
|
'glyphicon-cog' => 'cog',
|
75 |
|
|
'glyphicon-collapse-down' => 'collapse-down',
|
76 |
|
|
'glyphicon-collapse-up' => 'collapse-up',
|
77 |
|
|
'glyphicon-comment' => 'comment',
|
78 |
|
|
'glyphicon-compressed' => 'compressed',
|
79 |
|
|
'glyphicon-copyright-mark' => 'copyright-mark',
|
80 |
|
|
'glyphicon-credit-card' => 'credit-card',
|
81 |
|
|
'glyphicon-cutlery' => 'cutlery',
|
82 |
|
|
'glyphicon-dashboard' => 'dashboard',
|
83 |
|
|
'glyphicon-download' => 'download',
|
84 |
|
|
'glyphicon-download-alt' => 'download-alt',
|
85 |
|
|
'glyphicon-earphone' => 'earphone',
|
86 |
|
|
'glyphicon-edit' => 'edit',
|
87 |
|
|
'glyphicon-eject' => 'eject',
|
88 |
|
|
'glyphicon-envelope' => 'envelope',
|
89 |
|
|
'glyphicon-euro' => 'euro',
|
90 |
|
|
'glyphicon-exclamation-sign' => 'exclamation-sign',
|
91 |
|
|
'glyphicon-expand' => 'expand',
|
92 |
|
|
'glyphicon-export' => 'export',
|
93 |
|
|
'glyphicon-eye-close' => 'eye-close',
|
94 |
|
|
'glyphicon-eye-open' => 'eye-open',
|
95 |
|
|
'glyphicon-facetime-video' => 'facetime-video',
|
96 |
|
|
'glyphicon-fast-backward' => 'fast-backward',
|
97 |
|
|
'glyphicon-fast-forward' => 'fast-forward',
|
98 |
|
|
'glyphicon-file' => 'file',
|
99 |
|
|
'glyphicon-film' => 'film',
|
100 |
|
|
'glyphicon-filter' => 'filter',
|
101 |
|
|
'glyphicon-fire' => 'fire',
|
102 |
|
|
'glyphicon-flag' => 'flag',
|
103 |
|
|
'glyphicon-flash' => 'flash',
|
104 |
|
|
'glyphicon-floppy-disk' => 'floppy-disk',
|
105 |
|
|
'glyphicon-floppy-open' => 'floppy-open',
|
106 |
|
|
'glyphicon-floppy-remove' => 'floppy-remove',
|
107 |
|
|
'glyphicon-floppy-save' => 'floppy-save',
|
108 |
|
|
'glyphicon-floppy-saved' => 'floppy-saved',
|
109 |
|
|
'glyphicon-folder-close' => 'folder-close',
|
110 |
|
|
'glyphicon-folder-open' => 'folder-open',
|
111 |
|
|
'glyphicon-font' => 'font',
|
112 |
|
|
'glyphicon-forward' => 'forward',
|
113 |
|
|
'glyphicon-fullscreen' => 'fullscreen',
|
114 |
|
|
'glyphicon-gbp' => 'gbp',
|
115 |
|
|
'glyphicon-gift' => 'gift',
|
116 |
|
|
'glyphicon-glass' => 'glass',
|
117 |
|
|
'glyphicon-globe' => 'globe',
|
118 |
|
|
'glyphicon-hand-down' => 'hand-down',
|
119 |
|
|
'glyphicon-hand-left' => 'hand-left',
|
120 |
|
|
'glyphicon-hand-right' => 'hand-right',
|
121 |
|
|
'glyphicon-hand-up' => 'hand-up',
|
122 |
|
|
'glyphicon-hd-video' => 'hd-video',
|
123 |
|
|
'glyphicon-hdd' => 'hdd',
|
124 |
|
|
'glyphicon-header' => 'header',
|
125 |
|
|
'glyphicon-headphones' => 'headphones',
|
126 |
|
|
'glyphicon-heart' => 'heart',
|
127 |
|
|
'glyphicon-heart-empty' => 'heart-empty',
|
128 |
|
|
'glyphicon-home' => 'home',
|
129 |
|
|
'glyphicon-import' => 'import',
|
130 |
|
|
'glyphicon-inbox' => 'inbox',
|
131 |
|
|
'glyphicon-indent-left' => 'indent-left',
|
132 |
|
|
'glyphicon-indent-right' => 'indent-right',
|
133 |
|
|
'glyphicon-info-sign' => 'info-sign',
|
134 |
|
|
'glyphicon-italic' => 'italic',
|
135 |
|
|
'glyphicon-leaf' => 'leaf',
|
136 |
|
|
'glyphicon-link' => 'link',
|
137 |
|
|
'glyphicon-list' => 'list',
|
138 |
|
|
'glyphicon-list-alt' => 'list-alt',
|
139 |
|
|
'glyphicon-lock' => 'lock',
|
140 |
|
|
'glyphicon-log-in' => 'log-in',
|
141 |
|
|
'glyphicon-log-out' => 'log-out',
|
142 |
|
|
'glyphicon-magnet' => 'magnet',
|
143 |
|
|
'glyphicon-map-marker' => 'map-marker',
|
144 |
|
|
'glyphicon-minus' => 'minus',
|
145 |
|
|
'glyphicon-minus-sign' => 'minus-sign',
|
146 |
|
|
'glyphicon-move' => 'move',
|
147 |
|
|
'glyphicon-music' => 'music',
|
148 |
|
|
'glyphicon-new-window' => 'new-window',
|
149 |
|
|
'glyphicon-off' => 'off',
|
150 |
|
|
'glyphicon-ok' => 'ok',
|
151 |
|
|
'glyphicon-ok-circle' => 'ok-circle',
|
152 |
|
|
'glyphicon-ok-sign' => 'ok-sign',
|
153 |
|
|
'glyphicon-open' => 'open',
|
154 |
|
|
'glyphicon-paperclip' => 'paperclip',
|
155 |
|
|
'glyphicon-pause' => 'pause',
|
156 |
|
|
'glyphicon-pencil' => 'pencil',
|
157 |
|
|
'glyphicon-phone' => 'phone',
|
158 |
|
|
'glyphicon-phone-alt' => 'phone-alt',
|
159 |
|
|
'glyphicon-picture' => 'picture',
|
160 |
|
|
'glyphicon-plane' => 'plane',
|
161 |
|
|
'glyphicon-play' => 'play',
|
162 |
|
|
'glyphicon-play-circle' => 'play-circle',
|
163 |
|
|
'glyphicon-plus' => 'plus',
|
164 |
|
|
'glyphicon-plus-sign' => 'plus-sign',
|
165 |
|
|
'glyphicon-print' => 'print',
|
166 |
|
|
'glyphicon-pushpin' => 'pushpin',
|
167 |
|
|
'glyphicon-qrcode' => 'qrcode',
|
168 |
|
|
'glyphicon-question-sign' => 'question-sign',
|
169 |
|
|
'glyphicon-random' => 'random',
|
170 |
|
|
'glyphicon-record' => 'record',
|
171 |
|
|
'glyphicon-refresh' => 'refresh',
|
172 |
|
|
'glyphicon-registration-mark' => 'registration-mark',
|
173 |
|
|
'glyphicon-remove' => 'remove',
|
174 |
|
|
'glyphicon-remove-circle' => 'remove-circle',
|
175 |
|
|
'glyphicon-remove-sign' => 'remove-sign',
|
176 |
|
|
'glyphicon-repeat' => 'repeat',
|
177 |
|
|
'glyphicon-resize-full' => 'resize-full',
|
178 |
|
|
'glyphicon-resize-horizontal' => 'resize-horizontal',
|
179 |
|
|
'glyphicon-resize-small' => 'resize-small',
|
180 |
|
|
'glyphicon-resize-vertical' => 'resize-vertical',
|
181 |
|
|
'glyphicon-retweet' => 'retweet',
|
182 |
|
|
'glyphicon-road' => 'road',
|
183 |
|
|
'glyphicon-save' => 'save',
|
184 |
|
|
'glyphicon-saved' => 'saved',
|
185 |
|
|
'glyphicon-screenshot' => 'screenshot',
|
186 |
|
|
'glyphicon-sd-video' => 'sd-video',
|
187 |
|
|
'glyphicon-search' => 'search',
|
188 |
|
|
'glyphicon-send' => 'send',
|
189 |
|
|
'glyphicon-share' => 'share',
|
190 |
|
|
'glyphicon-share-alt' => 'share-alt',
|
191 |
|
|
'glyphicon-shopping-cart' => 'shopping-cart',
|
192 |
|
|
'glyphicon-signal' => 'signal',
|
193 |
|
|
'glyphicon-sort' => 'sort',
|
194 |
|
|
'glyphicon-sort-by-alphabet' => 'sort-by-alphabet',
|
195 |
|
|
'glyphicon-sort-by-alphabet-alt' => 'sort-by-alphabet-alt',
|
196 |
|
|
'glyphicon-sort-by-attributes' => 'sort-by-attributes',
|
197 |
|
|
'glyphicon-sort-by-attributes-alt' => 'sort-by-attributes-alt',
|
198 |
|
|
'glyphicon-sort-by-order' => 'sort-by-order',
|
199 |
|
|
'glyphicon-sort-by-order-alt' => 'sort-by-order-alt',
|
200 |
|
|
'glyphicon-sound-5-1' => 'sound-5-1',
|
201 |
|
|
'glyphicon-sound-6-1' => 'sound-6-1',
|
202 |
|
|
'glyphicon-sound-7-1' => 'sound-7-1',
|
203 |
|
|
'glyphicon-sound-dolby' => 'sound-dolby',
|
204 |
|
|
'glyphicon-sound-stereo' => 'sound-stereo',
|
205 |
|
|
'glyphicon-star' => 'star',
|
206 |
|
|
'glyphicon-star-empty' => 'star-empty',
|
207 |
|
|
'glyphicon-stats' => 'stats',
|
208 |
|
|
'glyphicon-step-backward' => 'step-backward',
|
209 |
|
|
'glyphicon-step-forward' => 'step-forward',
|
210 |
|
|
'glyphicon-stop' => 'stop',
|
211 |
|
|
'glyphicon-subtitles' => 'subtitles',
|
212 |
|
|
'glyphicon-tag' => 'tag',
|
213 |
|
|
'glyphicon-tags' => 'tags',
|
214 |
|
|
'glyphicon-tasks' => 'tasks',
|
215 |
|
|
'glyphicon-text-height' => 'text-height',
|
216 |
|
|
'glyphicon-text-width' => 'text-width',
|
217 |
|
|
'glyphicon-th' => 'th',
|
218 |
|
|
'glyphicon-th-large' => 'th-large',
|
219 |
|
|
'glyphicon-th-list' => 'th-list',
|
220 |
|
|
'glyphicon-thumbs-down' => 'thumbs-down',
|
221 |
|
|
'glyphicon-thumbs-up' => 'thumbs-up',
|
222 |
|
|
'glyphicon-time' => 'time',
|
223 |
|
|
'glyphicon-tint' => 'tint',
|
224 |
|
|
'glyphicon-tower' => 'tower',
|
225 |
|
|
'glyphicon-transfer' => 'transfer',
|
226 |
|
|
'glyphicon-trash' => 'trash',
|
227 |
|
|
'glyphicon-tree-conifer' => 'tree-conifer',
|
228 |
|
|
'glyphicon-tree-deciduous' => 'tree-deciduous',
|
229 |
|
|
'glyphicon-unchecked' => 'unchecked',
|
230 |
|
|
'glyphicon-upload' => 'upload',
|
231 |
|
|
'glyphicon-usd' => 'usd',
|
232 |
|
|
'glyphicon-user' => 'user',
|
233 |
|
|
'glyphicon-volume-down' => 'volume-down',
|
234 |
|
|
'glyphicon-volume-off' => 'volume-off',
|
235 |
|
|
'glyphicon-volume-up' => 'volume-up',
|
236 |
|
|
'glyphicon-warning-sign' => 'warning-sign',
|
237 |
|
|
'glyphicon-wrench' => 'wrench',
|
238 |
|
|
'glyphicon-zoom-in' => 'zoom-in',
|
239 |
|
|
'glyphicon-zoom-out' => 'zoom-out',
|
240 |
|
|
),
|
241 |
|
|
);
|
242 |
|
|
}
|
243 |
|
|
return $bundles;
|
244 |
|
|
} |