/** * {@inheritdoc} */ public function getAssets($types = NULL) { $this->assets = []; foreach ($types as $type) { if ($setting = $this->theme->getSetting('cdn_custom_' . $type)) { $this->assets[$type][] = $setting; } if ($setting = $this->theme->getSetting('cdn_custom_' . $type . '_min')) { $this->assets['min'][$type][] = $setting; } } return parent::getAssets($types); }
/** * {@inheritdoc} */ public function getAssets($types = NULL) { $this->assets = []; // If no type is set, return all CSS and JS. if (!isset($types)) { $types = ['css', 'js']; } $types = is_array($types) ? $types : [$types]; foreach ($types as $type) { if ($setting = $this->theme->getSetting('cdn_custom_' . $type)) { $this->assets[$type][] = $setting; } if ($setting = $this->theme->getSetting('cdn_custom_' . $type . '_min')) { $this->assets['min'][$type][] = $setting; } } return parent::getAssets($types); }
/** * {@inheritdoc} */ public function getAssets($types = NULL) { $this->assets = []; $error = !empty($provider['error']); $version = $error ? Bootstrap::FRAMEWORK_VERSION : $this->theme->getSetting('cdn_jsdelivr_version'); $theme = $error ? 'bootstrap' : $this->theme->getSetting('cdn_jsdelivr_theme'); if (isset($this->pluginDefinition['themes'][$version][$theme])) { $this->assets = $this->pluginDefinition['themes'][$version][$theme]; } return parent::getAssets($types); }