weblizar_scripts

The Enigma weblizar scripts function.

Description

weblizar_scripts(); 

Usage

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

Defined (1)

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

/core/scripts/css_js.php  
  1. <?php function weblizar_scripts() 
  2. { //google font style 
  3. wp_enqueue_style('OpenSans', 'https://fonts.googleapis.com/css?family=Rock+Salt|Neucha|Sans+Serif|Indie+Flower|Shadows+Into+Light|Dancing+Script|Kaushan+Script|Tangerine|Pinyon+Script|Great+Vibes|Bad+Script|Calligraffitti|Homemade+Apple|Allura|Megrim|Nothing+You+Could+Do|Fredericka+the+Great|Rochester|Arizonia|Astloch|Bilbo|Cedarville+Cursive|Clicker+Script|Dawning+of+a+New+Day|Ewert|Felipa|Give+You+Glory|Italianno|Jim+Nightshade|Kristi|La+Belle+Aurore|Meddon|Montez|Mr+Bedfort|Over+the+Rainbow|Princess+Sofia|Reenie+Beanie|Ruthie|Sacramento|Seaweed+Script|Stalemate|Trade+Winds|UnifrakturMaguntia|Waiting+for+the+Sunrise|Yesteryear|Zeyada|Warnes|Abril+Fatface|Advent+Pro|Aldrich|Alex+Brush|Amatic+SC|Antic+Slab|Candal'); 
  4.  
  5. wp_enqueue_style('bootstrap', get_template_directory_uri() .'/css/bootstrap.css'); 
  6. wp_enqueue_style('default', get_template_directory_uri() . '/css/default.css'); 
  7. wp_enqueue_style('enigma-theme', get_template_directory_uri() . '/css/enigma-theme.css'); 
  8. wp_enqueue_style('media-responsive', get_template_directory_uri() . '/css/media-responsive.css'); 
  9. wp_enqueue_style('animations', get_template_directory_uri() . '/css/animations.css'); 
  10. wp_enqueue_style('theme-animtae', get_template_directory_uri() . '/css/theme-animtae.css'); 
  11. wp_enqueue_style('font-awesome', get_template_directory_uri() . '/css/font-awesome-4.7.0/css/font-awesome.css');  
  12. wp_enqueue_style('OpenSansRegular', '//fonts.googleapis.com/css?family=Open+Sans'); 
  13. wp_enqueue_style('OpenSansBold', '//fonts.googleapis.com/css?family=Open+Sans:700'); 
  14. wp_enqueue_style('OpenSansSemiBold', '//fonts.googleapis.com/css?family=Open+Sans:600'); 
  15. wp_enqueue_style('RobotoRegular', '//fonts.googleapis.com/css?family=Roboto'); 
  16. wp_enqueue_style('RobotoBold', '//fonts.googleapis.com/css?family=Roboto:700'); 
  17. wp_enqueue_style('RalewaySemiBold', '//fonts.googleapis.com/css?family=Raleway:600'); 
  18. wp_enqueue_style('Courgette', '//fonts.googleapis.com/css?family=Courgette'); 
  19.  
  20. // Js 
  21. wp_enqueue_script('menu', get_template_directory_uri() .'/js/menu.js', array('jquery')); 
  22. wp_enqueue_script('bootstrap-js', get_template_directory_uri() .'/js/bootstrap.js'); 
  23. wp_enqueue_script('enigma-theme-script', get_template_directory_uri() .'/js/enigma_theme_script.js'); 
  24. if(is_front_page()) { 
  25. /**Carofredsul Slides*/ 
  26. wp_enqueue_script('jquery.carouFredSel', get_template_directory_uri() .'/js/carouFredSel-6.2.1/jquery.carouFredSel-6.2.1.js'); 
  27. wp_enqueue_script('carouFredSel-element', get_template_directory_uri() .'/js/carouFredSel-6.2.1/caroufredsel-element.js'); 
  28. /**PhotoBox JS*/ 
  29. wp_enqueue_script('photobox-js', get_template_directory_uri() .'/js/jquery.photobox.js'); 
  30. wp_enqueue_style('photobox', get_template_directory_uri() . '/css/photobox.css'); 
  31. //Footer JS// 
  32. wp_enqueue_script('enigma-footer-script', get_template_directory_uri() .'/js/enigma-footer-script.js', '', '', true); 
  33. wp_enqueue_script('waypoints', get_template_directory_uri() .'/js/waypoints.js', '', '', true);  
  34. wp_enqueue_script('scroll', get_template_directory_uri() .'/js/scroll.js', '', '', true); 
  35. if ( is_singular() ) wp_enqueue_script( "comment-reply" );