eewee_get_carousel_settings

The Eewee responsive design eewee get carousel settings function.

Description

eewee_get_carousel_settings(); 

Usage

  1. if ( !function_exists( 'eewee_get_carousel_settings' ) ) { 
  2. require_once '/includes/admin/options/options-carousel.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = eewee_get_carousel_settings(); 
  7.  

Defined (1)

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

/includes/admin/options/options-carousel.php  
  1. function eewee_get_carousel_settings() { 
  2.  
  3. $eewee_settings = array(); 
  4.  
  5. ### GENERAL SETTINGS 
  6. ####################################################################################### 
  7. $options = get_option('eewee_options'); 
  8. if( is_numeric($options['eewee_carousel_qty']) ) { 
  9. $qty = $options['eewee_carousel_qty']; 
  10. }else{ 
  11. $qty = 10; 
  12.  
  13. $eewee_settings[] = array("name" => __('Enabled', 'eewee'),  
  14. "desc" => "Active/Desactive carousel",  
  15. "id" => "eewee_carousel_enabled",  
  16. "std" => '',  
  17. "type" => "checkbox",  
  18. "section" => "eewee_carousel_layout" 
  19. ); 
  20.  
  21.  
  22. $eewee_settings[] = array("name" => __("Quantity images", "eewee"),  
  23. "desc" => "Leave blank to use the default value (Default:10)",  
  24. "id" => "eewee_carousel_qty",  
  25. "std" => '10',  
  26. "type" => "text",  
  27. "section" => "eewee_carousel_layout" 
  28. ); 
  29.  
  30.  
  31.  
  32. for( $i=1 ; $i<=$qty ; $i++ ) { 
  33. $eewee_settings[] = array("name" => "Image ".$i,  
  34. "desc" => __('Paste the full Image URL.', 'eewee'),  
  35. "id" => "eewee_carousel_img_".$i,  
  36. "std" => "",  
  37. "type" => "image",  
  38. "section" => "eewee_carousel_layout");  
  39.  
  40. $eewee_settings[] = array("name" => __("Title ".$i, "eewee"),  
  41. "desc" => "",  
  42. "id" => "eewee_carousel_title_".$i,  
  43. "std" => '',  
  44. "type" => "text",  
  45. "section" => "eewee_carousel_layout" 
  46. ); 
  47.  
  48. $eewee_settings[] = array("name" => __("Text ".$i, "eewee"),  
  49. "desc" => __('Description of your image.', 'eewee'),  
  50. "id" => "eewee_carousel_desc_".$i,  
  51. "std" => "",  
  52. "type" => "textarea",  
  53. "section" => "eewee_carousel_layout"); 
  54. return $eewee_settings;