jetpack_social_menu_style

Function to enqueue the CSS.

Description

jetpack_social_menu_style(); 

Usage

  1. if ( !function_exists( 'jetpack_social_menu_style' ) ) { 
  2. require_once '/modules/theme-tools/social-menu.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_social_menu_style(); 
  7.  

Defined (1)

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

/modules/theme-tools/social-menu.php  
  1. function jetpack_social_menu_style() { 
  2. $menu_type = jetpack_social_menu_get_type(); 
  3.  
  4. if ( ! $menu_type ) { 
  5. return; 
  6.  
  7. $deps = ( 'genericons' === $menu_type ) ? array( 'genericons' ) : null; 
  8.  
  9. if ( has_nav_menu( 'jetpack-social-menu' ) ) { 
  10. wp_enqueue_style( 'jetpack-social-menu', plugins_url( 'social-menu/social-menu.css', __FILE__ ), $deps, '1.0' );