Home > Database > Mysql Tutorial > drupal bootstrap 升级为 3.2

drupal bootstrap 升级为 3.2

WBOY
Release: 2016-06-07 15:37:33
Original
1217 people have browsed it

在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,
  );
Copy after login

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

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template