You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.2KB

  1. <?php
  2. foreach($this->options['sections'] as $section) {
  3. echo '<div class="entry-section" style="margin-bottom: 20px;">';
  4. echo '<h3>' . $section['title'] . '</h3>';
  5. echo '<ul class="entry-buttons">';
  6. foreach($section['items'] as $item) {
  7. echo '<li><input type="submit" name="' . $item['type'] . '" class="btn btn-default" value="' . $item['title'] . '"></li>';
  8. }
  9. $type = null;
  10. if($section['title'] == 'Drinks') {
  11. $type = 'drink';
  12. $noun = 'Drink';
  13. }
  14. if($section['title'] == 'Food') {
  15. $type = 'eat';
  16. $noun = 'Food';
  17. }
  18. if($type == 'drink' || $type == 'eat') {
  19. echo '<li>';
  20. echo '<input type="text" class="form-control text-custom-'.$type.'" id="custom_'.$type.'" name="custom_'.$type.'" placeholder="Custom '.$noun.'" style="width: 72%; float: left; margin-right: 2px;">';
  21. echo '<input type="submit" class="btn btn-default btn-custom-'.$type.'" value="Post" style="width: 26%; float: right;">';
  22. echo '<div style="clear:both;"></div>';
  23. echo '</li>';
  24. }
  25. echo '</ul>';
  26. echo '</div>';
  27. }