evolve_bootstrap

Bootstrap Slider.

Description

evolve_bootstrap(); 

Usage

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

Defined (1)

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

/library/functions/basic-functions.php  
  1. function evolve_bootstrap() { 
  2. global $evl_options; 
  3. $wrap = false; 
  4. for ($i = 1; $i <= 5; $i ++) { 
  5.  
  6. if ($evl_options["evl_bootstrap_slide{$i}"] == 1) { 
  7. $active = ""; 
  8. if (!$wrap) { 
  9. $wrap = true; 
  10. echo "<div id='bootstrap-slider' class='carousel slide' data-ride='carousel'>"; 
  11. echo "<div class='carousel-inner'>"; 
  12. $active = " active"; 
  13.  
  14. echo "<div class='item" . $active . "'>"; 
  15. echo "<img class='img-responsive' src='" . $evl_options["evl_bootstrap_slide{$i}_img"]['url'] . "' alt='" . $evl_options["evl_bootstrap_slide{$i}_title"] . "' />"; 
  16. if (( strlen($evl_options["evl_bootstrap_slide{$i}_title"]) > 0 ) || ( strlen($evl_options["evl_bootstrap_slide{$i}_desc"]) > 0 )) { 
  17. ?>  
  18. <div class="carousel-caption <?php echo evolve_bootstrap_layout_class(); ?>" > 
  19. <?php 
  20. if (strlen($evl_options["evl_bootstrap_slide{$i}_title"]) > 0) { 
  21. echo "<h2>" . esc_attr($evl_options["evl_bootstrap_slide{$i}_title"]) . "</h2>"; 
  22.  
  23. if (strlen($evl_options["evl_bootstrap_slide{$i}_desc"]) > 0) { 
  24. echo "<p>" . esc_attr($evl_options["evl_bootstrap_slide{$i}_desc"]) . "</p>"; 
  25.  
  26. echo do_shortcode($evl_options["evl_bootstrap_slide{$i}_button"]); 
  27.  
  28. echo "</div>"; 
  29. echo "</div>"; 
  30.  
  31. if ($wrap) { 
  32. echo "</div> 
  33. <a class='left carousel-control' href='#bootstrap-slider' data-slide='prev'></a><a class='right carousel-control' href='#bootstrap-slider' data-slide='next'></a></div>";