cf7_style_frontend_scripts

The Contact Form 7 Style cf7 style frontend scripts function.

Description

cf7_style_frontend_scripts(); 

Usage

  1. if ( !function_exists( 'cf7_style_frontend_scripts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-style/cf7-style.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = cf7_style_frontend_scripts(); 
  7.  

Defined (1)

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

/cf7-style.php  
  1. function cf7_style_frontend_scripts() { 
  2. if (!wp_script_is( 'jquery', 'enqueued' )) { 
  3. wp_enqueue_script('jquery'); 
  4. if(is_user_logged_in()) { 
  5. wp_enqueue_style( "cf7-style-bar-style", WPCF7S_LOCATION . "css/admin-bar.css", array(), WPCF7S_PLUGIN_VER, "all"); 
  6. wp_enqueue_style( "cf7-style-frontend-style", WPCF7S_LOCATION . "css/frontend.css", array(), WPCF7S_PLUGIN_VER, "all"); 
  7. wp_enqueue_style( "cf7-style-responsive-style", WPCF7S_LOCATION . "css/responsive.css", array(), WPCF7S_PLUGIN_VER, "all"); 
  8. wp_enqueue_script( "cf7-style-frontend-script", WPCF7S_LOCATION . "js/frontend-min.js", array( 'jquery' ), WPCF7S_PLUGIN_VER, true);