twitter($username, $text = null, $title = null, $class = null)

Builds a Twitter profile link by username

  • $username (string)
  • $text (string)
  • $title (string)
  • $class (string)
  • return (string)

Example

Without link text

<?= twitter('getkirby') ?>

With link text

<?= twitter('getkirby', 'Follow Kirby on Twitter') ?>