creator.php 272 B

123456789101112131415
  1. <?php
  2. /**
  3. * Creator view
  4. *
  5. * Implements Dublin Core creator
  6. *
  7. * @uses $vars['entity']
  8. */
  9. $owner = $vars['entity']->getOwnerEntity();
  10. if ($owner) {
  11. $owner_name = htmlspecialchars($owner->name, ENT_NOQUOTES, 'UTF-8');
  12. echo "<dc:creator>$owner_name</dc:creator>";
  13. }