CFDBView

"Contact Form to Database" Copyright (C) 2011-2012 Michael Simpson (email : michael.d.simpson@gmail.com).

Defined (1)

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

/CFDBView.php  
  1. abstract class CFDBView { 
  2.  
  3. /** 
  4. * @abstract 
  5. * @param $plugin CF7DBPlugin 
  6. * @return void 
  7. */ 
  8. abstract function display(&$plugin); 
  9.  
  10. protected function pageHeader(&$plugin) { 
  11. $this->sponsorLink($plugin); 
  12. $this->headerLinks($plugin); 
  13.  
  14. function getRequestParam($name) { 
  15. $value = isset($_REQUEST[$name]) ? $_REQUEST[$name] : ''; 
  16. // Prevent javascript injection 
  17. $value = str_ireplace('<script', '', $value); 
  18. return $value; 
  19.  
  20. /** 
  21. * @param $plugin CF7DBPlugin 
  22. * @return void 
  23. */ 
  24. protected function sponsorLink(&$plugin) { 
  25.  
  26. /** 
  27. * @param $plugin CF7DBPlugin 
  28. * @return void 
  29. */ 
  30. protected function headerLinks(&$plugin) { 
  31. $notDonated = 'true' != $plugin->getOption('Donated', 'false'); 
  32. ?> 
  33. <table style="width:100%;"> 
  34. <tbody> 
  35. <tr> 
  36. <td width="20%" style="font-size:x-small;"> 
  37. <div style="float:left"><a href="http://cfdbplugin.com/" target="_doc"> 
  38. <img src="<?php echo $plugin->getPluginFileUrl('img/icon-50x50.png') ?>" alt="CFDB"/> 
  39. </a> 
  40. </div> 
  41. </td> 
  42. <td width="20%" style="font-size:x-small;"> 
  43. <a target="_cf7todb" 
  44. href="http://wordpress.org/extend/plugins/contact-form-7-to-database-extension"> 
  45. <?php echo htmlspecialchars(__('Rate this Plugin', 'contact-form-7-to-database-extension')) ?> 
  46. </a> 
  47. </td> 
  48. <td width="20%" style="font-size:x-small;"> 
  49. <a target="_cf7todb" 
  50. href="http://cfdbplugin.com/"> 
  51. <?php echo htmlspecialchars(__('Documentation', 'contact-form-7-to-database-extension')) ?> 
  52. </a> 
  53. </td> 
  54. <td width="20%" style="font-size:x-small;"> 
  55. <a target="_cf7todb" 
  56. href="http://wordpress.org/support/plugin/contact-form-7-to-database-extension"> 
  57. <?php echo htmlspecialchars(__('Support', 'contact-form-7-to-database-extension')) ?> 
  58. </a> 
  59. </td> 
  60. <td width="20%" style="font-size:x-small;"> 
  61. <?php 
  62. if ($notDonated) { ?> 
  63. <a target="_donate" 
  64. href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=NEVDJ792HKGFN&lc=US&item_name=Wordpress%20Plugin&item_number=cf7%2dto%2ddb%2dextension¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted"> 
  65. <img src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" alt="Donate"> 
  66. </a> <?php } ?> 
  67. </td> 
  68. </tr> 
  69. </tbody> 
  70. </table> 
  71. <?php 
  72.