title.php 299 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Elgg title element
  4. *
  5. * @uses $vars['title'] The page title
  6. * @uses $vars['class'] Optional class for heading
  7. */
  8. if (!isset($vars['title'])) {
  9. return;
  10. }
  11. $class= '';
  12. if (isset($vars['class'])) {
  13. $class = " class=\"{$vars['class']}\"";
  14. }
  15. echo "<h2{$class}>{$vars['title']}</h2>";