evolve_parallax

Parallax Slider.

Description

evolve_parallax(); 

Usage

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

Defined (1)

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

/library/functions/basic-functions.php  
  1. function evolve_parallax() { 
  2. global $evl_options; 
  3. if ($evl_options['evl_show_slide1'] == "1" || $evl_options['evl_show_slide2'] == "1" || $evl_options['evl_show_slide3'] == "1" || $evl_options['evl_show_slide4'] == "1" || $evl_options['evl_show_slide5'] == "1") { 
  4. echo "<div id='da-slider' class='da-slider'>"; 
  5.  
  6. for ($i = 1; $i <= 5; $i++) { 
  7. if ($evl_options["evl_show_slide{$i}"] == "1") { 
  8.  
  9. echo "<div class='da-slide'>"; 
  10.  
  11. echo "<h2>" . esc_attr($evl_options["evl_slide{$i}_title"]) . "</h2>"; 
  12.  
  13. echo "<p>" . esc_attr($evl_options["evl_slide{$i}_desc"]) . "</p>"; 
  14.  
  15. echo do_shortcode($evl_options["evl_slide{$i}_button"]); 
  16.  
  17. echo "<div class='da-img'><img class='img-responsive' src='" . $evl_options["evl_slide{$i}_img"]['url'] . "' alt='" . $evl_options["evl_slide{$i}_title"] . "' /></div>"; 
  18.  
  19. echo "</div>"; 
  20.  
  21. echo "<nav class='da-arrows'><span class='da-arrows-prev'></span><span class='da-arrows-next'></span></nav></div>";