skt_photo_session_hook_custom_javascript

The SKT Photo Session skt photo session hook custom javascript function.

Description

skt_photo_session_hook_custom_javascript(); 

Usage

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

Defined (1)

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

/inc/custom-functions.php  
  1. function skt_photo_session_hook_custom_javascript() {?> 
  2. <script> 
  3. jQuery(document).ready(function() { 
  4. jQuery("#header-bottom-shape").click(function() { 
  5. if ( jQuery( "#site-nav" ).is( ":hidden" ) ) { 
  6. jQuery( "#site-nav" ).slideDown("slow"); 
  7. } else { 
  8. jQuery( "#site-nav" ).slideUp("slow"); 
  9. jQuery( this ).toggleClass('showDown'); 
  10. }); 
  11. jQuery( "#site-nav li:last" ).addClass("noBottomBorder"); 
  12. jQuery( "#site-nav li:parent" ).find('ul.sub-menu').parent().addClass("haschild"); 
  13. }); 
  14. </script> 
  15. <?php 
  16. $front_page = get_option('page_on_front'); 
  17. $post_page = get_option('page_for_posts'); 
  18. ?> 
  19. <?php if( (is_front_page() || is_home()) && ($front_page == 0 && $post_page == 0) ) { ?> 
  20. <style type="text/css"> 
  21. #wrapper{min-width:94% !important; width:94% !important;} 
  22. #secondary{float:left;} 
  23. </style><?php