theme-options.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. defined('ABSPATH') || exit;
  3. ?>
  4. <table class="form-table">
  5. <tr><td colspan="2">General options for header, social links and footer sections could also be set in <a href="?page=newsletter_main_main">Blog Info panel</a>.</td></tr>
  6. <tr>
  7. <th><?php _e('Primary color', 'newsletter') ?></th>
  8. <td>
  9. <?php $controls->color('theme_color'); ?>
  10. <p class="description" style="display: inline">Hex values, e.g. #FF0000</p>
  11. </td>
  12. </tr>
  13. <tr>
  14. <th><?php _e('Disable social links', 'newsletter') ?></th>
  15. <td><?php $controls->checkbox('theme_social_disable', ''); ?></td>
  16. </tr>
  17. </table>
  18. <h3><?php _e('Posts', 'newsletter') ?></h3>
  19. <table class="form-table">
  20. <tr>
  21. <th>Language</th>
  22. <td>
  23. <?php $controls->language(); ?>
  24. </td>
  25. </tr>
  26. <tr>
  27. <th>&nbsp;</th>
  28. <td>
  29. <?php $controls->checkbox('theme_posts', 'Add latest posts'); ?>
  30. <br>
  31. <?php $controls->checkbox('theme_thumbnails', 'Add post thumbnails'); ?>
  32. <br>
  33. <?php $controls->checkbox('theme_excerpts', 'Add post excerpts'); ?>
  34. </td>
  35. </tr>
  36. <tr>
  37. <th><?php _e('Categories', 'newsletter') ?></th>
  38. <td>
  39. <?php $controls->categories_group('theme_categories'); ?>
  40. </td>
  41. </tr>
  42. <tr>
  43. <th><?php _e('Tags', 'newsletter') ?></th>
  44. <td>
  45. <?php $controls->text('theme_tags', 30); ?>
  46. <p class="description" style="display: inline"> comma separated</p>
  47. </td>
  48. </tr>
  49. <tr>
  50. <th><?php _e('Max posts', 'newsletter') ?></th>
  51. <td>
  52. <?php $controls->text('theme_max_posts', 5); ?>
  53. </td>
  54. </tr>
  55. <tr>
  56. <th><?php _e('Post types', 'newsletter') ?></th>
  57. <td>
  58. <?php $controls->post_types('theme_post_types'); ?>
  59. </td>
  60. </tr>
  61. </table>