save.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Save image form body
  4. *
  5. * @author Cash Costello
  6. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
  7. */
  8. $title = elgg_extract('title', $vars, '');
  9. $description = elgg_extract('description', $vars, '');
  10. $tags = elgg_extract('tags', $vars, '');
  11. $access_id = elgg_extract('access_id', $vars, get_default_access());
  12. $container_guid = elgg_extract('container_guid', $vars, elgg_get_page_owner_guid());
  13. $guid = elgg_extract('guid', $vars, 0);
  14. ?>
  15. <div>
  16. <label><?php echo elgg_echo('album:title'); ?></label>
  17. <?php echo elgg_view('input/text', array('name' => 'title', 'value' => $title)); ?>
  18. </div>
  19. <div>
  20. <label><?php echo elgg_echo('album:desc'); ?></label>
  21. <?php echo elgg_view('input/longtext', array('name' => 'description', 'value' => $description)); ?>
  22. </div>
  23. <div>
  24. <label><?php echo elgg_echo('tags'); ?></label>
  25. <?php echo elgg_view('input/tags', array('name' => 'tags', 'value' => $tags)); ?>
  26. </div>
  27. <?php
  28. $categories = elgg_view('input/categories', $vars);
  29. if ($categories) {
  30. echo $categories;
  31. }
  32. ?>
  33. <div class="elgg-foot">
  34. <?php
  35. echo elgg_view('input/hidden', array('name' => 'guid', 'value' => $guid));
  36. echo elgg_view('input/hidden', array('name' => 'container_guid', 'value' => $container_guid));
  37. echo elgg_view('input/submit', array('value' => elgg_echo('save')));
  38. ?>
  39. </div>