optionsframework_custom_scripts

The Evolved optionsframework custom scripts function.

Description

optionsframework_custom_scripts(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function optionsframework_custom_scripts() { ?> 
  2.  
  3. <script type="text/javascript"> 
  4. jQuery(document).ready(function() { 
  5.  
  6. jQuery('#example_showhidden').click(function() { 
  7. jQuery('#section-example_text_hidden').fadeToggle(400); 
  8. }); 
  9.  
  10. if (jQuery('#example_showhidden:checked').val() !== undefined) { 
  11. jQuery('#section-example_text_hidden').show(); 
  12.  
  13. }); 
  14. </script> 
  15.  
  16. <?php