redux_enqueue_style

Enqueues style for SASS comnpile or WP enqueue, depending on 'use_sass' arg.

Description

redux_enqueue_style( (string) $parent, (string) $handle, (string) $css_src, (array) $scss_dir, (array) $deps = array(), (string) $ver = '', (constant) $media = false ); 

Parameters (7)

0. $parent (string)
Name of the stylesheet.
1. $handle (string)
Path to the stylesheet from the root directory of WordPress. Example: /css/mystyle.css..
2. $css_src (string)
Directory path to SCSS file.
3. $scss_dir (array)
An array of registered style handles this stylesheet depends on. Default empty array.
4. $deps — Optional. (array) => array()
String specifying the stylesheet version number, if it has one. This parameter is used to ensure that the correct version is sent to the client regardless of caching, and so should be included if a version number is available and makes sense for the stylesheet.
5. $ver — Optional. (string) => ''
The media for which this stylesheet has been defined. Default all.. Accepts all., aural,, braille, handheld, projection, print, screen, tty, or tv.
6. $media — Optional. (constant) => false
The media.

Usage

  1. if ( !function_exists( 'redux_enqueue_style' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-advanced-file-uploader/inc/ReduxFramework/ReduxCore/inc/class.redux_sass.php'; 
  3.  
  4. // Name of the stylesheet. 
  5. $parent = ''; 
  6.  
  7. // Path to the stylesheet from the root directory of WordPress. Example: '/css/mystyle.css'. 
  8. $handle = ''; 
  9.  
  10. // Directory path to SCSS file. 
  11. $css_src = ''; 
  12.  
  13. // An array of registered style handles this stylesheet depends on. Default empty array. 
  14. $scss_dir = array(); 
  15.  
  16. // String specifying the stylesheet version number, if it has one. This parameter is used to ensure that the correct version is sent to the client regardless of caching, and so should be included if a version number is available and makes sense for the stylesheet. 
  17. $deps = array(); 
  18.  
  19. // Optional. The media for which this stylesheet has been defined. Default 'all'. Accepts 'all', 'aural', 'braille', 'handheld', 'projection', 'print', 'screen', 'tty', or 'tv'. 
  20. $ver = ''; 
  21.  
  22. // The media. 
  23. $media = false; 
  24.  
  25. // NOTICE! Understand what this does before running. 
  26. $result = redux_enqueue_style($parent, $handle, $css_src, $scss_dir, $deps, $ver, $media); 
  27.  

Defined (1)

The function is defined in the following location(s).

/inc/ReduxFramework/ReduxCore/inc/class.redux_sass.php