everbox_scripts

Enqueue scripts and styles.

Description

everbox_scripts(); 

Usage

  1. if ( !function_exists( 'everbox_scripts' ) ) { 
  2. require_once '/inc/theme-setup.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = everbox_scripts(); 
  7.  

Defined (1)

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

/inc/theme-setup.php  
  1. function everbox_scripts() { 
  2.  
  3. wp_enqueue_style( 'everbox-style', get_stylesheet_uri() ); 
  4. wp_enqueue_script('velocity-js', EVERBOX_URL . '/js/velocity.js', array('jquery'), null, false ); 
  5. wp_enqueue_script('velocity-ui-js', EVERBOX_URL . '/js/velocity.ui.js', array('jquery'), null, false ); 
  6. wp_enqueue_script('fastclick-js', EVERBOX_URL . '/js/fastclick.js', array('jquery'), null, false ); 
  7. wp_enqueue_script('site-js', EVERBOX_URL . '/js/site.js', array('jquery'), null, true ); 
  8. if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 
  9. wp_enqueue_script( 'comment-reply' );