cf7_style_print_tooltip

The Contact Form 7 Style cf7 style print tooltip function.

Description

cf7_style_print_tooltip(); 

Usage

  1. if ( !function_exists( 'cf7_style_print_tooltip' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-style/misc/tracking.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = cf7_style_print_tooltip(); 
  7.  

Defined (1)

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

/misc/tracking.php  
  1. function cf7_style_print_tooltip() { 
  2. $pointer_content = '<h3>'.__( "Thank You for choosing<br/>Contact Form 7 Style!", "contact-form-7-style" ).'</h3>'; 
  3. $pointer_content .= '<p>'.__( "Want to help make CF7 Style even more better? Allow Us to collect non-sensitive diagnostic data.", "contact-form-7-style" ).'</p>'; 
  4. $pointer_content .= '<p>'.__( "We will only collect your website URL, WordPress version, CF7Style plugin version and active status.", "contact-form-7-style" ).'</p>'; 
  5. $pointer_content .= '<p><label>'.__( "Allow collecting data:", "contact-form-7-style" ).'<input id="cf7_style_allow_tracking" type="checkbox" checked="checked" value="1" name="cf7_style_allow_tracking" /></label> </p>'; ?> 
  6. <script type="text/javascript"> 
  7. //<![CDATA[ 
  8. jQuery(document).ready( function($) { 
  9. $('.menu-icon-cf7_style').eq(0).pointer({ 
  10. pointerClass: 'cf7style-pointer',  
  11. content: '<?php echo $pointer_content; ?>',  
  12. position: 'left',  
  13. close: function() { 
  14. $('.cf7style-pointer').hide(); 
  15. return false; 
  16. }).pointer('open'); 
  17. }); 
  18. //]]> 
  19. </script> 
  20. <style type="text/css"> 
  21. .cf7style-pointer .wp-pointer-arrow { 
  22. top: 20px;  
  23. left: -1px; 
  24. </style> 
  25. <?php