Enqueues stylesheets.

Uses default.css.pipeline, plugin.css.pipeline and theme.css.pipeline filter hooks.

Example Usage:

 cms_enqueue_css('default', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css')
 cms_enqueue_css('plugin', ['fontawesome','select2-css'], false, Plugin::basename( dirname(__FILE__) ))
 cms_enqueue_css('theme', 'theme-slug/assets/css/style.css')

  • Full name: cms_enqueue_css
  • Defined in: cms/core/Shared/Helpers/core.php

Parameters

Parameter Type Description
$config string Set whether to use default config or plugin config.
$asset string|array Relative path or URL to stylesheet(s) to enqueue.
$minify bool|string Enable CSS assets pipeline (concatenation and minification).
Use a string that evaluates to true to provide the salt of the pipeline hash.
Use 'auto' to automatically calculate the salt from your assets last modification time.
$slug string|null Slug to set asset location

Return Value

void