express-8.x-1.x-dev/themes/contrib/bootstrap/icons.inc

themes/contrib/bootstrap/icons.inc
<?php
/**
 * @file
 * Icon API support to provide Bootstrap Framework glyphicons.
 */

use Drupal\bootstrap\Bootstrap;

/**
 * Implements hook_icon_providers().
 */
function bootstrap_icon_providers() {
  $providers['bootstrap'] = [
    'title' => t('Bootstrap'),
    'url' => 'http://getbootstrap.com/components/#glyphicons',
  ];
  return $providers;
}

/**
 * Implements hook_icon_bundles().
 */
function bootstrap_icon_bundles() {
  $bundles = [];
  if (Bootstrap::getTheme()->hasGlyphicons()) {
    $bundles['bootstrap'] = [
      'render' => 'sprite',
      'provider' => 'bootstrap',
      'title' => t('Bootstrap'),
      'version' => t('Icons by Glyphicons'),
      'variations' => [
        'icon-white' => t('White'),
      ],
      'settings' => [
        'tag' => 'span',
      ],
      'icons' => Bootstrap::glyphicons(),
    ];
  }
  return $bundles;
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc