Heim  >  Artikel  >  Datenbank  >  drupal bootstrap 升级为 3.2

drupal bootstrap 升级为 3.2

WBOY
WBOYOriginal
2016-06-07 15:37:331158Durchsuche

在drupal的bootstrap后台配置中有可以选择cdn的选项,不过只可以选择到3.0.2,这是我们不能容忍的。 打开theme包中的settings.inc文件,找到如下代码 $form[advanced][bootstrap_cdn][bootstrap_cdn] = array( #type = select, #title = t(BootstrapCDN vers

在drupal的bootstrap后台配置中有可以选择cdn的选项,不过只可以选择到3.0.2,这是我们不能容忍的。

打开theme包中的settings.inc文件,找到如下代码

  $form['advanced']['bootstrap_cdn']['bootstrap_cdn'] = array(
    '#type' => 'select',
    '#title' => t('BootstrapCDN version'),
    '#options' => drupal_map_assoc(array(
      '3.0.0',
      '3.0.1',
      '3.0.2',
    )),
    '#default_value' => theme_get_setting('bootstrap_cdn'),
    '#empty_option' => t('Disabled'),
    '#empty_value' => NULL,
  );

这个就是管理cdn选择界面的代码,在后面加入 3.2.0,保存关闭。

回到后台配置选择3.2这个选项即可!

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn