block.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /*
  3. * Name: Company Info
  4. * Section: footer
  5. * Description: Company Info for Can-Spam act requirements
  6. */
  7. $default_options = array(
  8. 'block_background' => '#ffffff',
  9. 'font_family' => $font_family,
  10. 'font_size' => 13,
  11. 'font_color' => '#999999',
  12. 'font_weight' => 'normal',
  13. 'block_padding_top' => 15,
  14. 'block_padding_bottom' => 15,
  15. 'block_padding_left' => 15,
  16. 'block_padding_right' => 15
  17. );
  18. $options = array_merge($default_options, $options);
  19. ?>
  20. <style>
  21. .canspam-text {
  22. padding: 10px;
  23. text-align: center;
  24. font-size: <?php echo $options['font_size'] ?>px;
  25. font-family: <?php echo $options['font_family'] ?>;
  26. font-weight: <?php echo $options['font_weight'] ?>;
  27. color: <?php echo $options['font_color'] ?>;
  28. }
  29. </style>
  30. <table width="100%" style="width: 100%!important" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table">
  31. <tr>
  32. <td align="center" class="canspam-text">
  33. <?php echo!empty($block_options['footer_title']) ? $block_options['footer_title'] : 'Your Company' ?>
  34. <br>
  35. <?php echo!empty($block_options['footer_contact']) ? $block_options['footer_contact'] : 'Company Address, Phone Number' ?>
  36. <br>
  37. <em><?php echo!empty($block_options['footer_legal']) ? $block_options['footer_legal'] : 'Copyright or Legal text' ?></em>
  38. </div>
  39. </td>
  40. </tr>
  41. </table>