evolve_footer_hooks

The evolve evolve footer hooks function.

Description

evolve_footer_hooks(); 

Usage

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

Defined (1)

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

/library/functions/basic-functions.php  
  1. function evolve_footer_hooks() { 
  2.  
  3. if (is_page_template('contact.php')): 
  4. $status_gmap = evolve_get_option('evl_status_gmap', '1'); 
  5.  
  6. if ($status_gmap): 
  7.  
  8. $evolve_gmap_address = evolve_get_option('evl_gmap_address', 'Via dei Fori Imperiali'); 
  9. $evolve_gmap_type = evolve_get_option('evl_gmap_type', 'hybrid'); 
  10. $evolve_map_zoom_level = evolve_get_option('evl_map_zoom_level', '18'); 
  11. $evolve_map_scrollwheel = evolve_get_option('evl_map_scrollwheel', '0'); 
  12. $evolve_map_scale = evolve_get_option('evl_map_scale', '0'); 
  13. $evolve_map_zoomcontrol = evolve_get_option('evl_map_zoomcontrol', '0'); 
  14. $evolve_map_pin = evolve_get_option('evl_map_pin', '0'); 
  15. $evolve_map_pop = evolve_get_option('evl_map_popup', '0'); 
  16. $evolve_gmap_address = addslashes($evolve_gmap_address); 
  17. $addresses = explode('|', $evolve_gmap_address); 
  18. $markers = ''; 
  19. if ($evolve_map_pop == '0') { 
  20. $map_popup = "false"; 
  21. } else { 
  22. $map_popup = "true"; 
  23. foreach ($addresses as $address_string) { 
  24. $markers .= "{ 
  25. address: '{$address_string}',  
  26. html: { 
  27. content: '{$address_string}',  
  28. popup: {$map_popup} 
  29. }, "; 
  30. ?> 
  31.  
  32. <script type='text/javascript'> 
  33. jQuery(document).ready( 
  34. function($) { 
  35. jQuery('#gmap').goMap( 
  36. address: '<?php echo $addresses[0]; ?>',  
  37. maptype: '<?php echo $evolve_gmap_type; ?>',  
  38. zoom: <?php echo $evolve_map_zoom_level; ?>,  
  39. scrollwheel: <?php if ($evolve_map_scrollwheel): ?>false<?php else: ?>true<?php endif; ?>,  
  40. scaleControl: <?php if ($evolve_map_scale): ?>false<?php else: ?>true<?php endif; ?>,  
  41. navigationControl: <?php if ($evolve_map_zoomcontrol): ?>false<?php else: ?>true<?php endif; ?>,  
  42. <?php if (!$evolve_map_pin): ?>markers: [<?php echo $markers; ?>], <?php endif; ?> 
  43. ); 
  44. );</script> 
  45. <?php 
  46. endif; 
  47. endif; 
  48. ?> 
  49.  
  50. <script type="text/javascript"> 
  51. var $jx = jQuery.noConflict(); 
  52. $jx("div.post").mouseover( 
  53. function() { 
  54. $jx(this).find("span.edit-post").css('visibility', 'visible'); 
  55. ).mouseout( 
  56. function() { 
  57. $jx(this).find("span.edit-post").css('visibility', 'hidden'); 
  58. ); 
  59. $jx("div.type-page").mouseover( 
  60. function() { 
  61. $jx(this).find("span.edit-page").css('visibility', 'visible'); 
  62. ).mouseout( 
  63. function() { 
  64. $jx(this).find("span.edit-page").css('visibility', 'hidden'); 
  65. ); 
  66. $jx("div.type-attachment").mouseover( 
  67. function() { 
  68. $jx(this).find("span.edit-post").css('visibility', 'visible'); 
  69. ).mouseout( 
  70. function() { 
  71. $jx(this).find("span.edit-post").css('visibility', 'hidden'); 
  72. ); 
  73. $jx("li.comment").mouseover( 
  74. function() { 
  75. $jx(this).find("span.edit-comment").css('visibility', 'visible'); 
  76. ).mouseout( 
  77. function() { 
  78. $jx(this).find("span.edit-comment").css('visibility', 'hidden'); 
  79. );</script> 
  80.  
  81. <?php 
  82. $evolve_sticky_header = evolve_get_option('evl_sticky_header', '1'); 
  83. $page_ID = get_queried_object_id(); 
  84. $evolve_slider_position = evolve_get_option('evl_slider_position', 'below'); 
  85. if ($evolve_sticky_header == "1" && get_post_meta($page_ID, 'evolve_slider_position', true) == 'above' || (get_post_meta($page_ID, 'evolve_slider_position', true) == 'default' && $evolve_slider_position == 'above') || (is_home() && $evolve_slider_position == 'above')) { 
  86. ?> 
  87.  
  88. <script type="text/javascript"> 
  89. jQuery(document).ready( 
  90. function ($) { 
  91. if (jQuery('.sticky-header').length >= 1) { 
  92. jQuery(window).scroll(function () { 
  93. var header = jQuery(document).scrollTop(); 
  94. var headerHeight = jQuery('.sliderblock').height() + jQuery('.new-top-menu').height() + jQuery('.menu-header').height() + jQuery('.header-pattern').height(); 
  95. if (header > headerHeight) { 
  96. jQuery('.sticky-header').addClass('sticky'); 
  97. jQuery('.sticky-header').show(); 
  98. } else { 
  99. jQuery('.sticky-header').removeClass('sticky'); 
  100. jQuery('.sticky-header').hide(); 
  101. }); 
  102. );</script> 
  103.  
  104. <?php 
  105. } elseif ($evolve_sticky_header == "1") { 
  106. ?> 
  107.  
  108. <script type="text/javascript"> 
  109. jQuery(document).ready( 
  110. function($) { 
  111. if (jQuery('.sticky-header').length >= 1) { 
  112. jQuery(window).scroll(function() { 
  113. var header = jQuery(document).scrollTop(); 
  114. var headerHeight = jQuery('.new-top-menu').height() + jQuery('.menu-header').height() + jQuery('.header-pattern').height(); 
  115. if (header > headerHeight) { 
  116. jQuery('.sticky-header').addClass('sticky'); 
  117. jQuery('.sticky-header').show(); 
  118. } else { 
  119. jQuery('.sticky-header').removeClass('sticky'); 
  120. jQuery('.sticky-header').hide(); 
  121. }); 
  122. );</script> 
  123.  
  124. <?php 
  125.  
  126. $evolve_animatecss = evolve_get_option('evl_animatecss', '1'); 
  127.  
  128. if ($evolve_animatecss == "1") { 
  129. ?> 
  130.  
  131. <script type="text/javascript"> 
  132. /*----------------------------*/ 
  133. /* Animated Buttons 
  134. /*----------------------------*/ 
  135.  
  136. var $animated = jQuery.noConflict(); 
  137. $animated('.post-more').hover( 
  138. function () { 
  139. $animated(this).addClass('animated pulse') 
  140. },  
  141. function () { 
  142. $animated(this).removeClass('animated pulse') 
  143. $animated('.read-more').hover( 
  144. function () { 
  145. $animated(this).addClass('animated pulse') 
  146. },  
  147. function () { 
  148. $animated(this).removeClass('animated pulse') 
  149. $animated('#submit').hover( 
  150. function () { 
  151. $animated(this).addClass('animated pulse') 
  152. },  
  153. function () { 
  154. $animated(this).removeClass('animated pulse') 
  155. $animated('input[type="submit"]').hover( 
  156. function () { 
  157. $animated(this).addClass('animated pulse') 
  158. },  
  159. function () { 
  160. $animated(this).removeClass('animated pulse') 
  161.  
  162. </script> 
  163.  
  164. <?php 
  165.  
  166. $evolve_carousel_slider = evolve_get_option('evl_carousel_slider', '1'); 
  167.  
  168. if ($evolve_carousel_slider == "1"): 
  169.  
  170. $evolve_carousel_speed = evolve_get_option('evl_carousel_speed', '3500'); 
  171. if (empty($evolve_carousel_speed)): $evolve_carousel_speed = '3500'; 
  172. endif; 
  173. ?> 
  174.  
  175. <script type="text/javascript"> 
  176. /*----------------*/ 
  177. /* AnythingSlider 
  178. /*----------------*/ 
  179. var $s = jQuery.noConflict(); 
  180. $s( 
  181. function() { 
  182. $s('#slides') 
  183. .anythingSlider({autoPlay: true, delay: <?php echo $evolve_carousel_speed; ?>, }) 
  184. </script> 
  185.  
  186. <?php 
  187. endif; 
  188.  
  189. $evolve_bootstrap_speed = evolve_get_option('evl_bootstrap_speed', '7000'); 
  190. if (empty($evolve_bootstrap_speed)): $evolve_bootstrap_speed = '7000'; 
  191. endif; 
  192.  
  193. $evolve_parallax_slider = evolve_get_option('evl_parallax_slider_support', '1'); 
  194.  
  195. if ($evolve_parallax_slider == "1"): 
  196.  
  197. $evolve_parallax_speed = evolve_get_option('evl_parallax_speed', '4000'); 
  198. if (empty($evolve_parallax_speed)): $evolve_parallax_speed = '4000'; 
  199. endif; 
  200. ?> 
  201. <script type="text/javascript"> 
  202. /*----------------*/ 
  203. /* Parallax Slider 
  204. /*----------------*/ 
  205.  
  206. var $par = jQuery.noConflict(); 
  207. $par('#da-slider').cslider( 
  208. autoplay: true,  
  209. bgincrement: 450,  
  210. interval: <?php echo $evolve_parallax_speed; ?> 
  211. );</script> 
  212.  
  213. <?php endif; ?> 
  214.  
  215. <script type="text/javascript"> 
  216. /*----------------------*/ 
  217. /* Bootstrap Slider 
  218. /*---------------------*/ 
  219.  
  220. var $carousel = jQuery.noConflict(); 
  221. $carousel('#myCarousel').carousel( 
  222. interval: 7000 
  223.  
  224. $carousel('#carousel-nav a').click( 
  225. function(q) { 
  226. q.preventDefault(); 
  227. targetSlide = $carousel(this).attr('data-to') - 1; 
  228. $carousel('#myCarousel').carousel(targetSlide); 
  229. $carousel(this).addClass('active').siblings().removeClass('active'); 
  230. ); 
  231. $carousel('#bootstrap-slider').carousel( 
  232. interval: <?php echo $evolve_bootstrap_speed; ?> 
  233.  
  234. $carousel('#carousel-nav a').click( 
  235. function (q) { 
  236. q.preventDefault(); 
  237. targetSlide = $carousel(this).attr('data-to') - 1; 
  238. $carousel('#bootstrap-slider').carousel(targetSlide); 
  239. $carousel(this).addClass('active').siblings().removeClass('active'); 
  240. ); 
  241. </script> 
  242.  
  243. <?php