wcdn_head

The WooCommerce Print Invoices & Delivery Notes wcdn head function.

Description

wcdn_head(); 

Usage

  1. if ( !function_exists( 'wcdn_head' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-print-invoices-delivery-notes/woocommerce-delivery-notes.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wcdn_head(); 
  7.  

Defined (1)

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

/woocommerce-delivery-notes.php  
  1. function wcdn_head() { 
  2. ?> 
  3. <style> 
  4. #navigation { 
  5. font-family: sans-serif; 
  6. background-color: #f7f7f7; 
  7. z-index: 200; 
  8. border-bottom: 1px solid #dfdfdf; 
  9. left: 0; 
  10. right: 0; 
  11. top: 0; 
  12. position: fixed; 
  13. padding: 6px; 
  14.  
  15. #navigation .button { 
  16. display: inline-block; 
  17. text-decoration: none; 
  18. font-size: 12px; 
  19. line-height: 23px; 
  20. height: 24px; 
  21. margin: 0; 
  22. padding: 0 10px 1px; 
  23. cursor: pointer; 
  24. border-width: 1px; 
  25. border-style: solid; 
  26. -webkit-border-radius: 3px; 
  27. -webkit-appearance: none; 
  28. border-radius: 3px; 
  29. white-space: nowrap; 
  30. -webkit-box-sizing: border-box; 
  31. -moz-box-sizing: border-box; 
  32. box-sizing: border-box; 
  33.  
  34. background: #f3f3f3; 
  35. background-image: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#f4f4f4)); 
  36. background-image: -webkit-linear-gradient(top, #fefefe, #f4f4f4); 
  37. background-image: -moz-linear-gradient(top, #fefefe, #f4f4f4); 
  38. background-image: -o-linear-gradient(top, #fefefe, #f4f4f4); 
  39. background-image: linear-gradient(to bottom, #fefefe, #f4f4f4); 
  40. border-color: #bbb; 
  41. color: #333; 
  42. text-shadow: 0 1px 0 #fff; 
  43.  
  44. #navigation .button:hover,  
  45. #navigation .button:focus { 
  46. background: #f3f3f3; 
  47. background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f3f3f3)); 
  48. background-image: -webkit-linear-gradient(top, #fff, #f3f3f3); 
  49. background-image: -moz-linear-gradient(top, #fff, #f3f3f3); 
  50. background-image: -ms-linear-gradient(top, #fff, #f3f3f3); 
  51. background-image: -o-linear-gradient(top, #fff, #f3f3f3); 
  52. background-image: linear-gradient(to bottom, #fff, #f3f3f3); 
  53. border-color: #999; 
  54. color: #222; 
  55.  
  56. #navigation .button:active { 
  57. background: #eee; 
  58. background-image: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#fefefe)); 
  59. background-image: -webkit-linear-gradient(top, #f4f4f4, #fefefe); 
  60. background-image: -moz-linear-gradient(top, #f4f4f4, #fefefe); 
  61. background-image: -ms-linear-gradient(top, #f4f4f4, #fefefe); 
  62. background-image: -o-linear-gradient(top, #f4f4f4, #fefefe); 
  63. background-image: linear-gradient(to bottom, #f4f4f4, #fefefe); 
  64. border-color: #999; 
  65. color: #333; 
  66. text-shadow: 0 -1px 0 #fff; 
  67. -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); 
  68. box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); 
  69.  
  70. @media print {  
  71. #navigation { 
  72. display: none; 
  73. </style> 
  74. <?php