web_dor_custom_head

The Business Responsive web dor custom head function.

Description

web_dor_custom_head(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function web_dor_custom_head() { 
  2.  
  3. global $dor_general_settings_page; 
  4. foreach ( $dor_general_settings_page->options_generalsettings as $value ) { 
  5. if(isset($value['id'])) { 
  6.  
  7. if ( get_theme_mod( $value['id'] ) === FALSE ) { 
  8. $$value['id'] = $value['std'];  
  9. }  
  10. else { 
  11. $$value['id'] = get_theme_mod( $value['id'] );  
  12.  
  13. }?> 
  14.  
  15. <script> 
  16. var skzbi_hasce="<?php echo get_template_directory_uri(); ?>"; 
  17. $ = jQuery; 
  18. </script> 
  19. <?php 
  20.  
  21. echo "<style>".stripslashes(get_theme_mod("_custom_css"))."</style>"; 
  22. ?> 
  23. <script type="text/javascript"> 
  24. $(document).ready(function() { 
  25. $('#slider').nivoSlider({ 
  26. effect: "<?php echo trim(get_theme_mod('ct_effect', 'random')); ?>", // Specify sets like: 'fold, fade, sliceDown' 
  27. slices: 15, // For slice animations 
  28. boxCols: 8, // For box animations 
  29. boxRows: 4, // For box animations 
  30. animSpeed: <?php echo get_theme_mod('ct_anim_speed', '500'); ?>, // Slide transition speed 
  31. pauseTime: <?php echo get_theme_mod('ct_pause_time', '4000'); ?>, // How long each slide will show 
  32. startSlide: 0, // Set starting Slide (0 index) 
  33. directionNav: true, // Next & Prev navigation 
  34. directionNavHide: true, // Only show on hover 
  35. controlNav: true, // 1, 2, 3... navigation 
  36. controlNavThumbs: false, // Use thumbnails for Control Nav 
  37. pauseOnHover: <?php if(get_theme_mod('ct_pause_on_hover')) {echo "true";}else{echo "false";} ?>, // Stop animation while hovering 
  38. manualAdvance: false, // Force manual transitions 
  39. prevText: 'Prev', // Prev directionNav text 
  40. nextText: 'Next', // Next directionNav text 
  41. randomStart: false, // Start on a random slide 
  42. beforeChange: function() {}, // Triggers before a slide transition 
  43. afterChange: function() {}, // Triggers after a slide transition 
  44. slideshowEnd: function() {}, // Triggers after all slides have been shown 
  45. lastSlide: function() {}, // Triggers when last slide is shown 
  46. afterLoad: function() {} // Triggers when slider has loaded 
  47. }); 
  48. $('#slider').nivoSlider(); 
  49. }); 
  50. </script> 
  51.  
  52. <?php 
  53.  
  54.