edit.php 783 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Edit properties on a batch of images
  4. *
  5. * @uses $vars['batch'] ElggObject
  6. *
  7. * @author Cash Costello
  8. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
  9. */
  10. $batch = $vars['batch'];
  11. $album = $batch->getContainerEntity();
  12. $images = elgg_get_entities_from_relationship(array(
  13. 'type' => 'object',
  14. 'subtype' => 'image',
  15. 'relationship' => 'belongs_to_batch',
  16. 'relationship_guid' => $batch->getGUID(),
  17. 'inverse_relationship' => true,
  18. 'limit' => 0
  19. ));
  20. echo '<ul>';
  21. foreach ($images as $image) {
  22. echo '<li>';
  23. echo elgg_view('forms/photos/batch/edit/image', array('entity' => $image));
  24. echo '</li>';
  25. }
  26. echo '</ul>';
  27. echo '<div class="elgg-foot">';
  28. echo elgg_view('input/submit', array('value' => elgg_echo('save')));
  29. echo '</div>';