cwp_megar_scripts

Enqueue scripts and styles.

Description

cwp_megar_scripts(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function cwp_megar_scripts() { 
  2.  
  3. wp_enqueue_style( 'cwp-megar-bootstrap-style', get_template_directory_uri() . '/css/bootstrap.css', array(), '20130801', 'all' ); 
  4.  
  5. wp_enqueue_style( 'cwp-megar-custom-style', get_template_directory_uri() . '/css/bootstrap-responsive.css', array(), '20130801', 'all' ); 
  6.  
  7. wp_enqueue_style( 'cwp-megar-style', get_stylesheet_uri() ); 
  8.  
  9. wp_enqueue_script('jquery'); 
  10.  
  11. wp_enqueue_script( 'cwp-megar-jquery-min', get_template_directory_uri() . '/js/jquery.min.js', array(), '20130801', true ); 
  12.  
  13. wp_enqueue_script( 'cwp-megar-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '20130801', true ); 
  14.  
  15. wp_enqueue_script( 'cwp-megar-tinyscrollbar', get_template_directory_uri() . '/js/jquery.tinyscrollbar.min.js', array(), '', true ); 
  16.  
  17. wp_enqueue_script( 'cwp-megar-tinynav', get_template_directory_uri() . '/js/tinynav.js', array(), '20130801', true ); 
  18.  
  19. wp_enqueue_script( 'cwp-megar-functions', get_template_directory_uri() . '/js/functions.js', array('jquery'), '20130801', true ); 
  20.  
  21. wp_enqueue_script( 'cwp-megar-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); 
  22.  
  23. wp_enqueue_script( 'cwp-megar-ajaxLoop', get_template_directory_uri() . '/js/ajaxLoop.js', array('jquery'), '1.0.0', true ); 
  24.  
  25.  
  26. wp_enqueue_script( 'cwp-megar-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );  
  27. wp_register_style( 'cwp_open-sans', 'http://fonts.googleapis.com/css?family=Open+Sans:400, 600, 700, 300|Roboto+Slab');  
  28.  
  29. wp_enqueue_style( 'cwp_open-sans' ); 
  30.  
  31. if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 
  32. wp_enqueue_script( 'comment-reply' ); 
  33.  
  34. if ( is_singular() && wp_attachment_is_image() ) { 
  35. wp_enqueue_script( 'cwp-megar-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );